Autoexec NOT Autoexecing


(_NeT_WalBanger) #1

Well i had a quick search on forum but cant find anyone having same problem…

Well basicaly my Auto Exec NEVER auto loads…
i.e my cross hair is yellow dot… if i change it to a RED circle then quite et, next time i play game its still a red circle :confused:

Now it was making “backupcarv.cfg” (or something like that) so in my autoexec i put command :-
seta b_backupcvars “0” // Stops back ups???

But apart from stopping the game making 100’s of the files it dosnt seemed to of worked.

Do you know why its not autoexecing everytime i start the game?
Is it possible cause its to long???



// ==================================================
// 		       Key Binds
// ==================================================

// Clear Current Bindings
// ---------------------------------------
unbindall

set name ^0net^3:^7Wal^7Banger^3!; echo ^5Name: ^0net^3:^7Wal^7Banger^3! ^7Normal Game; exec autoexec_1ChatColors1.cfg; seta cg_autoaction "0"; seta logfile "0"; seta cg_wolfparticles "1"


// Movement
// ---------------------------------------
bind w			"+forward"			// Forward
bind s			"+back"				// Back
bind a			"+moveleft"			// Left
bind d			"+moveright"			// Right
bind e 			"+leanright"			// Lean Right
bind q           	"+leanleft"			// Lean Left
bind mouse2		"+moveup"			// Jump
bind shift		"+movedown"			// Crouch
bind capslock		"+sprint"			// Sprint
bind x 			"+speed"			// Walk
bind f			"+activate"			// Use key
bind ctrl		"+prone"			// Prone
//bind			"toggle cl_run"			// Toggle between 'Always Run' and 'Always Walk'

// Weapon Usage
// ---------------------------------------
bind MOUSE1 		"+attack"			// Attack
bind MOUSE3		"+reload"			// Reload
bind SPACE	      	"weapalt"			// Alternative Weapon Mode (if available)
bind C		        "+zoom"				// Binocs (if available)
bind 1			"weaponbank 1"                  // 1 - Knife
bind 2			"weaponbank 2"                  // 2 - Pistol
bind 3   		"weaponbank 3"			// 3 - Main Weapon
bind 4			"weaponbank 4"                  // 4 - Grenade
bind 5			"weaponbank 5"			// 5 - Smoke Canister / Air-Strike / Pliers / Syringe
bind 6			"weaponbank 6"			// 6 - Satchell Charge / Ammo / Dynamite / Health
bind 7			"weaponbank 7"			// 7 - Landmine / Adrenaline
bind mwheeldown		"weapprev"			// Previous Weapon
bind mwheelup		"weapnext"			// Next Weapon
bind MWHEELDOWN	        "zoomout"			// 
bind MWHEELUP   	"zoomin"			// 

