Epic GTA2 Map Editor (0.6.6602) Beta

Anything to do with GTA1/GTA2 modding (tools, scripts and more).
BenMillard
Immortal
Posts: 890
Joined: 16 May 2009, 06:14
GH nick: BenMillard
Location: London, UK
Contact:

Re: TradeMark's GTA2 Map Editor (0.6.0) NEW EPIC VERSION

Post by BenMillard »

Perhaps it used to by AI route finding? Might be a look-up table to to make that process faster than mapping every direction arrow every time a Cop Car or bot wants to drive after someone.
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: TradeMark's GTA2 Map Editor (0.6.0) NEW EPIC VERSION

Post by T.M. »

Pyro wrote:Does it change the file size of the GMP? If it does, how much?
17446 bytes, its always the same size on every map.
BenMillard wrote:Perhaps it used to by AI route finding? Might be a look-up table to to make that process faster than mapping every direction arrow every time a Cop Car or bot wants to drive after someone.
i doubt, because the size of the data is very limited, its not even 256x256 (=65k) so it cant even hold a lookup-table... i also wonder what happens if you make a lot of small roads with as many junctions as possible... will the DMA editor crash because it runs out of space in the RGEN...? this could be tested by making smallest possible road circle and repeating that pattern as much as possible in x/y and then repeating in z axis, i am quite sure it will run out of space if that is done...

Here is image showing what i managed to get out of RGEN:
Image

The data stores 2 points (without z-coordinate) which seem to mark the places how wide some junction is... there is also some other data, which i havent figured out, and i never will.

I am pretty sure this is only used by DMA editor... somehow it marks the junctions that are invalid, and when you go to world view -> junctions, you can see some road parts red if they are invalid some way or another.
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: TradeMark's GTA2 Map Editor (0.6.0) NEW EPIC VERSION

Post by T.M. »

Does anyone have a full list of commands that could be displayed in my editor because they either have coordinates (or and rectangle size) defined?

So far found these (which arent supported in my editor yet):

Code: Select all

POINT_ARROW_AT (  arrname, float x  , float  y  ,  float  z  ) 

LOCATE_CHARACTER_ANY_MEANS ( charname  ,  float X  , float  Y , float  Z  , 
float  Width , float height  ) 

LOCATE_CHARACTER_ON_FOOT ( charname  ,  float X  , float  Y , float  Z  , 
        float  Width , float height  ) 

LOCATE_CHARACTER_BY_CAR ( charname  ,  float X  , float  Y , float  Z  ,
     float  Width , float height  ) 

LOCATE_STOPPED_CHARACTER_ANY_MEANS ( charname  , float X , float Y , float Z , 
float Width , float Height ) 

LOCATE_STOPPED_CHARACTER_ON_FOOT ( charname  , float X , float Y , float Z , 
float Width , float Height ) 

LOCATE_STOPPED_CHARACTER_BY_CAR ( charname  , float X , float Y , float Z , 
float Width , float Height ) 

IS_CAR_IN_BLOCK ( carname , float X , float Y , float Z )

IS_CAR_IN_BLOCK ( carname , float X , float Y , float Z  , float  width  , float  height  )

SET_CHAR_OBJECTIVE ( charname , objective type , float X  , float Y  ,  float Z  ) 

IS_CHAR_FIRING_IN_AREA  (  name  , float X , float Y , float Z , width , height )

LEVEL_END_POINT_ARROW_AT (  arrname, float x  , float  y  ,  float  z  ) 

CHECK_CAR_WRECKED_IN_AREA ( carname , x , y , z , width , height )

REMOVE_BLOCK ( x  ,  y ,  z  , DO_DROP ) 

ADD_NEW_BLOCK  (  x ,  y ,  z   ) 

SWITCH_ROAD   OFF  (  x  ,  y  ,  z ) 

IS_POINT_ONSCREEN  (  float  x ,  float  y  ,  float z  ) 

PERFORM_SAVE_GAME  (  trigger name  ,  x   ,  y  ,  z  ,  width  ,  height  )
Not sure if theres all because the Microsoft Word Viewer search sucks (told me many times no more found, but it still kept finding when i pressed ok), so i might have missed something.

