Page 2 of 50

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)

Posted: 02 Feb 2010, 00:03
by Razor
here you are the movie! I hope it will show more than screens.


Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)

Posted: 02 Feb 2010, 00:20
by B-$hep
Minimap works now.

Fix minimap BMP saving at it will be fine. I have same problem as Razor.
Black bmp.

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)

Posted: 02 Feb 2010, 00:23
by T.M.
haha cool video XD, so the minimap got fixed! and yours too B-$hep!

But it doesnt save the minimaps at all, i think i know whats the bug, gotta look at it tomorrow.

Also theres weird graphical trash at the left menu when opening the editor o.O gotta take a look at that too. These are the kind of things i like to see!

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)

Posted: 02 Feb 2010, 00:31
by B-$hep
Clear OpenGL buffers and this trash should go away.
It displays old OpenGL data when you launch.

Im testing my editor stuff here and your editor displays my old data that was previously rendered by OpenGL. Not always but still.

But it works fine. Haven't crashed.

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)

Posted: 02 Feb 2010, 00:37
by Sektor
SAVEMINIMAP command works for me (saves in editor folder) but the automatic data\minimaps\ 256x256 images are either black or garbage.

I noticed the data\minimaps\ only use the map description field for the filename. Not really a problem since I can write the gmp filename in the description part of maplist.txt.

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)

Posted: 02 Feb 2010, 00:54
by Gustavob
Hi TM. Nice work in the editor but I have a REAL weird bug. When I open a map in it and zoom out, the tiles get all messed up. This is how DAFE's Death Valley looks for me:

Image

But when I zoom in, the tiles are normal, but the "far away" tiles are still wrong:

Image

Also, the minimap shows up but its messed up too:

Image

EDIT: command line SAVEMINIMAP worked fine though

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)

Posted: 02 Feb 2010, 01:59
by Razor
dafe`s map also uses custom sty file and it is problem for sure

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)

Posted: 02 Feb 2010, 09:19
by Lantyz
Death Valley opens normally here, except for the custom tiles. Furthermore, the editor loads a converted Vice City, with a whole new style file, without any problems.

Image

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)

Posted: 02 Feb 2010, 12:50
by Gustavob
Razor wrote:dafe`s map also uses custom sty file and it is problem for sure
Nope, thats not the problem since every map has that problem. Also, look at second screenshot, wich is a closer view: the closer tiles show normal, the far away tiles are messed up. And since [DAFE] only changed few tiles in his map, it should show it normally, except for the changed tiles (wich look kinda noisey)

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)

Posted: 02 Feb 2010, 13:19
by T.M.
Gustavob, your problem can be fixed when you create file "nomipmap.txt" in the editor folder (empty file), and then launch editor again. It will disable mipmapping completely from all textures. What was your gfx card again? and windows? 64bit?

About the custom style file problem: the tiles will work correctly only when using one palet for one tile page (each tile page has 16 tiles). so if you dont touch any palets, then the tiles will be just fine.
Sektor wrote:I noticed the data\minimaps\ only use the map description field for the filename. Not really a problem since I can write the gmp filename in the description part of maplist.txt.
hmm... seems like there was bug: if description wasnt found, it would write empty filename. i will fix that in next release. actually, i am thinking to make it calculate some checksum from the files, and put that after the map description, like "Industrial [6A4CE62A].bmp" or something similar, so i can be sure to always save/load the minimaps correctly, since filenames might be same.

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)

Posted: 02 Feb 2010, 13:32
by Gustavob
it... works! \o/

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)

Posted: 02 Feb 2010, 13:49
by T.M.
Nice.

Razor, does the SAVEMINIMAP command save the minimap correctly for you?

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)

Posted: 02 Feb 2010, 14:55
by B-$hep
Even by commandline, the images are still black when saved.

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)

Posted: 02 Feb 2010, 23:02
by Razor
works here! :)

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)

Posted: 02 Feb 2010, 23:13
by T.M.
but it saves black image in the data/minimaps folder? doesnt make sense...

oh and sorry guys i couldnt program anything today, ill see if i can do something tomorrow.

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)

Posted: 02 Feb 2010, 23:35
by Razor
but it saves black image in the data/minimaps folder?
in did

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)

Posted: 03 Feb 2010, 11:24
by B-$hep
Some random pixels at the top, but that's all.
Image

Maybe it helps.

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)

Posted: 04 Feb 2010, 15:33
by T.M.
Thanks for testing, many stuff got fixed, changelog:

------------------------------------
0.5.16 Beta (04.02.2010)
------------------------------------
- Custom style files supported now!

- Minimaps saving fixed. Create "minimapfix.txt" in the editor folder if your data/minimaps are all black, or if SAVEMINIMAP command saves black minimap. Or if you had other problems with minimaps, then try the same method mentioned above.

- Should not show "trash" on the screen anymore when opening the editor.

- Fixed some filename problem in data/minimaps when not using [DIR] method. Now it will use the gmp filename if description is not found.

- Minor fixes about filename/description.

- Added command "COLORWATER", toggle blue colored water on/off (default on). this also disables the water randomizer, so every water tile uses those settings that were originally saved in the map file.

- If maplist.txt has no valid maps there, it will automatically generate a line of [DIR] to the path of GTA2 folder that is saved in windows registry by GH. If there is no registry key, it will try to use gta2path.txt, if that doesnt exist then it will pop up the normal error message again.

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)

Posted: 04 Feb 2010, 17:58
by B-$hep
Just logged into my Win7 and tested.
Works fine. Including minimap image generation.

Re: TradeMark's GTA2 Map Editor (only Zone Editor currently)

Posted: 07 Feb 2010, 00:41
by T.M.
More fixes and features added. By Sektor's request, i added support to associate mmp files to the editor.

------------------------------------
0.5.17 Beta (07.02.2010)
------------------------------------
- Added command "LOADMAP" to choose .mmp file by yourself.

- You can now associate .mmp files with this editor, so you can open any .mmp file in editor by just clicking them. Which also means there is some Windows command line support, example: MapEditor.exe "i:\gta 2\data\somemap.mmp" will open the .mmp file in the editor. Note that it will always open new editor window, be sure to close the previous one to load/use it faster.

- Added command "BLENDMODE" to switch between solid or transparent flats (sometimes the wires may look ugly if the ground behind them is also flats).

- Added command "LOCKZP" = locks/unlocks camera z axis in free camera mode (wont move down or up at all).

- Fixed some possible crashes.

- Modified "COLORWATER %d" command, you have to give parameters to it: 0 = use gta2 water, 1 = let it choose automatically, 2 = use my blue water.

- Added cheats when you test map by "TEST" command: infinite lives, all weapons, free shopping, debug keys.