Game Development Community

Crash on loading terrain textures manually

by arteria3d · in Torque Game Engine Advanced · 11/22/2004 (11:35 am) · 15 replies

When loaded my terrain even though the testures are in the right directory - they do not apear. Looking at terrain painter, they are all there to be used. The names apear in the slots, but not the textures and the terrain is black(i did relight!!!) Loading the first texture in, was fine and it apeared on the terrain. Trying to load subsequent textures crashes TSE??

Steve

About the author

Owner of uk based Ltd company ArteriaMediaLtd. with a trading name of Arteria3d Website;arteria3d.com


#1
11/22/2004 (11:54 pm)
Tom Spilman just posted a bug fix for this, although I have not tested it yet.

Nick
#2
11/23/2004 (3:06 am)
I downloaded TSE yesterday - and this happens in this version. Has another one been released today????
Steve
#3
11/23/2004 (3:32 am)
Well, the bug fix is posted for us to apply it. Until you see a reply from a GG employee stating that the fix has been "checked in", you need to apply it yourself.

Nick
#4
11/23/2004 (3:39 am)
Hi Nick,


I know this - but where is he resource to change it>!>?????? with the code i need - i did a search but nothing came up. Please dont reply with..... look harder - i have looked

Steve
#5
11/23/2004 (3:55 am)
You're right, he doesn't specify which file to change and I don't have TSE with me right now. Hopefully he'll reply.

Nick
#6
11/23/2004 (8:14 am)
@Stevie: You make the change in the 'set' member of the RefObjectRef class in refBase.h.
#7
11/23/2004 (8:19 am)
Thankyou!!!! Also is there any reason why the terrains load up black even though the textures are in the right folder - and they are actually named over the terrain texture boxes..?
#8
11/23/2004 (8:32 am)
The reason i was getting the black textures was precisely because the textures were in the wrong folder. If manually reconnecting the textures isn't working then maybe your missing the material.cs and shader.cs scripts? See this resource: www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5774.
#9
11/23/2004 (1:06 pm)
Cool - i got it working so now my textures dont crash the system.. Two other things.

1) Is the TGE water block not working??? as my water didnt show

2)Where is the Map2dif exporter. Looking in the directory it is just a whole lot of c files - does it have to be compioles separate, or where can i locate it.

Peeps dont shout at me for question 2//.......probs a simple answer

Steve
#10
11/23/2004 (4:15 pm)
Stevie:

1) I believe that the new water block code is still not finished.

2) Open the TSE SDK solution, make sure you have the release configuration selected, right click Map2dif in the solution explorer and select 'Build'. The exe will be placed in the tools folder.

Note: Map2dif does not like spaces in the output folder or texture folder paths. Even if you add quotes around them it fails to execute.
#11
11/23/2004 (4:16 pm)
Thankyou Tom for helping me out - much apreaciated. I wonder how the existing TGE terrains are gonna work with the next generation TSE ones....

Steve
#12
11/24/2004 (11:23 am)
I installed map2dif, but when run it just shows a prompt window and flashes off. How is it supposed to work???

Steve
#13
11/24/2004 (12:41 pm)
It's a command line app. Open a dos/cmd window and run the app. It will give you some instruction. You can also look at TSEDoc.chm in the 'doc' folder of the SDK.
#14
11/24/2004 (12:43 pm)
Thanks Tom for helping without moaning at me.....
I am finding a lot of people on these forumn who just moan when u ask a question - but u have have been kind and helped - thankyou - much apreciated

Steve
#15
11/24/2004 (1:20 pm)
Of course you should search the forums. I've also noticed that Google is indexing the forums now too, but only the public areas. www.google.com/search?q=site%3Agaragegames.com.