Game Development Community

Terrain won't save my textures

by Nicolai Dutka · in Torque Game Engine Advanced · 02/10/2009 (11:08 am) · 9 replies

I enter my mission, open Terrain Painter, click to replace the texture in the first box, select another texture that came with the T3D example, and paint it on. Looks good. Save mission, quit, load mission, all changes are GONE!

I tried with several different texture files, all of which came with the example games. I also tried making other changes after doing some texture painting such as moving the SpawnSphere a tiny bit, but still no luck.

Any ideas?

#1
02/10/2009 (12:14 pm)
Oh, when I load the mission after making the terrain changes that ARENT THERE...lol

I go back into terrain painter and notice that the first box containing the texture i replaced has my new texture's name in it, but the box is empty/blank.
#2
02/10/2009 (12:21 pm)
Hmm, works ok for me. Painting, moving, ... everything. Have you tried to "Save As" in order to create a new mission?

EDIT: I didn't try the T3D example though.
#3
02/10/2009 (10:53 pm)
I have the same or similar issue this evening, although I am using the AFK 1.8.0 1.1.3 beta (which is why I haven't just upgraded to 1.8.1 and seen if that fixed it).

I start with a mission with one texture setup. Add a second texture to the second slot down in the palette, and paint with it... at which point the base texture disappears from the model and goes black. If I repaint the whole map with the base texture and save, then exit, I can enter and see the texture. If the texture editor is opened once more, the palette will show no textures, although the string name of what was the second texture will appear below the empty slot. Any painting attempts result in the loss of the base texture on the model again.

I'm working off the Polysoup mission example provided with the AFX beta, on an XP PC.
#4
02/11/2009 (6:24 am)
Nice description Netwyrm. This is exactly what is happening on my end. Here is how I got around it:

Instead of adding or changing textures in the Terrain Paint, use the Terrain Texture Editor. Import your textures that way and let the tool paint the terrain for you based on your input. Once complete, you should now be able to use the textures you imported in the Terrain Texture Editor, but using the Terrain Painter now. The textures stay once you do that. At least, it works for me!
#5
02/11/2009 (7:59 am)

@Nicolai
Which version of TGEA are you using? Is this happening on 1.8.1?

@Netwyrm
The terrain painter issues were among those fixed in 1.8.1 and it should work.

However, I just found that indeed there's still some weirdness going on with the terrain texture editor. Will look into that and post the fixes.
#6
02/11/2009 (8:21 am)
Thank you for agreeing to look into it, Rene. Your last fix to the mission editor was superlative (when deleting and replacing megaterrains, I think it was, a serious crash would result), so I have every confidence this beast will be banished in short order as well.

I probably won't upgrade to 1.8.1 until the AFX version is available, so I'll have to look into the approach you suggest, Nicolai. I've not touched the Terrain Texture Editor yet but will try to find the instructions for it this evening in order to keep moving forward.
#7
02/11/2009 (8:43 am)

After looking some more into this, I found that the errors that showed up were caused by a bogus texture script in the particular mission I was using.

I tried to reproduce the problem described here on 1.8.1 but without success. There's been lots of fixes to this stuff in 1.8.1 and these things should work.

If, however, you are still seeing these issues on that release, please post here and I will look further into it.
#8
02/11/2009 (8:43 am)
Oh wow.... I JUST downloaded TGEA like 1-2 weeks ago... I have 1.8.0... Let me update and rebuild and see what happens. :)
#9
02/22/2009 (9:22 am)
I upgraded to AFX Beta 2 for TGEA 1.8.1 last night. The problem persists, although the symptoms have changed somewhat.

Now when a second texture is loaded into the Terrain Painter palette, it does not show up. You are allowed to "paint" with it, but it paints a blank texture (black) where the brush is applied to terrain.

However, the main terrain texture no longer completely disappears from the map as it did in the previous version when the paintbrush is applied with a different terrain selected.