How to Make A Config
2 posters
Page 1 of 1
How to Make A Config
A lot of players make their own autoexec.cfg "config" file. It saves lots of settings and lets you automate certain tasks. Lots of players copy someone else's config without reading it and understanding it and this can cause lots of problems. Some configs can have illegal cvars in them, and a player can get a permanent ban for using a bad config. I will show you a clean config with notes so you can understand what most of the variables do. The // symbols means whatever follows is a comment and not part of the actual computer code.
Open an empty text file in Notepad, add whatever code you want from my config below, modify it how you like, and save it in the Wolfenstein - Enemy Territory/etmain folder as "autoexec.cfg". Usually it will then be automatically run when you start the game. If it does not run automatically, type /exec autoexec.cfg in your console. After it has been run, using the Insert button will run it again if you insert the proper code below.
I recommend you read each little bit of the code to understand it before you use it. Use google too. Set and seta are different too, set is for temporary variables and seta writes it to your etconfig file. Only the RAM settings and a few of the graphics settings should be put in with seta. They need to be run once then they are saved in the etconfig.cfg file, so when you restart the game then they will then take effect. The other stuff does not require a restart so you don't need seta.
//cg_network
set cg_autorate 1
set cg_optimizeprediction 0
set cg_smoothclients 0
//cl_network
set cl_maxpackets 100 //Lets you send more information, set this value lower if you have older computer or it will actually make you lag worse. Default value is 30. Some people swear that 15 is best setting. See what works for you.
set cl_packetdup 0 //Prevents lag caused by sending duplicate packets
//com_network
seta com_hunkmegs 256 //Lets you use more RAM
seta com_zonemegs 64 //More RAM for maps
set com_maxfps 45 //Set to 45, 76, or 125 whichever is stable
//cg_graphics
set cg_drawfps 1
set cg_lagometer 1
set cg_drawclock 1
set cg_drawtimer 1
//r_graphics
seta r_lodbias 0 //Range is 0-2. Some people set this to 1 or 2 for less lag but it makes the game look like crap
seta r_picmip 0 //Range is 0-3. Some people set this to 1, 2, or 3 for less lag but it makes the game look like crap
seta r_mode "-1" //Disables the default ET screen size selections so you can enter your exact dimensions for better accuracy
seta r_customwidth "1280" //Put your monitor width here
seta r_customheight "1024" //Put your monitor height here
seta r_roundImagesDown 0 //Default is 1, 0 is much sharper and more accurate
seta r_fullscreen "1" //Default is 1
//cg_crosshair
set cg_crosshairColorAlt "cyan" //Use whatever color you like
set cg_crosshaircolor "mdcyan" //Use whatever color you like
set cg_drawCrosshair 6 //Use whatever size you like
set cg_crosshairpulse 0
//bob and run
set cg_bobup 0
set cg_bobpitch 0
set cg_bobroll 0
set cg_bobyaw 0
set cg_runpitch 0
set cg_runroll 0
//sounds
set cg_killspreesounds 1 //Set to 0 to turn off killing sprees
set cg_novoicechats 0 // Set to 1 to disable voice chats
//mouse
set cl_mouseaccel 0.05 //Some people like different values here. Keep Windows enhanced mouse precision off.
set m_pitch 0.016 //Reduces the speed at which your mouse moves up and down. Good for aim.
set cg_autoReload "1" //Many players turn this off with 0 instead
set fov 105 //Most servers force you to use between 90 to 120
set sensitivity 10.0 //Whatever you want
//bindz
bind DEL "quit" //Hit DEL to exit the game without going through a lot of menus
bind INS "exec autoexec.cfg; echo autoexec ran" //For rerunning your autoexec.cfg
bind p messagemode4 //For sending private messages quickly and safely
bind k "kill" //For slashkill suicides
//demo toggle for making video
bind F12 "vstr demotoggle"
set demotoggle "vstr demostart"
set demostart "autorecord; set demotoggle vstr demostop"
set demostop "stoprecord; set demotoggle vstr demostart"
//crouch toggle
bind c "vstr crotch"
set crotch "vstr crouchon"
set crouchon "+movedown; set crotch vstr crouchoff"
set crouchoff "-movedown; set crotch vstr crouchon"
//map toggle (good for playing mortar)
bind g "vstr map"
set map "vstr mapon"
set mapon "+mapexpand; set map vstr mapoff"
set mapoff "-mapexpand; set map vstr mapon"
Open an empty text file in Notepad, add whatever code you want from my config below, modify it how you like, and save it in the Wolfenstein - Enemy Territory/etmain folder as "autoexec.cfg". Usually it will then be automatically run when you start the game. If it does not run automatically, type /exec autoexec.cfg in your console. After it has been run, using the Insert button will run it again if you insert the proper code below.
I recommend you read each little bit of the code to understand it before you use it. Use google too. Set and seta are different too, set is for temporary variables and seta writes it to your etconfig file. Only the RAM settings and a few of the graphics settings should be put in with seta. They need to be run once then they are saved in the etconfig.cfg file, so when you restart the game then they will then take effect. The other stuff does not require a restart so you don't need seta.
//cg_network
set cg_autorate 1
set cg_optimizeprediction 0
set cg_smoothclients 0
//cl_network
set cl_maxpackets 100 //Lets you send more information, set this value lower if you have older computer or it will actually make you lag worse. Default value is 30. Some people swear that 15 is best setting. See what works for you.
set cl_packetdup 0 //Prevents lag caused by sending duplicate packets
//com_network
seta com_hunkmegs 256 //Lets you use more RAM
seta com_zonemegs 64 //More RAM for maps
set com_maxfps 45 //Set to 45, 76, or 125 whichever is stable
//cg_graphics
set cg_drawfps 1
set cg_lagometer 1
set cg_drawclock 1
set cg_drawtimer 1
//r_graphics
seta r_lodbias 0 //Range is 0-2. Some people set this to 1 or 2 for less lag but it makes the game look like crap
seta r_picmip 0 //Range is 0-3. Some people set this to 1, 2, or 3 for less lag but it makes the game look like crap
seta r_mode "-1" //Disables the default ET screen size selections so you can enter your exact dimensions for better accuracy
seta r_customwidth "1280" //Put your monitor width here
seta r_customheight "1024" //Put your monitor height here
seta r_roundImagesDown 0 //Default is 1, 0 is much sharper and more accurate
seta r_fullscreen "1" //Default is 1
//cg_crosshair
set cg_crosshairColorAlt "cyan" //Use whatever color you like
set cg_crosshaircolor "mdcyan" //Use whatever color you like
set cg_drawCrosshair 6 //Use whatever size you like
set cg_crosshairpulse 0
//bob and run
set cg_bobup 0
set cg_bobpitch 0
set cg_bobroll 0
set cg_bobyaw 0
set cg_runpitch 0
set cg_runroll 0
//sounds
set cg_killspreesounds 1 //Set to 0 to turn off killing sprees
set cg_novoicechats 0 // Set to 1 to disable voice chats
//mouse
set cl_mouseaccel 0.05 //Some people like different values here. Keep Windows enhanced mouse precision off.
set m_pitch 0.016 //Reduces the speed at which your mouse moves up and down. Good for aim.
set cg_autoReload "1" //Many players turn this off with 0 instead
set fov 105 //Most servers force you to use between 90 to 120
set sensitivity 10.0 //Whatever you want
//bindz
bind DEL "quit" //Hit DEL to exit the game without going through a lot of menus
bind INS "exec autoexec.cfg; echo autoexec ran" //For rerunning your autoexec.cfg
bind p messagemode4 //For sending private messages quickly and safely
bind k "kill" //For slashkill suicides
//demo toggle for making video
bind F12 "vstr demotoggle"
set demotoggle "vstr demostart"
set demostart "autorecord; set demotoggle vstr demostop"
set demostop "stoprecord; set demotoggle vstr demostart"
//crouch toggle
bind c "vstr crotch"
set crotch "vstr crouchon"
set crouchon "+movedown; set crotch vstr crouchoff"
set crouchoff "-movedown; set crotch vstr crouchon"
//map toggle (good for playing mortar)
bind g "vstr map"
set map "vstr mapon"
set mapon "+mapexpand; set map vstr mapoff"
set mapoff "-mapexpand; set map vstr mapon"
obituary- Posts : 3495
Points : 4817
Join date : 2011-05-15
autoexec.cfg won't run automatically
My autoexec.cfg file works when connecting to etmain servers but not when connecting to jaymod servers. I have the same file saved in /etmain and /jaymod and /jaymod/profiles/cupcake. It works when I type "exec autoexec.cfg" in the console, but I'd like for the game to automatically run it. I'm running ubuntu linux if that's pertinent.
Any help would be greatly appreciated! Thanks.
Any help would be greatly appreciated! Thanks.
Cupcake- Posts : 25
Points : 31
Join date : 2011-07-05
Location : No longer visiting this forum. kkthxbai
Re: How to Make A Config
Yeah, the autoexec.cfg doesn't work consistently. It's nothing you are doing wrong. I think it is a jaymod thing.
You can use seta instead of set and the settings will be written into your jaymod/yourprofile/etconfig.cfg file.
Or you can use a bind:
bind INS "exec autoexec.cfg; echo autoexec ran"
You can use seta instead of set and the settings will be written into your jaymod/yourprofile/etconfig.cfg file.
Or you can use a bind:
bind INS "exec autoexec.cfg; echo autoexec ran"
obituary- Posts : 3495
Points : 4817
Join date : 2011-05-15
/facepalm
Today it works fine... Thanks anyhow!
Cupcake- Posts : 25
Points : 31
Join date : 2011-07-05
Location : No longer visiting this forum. kkthxbai
Re: How to Make A Config
K, I've run into another problem. I am trying to use text shortcuts in the autoexec.cfg file. I've read that shortcuts are only available on shrubbot servers (Shrub, ETpub and Jaymod), but I have had no success with them on this server.
Like I might try: bind F5 "vsay needbackup [d] is going to pay for that!"
[d] being the name of the last person I was killed by.
It's no big deal if it can't be done. Was just curious. Maybe I'm doing something wrong.
Like I might try: bind F5 "vsay needbackup [d] is going to pay for that!"
[d] being the name of the last person I was killed by.
It's no big deal if it can't be done. Was just curious. Maybe I'm doing something wrong.
Cupcake- Posts : 25
Points : 31
Join date : 2011-07-05
Location : No longer visiting this forum. kkthxbai
Re: How to Make A Config
*PROD!*
Cupcake- Posts : 25
Points : 31
Join date : 2011-07-05
Location : No longer visiting this forum. kkthxbai
Re: How to Make A Config
[A] - Past person who gave you ammo.
[D] - Last person who killed you.
[H] - Last person who gave you health.
[K] - Last person you killed.
[L] - Your current location. (Coordenates in where u are)
[N] - Your nickname.
[R] - Last person who revived you.
[P] - Teammate you are pointing at.
[S] - Your health (HP).
[W] - Weapon you are currently holding.
[T] - Ammo u have in current weapon.
Examples:
bind X vsay_team Medic I only have [S] HP!
bind X vsay_team NeedAmmo I need ammo for my [W], I only have [T]!
(where X is the key you want to bind the command to)
These should work, I don't use them myself but this is pretty ordinary stuff.
Edit: I just tested them and you're right, they don't work. They just show the [S] instead of the actual value that is supposed to be displayed. I don't know why they do not work on the server. Hmm...
[D] - Last person who killed you.
[H] - Last person who gave you health.
[K] - Last person you killed.
[L] - Your current location. (Coordenates in where u are)
[N] - Your nickname.
[R] - Last person who revived you.
[P] - Teammate you are pointing at.
[S] - Your health (HP).
[W] - Weapon you are currently holding.
[T] - Ammo u have in current weapon.
Examples:
bind X vsay_team Medic I only have [S] HP!
bind X vsay_team NeedAmmo I need ammo for my [W], I only have [T]!
(where X is the key you want to bind the command to)
These should work, I don't use them myself but this is pretty ordinary stuff.
Edit: I just tested them and you're right, they don't work. They just show the [S] instead of the actual value that is supposed to be displayed. I don't know why they do not work on the server. Hmm...
obituary- Posts : 3495
Points : 4817
Join date : 2011-05-15
Re: How to Make A Config
I know you have higher priorities, but I found a pdf on google for jaymod 2.2.0 that listed the modifier's commands and how to use them. It listed g_shortcuts as a CVAR reference (?) used for enabling or disabling text shortcuts (ie 0 is disabled and 1 is enabled). Possibly text shortcuts are disabled? >.>
Cupcake- Posts : 25
Points : 31
Join date : 2011-07-05
Location : No longer visiting this forum. kkthxbai
Re: How to Make A Config
Cupcake wrote:I know you have higher priorities, but I found a pdf on google for jaymod 2.2.0 that listed the modifier's commands and how to use them. It listed g_shortcuts as a CVAR reference (?) used for enabling or disabling text shortcuts (ie 0 is disabled and 1 is enabled). Possibly text shortcuts are disabled? >.>
I think you are right. I will turn this on tonight for your binds to work.
Thanks.
obituary- Posts : 3495
Points : 4817
Join date : 2011-05-15
Re: How to Make A Config
Much appreciated, sir!
Cupcake- Posts : 25
Points : 31
Join date : 2011-07-05
Location : No longer visiting this forum. kkthxbai
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum