Game Development Community

Sky problem

by Howard Dortch · in Torque Game Engine Advanced · 03/15/2007 (10:36 am) · 8 replies

I changed the sky using one of my old skies and the engine just crashes.
The old sky panels are 256 x 256 and the ones that came with demo are 1024 x
Is there something special about the sky now? do the panels need to be 1024 ?

#1
03/16/2007 (9:09 am)
Bump.
I also changed the textures on the landscape to ones I have been using and engine just crashes.
Anyone know what is wrong here?
#2
03/16/2007 (9:15 am)
Not a clue. Try running in Debug mode from an IDE like Visual Studio and let us know what line it crashes on and what the exception is.
#3
03/16/2007 (9:33 am)
It crashes at dStrcmp in winstrings.cpp the call stack points back to the texture manager hashFind.

in dStrcmp str1 has the first texture name in the dml directory for my sky but the str2 is null.

the files exist in the skies directory and are valid files and the dml file lists all the files with proper names.

The only changes I made was bring my sky files over from another game which work fine.

I revert back to the sky that comes with demo and works fine. But create a new legacy terrain paint it with my terrain textures from the other game and crash again same thing.
#4
03/17/2007 (9:53 am)
WEll I changed all my files names to skybox_1... etc and it works fine (I think) . Looked in the engine and it doesn't seem to want things in a dml as sky_whatever but thats what made it work, I changed my dml file to sky_red.dml and renamed all the files to red_1 etc in the dml and the actual jpgs in the sky directory and now it works.
One of the devs know if there is a specific required format for sky dml files?
#5
03/17/2007 (11:43 pm)
The DML file is just a text reference file for the engine to refer to to get the name you've chosen for the sky maps. Open up the example DML file and see how the list there is what the names of the sky was called for 1024x1024 example. You can open up notepad and save as a dml to make the files.
#6
03/18/2007 (5:38 am)
I've used loads of different skies with no ill effect. I'm guessing you just hit on some weird naming convention bug.

Can you post your dml file here? Maybe we can see something obvious.
#7
03/18/2007 (8:08 am)
I know what the dml is and does, just think it wierd the sky that works well in TGE drag and drop into TGEA causes an instant crash in the engine, rename the files and all is well.
Is this engine that unstable? Cant sell random crashes.
#8
03/18/2007 (9:46 am)
Why is it wierd?
TGEA is TGEA and TGE is TGE.
Its nolike TGEA is TGE with some addition.
Everything rendering related must be ported, only a small part of the media can be moved over without creating problems and errors.