Team Radar

Discuss anything to do with Nexuiz here.

Moderators: Nexuiz Moderators, Moderators

Team Radar

Postby divVerent » Tue Oct 07, 2008 7:10 am

For the next Nexuiz version:

Image

Configurable options:

Image

What it shows:
  • Team mates
  • Bases
  • Waypoints of your team
  • Notifications when your team makes a waypoint, or your flag/a key gets taken

What it will never show:
  • Enemies (and their waypoints)
  • Item spawns

To configure it on servers that already have it:
  • set cl_teamradar_position "1 0" for the top right corner (generally "x y")
  • set cl_teamradar_size "192 192" for a bigger radar (generally "w h")
  • set cl_teamradar_zoommode "1" to zoom IN with zoom key and have it zoomed out by default, the other non-default modes are 2 and 3
  • set cl_teamradar_rotation "1" (up to 4) to set a fixed direction for the radar, instead of rotating it with you
  • set cl_teamradar_scale "8192" to see more on it
  • set cl_teamradar_background_alpha "0.25" for a less opaque background (or -1 to turn the background off)


To install it on a server, get a current svn build and provide radar images by a curl download (e.g. my radarimages-v2.pk3 on http://emptyset.endoftheinternet.org/~r ... uiz/files/).

To add radar support to a map that lacks it, load up the map in a svn build, do "sv_cmd radarmap" and wait till it is done. Then locate a file mapname_radar.xpm, open it in GIMP (or something else, e.g. IrfanView for Windows users) and save as gfx/mapname_radar.tga. With ImageMagick, it goes like:

convert mapname_radar.xpm mapname_radar.tga

Of course you can also edit the image in another way.
Last edited by divVerent on Wed Oct 08, 2008 10:48 am, edited 1 time in total.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby PinkRobot » Tue Oct 07, 2008 10:06 am

wow double wow, this looks awesome!
Now with new shiny avatar.
PinkRobot
Alien trapper
 
Posts: 443
Joined: Fri Jul 21, 2006 7:06 pm
Location: #brlogetc

Re: Team Radar

Postby Ronan » Tue Oct 07, 2008 10:23 am

divVerent wrote:To add radar support to a map that lacks it, load up the map in a svn build, do "sv_cmd roughmap" and wait till it is done. Then locate a file mapname_mini.xpm, open it in GIMP (or something else), apply a sharpening filter (I used the convolution matrix

-1 -1 -1
-1 9 -1
-1 -1 -1

for my images) and save as gfx/mapname_mini.tga. With ImageMagick, it goes like:

convert ~/.nexuiz/data/data/gfx/thedeathfactory_mini.xpm -convolve -1,-1,-1,-1,9,-1,-1,-1,-1 gfx/thedeathfactory_mini.tga

In GIMP, use Filters/Enhance/Sharpen with a sharpness of 89 to match this.


in GIMP you can also directly apply the convolution matrix with Filters/Generic/Convolution Matrix :

Code: Select all
0  0  0  0 0
0 -1 -1 -1 0
0 -1  9 -1 0
0 -1 -1 -1 0
0  0  0  0 0
Ronan
Alien trapper
 
Posts: 292
Joined: Tue Mar 20, 2007 10:25 pm
Location: France

Postby divVerent » Tue Oct 07, 2008 10:31 am

Sure, I know that, but sharpen with 89 does exactly the same (I compared it with having the convert-made image on the bottom layer, and playing with sharpen in the top layer, and operation set to "difference"). And it's less typing that way.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby C.Brutail » Tue Oct 07, 2008 10:42 am

:shock: OMG
"One should strive to achieve; not sit in bitter regret."
WE ARE NEXUIZ.
Image
Image
C.Brutail
Laidback mapper
 
Posts: 2357
Joined: Tue Feb 28, 2006 7:26 pm
Location: Ironforge

Postby GreEn`mArine » Tue Oct 07, 2008 10:24 pm

looks really impressive!
IRC quote:
[kojn] I've been coming a bit more recently
[kojn] she took it the dirty way
GreEn`mArine
Forum addon
 
Posts: 1509
Joined: Tue Feb 28, 2006 9:33 pm
Location: Germany

Postby Rad Ished » Tue Oct 07, 2008 10:40 pm

Well I heared some talk about a team radar some months ago and I was a bit whatever about it...... but this is truely awesome, nice work guys and thank you.
I was like :o
Nexuiz is starting to look very polished indeed.
Rad Ished
Keyboard killer
 
Posts: 609
Joined: Wed Jun 27, 2007 8:00 am
Location: Not the Netherlands

Postby [-z-] » Tue Oct 07, 2008 11:37 pm

Are you distributing a pack with all current map radar pictures?
[-z-]
Site Admin and Nexuiz Ninja
 
Posts: 1794
Joined: Mon Nov 13, 2006 12:20 am
Location: Florida

Postby divVerent » Wed Oct 08, 2008 6:03 am

Yes, and repacking some maps that also need incompatible changes to support the radar (or the image gets extremely small).
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby [-z-] » Wed Oct 08, 2008 10:38 am

can... I have a link? :-P
[-z-]
Site Admin and Nexuiz Ninja
 
Posts: 1794
Joined: Mon Nov 13, 2006 12:20 am
Location: Florida

Next

Return to Nexuiz - General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron