Game Development Community

[Bug 1.1a] Default level directory

by Scottie Sirius · in Torque 3D Professional · 02/04/2010 (11:40 pm) · 5 replies

When I create a new level and "save as" it defaults to tools/levels...
See, this directory structure is confusing even to you guys!


#1
02/05/2010 (10:58 am)

Actually, that's not at all coming out of confusion and I myself find the directory structure quite obvious.

The default (blank) level has been stored in tools/levels rather than levels/ so as to leave levels/ solely for the actual game levels. If the tools/ folder is later stripped, the default level correctly goes with it.

The reason why the selector comes up in tools/levels is that it will automatically default to the level that the current mission is stored in. However, I have already changed this for the upcoming beta so as to not jump to jump to tools/levels/ when saving for the first time after "New Level".
#2
02/05/2010 (11:44 am)
Ahhh, I see. Well thanks for changing it, it has caused me problems more than once.
#3
02/05/2010 (5:15 pm)
Sort of off-topic, but shouldn't the DS default to looking in /levels when I start the server with -mission? Maybe not, but it's something that's always kind of bothered me. =P
#4
02/05/2010 (5:24 pm)

It could, though the current implementation of being completely agnostic as to where level files are located in the game directory bears the advantage of somewhat more flexibility (though, admittedly, one that probably goes unused 99% of the time).

However, this could be easily changed by modifying one line in scripts/main.cs if one so desires. Since this is not in the core scripts, it's safe to mess around here.
#5
02/05/2010 (9:25 pm)
Ah, well, I feel dumb. Thanks for pointing that out, never would have occurred to me that it was a script function, but that makes sense considering all level handling is script-side.