Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (SBGuy), 652 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: need a simple minimap example. [Re: Locoweed] #350560
12/17/10 01:24
12/17/10 01:24
Joined: Sep 2010
Posts: 97
C
carla_mariz Offline
Junior Member
carla_mariz  Offline
Junior Member
C

Joined: Sep 2010
Posts: 97
@garretwademan: that would be wonderful! laugh

@Loco: what file should i run here? i tested all scripts and it has an error... btw, im using A7 free and A8 trial.. thanks! laugh

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
J
jpxtreme Offline OP
Junior Member
jpxtreme  Offline OP
Junior Member
J

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.7z

when 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: jpxtreme] #351389
12/24/10 04:31
12/24/10 04:31
Joined: Jan 2006
Posts: 245
PA
Garrettwademan Offline
Member
Garrettwademan  Offline
Member

Joined: Jan 2006
Posts: 245
PA
I do have a working model, but I wrote it for a college student on his project. I got the script file from an email, however I deleted his project from my hard drive. I will need to make a working demo model as the script I have is full of other functions and such (5000 lines).


Current Project: Computer Repair Simulator
https://www.computer-repair-simulator.com
Re: need a simple minimap example. [Re: Garrettwademan] #355289
01/26/11 07:21
01/26/11 07:21
Joined: Aug 2008
Posts: 81
J
jpxtreme Offline OP
Junior Member
jpxtreme  Offline OP
Junior Member
J

Joined: Aug 2008
Posts: 81
@Garrettwademan

it would be great if you share a working example that I can study with.

i tried your code but i have a problem making it to work.

the player bmap won't move

and also what values should i put in the following

var player_map_x;
var player_map_y;
var reference_x;
var reference_y;
var x_compensation;
var y_compensation;

please help me. thanks!

Re: need a simple minimap example. [Re: Garrettwademan] #355300
01/26/11 09:44
01/26/11 09:44
Joined: Aug 2008
Posts: 81
J
jpxtreme Offline OP
Junior Member
jpxtreme  Offline OP
Junior Member
J

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
C
carla_mariz Offline
Junior Member
carla_mariz  Offline
Junior Member
C

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. grin

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. grin ).

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
L
Locoweed Offline
Expert
Locoweed  Offline
Expert
L

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 Offline
Member
Garrettwademan  Offline
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


Current Project: Computer Repair Simulator
https://www.computer-repair-simulator.com
Re: need a simple minimap example. [Re: Garrettwademan] #356631
02/02/11 23:38
02/02/11 23:38
Joined: Jan 2006
Posts: 245
PA
Garrettwademan Offline
Member
Garrettwademan  Offline
Member

Joined: Jan 2006
Posts: 245
PA
My code is in C-Script, not litec. The math equation is the same though.


Current Project: Computer Repair Simulator
https://www.computer-repair-simulator.com
Re: need a simple minimap example. [Re: Garrettwademan] #357011
02/05/11 07:42
02/05/11 07:42
Joined: Aug 2008
Posts: 81
J
jpxtreme Offline OP
Junior Member
jpxtreme  Offline OP
Junior Member
J

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.
Page 2 of 3 1 2 3

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1