Background
Every time you restart ET it defaults back to 800x600 no matter what you have in your autoexec.cfg
It’s not a shrub bug, read Lekdevil.NL’s explanation of the problem;
It’s not a Shrub bug, but a flaw in the way the ET deals with mods and with crash detection.
Last things first. Whenever you start ET, it creates a file called “profile.pid” in the homedir\etmain\profiles\profilename (e.g. “D:\Games\ETfull.2.55a\etmain\profiles\Lekdevil.NL”). If you exit ET, this file gets deleted again.
If you start ET, and it detects that “profile.pid” is already present, the program assumes that it has crashed on the previous run and resets all cvars that are marked as “unsafe” in etconfig.cfg to their default values.
Sounds pretty straightforward so far, doesn’t it?
Things get ugly when you connect to a server running a mod (any mod, not just shrub). As in all games based on the Q3A code, the client creates a separate directory for each mod name used on the server it connects to, as in homedir\modname (e.g. “D:\Games\ETfull.2.55a\shrubet”). In this directory, a new “profiles\profilename” subdirectory gets created, in which a new etconfig.cfg file gets stored. A new “profile.pid” file also gets created in there.
Now here’s the problem. Whenever you exit ET after playing on a server running a mod, only the profile.pid file in the mod directory gets deleted, and not the one in the “etmain…” directory. Hence, when you start ET again, it thinks is crashed previously and resets the cvars.
Solution: write a batch script that deletes the profile.pid file and then runs the ET program. Use that script to start ET.
The Solution
- Put the etstart.bat batch file in C:\Program Files\Wolfenstein - Enemy Territory. Make sure to change the profile name.
del etmain\profiles\TLMael\profile.pid
del shrubet\profiles\TLMael\profile.pid
et.exe %*
-
Point the shortcut on your desktop to etstart.bat instead of et.exe.
-
If you are using ASE edit the configuration of your browser so that it runs that batch file when an ET game is started. In ASE it can be found under View->Options->Games->Wolfenstein: Enemy Territory->Program Location.
Pretty cool eh?
Thank you Lekdevil.NL for the solution!!!



