
Epic GTA2 Map Editor (0.6.6602) Beta
-
- Immortal
- Posts: 334
- Joined: 15 Apr 2012, 08:26
Re: Epic GTA2 Map Editor (0.6.6602) Beta
How did you do this? It's very good. 

- Serial Killer
- Psycho
- Posts: 93
- Joined: 21 Oct 2014, 12:54
Re: Epic GTA2 Map Editor (0.6.6602) Beta
Galactic, i have to admit, you're a writing machine.
I'm Serial Killer, my job is killing you!
Re: Epic GTA2 Map Editor (0.6.6602) Beta
Cool! I will add it as screenshot since i lost almost every screenie.Cuban-Pete wrote:Still a nice program, I made some art with it (and Blender), I call it Industrial Sunset:
My GTA2 related projects:
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: Epic GTA2 Map Editor (0.6.6602) Beta
Do you think it is also possible to export the lamps (with light color) into the .dae file? This way I can try a night render in Blender. 

Export to .dae file, import in Blender and play with camera angle, light settings and render settings (like indirect light).Galactic Boy wrote:How did you do this? It's very good.
"Mmmm, your eyes are so beautiful."
Re: Epic GTA2 Map Editor (0.6.6602) Beta
Doesnt it already export lights? I think it does. There must be a setting for it somewhere.Cuban-Pete wrote:Do you think it is also possible to export the lamps (with light color) into the .dae file? This way I can try a night render in Blender.
Export to .dae file, import in Blender and play with camera angle, light settings and render settings (like indirect light).Galactic Boy wrote:How did you do this? It's very good.
I remember the problem was that i didnt know how to convert GTA2 lights into "real" lights, so they might be too dim or too bright when you enable them.
Just open a map and enable night mode, then export it, all lights should come with it.
My GTA2 related projects:
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: Epic GTA2 Map Editor (0.6.6602) Beta
Ah yes, it does export the lights. Nice!
I'm having however a lot of trouble making it render properly. I switched to Cycles rendering in Blender, but it still goes crap. Is it possible that the lamps don't get exported as lamps, but as planes (perhaps in front of or above the blocks with correct colour)? Point lamps work bad in Cycles, planes should be better (in theory). Here is an example of using planes as light sources (placed by hand):

