What you need to do is create a simple bash script with the same name as the file GameCreate tries to start, cod2_lnxded, and inside it decide (based upon the argument supplied) choose what executable to then run.
Be sure GC is configured to run the game inside a screen (via Game Config area) so that the process does not become rogue.
You will need to do some research on bash scripting (simplest I can think of), it's been a while since I have had to use it.
GameCreate is *always* going to start cod2_lnxded - so you need to write a wrapper script called that (and rename the 'real' cod2_lnxded to something else, like cod2_lnxded_real) that your wrapper script starts (or decides instead to start cod2_lnxded_test as per your example) instead.
You can then make your wrapper script decide what executable to start (_real or _test) based upon what command line arguments are sent (and make GC send different one/s depending on what executable you want it to start).
#!/bin/bash
if [ $# -lt 1 ]
then
echo "missing arguments"
exit 1
fi
if [ $1 = "test" ]
then
shift
./cod2_lnxded_test $@
elif [ $1 = "real" ]
then
shift
./cod2_lnxded_real $@
else
echo "invalid first argument - use real or test as the first argument"
exit 1
fi
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum