Game Development Community

Mission edited on Torque 1.0, not working on Torque 1.1

by Frank Bignone · in Torque Game Engine · 10/16/2001 (3:18 am) · 11 replies

One member of my team edited a mission with the level editor of Torque 1.0. We test it yesterday with the new SDK and the mission didn't load. In fact, it crashes the application.

When running the test app in debug mode, we have an assert on : TSMaterial:: index out of range in the renderScene method. It seems the engine tries to get an environmental texture map, but there aren't any.

Have you some idea on why it happens ?

About the author

Real programmers don't waste time recompiling; they patch the binary files... ... Real programmers don't waste time patching binary files; they patch memory.


#1
10/16/2001 (2:56 pm)
I can't think of any changes that we've that would affect the missions. The only thing we did to the 1.0 missions (besides adding the weapons to WaterWorld), was adjust the mission directory paths to the new layout.

The environment map is the 7 entry in the sky dml file, and the dml file is specified in the mission file as part of the sky object. You might want to make sure the dml file is correctly specified in the mission, and that the env file listed in the dml file exists.
#2
10/16/2001 (2:59 pm)
Actually, this probably isn't obvious... but the missions encode directory paths to resources, if you are trying to copy a mission from the 1.0 SDK into the new 1.1 directory structure, you'll have to edit the 1.0 missions with a text editor and patch up the paths.

Ok, we obviously should have written a 1.0 -> 1.1 porting quide.
#3
10/20/2001 (4:13 pm)
I've had this same error.. so then I corrected the paths. This time the map loaded, but then it crashed with something like "GetMaterial:: ..."
#4
10/22/2001 (9:40 am)
Do the missions released with the SDK load? Can you post the rest of the information on that assert? that might give me a clue.
#5
10/23/2001 (11:53 am)
The missions included work just fine.

However, I copied a map that I made on the original version, changed the paths accordingly, but it crashed after lighting the misson with an error like "listMaterial::Get Material....." I can't quite remember the rest, and I don't really want to crash it again.. :)
#6
10/23/2001 (2:49 pm)
Well, there's nothing wrong with asserting, it's not really a crash, it's an internal error message :)

You did copy over any other art that you might be using, skies material files, terrain, interiors? And you are sure you adjusted all the paths? Can you double check the sky object in your mission file and make sure it something like this:

materialList = "~/data/skies/sky_day.dml";

hmm, I guess all the path's should now start with "~/data/..." now, and not "data/..."
#7
10/23/2001 (6:06 pm)
Ah.. I overlooked that..

But maps are not saving.. and text on dropdown menus will not appear.. so I'm having a little trouble changing my options.. and editing maps..
#8
10/23/2001 (9:35 pm)
Make sure your maps are not read-only. Which drop downs aren't working?
#9
10/24/2001 (1:53 pm)
All of them.. the options.. editor things.. like the terraformer options.
#10
10/24/2001 (3:27 pm)
There is something wrong then, the drop down's work fine. You said you were using 1.1? Did you re-compile it yourself? Are you just copying the missions into the fps data/missions dir? Basically, it would be nice to know what you did to get into this situation :)
#11
10/24/2001 (5:51 pm)
Hrm.. I just rebuilt it just to make sure.. and it still fails to work..