// Hud
// ---------------------------------------
bind ESCAPE		"togglemenu"			// Main Menu
bind F1			"vote yes"			// Vote "Yes"
bind F2			"vote no"			// Vote "No"
bind F3			"ready"				// Indicate 'Ready' (match only)
bind F4			"notready"			// Indicate 'Not Ready' (match only)
bind `			"toggleconsole"			// Console
bind TAB		"+scores"			// Display Scoreboard
bind =			"mapzoomin"			// zoom on the map
bind -			"mapzoomout"			// zoom on the map
bind g	 		"+mapexpand"			// Command Map

// FireTeam (made useless by the toggle-See below)
// ---------------------------------------
// bind kp_ins		"selectbuddy -2" 		// takes Fireteam badges away from ALL members heads
// bind kp_end		"selectbuddy 0" 		// adds a badge above this fireteam members head
// bind kp_downarrow	"selectbuddy 1" 		// adds a badge above this fireteam members head
// bind kp_pgdn		"selectbuddy 2" 		// adds a badge above this fireteam members head
// bind kp_leftarrow	"selectbuddy 3" 		// adds a badge above this fireteam members head
// bind kp_5		"selectbuddy 4" 		// adds a badge above this fireteam members head
// bind kp_rightarrow	"selectbuddy 5" 		// adds a badge above this fireteam members head
bind kp_enter		"mp_fireteamadmin" 		// Fireteam menu


// FT Buddy Toggle
set bud-on "selectbuddy -2; set bud-tog vstr bud-of; echo ^3<< ^7FireTeam Icons DISPLAYED ^3>>"
set bud-of "selectbuddy -1; set bud-tog vstr bud-on; echo ^3<< ^7FireTeam Icons HIDDEN ^3>>"
set bud-tog "vstr bud-on"
bind kp_INS "vstr bud-tog"		// Toggle Buddy Display ON/OFF




// Miscellaneous
// ---------------------------------------
bind F11   "autoscreenshot; echo ^7Screen shot ^3taken"	// Command Mapot in JPEG format
bind m			"OpenLimboMenu"			// Limbo Menu
bind del "kill; FORCETAPOUT; say_Team ^0[^OSelf-Kill^0]"// Self-kill

// Stats
// ---------------------------------------
bind p			"+topshots"			// All player stats summary
bind ALT		"+stats"			// My stats

// Chat
// ---------------------------------------
bind enter		"messagemode"			// Global Chat
bind y			"messagemode2"			// Team Chat
//bind 			"messagemode3"			// FireTeam Chat
bind v			"mp_QuickMessage"		// V Message Menu






// =======================================
// 		      HuD
// =======================================

// Crosshair
// ---------------------------------------
seta cg_crosshairPulse		"0" 		// Toggles the crosshair changing size according to bullet spread
seta cg_crosshairHealth 	"0"    		// Has to be 0 , or colors won't show. 	
seta cg_drawCrosshair 		"5"		// Sets which crosshair to use (5 is a dot and the best to use for aiming)
seta cg_crosshairSize 		"35"		// The size of crosshair
seta cg_crosshairAlpha 		"1.0"  		// make it a bit more transparent
seta cg_crosshairAlphaAlt 	"0.5"		// 
seta cg_crosshairColor 		"Yellow"	// the main color of the crosshair

// Mouse
// ---------------------------------------
//seta m_yaw 			"0.011"		// Dont want these (this is other peoples settings)
//seta m_pitch 			"0.022"		// Dont want these (this is other peoples settings)
seta m_filter 			"0"		// 
seta cl_freelook 		"1"		// 
seta cl_mouseAccel 		"0"		// 
//seta sensitivity 		"3.50"		// Sets the mouse sensitivity

// Movement
// ---------------------------------------
seta cg_bobup			"0.00"		// stops bobbing movement when, er, moving
seta cg_bobpitch		"0.00"		// stops bobbing movement when, er, moving
seta cg_bobroll			"0.00" 		// stops bobbing movement when, er, moving
seta cg_runpitch		"0.00"		// stops bobbing movement when, er, moving
seta cg_runroll			"0.00"  	// stops bobbing movement when, er, moving
seta cg_bobyaw 			"0.00"		// stops bobbing movement when, er, moving

// HUD
// ---------------------------------------
set b_drawPromotions		"0"		// Wether to give popup notification when you get a rank promotion
seta cg_drawStatus 		"0"		// Enables/Disables Promotion popups.
seta cg_drawfps 		"0"		// Enables/Disables 
set b_altHud                    "2"       	// chooses an alternate HUD layout (0,1,2)
set b_altHudFlags               "2"       	// bitmask for various HUD settings, 1 = move round timer, 2 = don't display rank in HUD, 4 = RTCW-ish message placement
set b_antilag			"1"		// enable (ETPro) anti-lag
set b_chatAlpha                 "0.0"     	// defines the alpha of the chat text (0=100% transparent,1=Blue Background)
set b_chatFlags                 "1"      	// when set to 1, team flags are drawn by each chat message
set b_drawclock                 "1"       	// when set to 1 a clock with your local time is drawn on the hud
set b_drawranks                 "0"       	// when set to 1, the ranks of other players are drawn on the HUD
Set cg_lagometer 		"1"		// Shows 2 lines on the right of screen to show YOUR/server lag
set b_lagometerAlpha            "0.9"     	// defines the alpha of the lagometer (0 = 100% transparent)
set b_fireteamAlpha             "0.9"     	// defines the alpha of the fireteam overlay (0 = 100% transparent)
seta cg_teamChatHeight    	"7"		// Number of lines of Chat
seta cg_voiceSpriteTime 	"2500"	        // Time icon stays above players head after asked for ammo/Health etc
seta cg_teamChatTime 		"700000"	// Chat dosnt disssapear
set b_numPopups			"6"		// Sets the number of 'popups' on the HUD, (-1 to n, where -1=default, 0=none, n=number of popups).
set b_popupfadetime             "8000"  	// Defines the time in milliseconds that popups take to fade out
set b_popupstaytime             "0000"  	// Defines the time in milliseconds that popups will stay before fading
set b_popupTime                 "0"		// the time in milliseconds between popups
seta cg_complaintPopUp		"0"		// disables complaint pop-up message when TK'ed, only noobs complain.
seta cg_fov 			"90"		// The area of which you can see around you (range= 90-125)
set b_chatsounds 		"1"		// Plays a soundwhen something comes in chat
set cg_drawWeaponIconFlash 	"0"		// Stops the gun flashing in the bottom right corner
set b_locationMaxChars		"0"		// controls max length of location names in fireteam
set b_locationMode 		"0"		// Tells the tream where you are when in fireteam and talking (values0-8,8=unkown)
set b_muzzleflash               "0"     	// when set to 1, first person muzzleflash is drawn
seta r_dynamiclight 		"3"		// Default:1 Glowing circles around shooters / panzers / etc... (OLD WAS SET TO 0)
seta cg_drawsmallpopupicons 	"1"		// Makes the icons (like skulls) smaller in ECHO section




// =======================================
// 		  Scripts
// =======================================

// Volume-Script 
// ---------------------------------------
bind "." "vstr volup"
bind "," "vstr voldown"
set vol00 "set s_volume 0.0;set voldown vstr vol00;set volup vstr vol01;echo Volume ^3O^0=========="
set vol01 "set s_volume 0.1;set voldown vstr vol00;set volup vstr vol02;echo Volume ^0=^3O^0========="
set vol02 "set s_volume 0.2;set voldown vstr vol01;set volup vstr vol03;echo Volume ^0==^3O^0========"
set vol03 "set s_volume 0.3;set voldown vstr vol02;set volup vstr vol04;echo Volume ^0===^3O^0======="
set vol04 "set s_volume 0.4;set voldown vstr vol03;set volup vstr vol05;echo Volume ^0====^3O^0======"
set vol05 "set s_volume 0.5;set voldown vstr vol04;set volup vstr vol06;echo Volume ^0=====^3O^0====="
set vol06 "set s_volume 0.6;set voldown vstr vol05;set volup vstr vol07;echo Volume ^0======^3O^0===="
set vol07 "set s_volume 0.7;set voldown vstr vol06;set volup vstr vol08;echo Volume ^0=======^3O^0==="
set vol08 "set s_volume 0.8;set voldown vstr vol07;set volup vstr vol09;echo Volume ^0========^3O^0=="
set vol09 "set s_volume 0.9;set voldown vstr vol08;set volup vstr vol10;echo Volume ^0=========^3O^0="
set vol10 "set s_volume 1.0;set voldown vstr vol09;set volup vstr vol10;echo Volume ^0==========^3O^0"
set volup vstr vol05
set voldown vstr vol05


// Atmospheric Effects Toggle 
// ---------------------------------------
set atmtog1 "cg_atmosphericeffects 0; set atmtog vstr atmtog2; echo ^7Atmospheric Effects ^3OFF" 
set atmtog2 "cg_atmosphericeffects 1; set atmtog vstr atmtog1; echo ^7Atmospheric Effects ^3ON" 
set atmtog "vstr atmtog2" 
bind "z" "vstr atmtog"


// Hide or Show you Main Weapon Script 
// ---------------------------------------
set script1 "cg_drawgun 0"
set script2 "cg_drawgun 1"
bind "t" "+vstr script1 script2"


// Replay-Script (for easy recording of demos)
// ---------------------------------------
bind "F12" "vstr demotoggle"
set demostart "set demotoggle vstr demostop; autorecord; echo ^7Record ^3Started"
set demostop "set demotoggle vstr demostart; stoprecord; echo ^7Record ^3Stopped"
set demotoggle "vstr demostop"


// Pausing Script
// ---------------------------------------
set pause1 "pause; vsay sorry ^0~~~~^7Match Paused, ^3Sorry, We got a few problems!^0~~~~; set pausetog vstr unpause1" 
set unpause1 "unpause; vsay cheer ^0~~~~^7Match Unpaused^3! ^7Ready to Go^3?^0~~~~; set pausetog vstr pause1" 
set pausetog "vstr pause1" 
bind "pause" "vstr pausetog"


// Name Toggle + Tweaks
// ---------------------------------------
set name-1 "set name-tog vstr name-2; name ^0net^3:^7Wal^7Banger^3!; echo ^5Name: ^0net^3:^7Wal^7Banger^3! ^7Normal Game; exec autoexec_1ChatColors1.cfg; seta cg_autoaction "0"; seta logfile "0"; seta cg_wolfparticles "1""
set name-2 "set name-tog vstr name-3; name ^0net^3:^7Grenade^3-^7GoD^3!; echo ^5Name: ^0net^3:^7Grenade^3-^7GoD^3! ^7Clan Matchies; exec autoexec_1ChatColors2.cfg; seta cg_autoaction "1"; seta logfile "1"; seta cg_wolfparticles	"0""
set name-3 "set name-tog vstr name-1; name ^0net^3:^7Wal^3-^7Banger^3!; echo ^5Name: ^0net^3:^7Wal^3-^7Banger^3! ^7Clan Matchies; exec autoexec_1ChatColors2.cfg; seta cg_autoaction "1"; seta logfile "1"; seta cg_wolfparticles "0""
bind / "vstr name-tog"
vstr name-1


// Zoom mini map
// ---------------------------------------
bind "=" "mapzoomin" //zooms compass map in 
bind "-" "mapzoomout" //zooms compass map out









// =======================================
// 		    CVARS
// =======================================
// Connection
// ---------------------------------------
seta cl_maxpackets		"125"	// set to same as or a divisor of com_maxfps (more packets sent means more accuracy)
seta rate			"25000"	// Max rate set by game engine, some servers may be less
seta cl_allowDownload 		"1"	// Ensures missing files are downloaded, if needed
seta cl_wwwDownload 		"1"	// Allows downloads from Website

// Memory
// ---------------------------------------
seta com_hunkmegs		"512"	// ET won't use more than this so no point setting higher (192)

// Performance
// ---------------------------------------
seta com_maxfps			"125"	// cap frame-rate, improves jumping etc.
seta cg_atmosphericeffects 	"0"	// switch off rain / snow
seta cg_bloodDamageBlend 	"0"	// reduce blood splatter
seta cg_bloodtime		"0"	// amount of time blood stains remain visible, 0 = not visible at all
seta cg_bloodflash		"0"	// Remove red hue (screen flash) when you get hit
seta cg_brasstime		"0"	// no "brass" (empty shells)
seta cg_gibs			"1"	// Enables/Disables Blown body parts to be shown
seta cg_wolfparticles		"1"	// Disable/enable explosions and Damage smoke i.e the tank on goldrush (but not Covert Smoke)
seta r_mode 			"-1"	// Sets screen resolution,4=800x600,6=1024x768,modelist.Set -1 to make use of r_customwidth & r_customheight.
seta r_customwidth		"1024"	// Screen Resolution
seta r_customheight		"768"	// Screen Resolution
seta r_drawfoliage 		"0"	// Takes grass off?

// Sound
// ---------------------------------------
seta s_musicvolume		"0"	// no music
seta s_volume 			"0.6"	// 
seta s_khz 			"44"	// Sound quilty. (22)

// Misc
// ---------------------------------------
seta cl_doubletapDelay		"0"	// make sure double-tapping +forward doesn't make you prone when crouching
seta cl_punkbuster		"1"	// enable punkbuster on the client
seta cg_autoaction		"0"	// "1" Records Demos, "2" Takes Screenshots, "3" Records Demos and takes Screenshots, "4" Saves the Game Stats to a file at the end of each round, "5" Records demos and saves Game Stats, "6" Takes Screenshots and saves Game Stats, "7" Records Demos, takes Screenshots and saves Game Stats, "9" does what 7 does but only in match mode.
seta cg_autoactivate		"1"
seta cg_autoReload		"0"	// makes weapon auto-reload when out of ammo, "pro" gamers don't use, but I'm not pro.
seta cg_noAmmoAutoSwitch	"0"	// disables switching to another weapon when the current one has no ammo
seta cg_popupLimboMenu		"0"	// stops limbo menu appearing when you're gibbed
seta cg_useScreenshotJPEG	"1"	// screenshots taken in JPEG format instead of TGA (to reduce filesize)
seta cg_weaponCycleDelay	"0"	// handy for weapon switching scripts, not that I use any nowadays
seta cl_autoupdate		"1"	// Check to see if there is an Update for ET
seta b_backupcvars 		"0"	// Stops back ups????????








// ETPro Cvars
// =======================================
// General options
// =======================================

set b_goatsound                 "1"     // enables the OSP goat sound on knife kills
set b_hitsounds                 "1"     // enables hitsounds
set b_hudYoffset                "0"    	// Moves the hud up so it is out of the way of the demorecord status line.
set b_mapzoom                   "3.6" // zoom level for the map shown in the compass, valid values: 1.0-7.43 (default 5.159)
set b_panzerhack                "1"     // if 1, moves secondary mp40/thompson to weaponbank 2
set b_shovesounds               "1"     // enables shovesounds
set b_votetextscale             "0.6"   // defines the scaling for the vote text
seta b_fireteamLatchedClass 	"1"  	// show latched playerclass instead of rank
seta b_drawspectatorteamflags 	"1"	// When in Spec mode, it places a flag so you can see which team you are following



exec autoexec_1superselector.cfg
exec admin.cfg			 	// Loads Password to join server and Ref/Rcon passes

(EB) #2

After you type it in NOTEPAD, did you make sure it doesn’t have a .txt extension after the .CFG ?(when saving…make sure it says “save as: ALL FILES”)

autoexec.cfg in ETMAIN

(considering how long you have been a member here, I suppose you already knew ^that stuff, but sometimes it is the easy stuff we overl00k.)


(_NeT_WalBanger) #3

Ya thats fine :(, cut and pasted it for you ------------> autoexec.cfg

Everything works fine when i open console and type /exec autoexec.cfg

But that defetes the whole point of it being “Auto”


(Nail) #4

put autoexec.cfg in all mod folders


(Kendle) #5

IF autoexec.cfg is present in /etmain, IF it’s less than 16Kb in size, and IF it’s correctly named (no hidden .txt extension on the end cos you saved it in notepad as mentioned above), there’s no reason for it not to execute.

However, it’d be a good idea to delete (or move) all copies of etconfig.cfg you can find as well to force ET to rebuild them from your autoexec.


(Killer-Duck) #6

If you’ve made a change/new addition in your autoexec-file you must start the game, bring down the console and write /exec autoexec.cfg you only need to do this once after a change has been made into it and after that the game will always auto-load it…


(eRRoLfLyNN) #7

Hi, I didn’t know the file had to be less than 16kb. Why is that?


(ToeD) #8

the file has to be in the folder of the mod that loads up when you start et, so if you have +set fsgame etpro (or smth like that) in your shortcup, put the autoexec in the etpro folder, and if not put it in the etmain folder


(Kendle) #9

Errol, no idea why it’s limited to 16k, it just is. But that’s a limit per file, you can have an autexec.cfg that executes other files (exec binds.cfg, exec cvars.cfg etc.) and each of those can be 16k, so it’s not a total limit to the code you can use, just a limit per file.

Toed, ETPro will look for autoexec.cfg in /etpro first, but if it doesn’t find it, it’ll use the one in /etmain (I only have one autoexec.cfg, and it’s in /etmain).


(Ragnar_40k) #10

The size limit is hardcoded in the source code. But you can avoid it by splitting up the autoexec into several smaller “sub files” and call these files with the exec command from the autoexec.


(eRRoLfLyNN) #11

Thanks for that info, for ages i’ve been changing cfgs and then copy/pasting into into all folders etc, but hopefully this will save that hassle. Thanks very much! :slight_smile:


(]UBC[ McNite) #12

Why do u use an autoexec anyways? I do all the changes in an etconfig.cfg that I modifyed for that purpose.
Has the disadvantage that you have to put it into all profiles that you play (2 for me: etmain and etpro). But what else are good reasons for using an autoexec?


(Kendle) #13

[quote=]UBC[ McNite]Why do u use an autoexec anyways? I do all the changes in an etconfig.cfg that I modifyed for that purpose.
Has the disadvantage that you have to put it into all profiles that you play (2 for me: etmain and etpro). But what else are good reasons for using an autoexec?[/quote]

etconfig.cfg is created and maintained by ET. You’re not guaranteed that it won’t overwrite stuff you’ve added manually to it. autoexec.cfg ensures your settings are stored outside the game’s control so you can preserve them should the game throw a wobbly (ET will set loads of things back to default values, for example, if it thinks it crashed last time it ran).

Also of course, one autoexec.cfg is good for all mods (ETMain / ETPro / ETPub / Shrub etc.) and all profiles (should you have more than one)


(ToeD) #14

unless you make your etconfig.cfg read only ;O (and you can still use a autoexec then or change a cvar ingame but it wont be saved in the etconfig.cfg)


(_NeT_WalBanger) #15

IF autoexec.cfg is present in /etmain, IF it’s less than 16Kb in size, and IF it’s correctly named (no hidden .txt extension on the end cos you saved it in notepad as mentioned above), there’s no reason for it not to execute.

However, it’d be a good idea to delete (or move) all copies of etconfig.cfg you can find as well to force ET to rebuild them from your autoexec.

is the file size limit DEAD on 16kb as my file is 15.7kb

and do you have to delete etconfig.cfg all the time or just once… and if it is everytime whats the easy way of doing it as i cant be bothered deleting a file everytime i start game up


(Ragnar_40k) #16

Insert something like

echo "autoexec.cfg complete"

as last line in the autoexec.cfg. Then start the cfg manually from console as a test. When you see the text-line the size of the file should be Ok.


(_NeT_WalBanger) #17

Hmm it comes up
echo “autoexec.cfg complete”
When i do it manually (so i guess its ok size wise :/)

But nothing any other time… now i opened console when i 1st join a map and and it loads etconfig.cfg and map.cfg