"Mmmm, your eyes are so beautiful."
Re: Epic GTA2 Map Editor (0.6.6602) Beta
The editor exports them the same way as they work in GTA2; point lights.Cuban-Pete wrote:Ah yes, it does export the lights. Nice!I'm having however a lot of trouble making it render properly. I switched to Cycles rendering in Blender, but it still goes crap. Is it possible that the lamps don't get exported as lamps, but as planes (perhaps in front of or above the blocks with correct colour)? Point lamps work bad in Cycles, planes should be better (in theory). Here is an example of using planes as light sources (placed by hand):
What is "Cycles" ?
What is "planes" in means of lighting?
I would need to know what to do before i do it.
However, if you are experienced in 3d modeling and rendering, you could simply replace the exported file <light> tags with something else. (or what ever tag name it uses in the XML file).
Code: Select all
<light id="PL0-L" name="PL0">
<technique_common>
<point>
<color sid="color">1 1 0</color>
<constant_attenuation>0</constant_attenuation>
<linear_attenuation>1</linear_attenuation>
<quadratic_attenuation>0</quadratic_attenuation>
</point>
</technique_common>
<extra>
<technique profile="blender">
<dist sid="blender_dist">2</dist>
<att1>1</att1>
<att2>0</att2>
<falloff_type>4</falloff_type>
</technique>
</extra>
</light>
If you can, you could make your own profile like "blender" has there, and i can add it in the editor.
By the way, how do you make textures work on blender? I cant get it load the exported maps properly anymore (shows no textures). worked with older versions.
My GTA2 related projects:
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: Epic GTA2 Map Editor (0.6.6602) Beta
Cycles is a render engine build into the latest Blender. Works with photon path or sumthing like that, more realistic and for this it needs a plane that gives light. Point lights are not that realistic I guess.
I didn't know I could edit the tags of the .dae file, thanks for telling. I'm experimenting (now) with Python and xml editing.
There is also a small problem with your export. You might want to add the <blue>, <red> and <green> tag under the <technique profile="blender"> tag, because the <color> is not read (in latest Blender 2.72b).
I make the texture work by selecting the object, adding a material, adding a texture and select as type the image. As mapping I use UV and for alpha enable it on texture tab and go under material and set transparency on and alpha to 0.
I didn't know I could edit the tags of the .dae file, thanks for telling. I'm experimenting (now) with Python and xml editing.
There is also a small problem with your export. You might want to add the <blue>, <red> and <green> tag under the <technique profile="blender"> tag, because the <color> is not read (in latest Blender 2.72b).
I make the texture work by selecting the object, adding a material, adding a texture and select as type the image. As mapping I use UV and for alpha enable it on texture tab and go under material and set transparency on and alpha to 0.
"Mmmm, your eyes are so beautiful."
Re: Epic GTA2 Map Editor (0.6.6602) Beta
How can you create a point light with planes? Sounds quite odd to my ears.Cuban-Pete wrote:Cycles is a render engine build into the latest Blender. Works with photon path or sumthing like that, more realistic and for this it needs a plane that gives light. Point lights are not that realistic I guess.
Are you sure about that? Damn, i think i had those tags before but removed them because i realised i dont need them.Cuban-Pete wrote:There is also a small problem with your export. You might want to add the <blue>, <red> and <green> tag under the <technique profile="blender"> tag, because the <color> is not read (in latest Blender 2.72b).
It was supposed to work automatically without any clicks in blender, at least it worked before... Do you have any idea how to fix it in the XML?Cuban-Pete wrote:I make the texture work by selecting the object, adding a material, adding a texture and select as type the image. As mapping I use UV and for alpha enable it on texture tab and go under material and set transparency on and alpha to 0.
My GTA2 related projects:
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: Epic GTA2 Map Editor (0.6.6602) Beta
Well, with a plane as a light source, it's not really a point light any more... I'm not sure if I will use planes eventually, I'm just experimenting. You can keep the export to point lights.
When I open 'Epic dae' files I get all white lights, when I save a coloured light in Blender as .dae and re-open it, I do get the coloured light and the difference in the xml is the red,green,blue tag.
I don't know how to fix the XML to get alpha working. I tried an export with Blender to .dae with correct settings, but I could not find a difference with the epic dae.
When I open 'Epic dae' files I get all white lights, when I save a coloured light in Blender as .dae and re-open it, I do get the coloured light and the difference in the xml is the red,green,blue tag.
I don't know how to fix the XML to get alpha working. I tried an export with Blender to .dae with correct settings, but I could not find a difference with the epic dae.
"Mmmm, your eyes are so beautiful."
Re: Epic GTA2 Map Editor (0.6.6602) Beta
Oh, i will add those then, some time.Cuban-Pete wrote:When I open 'Epic dae' files I get all white lights, when I save a coloured light in Blender as .dae and re-open it, I do get the coloured light and the difference in the xml is the red,green,blue tag.
So after you opened that re-saved dae, it didnt display texture automatically?Cuban-Pete wrote:I don't know how to fix the XML to get alpha working. I tried an export with Blender to .dae with correct settings, but I could not find a difference with the epic dae.
My GTA2 related projects:
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: Epic GTA2 Map Editor (0.6.6602) Beta
Wait. The epic .dae does show the texture, that part works. However the alpha settings are not correct. I tried to recreate an .dae (with correct alpha), but it fails. Just ignore this texture-complain from me, if you can update the lights to have correct colour I'm already happy.
"Mmmm, your eyes are so beautiful."
Re: Epic GTA2 Map Editor (0.6.6602) Beta
Can you show me the correct .dae tags/specification for the colors, basically just paste the whole <light> tag, so i can add it in the editor as it is in there made by blender.
My GTA2 related projects:
- Cuban-Pete
- Immortal
- Posts: 909
- Joined: 29 Jan 2010, 15:03
- GH nick: Cuban-Pete
Re: Epic GTA2 Map Editor (0.6.6602) Beta
Code: Select all
<light id="..." name="...">
...
<technique profile="blender">
...
<red> x </red>
<green> y </green>
<blue> z </blue>
...
</technique>
<light>
I manipulated the dae with python and got the lights working. Here is a render, I also made a different one:
"Mmmm, your eyes are so beautiful."
Re: Epic GTA2 Map Editor (0.6.6602) Beta
Wow nice, love the second one! Adding it to first post.
My GTA2 related projects:
Re: Epic GTA2 Map Editor (0.6.6602) Beta
That second screen reminds me of Sim City in a way, i like it!
- Old School GTA2 Mapper and Scripter.
- Creator of the original GTA2 Scripting tutorials hosted by Ben Millard.
-
- Car Jacker
- Posts: 20
- Joined: 01 May 2014, 11:37
- GH nick: Nightstalker
Re: Epic GTA2 Map Editor (0.6.6602) Beta

What is this?
Re: Epic GTA2 Map Editor (0.6.6602) Beta
According to the retval 2, the file could not be opened for writing. Check if your folder has write permissions for new files from your user account. And also check that the filename was valid filename for your platform (Windows 8?).
My GTA2 related projects:
Re: Epic GTA2 Map Editor (0.6.6602) Beta
I hijacked the Epic GTA2 Map Editor 3D camera and took it for a ride with the GTA2 engine
That map seems more dangerous in 3D.
Here's the small program I wrote to read the player xyza from GTA2 and write it to your editor. It's only compatible with 0.6.6602.
My horrible C++ source code included. Start the map editor first, open a map, change camera to a similar view to the video or load my camera.dat file, open GTA2 on the same map and then run gta2xyz.exe. It needs to be run as admin but this might change in the future if it's turned into a DLL.
Is it possible to start Epic GTA2 Map Editor with most of the windows turned off and camera set to a specific view? If there's no setting for it then it would be great if you could add it. I don't know if I've said it before but your editor is amazing, so many features, so much work and it runs really fast.
We'll have to talk about the best way our apps can communicate or how I should fix my code so you can actually use it.
![[remote] [remote]](./images/smilies/powerups/remote.png)

That map seems more dangerous in 3D.
Here's the small program I wrote to read the player xyza from GTA2 and write it to your editor. It's only compatible with 0.6.6602.
My horrible C++ source code included. Start the map editor first, open a map, change camera to a similar view to the video or load my camera.dat file, open GTA2 on the same map and then run gta2xyz.exe. It needs to be run as admin but this might change in the future if it's turned into a DLL.
Is it possible to start Epic GTA2 Map Editor with most of the windows turned off and camera set to a specific view? If there's no setting for it then it would be great if you could add it. I don't know if I've said it before but your editor is amazing, so many features, so much work and it runs really fast.
We'll have to talk about the best way our apps can communicate or how I should fix my code so you can actually use it.
Re: Epic GTA2 Map Editor (0.6.6602) Beta
I recorded the video again with better coordinates and infinite water.