If you know some of those commands doesnt work or cant be used because gta2 bugs too much, tell me and i wont display them in the editor...

Oh, and i would appreciate it a lot if you found some commands cant be used in gta2, because each of those will take about 150 lines of coding... (or more)
User avatar
Sektor
Boss
Boss
Posts: 1450
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: TradeMark's GTA2 Map Editor (0.6.0) NEW EPIC VERSION

Post by Sektor »

Did you already add teleport locations? I'd like to be able to drag those around. There are some teleport locations in Water Slow Race that need adjusting as you said.

WARP_FROM_CAR_TO_POINT ( char name , float X , float Y , float Z , int rotation )
User avatar
elypter
Immortal
Posts: 1119
Joined: 26 Dec 2009, 23:53
GH nick: elypter

Re: TradeMark's GTA2 Map Editor (0.6.0) NEW EPIC VERSION

Post by elypter »

i looked through my npp syntax highlighting list and didnt find more.

about the
SWITCH_ROAD OFF ( x , y , z )
command:

i dont know if i just did something wrong (it was long time ago when i tried to use it) but it might be possible that it doesnt work.
yur sa'nok ngeyä
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: TradeMark's GTA2 Map Editor (0.6.0) NEW EPIC VERSION

Post by T.M. »

Sektor wrote:Did you already add teleport locations? I'd like to be able to drag those around. There are some teleport locations in Water Slow Race that need adjusting as you said.

WARP_FROM_CAR_TO_POINT ( char name , float X , float Y , float Z , int rotation )
Yes, WARP_FROM_CAR_TO_POINT works in the editor now! But it will show the locations as PLAYER_PED rendering... as it is possible to put bots there too, i dont know if its a proper way to render them... but meh, who cares, mostly you use them for players anyways.
elypter wrote:about the
SWITCH_ROAD OFF ( x , y , z )
command:

i dont know if i just did something wrong (it was long time ago when i tried to use it) but it might be possible that it doesnt work.
Thanks, i'll leave it to the last.
fressfisch
Ped
Ped
Posts: 3
Joined: 07 Apr 2011, 01:37

Re: TradeMark's GTA2 Map Editor (0.6.0) NEW EPIC VERSION

Post by fressfisch »

hey man thx for putting effort into this. I know this is like 35 pages already, so this might seem late. I actually gave up gta 2 mapping years ago thinking that no one would ever release a 'good' editor. I don't care as much for the viewer as for the actually block/texturing/stuff editor that's planned in the near future (sry dont wanna read all 35 pages its like 3 in the morning here).

As for the newest release: I just tried it. I might just be too tired but I can't seem to get it to work. If I try to open sth it tells me sty-files are missing, makes sense i guess. so if i try to load those first it... kinda crashes, eats all memory, leading to an error message (windows - low memory). the tool itself doesnt look right i think, when i start it it only shows the upper task bar or how ever the hell you call that in english, that bar at the top anyway, the rest is transparent. This might be overall a facepalm/annoying post and it all might have an obvious solution.. well, is there like a guide or short description anywhere? (man i need to go to sleep)


keep up the good work
Last edited by Sektor on 07 Apr 2011, 02:08, edited 1 time in total.
Reason: made it slightly less unreadable
User avatar
B-$hep
Immortal
Posts: 584
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: TradeMark's GTA2 Map Editor (0.6.0) NEW EPIC VERSION

Post by B-$hep »

Always read the ReadMe.txt that comes with software.
Also read: Readme maplist.txt

They are included for reading, not for fun.


Also you must report what operating system you actually use?
Is your PC some new? How's the videocard? RAM? etc...

Editor system requirements are in Readme.txt.

It would be easier T.M to catch the problem then.


And really get some sleep, you seem to be too tired.
Always wear safety glasses while programming.
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: TradeMark's GTA2 Map Editor (0.6.0) NEW EPIC VERSION

Post by T.M. »

fressfisch wrote:I actually gave up gta 2 mapping years ago thinking that no one would ever release a 'good' editor.
heh, me too :)
fressfisch wrote:As for the newest release: I just tried it. I might just be too tired but I can't seem to get it to work. If I try to open sth it tells me sty-files are missing, makes sense i guess.
What file did you try to load? .mmp file? Try .mmp first.
fressfisch wrote:so if i try to load those first it... kinda crashes, eats all memory, leading to an error message (windows - low memory).
Try creating file "lowmem.txt" in my editor folder, and try again. And as b-shep said already, try reading readme.txt too. It would be a good idea to tell your OS name and RAM size, as well as your GFX card memory size.

