Page 9 of 50
Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)
Posted: 25 Feb 2010, 14:01
by T.M.
BenMillard wrote:(EDIT) Can you render
Dusk mode?

Yeah, later, now im focusing on .mis file.
Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)
Posted: 28 Feb 2010, 13:41
by BenMillard
Even if they aren't editable, showing the position and rotation of objects by taking the corresponding sprite from the
.sty would be great for making mini-maps. No need for any of it to be editable at this stage, just getting it to display nicely would be super useful.
Then we could make our own high-quality map images, with weapon locations and stuff, like the ones Kamil does. And we could update them ourselves when we release new versions.
For example,
DeCon Labs has:
- 9 weapons (GENERATOR ... collect_xx)
- 3 powerups (GENERATOR ... collect_xx)
- 3 tanks (PARKED_CAR_DATA ... TANK)
- 3 power units (OBJ_DATA ... powergen).
- 2 concrete barriers (OBJ_DATA ... bollard).
- 3 ambient sounds (SOUND ... generator_rumble play_forever).
- 3 event-triggered sounds (SOUND sound_name is declared, then after LEVELSTART a command sets sound_name = CREATE_SOUND ... GARAGE_OPEN PLAY_INSTANT).
I guess you could show sounds a bit like you show player start locations?
Here's the map Kamil did, probably adding the objects after
Export from the
.sty and
Paste into a graphics program. (It's hosted by
gtamp.com so I linked to it directly.)
(EDIT) You could probably talk to Delfi/JernejL about
.mis processing, since he made
GTA2 mis PAD. It does syntax highlighting and integrates with the DMA compiler.
Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)
Posted: 28 Feb 2010, 16:48
by T.M.
Yeah, i already made the mis parser and successfully made all the objects visible in the maps, but they dont have correct icons yet, its a lot of work to go trough 2000 sprites and create animation data from them and link them to script function values.
However, the minimap saving with such icons you showed will be done after i can see all the objects in the maps like they are seen in game.
I will make a release when the mis parsing is complete and it shows the objects in the maps correctly, then i make them editable and release another version.
I need to think about how sounds would be visible in the editor... since they are probably under ground, its a bit trickier to show/edit them...
Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)
Posted: 28 Feb 2010, 18:06
by Razor
just extract them from sty and add to data folder

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)
Posted: 28 Feb 2010, 18:23
by T.M.
thats actually harder than what im doing now

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)
Posted: 02 Mar 2010, 21:10
by BenMillard
There's no need for them to be animated. In fact, that would be a super annoying distraction.
Also, you should start with the
.mis constants and map those to sprites. Starting with the sprites will lead to a lot of dead ends, since there are many sprites you can't create as objects in the scripts.
I take it the mapping from
.mis constants is hardcoded, so you have to reverse engineer it through trial-and-improvement? Or is there a lookup table in the
.sty format you could read automatically? If it's hardcoded then I hope the sprite index for each constant is the same in different
.sty files!
A lot of the scripting constants are documented in
GTA2 scripting guides. Although they don't give the
.sty sprite index, they do show you which graphic to look for manually.
From the scripts I've seen, sounds are either placed high above the ground or on the ground. You could interpret the Z coordinate of sounds as though it was a regular object at
255.0, so it appears on the topmost solid level at that point. Sounds inside doorways would then look like they are on rooves, though.
Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)
Posted: 02 Mar 2010, 22:03
by T.M.
The objects/cars rendering is finished now, i even added the tanks/jeeps/firetrucks turrets and "TVVAN" antenna

and yeah weapons/powerups are animated, plus some misc like PHONE_RINGING is animated.
Remap palets arent supported yet, so everything appears as the remap zero palet. if you want to help me, i would like to know the sprite ID for the POWERGEN object flashing light, its so small i havent found it yet, i guess its not even in the sprites at all, maybe hardcoded, dunno.
I will release tomorrow when i have fixed some other stuff as well.
The minimap weapon sprite generation thing is coming later (that where weapons would be shown as the weapon in top right corner in game).
Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)
Posted: 02 Mar 2010, 22:09
by Cuban-Pete
You make it sound so easy, trademark.
By the way, with what do you save/make/edit those map images? Perhaps you know that I made TXT2GTA2 and I want to try different way to edit/create images. I saw you use SDL.dll for images or not? What do you advise me to use? I currently tried OpenGL bitmap stuff (got an opengl window running in .net form, my main program).

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)
Posted: 02 Mar 2010, 22:28
by T.M.
Cuban-Pete wrote:By the way, with what do you save/make/edit those map images? Perhaps you know that I made TXT2GTA2 and I want to try different way to edit/create images. I saw you use SDL.dll for images or not? What do you advise me to use? I currently tried OpenGL bitmap stuff (got an opengl window running in .net form, my main program).

I would use PHP
To save an image you dont need any external libraries to do that, image formats such as TGA and BMP are really simple, all you need is the header definitions and then you save the raw pixel data.
Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)
Posted: 03 Mar 2010, 15:41
by Razor
I thought to myself how you can improve your editor and save some time.
My idea is to do "New Project Wizard".
Example how I see that:
In Advenced I would change a few things and add a few new usefull stuff for advenced mapmakers. But i have to think first (have some ideas: add to max players single player possitoion, add choose custom .sty to choose style window, advenced .extensions)
but tell me first what do you think about it ?
and blank window tab if sb want to show his ideas:

