All .wad names are hardcoded in gp4.exe, so GPxTrack and CSM simply patch these names in memory (GPxTrack) or on disk (CSM).
GPxTrack can find the .wad file based on a so called GP4INFO tag called "prefix". GP4INFO is a list of tag/value pairs that is appended to the end of the .dat file using GP4 Builder or CMagic.
Recently, GPxTrack has been updated to support more ways to find the .wad file. It tries to find a unique .wad file in the same directory as the .dat file and with the same name as the .dat file. The GP4INFO tags can also be specified in a .ini file next to the .dat file now (a TSM .ini file will work too, as it also looks for a "Wad" tag).
Just remember that you can't simply rename a .wad file because the name should be the same as directory names used within the .wad file itself.
Here's the complete order in which the .wad is searched (from GPxTrack documentation):
1. If the prefix is already patched in GP4.EXE (CSM/TSM does this), use it.
2. Find the .wad file specified by the "Wad" tag/setting in the .ini file. If found, this file will be used as the actual track .wad file, and its name is used as the prefix.
3. Use the value of the "prefix" tag.
4. Find a unique .wad file in the same directory as the .dat file. If found, this file will be used as the actual track .wad file, and its name is used as the prefix.
5. Use the default prefix for that slot as defined by GP4, e.g. 'melborne2001' for slot 1.
I hope it is clear now.
PS: I see from the first post that you already mentioned CMagic, but I was confused and thought you were talking about magic data instead of the GP4INFO editor built inside CMagic.
René Smit, Independent Software Developer.
Download my GPx tools
here.
Edited 1 time(s). Last edit at 04/23/2014 08:46PM by SDI.