If you still get crash after using "lowmem.txt" please send the "debug.txt" in here.

Also, do you have Game Hunter installed? Or GTA2?
fressfisch
Ped
Ped
Posts: 3
Joined: 07 Apr 2011, 01:37

Re: TradeMark's GTA2 Map Editor (0.6.0) NEW EPIC VERSION

Post by fressfisch »

Last edited by Sektor on Thu Apr 07, 2011 2:08 am, edited 1 time in total.
made it slightly less unreadable
:)

Well here we go:
System and stuff
OS: Win7 64-bit
processor: IntelP Dual CPU T2390 @ 1.86GHz
1 GB ram
display adapter: 965 Express chipset family 448mb
(at least that's what i remember it to be,
well ever since i installed a third party driver
it just says "9xx Soldiers Sans frontiers Alpha 2"
in the device manager, but i never had any problems
with that)
Paths
GTA2: D:\Games\GTA2
TMEditor: D:\Games\GTA2\Editor
GameHunter: D:\Games\GTA2\gta2gh
I did read the readme and readme_maplist, but found nothing to solve the problem.

When starting the Editor it looks like this:
http://bildupload.sro.at/a/images/647-1.jpg
or like this after moving the task around a little:
http://bildupload.sro.at/a/images/491-2.jpg

when i load my maplist...
maplist.txt
[DIR] D:\Games\GTA2\data
D:\Games\GTA2\data\bil.gmp|D:\Games\GTA2\data\bil.sty
D:\Games\GTA2\data\wil.gmp|D:\Games\GTA2\data\wil.sty
...it doesn't do anything.

