Client auto-scripts

ET Pro Documentation Project

Moderators: Forum moderators, developers, ET Pro Documentation

User avatar
bani
Site Admin
Posts: 2780
Joined: Sun Jul 21, 2002 3:58 am
Contact:

Client auto-scripts

Post by bani »

Client auto map scripts
When a map loads or restarts, the client will look for the following scripts and run them if found:

autoexec_(mapname).cfg
autoexec_default.cfg

For example if the map rotates to battery, the client would look for autoexec_battery.cfg and run it. If autoexec_battery.cfg is not found, it would try to run autoexec_default.cfg instead.

Client auto team/class scripts
When players spawn with a changed team or class, the client will look for the following scripts and run them if found:

autoexec_axis.cfg
autoexec_allies.cfg
autoexec_spectator.cfg

autoexec_soldier.cfg
autoexec_medic.cfg
autoexec_engineer.cfg
autoexec_fieldops.cfg
autoexec_covertops.cfg

These are only run when the team or class changes, they are not run on every spawn.
squadjot
Posts: 378
Joined: Tue Feb 10, 2004 9:49 am
Location: Somewhere in Valby
Contact:

Post by squadjot »

note: the files will be executed in following order:

1. autoexec_<teamside>.cfg
2. autoexec_<classtype>.cfg
3. autoexec_<mapname>.cfg
Bedrock
Posts: 140
Joined: Wed Sep 17, 2003 3:56 am

Post by Bedrock »

Dev question: Would it be possible for you to add a "b_config_dir?"

And have it look for the configs in /etmain OR /etpro. I'd really love to just "set b_config_dir bedrock"

:o
Image
lagzalot
Posts: 3
Joined: Fri Jun 18, 2004 9:45 pm

Post by lagzalot »

question, my autoexec_maps have different r_overbrightbits/ r_gamma settings in them. my question is why doesnt etpro update my visuals whenever the map with those changes load? i basically have to vid_restart to get the latched values into effect. is there any way around this?
Kami
Posts: 20
Joined: Fri May 14, 2004 1:04 pm
Location: Orlando, in the middle of America's wang.
Contact:

Post by Kami »

no, I also posted this in your other thread. You have to vidrestart on those commands.
lagzalot
Posts: 3
Joined: Fri Jun 18, 2004 9:45 pm

Post by lagzalot »

thnx mang
Decem
Posts: 8
Joined: Sat Oct 01, 2005 7:30 am

Post by Decem »

is there an possibility to have an autoexec for different weapons?
example autoexec_mobile and autoexec_panzer.
send pm and/or reply to this, I dont check these forums very often though.
User avatar
gotenks
Posts: 3465
Joined: Fri Nov 15, 2002 4:12 pm
Location: out of my mind
Contact:

Post by gotenks »

been asked, so far not there
My Website
Image
After a night of binge drinking:
=FF=im2good4u wrote:WTF wanst i on top ?
Decem
Posts: 8
Joined: Sat Oct 01, 2005 7:30 am

Post by Decem »

yeah, not so important since it can be worked around with some scripts, I'm more concerned about my other topic, check it out :)
http://bani.anime.net//banimod/forums/v ... ght=#60995
User avatar
Father
Posts: 107
Joined: Sat Jul 22, 2006 1:30 pm
Location: Czech Republic
Contact:

Post by Father »

For example: if i connect to server where is playing Siwa Oasis(only example autoexec for each map isn't executed when i connect to server with some map) autoexec for map is not executed - is this feature or bug? :?:
If you don't do it, someone else will.
User avatar
Lagger
Posts: 316
Joined: Mon Sep 29, 2003 8:30 am

Post by Lagger »

It might have been sw_oasis_b3, has always worked flawlessly for me.

look in the console, it should write "Execing autoexec_oasis.cfg" or something like that.
User avatar
Father
Posts: 107
Joined: Sat Jul 22, 2006 1:30 pm
Location: Czech Republic
Contact:

Post by Father »

Lagger wrote:It might have been sw_oasis_b3, has always worked flawlessly for me.

look in the console, it should write "Execing autoexec_oasis.cfg" or something like that.
No, i know that asutoexec for map is not autoexecetud if i connect to runnig server. In console is not written that it was executed and features which i have at theese files not working. The first map i must execut autoexec manually..
If you don't do it, someone else will.
User avatar
Lagger
Posts: 316
Joined: Mon Sep 29, 2003 8:30 am

Post by Lagger »

Try these one at a time and tell me which one works:

add +set fs_game etpro to the command line
It should read something like

Code: Select all

"C&#58;\program files\wolfet\et.exe" +set fs_game etpro
make sure the autoexec_<whatever>.cfg are placed in \wolfet\etpro
User avatar
Father
Posts: 107
Joined: Sat Jul 22, 2006 1:30 pm
Location: Czech Republic
Contact:

Post by Father »

Lagger wrote:Try these one at a time and tell me which one works:
add +set fs_game etpro to the command line
It should read something like

Code: Select all

"C&#58;\program files\wolfet\et.exe" +set fs_game etpro
If i would connect to some server where ETPro is running i don't need set fs_game
Lagger wrote:make sure the autoexec_<whatever>.cfg are placed in \wolfet\etpro
Yea, i'm sure that it's i ETPro folder. All my configs are in ETPro folder..

..so nothing works. :cry:
If you don't do it, someone else will.
User avatar
Lagger
Posts: 316
Joined: Mon Sep 29, 2003 8:30 am

Post by Lagger »

If i would connect to some server where ETPro is running i don't need set fs_game
Well, did you try it? Because it would be a sane reason why it doesn't work on the first map...
Post Reply