Game Development Community

Changing location of files.. filepaths

by Jorgen Ewelonn · in Torque Game Engine · 04/09/2004 (12:37 pm) · 2 replies

Hey, I've been searching round the forums but it's hard work since it only seem to hit on the topic.

If anyone reading this know of a thread/resource that covers my question in part or all then please provide a link.

I want to customize the placement of files,
ex. moving things out of the common folder into specific mission folders and changing how these missions are located etc. etc.

Are these filepaths found in script or in the c++ and are they scattered around or are they located fairly together.

I don't ask of you to explain every single location of these paths (well if you do, I would love you forever :-)) but a simple yes/no/almost would do :-)

Many thanks in advance

#1
04/09/2004 (1:05 pm)
Check your root's folder main.cs (ie in example, or whatever you call it)
basically, there are two global tscript variables : $baseMods, that contains the common stuff's path, and $userMods, that defines gametype or mod particular, often overriding stuff from $baseMods. It's also expanded to a path, in the sense that you put a directory name there :)
Nothing is stopping you from changing the $userMods value when you're loading a level. Maybe try also to change $baseMods.
You can also explore packages to further refine a particular level's gameplay/features.
HTH
#2
04/09/2004 (1:05 pm)
I believe the only really hardcoded file is main.cs in root directory to get things started. From there you can follow the execution of scripts, Most of the paths are found in various main.cs and init.cs files.

Some things to text search the scripts for is "exec" and "loadDir". The console.log file can help you trace the execution flow.

That should get you started.