if i try to load maps manually, like: file->open->bil.gmp; bil.sty it does start to show "Map: (Unnamed) / FPS: 060 / 102" but i still don't see the map. which is weird because i think the map is actually loaded, it's just not being displayed, cause when i rightclick in the middle of the windows (which i assumed would be camera-movement) the FPS count drops to ~50. (btw it never crashed again, might have had sth to do with other processes yesterday i don't know)
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: TradeMark's GTA2 Map Editor (0.6.0) NEW EPIC VERSION

Post by T.M. »

That is superbly odd, you can still play any other OpenGL games etc? I noticed you use the old windows layout even when you claim you have Windows7... so you probably have some hardware problems for rendering the Windows 7 fancy stuff?

Can you send the debug.txt my editor creates after you have launched it?
fressfisch
Ped
Ped
Posts: 3
Joined: 07 Apr 2011, 01:37

Re: TradeMark's GTA2 Map Editor (0.6.0) NEW EPIC VERSION

Post by fressfisch »

right here it is
http://www.mediafire.com/?ov954v6b2ha5nz6

i posted it first but its really long and the spoiler-feature doesnt work as i thought it would

i'm using the old windows styles because i personally find it less distracting than the new version, but the windows 7 stuff works fine actually, never had problems with that.

edit: a lot of games work with this card, but then again i only play older games. intel cards can have some problems with opengl, though it says on the official support site that the chipset 965 would be compatible with opengl... i don't think you should concentrate too much on this, though i appreciate it, of cause. and as the editor doesnt feature the things that i need for mapping right now i might just wait until i find the money to repair my main pc (assembling a new mainboard is such a pain in the ass but oh well)
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: TradeMark's GTA2 Map Editor (0.6.0) NEW EPIC VERSION

Post by T.M. »

One thing is sure, the white / transparent thing "error" you talked about was because the maplist loading took full 32 seconds :shock: you either have insane amounts of maps, or your harddrive is super slow...

Cant really tell whats the problem, so, you still cant see anything in the editor window? (it should be black at least)

I could send you the current version, to see if that fixes anything, since ive changed some rendering code, it might be possible that fixes it.

Edit: i sent you a PM, check it out!
User avatar
B-$hep
Immortal
Posts: 584
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: TradeMark's GTA2 Map Editor (0.6.0) NEW EPIC VERSION

Post by B-$hep »

T.M.

I installed new XP Pro, then it crashed many times before it finally executed and asked me GTA2 path and now i get this error when starting editor:
Image

I extracted it from your pack, then pointed to GTA2 path it worked fine.
Then i closed and opened it many times and now it doesn't work anymore.

I installed VS2008,2010 runtimes, nothing...


More about the error:
http://msdn.microsoft.com/en-us/library/k1x26e0x.aspx


EDIT: now extracted again and rewrote all files, now it works.
First time when it displayed this error i just deleted settings.cfg and it executed, then started to display it again.
Always wear safety glasses while programming.
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: TradeMark's GTA2 Map Editor (0.6.0) NEW EPIC VERSION

Post by T.M. »

So you deleted settings.cfg and that error came? makes sense at the second cause:
2.A format string for a printf_s or scanf_s function contained a floating-point format specification and the program did not contain any floating-point values or variables.
Dunno what that error really is about... did you have visual studio running when you got this error?

I think the problem is you installed c++ runtime libarry or somtehing like that... did it myself few years back and all programs started to crash XD
User avatar
B-$hep
Immortal
Posts: 584
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: TradeMark's GTA2 Map Editor (0.6.0) NEW EPIC VERSION

Post by B-$hep »

No, i dont have installed VS yet.
Basically yes, i tested, it runs for 1 time after extraction. Then if i close it, the error comes up and i have to extract new copy again.

Then it runs for 1 time and after closing and trying to execute again, it shows error.
And so on and so on.


Maybe i have too much .mis, .sty and .gmp files in GTA2 data folder?

194 gmp's
24 sty's
155 .mis's
404 .scr's


BTW: maplist.txt contains that:


[DIR] (null)C:/Program Files/Rockstar Games/GTA2/
[DIR] C:/Program Files/Rockstar Games/GTA2/data
Always wear safety glasses while programming.
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: TradeMark's GTA2 Map Editor (0.6.0) NEW EPIC VERSION

Post by T.M. »

oh what the hell... i see (null) in my maplist as well :| nice... but never crashed for me lol... wonder when this bug came. ill see what i can do. thanks!

can you make it not crash if you remove the line that contains (null) ?
User avatar
B-$hep
Immortal
Posts: 584
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: TradeMark's GTA2 Map Editor (0.6.0) NEW EPIC VERSION

Post by B-$hep »

I removed line with NULL and still was same.

The case is that i got some virus or trojan on my main HDD. because taskmanager and regedit and firewall were disabled.

Then i attached one old 20GB HDD,now i installed new XP on it and attached the old HDD with virus (320GB) as secondary. I didn't knew that virus or trojan could detect that and still execute.
Any ideas how is that possible?

And now again same case: taskmgr is disabled, and firewall turns itself off.
Dunno how it's possible. I must now buy some empty DVD discs and burn the stuff to them and completely format all drives.

Sorry TM, but it seems that i got one nasty thing on my HDD's and i cant remove it.
And that caused it, because originally your exe is about 1,03MB but after i executed it and closed, it became 1.10 MB.

EDIT: all fixed now. Completely formatted my drives.
Always wear safety glasses while programming.
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: TradeMark's GTA2 Map Editor (0.6.0) NEW EPIC VERSION

Post by T.M. »

B-$hep wrote:Sorry TM, but it seems that i got one nasty thing on my HDD's and i cant remove it.
And that caused it, because originally your exe is about 1,03MB but after i executed it and closed, it became 1.10 MB.
Oh that sounds bad, my exe shouldnt grow ! yeah, probably the virus then. Tell me if the problem persists after you are virus free.
User avatar
B-$hep
Immortal
Posts: 584
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: TradeMark's GTA2 Map Editor (0.6.0) NEW EPIC VERSION

Post by B-$hep »

Malwarebytes' Anti-Malware got it fixed. Love that one. It helped me many times, when many other tools failed.
XP calc.exe was infected and Anti-Malware deleted that. So extracted new one from XP cd.

And your editor works fine, no crashes, floating point errors, no need to unpack after each session.

I think i know what thing was infected. But i don't want to test it atm.

Too tired.
Always wear safety glasses while programming.
Post Reply