|
Re: need a simple minimap example.
[Re: carla_mariz]
#350929
12/20/10 12:40
12/20/10 12:40
|
Joined: Aug 2008
Posts: 81
jpxtreme
OP
Junior Member
|
OP
Junior Member
Joined: Aug 2008
Posts: 81
|
@carla_mariz nope, we're not in the same school. heheh. our project is 3d car simulation, i need to implement mini map for the user. what's yours? btw, the radar script is in cscript and it's not compatible with lite c. I already have the lite c one but it has a problem. I found it somewhere in this forum. http://baddapple.web.officelive.com/Documents/radar.cd.7zwhen I run the compiled exe it will run perfectly but if run in sed it will not. Kindly check it if you can solve it please share it to me. heheh. meri christmas!!! @loco kindly check the lite c radar above if it runs properly in your system. I'm using A7 free. @Garrettwademan thank you for sharing the logic. It will be great if you have a working one that I can test.
|
|
|
Re: need a simple minimap example.
[Re: Garrettwademan]
#355300
01/26/11 09:44
01/26/11 09:44
|
Joined: Aug 2008
Posts: 81
jpxtreme
OP
Junior Member
|
OP
Junior Member
Joined: Aug 2008
Posts: 81
|
sorry double post!
Last edited by jpxtreme; 01/26/11 09:46.
|
|
|
Re: need a simple minimap example.
[Re: jpxtreme]
#355557
01/27/11 21:40
01/27/11 21:40
|
Joined: Sep 2010
Posts: 97
carla_mariz
Junior Member
|
Junior Member
Joined: Sep 2010
Posts: 97
|
@jpxtreme, sorry i forgot to tell you, your link to radar is working. i tried it to my project and its really working. try to read the whole code and i think you'll understand the flow. i guess you have just to put some lines in your code (yes, not the entire code. ). good luck... ^_^
|
|
|
Re: need a simple minimap example.
[Re: carla_mariz]
#355817
01/29/11 09:05
01/29/11 09:05
|
Joined: Oct 2002
Posts: 2,256 Oz
Locoweed
Expert
|
Expert
Joined: Oct 2002
Posts: 2,256
Oz
|
Sorry Carlo, though that would run, but guess not. I don't have time to make it run at the moment.
Actually, after looking, the old code was written for A7 and had silly A7 template code to run, if you put the it in the GStudio7 folder it should run.
Put the Radar folder in the GStudio7 folder and it should run. I never use 3dgs templates, but I guess I did with this.
TestMiniMap.wdl is the file to run.
Hit "M" or "R" key with toggle radar and minimap stuff.
When you hit the M key, there are entities on top of buildings, thats why side view has stuff above.
Use cursor keys to move.
You know, hope it might help, but I guarantee you, nothing is ever easy even with a little minimap and radar example. I should really convert to lite-c some day though.
That is all I got man.
Later, Loco
Professional A8.30 Spoils of War - East Coast Games
|
|
|
Re: need a simple minimap example.
[Re: Locoweed]
#356455
02/02/11 05:27
02/02/11 05:27
|
Joined: Jan 2006
Posts: 245 PA
Garrettwademan
Member
|
Member
Joined: Jan 2006
Posts: 245
PA
|
Well, I got a message from jpxtreme asking for my code. I spent a few hours here and rebuilt the project to show my example of a mini-map. I changed 5000 lines to only a few hundred so it was easier to understand. There is so much to explain on this, but I hope you can follow it. The biggest concern is: - Make your map 1000x1000 pixels, and call it admin_map.bmp - 255-261 lines of code show the math I am doing, I wrote a few comments and I hope you can follow my crappy comments. It is late and I just had to rework those numbers to make this work right. All I am doing is figuring out how big the playing map is, then comparing that ratio to the 1000x1000 map size. I am using a percentage equation so the numbers are somewhat relational. In any case, I hope you can understand what I did. I did this more on the fly in a previous version. You can download the working A7 project at: http://www.garrettwademan.com/3dgs/mini_map.zip
|
|
|
Re: need a simple minimap example.
[Re: Garrettwademan]
#357011
02/05/11 07:42
02/05/11 07:42
|
Joined: Aug 2008
Posts: 81
jpxtreme
OP
Junior Member
|
OP
Junior Member
Joined: Aug 2008
Posts: 81
|
@Garrettwademan
You've answered my request. Wow, I really wasn't expecting this. Thanks for the contribution Garrettwademan. I successfully run your sample minimap and it's working great. This is exactly what I'm looking for. Too bad it's in cscript but I will try my best to convert it to lite c.
Thank you very much for your time and effort. This is surely a big help not only me but for others too.
Last edited by jpxtreme; 02/05/11 07:44.
|
|
|
|