Problem Multiple cars.wad in CSM

Posted by Meteoro405 
Problem Multiple cars.wad in CSM
Date: August 12, 2008 04:13AM
Posted by: Meteoro405
Hi friends, I have a problem I can't fix... I'm making a CSM mod for touring cars, and as the season progresses, it uses different cars.wad (specified in config.ini within CARS folder).
Thing is, it works perfectly and uses the specified cars.wad correctly, but when exiting the game, CSM can't swap gpxtrack.ini back and doesn't fully restore, so I have to manually delete gpxtrack.ini for CSM to finish the restoring process successfully.
Am I missing some .cap file?
As always, thanks!
Re: Problem Multiple cars.wad in CSM
Date: August 12, 2008 09:47AM
Posted by: fongu
i think its a bug that gpxpatch ini files don't restore, ask zaz on grandprixx.com/forum


Re: Problem Multiple cars.wad in CSM [CSM Bug]
Date: February 05, 2014 12:04PM
Posted by: TomMK
5.5 year bump :)

I'm experiencing this bug. When using the track-specific cars wad feature, CSM appears to edit gpxtrack.ini in both the Grand Prix 4\gpxpdata folder (correctly) but also within the CSM folder structure (incorrectly). The result is that it creates a new gpxtrack.ini in the CSM folder which then causes the Restore to fail because it cannot swap/overwrite gpxtrack.ini from Grand Prix 4\gpxpdata back.

I thought I'd publish my workaround in case anyone else finds it useful.

Firstly you must delete gpxtrack.ini from your CSM mod.

Secondly, edit the Settings\Swap.ini file as follows. Rather than use SwapFolder, I use Swapfiles instead to move each gpxpatch .ini file individually, and leave out gpxtrack.ini. This lets CSM create its incorrect version of gpxtrack.ini in the CSM folder structure but it doesn't get in the way anymore:

Swap.ini - Bad code

[SwapFolder]
Folder1	=GPxPatch,gpxpdata

Swap.ini - Good code

[Swapfiles]
File1		=GPxPatch\fonts.ini,gpxpdata\fonts.ini
File2		=GPxPatch\gpxcinfo.ini,gpxpdata\gpxcinfo.ini
File3		=GPxPatch\gpxlap.ini,gpxpdata\gpxlap.ini
File4		=GPxPatch\gpxpatch.ini,gpxpdata\gpxpatch.ini
File5		=GPxPatch\gpxsat.ini,gpxpdata\gpxsat.ini
File6		=GPxPatch\gpxset.ini,gpxpdata\gpxset.ini
File7		=GPxPatch\gpxsound.ini,gpxpdata\gpxsound.ini
File8		=GPxPatch\performance.txt,gpxpdata\performance.txt
File9		=GPxPatch\physics.g3p,gpxpdata\physics.g3p

Important: Notice there is no mention of gpxtrack.ini in the latter.

=====================================================


Intel NUC 8i3, 8GB RAM, MS Sidewinder Wheel



Edited 2 time(s). Last edit at 02/05/2014 12:06PM by TomMK.
Re: Problem Multiple cars.wad in CSM [CSM Bug]
Date: February 05, 2014 06:02PM
Posted by: petrus
TomMK: I'm experiencing this bug. ...

Thanks for your effort.
It encouraged me to take a look into my installed mods searching for "EnableTrackSpecificcarsWad=1" in gpxtrack.ini files.
Result: only the 1991 mod by "The GP4 1991 Season Development Team" is using this and the bug described above did not appear here.


petrus' gpaedia files
Re: Problem Multiple cars.wad in CSM [CSM Bug]
Date: February 05, 2014 11:19PM
Posted by: TomMK
It's not when you enable the track-specific wad in the gpxtrack.ini yourself. It's when you use CSM's [TrackSpecXX] feature in the config .ini files. For example:

Data\Cars\cars.ini

[Vars]
track01 = melbourne

[Config]
Dir1		= %team01%,%team01%\%trackname%
Dir2		= %team02%,%team02%\%trackname%
Dir3		= %team03%,%team03%\%trackname%
Dir4		= %team04%,%team04%\%trackname%
Dir5		= %team05%,%team05%\%trackname%
Dir6		= %team06%,%team06%\%trackname%
Dir7		= %team07%,%team07%\%trackname%
Dir8		= %team08%,%team08%\%trackname%
Dir9		= %team09%,%team09%\%trackname%
Dir10		= %team10%,%team10%\%trackname%
Dir11		= %team11%,%team11%\%trackname%
Dir12		= _shared

[TrackSpec1]
TargetFile	= cars_%track01%.wad
Dir1		= %team01%\%track01%
Dir2		= %team02%\%track01%
Dir3		= %team03%\%track01%
Dir4		= %team04%\%track01%
Dir5		= %team05%\%track01%
Dir6		= %team06%\%track01%
Dir7		= %team07%\%track01%
Dir8		= %team08%\%track01%
Dir9		= %team09%\%track01%
Dir10		= %team10%\%track01%
Dir11		= %team11%\%track01%

When you use this feature, CSM automatically edits gpxtrack.ini to add this code:

[Wad]
EnableTrackSpecificCarsWad=1
Carswad01=cars_melbourne.wad

However, in doing this, CSM seems to make a mistake because it does this in two different places, one being within the CSM folder structure which is incorrect.

=====================================================


Intel NUC 8i3, 8GB RAM, MS Sidewinder Wheel
Sorry, only registered users may post in this forum.

Click here to login

Maintainer: mortal, stephan | Design: stephan, Lo2k | Moderatoren: mortal, TomMK, Noog, stephan | Downloads: Lo2k | Supported by: Atlassian Experts Berlin | Forum Rules | Policy