Radar/Map/Compass Control Update (GuiRadarCtrl)
by James Laker (BurNinG) · 07/03/2006 (11:33 am) · 74 comments
Download Code File
Just updated and cleaned the Scrolling Map, Radar, Compass gui Control resource a little.
- Now Works with TGE 1.4 to TGE 1.5.1 out of the box.
- Can Turn the Radar, Map and Compass On/Off in the GUI Editor
- Select Bitmaps in the GUI Editor (not Hardcoded anymore)
- Can Change Blip Colors in the GUI Editor
- Can Change ViewAngleLine Colors of the Map in the GUI Editor
- Can Turn the ViewAngle On and Off in GUI Editor
- Can Set the Radar Range in GUI Editor (F10)
To install and use:
1) Backup old guiRadarCtrl.h/guiRadarCtrl.cc
2) Add the files from this resource (Note that the gui Directories in TGE1.4 changed)
3) Recompile
4) In the GUI editor (F10) add the GuiRadarCtrl
Advanced Camera: - Thanx OneST8
To use with the advanced camera just change line 312 in guiRadarCtrl.cc:
Credits Thor Zollinger/Matt Webster for the original resources!
Just updated and cleaned the Scrolling Map, Radar, Compass gui Control resource a little.
- Now Works with TGE 1.4 to TGE 1.5.1 out of the box.
- Can Turn the Radar, Map and Compass On/Off in the GUI Editor
- Select Bitmaps in the GUI Editor (not Hardcoded anymore)
- Can Change Blip Colors in the GUI Editor
- Can Change ViewAngleLine Colors of the Map in the GUI Editor
- Can Turn the ViewAngle On and Off in GUI Editor
- Can Set the Radar Range in GUI Editor (F10)
To install and use:
1) Backup old guiRadarCtrl.h/guiRadarCtrl.cc
2) Add the files from this resource (Note that the gui Directories in TGE1.4 changed)
3) Recompile
4) In the GUI editor (F10) add the GuiRadarCtrl
Advanced Camera: - Thanx OneST8
To use with the advanced camera just change line 312 in guiRadarCtrl.cc:
//conn->getControlCameraTransform(0,&cam); // store camera informationto this:
control->getEyeTransform(&cam);
Credits Thor Zollinger/Matt Webster for the original resources!
About the author
#22
You then just browse for the files in the GUI editor.
06/09/2006 (1:10 am)
From the top of my head client/ui dir... but you should be able to put it anywhere in the Torque dir.You then just browse for the files in the GUI editor.
#23
07/07/2006 (8:10 am)
hmm.. I put it in with no problems... but - if it's already in playGui.gui and I try to open this GUI in editor (F10) - it crashes..
#24
Anyways, just thought I'd share this.
Around line 312 in guiRadarCtrl.cc:
07/08/2006 (11:09 pm)
For the Advanced Camera issue, you can always not use any camera transform and use the player's eye transform instead. While the map etc won't rotate with the camera anymore, it'll rotate with the direction the player's avatar is facing. Depending on your game, this may be a good thing.Anyways, just thought I'd share this.
Around line 312 in guiRadarCtrl.cc:
//conn->getControlCameraTransform(0,&cam); // store camera information [b]control->getEyeTransform(&cam);[/b]
#25
@OneST8: Awesome. Sometimes what seems complicated has such an simple anwer. Thanx!
07/10/2006 (12:23 am)
@Bank: Make sure your files/images are still in their respective directories.@OneST8: Awesome. Sometimes what seems complicated has such an simple anwer. Thanx!
#26
//#include "game/advancedCamera.h"
07/11/2006 (12:05 pm)
If you don't have the advanced camera resource, comment out line 36 of GuiRadarCtrl.cc://#include "game/advancedCamera.h"
#27
07/12/2006 (3:37 am)
Fanx Midhir...
#28
Regards,
Dreamer
07/12/2006 (7:49 am)
@BurNinG, Hey man this is some excellent work! Do you mind if this resource makes it's way into the MMORPG Kit's next release? You will of course get full credit for it.Regards,
Dreamer
#29
Ask these guys: Thor Zollinger and Matt Webster
07/12/2006 (8:16 am)
It aint mine.... I just added/updated it, and made it more userfriendy.Ask these guys: Thor Zollinger and Matt Webster
#30
using TGE 1.4 new install.
Any suggestions?
10/04/2006 (11:46 am)
I installed this resource according to the tut. Compiled fine. Added the gui control fine, displayed radar with compass and background worked fine. But if I go to mission editor, after adding the control to my gui, and then click on file menu, all of the fonts are broken (half the letter missing for each letter) and also new mission... just crashes my entire computer. Remove the radar from gui, and everything works fine again. Baffled.using TGE 1.4 new install.
Any suggestions?
#31
Can you mail me the images you are using? burningza@gmail.com
10/05/2006 (1:30 am)
Thats strange... What fonts are broken? All the fonts?Can you mail me the images you are using? burningza@gmail.com
#32
10/09/2006 (11:56 am)
Any text in any menu in any built in editor is all garbled and screwy with lines missing and extra lines in goofy places for each letter. Really weird. Also it still crashes upon attempting to create a new mission file.
#33
10/30/2006 (9:42 pm)
great resource, works great on 1.4, now is there a way to zoom in the radar? I have lots of people in close positions so they are all gobbled up as a single dot...
#34
10/30/2006 (11:00 pm)
Ok I should use setRange(), fantastic!
#35
10/31/2006 (4:21 am)
That is correct.
#36
C:\Torque\SDK\engine\gui\game\ *files*
and the .png files in....C:\Torque\SDK\example\starter.fps\client\ui\*files*
It compiled without any errors but i do not have the guiradarctrl in the "new control" drop down menu to be selected. I also do not see any errors in the log. The engine runs fine and does not crash. Any clue as to what I am doing wrong?
11/07/2006 (11:47 am)
I am using Torque 1.5 and I put the .cc and .h files in .....C:\Torque\SDK\engine\gui\game\ *files*
and the .png files in....C:\Torque\SDK\example\starter.fps\client\ui\*files*
It compiled without any errors but i do not have the guiradarctrl in the "new control" drop down menu to be selected. I also do not see any errors in the log. The engine runs fine and does not crash. Any clue as to what I am doing wrong?
#37
Are you you did a complete compile, Rebuild All?
Can anyone else confirm that it is not working in 1.5?
11/08/2006 (1:03 am)
I dont have 1.5, so I really cant say for sure.Are you you did a complete compile, Rebuild All?
Can anyone else confirm that it is not working in 1.5?
#38
11/09/2006 (10:20 am)
Yes, I did a complete rebuild. I can revert back to 1.4 though just to see it in action.
#39
12/04/2006 (10:21 am)
Has anyone had positive results with this in 1.5 yet?
#40
12/24/2006 (4:37 am)
FYI - I just added it to starter.fps 1.5 on the Mac without any problems. I tried the compass and the radar [but not the map], but haven't played with all the options yet.
Torque Owner Fabio Daniel "Sagaz"
Default Studio Name