- blank.png (80.97 KiB) Viewed 29146 times
Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)
Posted: 03 Mar 2010, 16:01
by T.M.
Sounds good, but i dont like that guy image at left
You can forget about wizards and stuff until i have finished the editor completely

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)
Posted: 03 Mar 2010, 16:16
by Razor
that guy is just for example you can put there whatever you want
Btw can you tell (more or less) when you will relase next beta?
Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)
Posted: 03 Mar 2010, 16:58
by T.M.
Today i hope

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)
Posted: 03 Mar 2010, 21:25
by T.M.
Hurray for new release! Now you can see cars/objects etc in the map if you have .mis file. Note that the cars have always remap zero palet at this moment. Those sprites that i havent supported yet are not visible at all, so dont wonder if you cant see some sprites: just report to me which sprites they were and i will add them in the editor!
------------------------------------
0.5.22 Beta (03.03.2010)
------------------------------------
- Cars, generators and objects are now visible in the editor with animations, shadows and tanks/jeeps/firetruck/tvvan turrets! Also car trailers are visible; even the MINI_CAR is supported! and everything looks exactly like in GTA2! (99% match) Remapped cars doesnt work at this moment: all cars have remap zero palet by default. Press Numpad4 to enable/disable map objects.
- Added global hotkey: ESC button will shut down the GTA2.exe without a warning (works only if the editor is running). Helps a lot when gta2.exe crashes while testing a map.
- Added program icon in the program window too! (click for larger).
- Fixed zone saving when map had no zones by default.
- Fixed "debug.txt" appearing at the folder where you opened .mmp file.
- Minimaps will now display water if infinite water is enabled.
- Fixed minor bug on big minimap; statusbar covered small bit of the minimap.
- Big minimap will now be shown when TAB is hold down and hide when TAB is no longer hold down. (old behaviour: tab enabled and next tab press disabled minimap).
- Map list in the menu now shows currently open map with brighter background color.
- Changing default camera rotation now also rotates the camera to that angle.
- Added version number to the window title at startup, and removed the .gmp filename from the title: its already visible in the statusbar.
- Added setting to disable camera tilting when rotating (options -> camera settings -> tilt camera on turns).
- Added anisotropic filtering on minimap image too (used in 2d view mode or when zoomed out enough in 3d mode).
- Infinite water texture will also be anisotropic filtered texture now (less blurry on oblique camera angles).
- Statusbar camera position coordinates fixed to be exactly what they are in GTA2.
- Minor fixes: statusbar info part a bit wider, some menu items arranged in better places / names.
- Added some hotkey info in the statusbar messages.
- Added tooltip in zone editor when SHIFT key is hold down.
- SHIFT+movement keys (slow camera movement) are now disabled in the zone editor.
- Editor commands (camera rotation in free camera mode etc) are now disabled while maplist (CTRL+F1) is enabled.
Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)
Posted: 03 Mar 2010, 22:13
by Razor
zones and powerups look silly when are "in" slopes:
Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)
Posted: 03 Mar 2010, 22:16
by Cuban-Pete
Wow that sounds really cool, but I don't have any .mis file to test.

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)
Posted: 03 Mar 2010, 22:19
by Razor
download !ms
Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)
Posted: 03 Mar 2010, 22:24
by Gustavob
Many maps include the .mis file with the download, like DAFEs Death Valley, MultiSlayer, Suburban Anarchy, Tiny Loony Town, and lots of others. Just download one of these and tell Window$ to open them with TM's Map Editor
Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)
Posted: 03 Mar 2010, 22:44
by T.M.
Razor wrote:zones and powerups look silly when are "in" slopes:
Screen_kdhcec7.rar
yeah i know, GTA2 doesnt use depth testing at all, so its not a problem in GTA2. Not going to fix that any time soon, i dont really know how i could fix it... unless i make the sprites somehow lay on the surface without going under ground... but that would look silly too
What zones you meant? zones should be edited/shown only in 2D mode by default.
Cuban-Pete wrote:Wow that sounds really cool, but I don't have any .mis file to test.

You will see maps with blue text in the editor map list if they have .mis file.
Gustavob wrote:Many maps include the .mis file with the download, like DAFEs Death Valley, MultiSlayer, Suburban Anarchy, Tiny Loony Town, and lots of others. Just download one of these and tell Window$ to open them with TM's Map Editor
Yeah, just remember to associate the .mmp file, not .mis file

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)
Posted: 03 Mar 2010, 22:45
by Gustavob
TradeMark wrote:Gustavob wrote:Many maps include the .mis file with the download, like DAFEs Death Valley, MultiSlayer, Suburban Anarchy, Tiny Loony Town, and lots of others. Just download one of these and tell Window$ to open them with TM's Map Editor
Yeah, just remember to associate the .mmp file, not .mis file

Yeah, thats what I actually meant
