06 May 12, 08:55AM
(This post was last modified: 06 May 12, 08:57AM by Ronald_Reagan.)
It has to do with when the execution of the operations occur. There might be a mapstartonce that you could use, however jamz' method is much cleaner.
The operations get executed in this order:
AC boots.
1. config files (including autoexec.cfg) get loaded
2. load the starting map
3. execute the initscript (what jamz gave)
Remember how loading maps restart all the sleeps?
Aekom's method will work in SVN as sleeps do not get reset on map loads.
Sorry SamDep, this post was mostly for jamz and Aekom. An extrapolation on what they said.
Essentially this you were given a script to be run at the beginning of the game. This script was doing what you wanted to do.
This is that script:
[cubescript]
sleep 2000 [team cla; mode 7; map ac_scaffold; addnbot 7 CLA worse; addnbot 8 RVSF worse]
[/cubescript]
There is a sleep in here, which delays the execution of the script such that it will occur when AC is fully loaded.
You place that in a file that AC can execute, so that script could get loaded up.
The command line switch that jamz gave you:
This command line argument tells AC to execute the command (script):
which executes the previous script.
This is what happens in the initscript (see what I said earlier).
Aekom's method puts the script in the autoexec, which is a config file that AC automatically executes. This would be all fine and dandy, except for the fact that the current version of AC resets all sleeps (makes them not happen) when it loads a new map. So, his script won't get executed as it gets canceled (essentially).
It all has to do with the order that the scripts get loaded in relation to the initial map loading.
HTH
Oh, also, Aekom struck out. This is what your new .bat should look like:
The operations get executed in this order:
AC boots.
1. config files (including autoexec.cfg) get loaded
2. load the starting map
3. execute the initscript (what jamz gave)
Remember how loading maps restart all the sleeps?
Aekom's method will work in SVN as sleeps do not get reset on map loads.
Sorry SamDep, this post was mostly for jamz and Aekom. An extrapolation on what they said.
Essentially this you were given a script to be run at the beginning of the game. This script was doing what you wanted to do.
This is that script:
[cubescript]
sleep 2000 [team cla; mode 7; map ac_scaffold; addnbot 7 CLA worse; addnbot 8 RVSF worse]
[/cubescript]
There is a sleep in here, which delays the execution of the script such that it will occur when AC is fully loaded.
You place that in a file that AC can execute, so that script could get loaded up.
The command line switch that jamz gave you:
[SELECT ALL] Code:
-e"exec config/btdmscaffold.cfg"
[SELECT ALL] Code:
exec config/btdmscaffold.cfg
This is what happens in the initscript (see what I said earlier).
Aekom's method puts the script in the autoexec, which is a config file that AC automatically executes. This would be all fine and dandy, except for the fact that the current version of AC resets all sleeps (makes them not happen) when it loads a new map. So, his script won't get executed as it gets canceled (essentially).
It all has to do with the order that the scripts get loaded in relation to the initial map loading.
HTH
Oh, also, Aekom struck out. This is what your new .bat should look like:
[SELECT ALL] Code:
bin_win32\ac_client.exe --home="..\..\Data\settings" -e"exec config/btdmscaffold.cfg" --init %1 %2 %3 %4 %5