Need help
#7
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:
-e"exec config/btdmscaffold.cfg"
This command line argument tells AC to execute the command (script):
exec config/btdmscaffold.cfg
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:
bin_win32\ac_client.exe --home="..\..\Data\settings" -e"exec config/btdmscaffold.cfg" --init %1 %2 %3 %4 %5
Thanks given by:


Messages In This Thread
Need help - by SamDep - 04 May 12, 10:50AM
RE: Need help - by Frogulis - 04 May 12, 12:31PM
RE: Need help - by jamz - 04 May 12, 12:47PM
RE: Need help - by SamDep - 05 May 12, 12:26PM
RE: Need help - by Aekom - 05 May 12, 04:58PM
RE: Need help - by jamz - 06 May 12, 08:39AM
RE: Need help - by Ronald_Reagan - 06 May 12, 08:55AM
RE: Need help - by Aekom - 06 May 12, 11:00PM
RE: Need help - by Ronald_Reagan - 07 May 12, 12:21AM
RE: Need help - by Aekom - 07 May 12, 02:48AM
RE: Need help - by Ronald_Reagan - 07 May 12, 03:16AM
RE: Need help - by SamDep - 09 May 12, 03:16PM
RE: Need help - by Ronald_Reagan - 10 May 12, 02:21AM