PDA

View Full Version : console and cfg file information


reyalp
09-15-2007, 05:54 AM
People keep needing to post this information in replies to other problems, so here's a detailed post to link to.
What is the console ?
The console allows you to enter commands which are not available in the menu. Be warned that use of the console is unsupported, and using some commands or settings can cause problems with the game.

How do I access the console ?
Press ctrl+alt+`
Note the last key may have a different character on it depending on your keyboard layout. It will be the same key as other quake3 games.

That's complicated, can I make it easier ?
Yes open the console as described above and type
seta com_allowConsole 1
Now you will be able to open it with just the ~ key.

What are .cfg files ?
.cfg files are collections of console commands. If you create a .cfg file, it should be plain text, with the extension .cfg. An easy way to do this is to copy one of the default .cfg files.

Where do .cfg files belong ?
cfg files are located in two different subdirectories in your et:qw user directory, which on windows XP is named something like this:
C:\Documents and Settings\Your Username\My Documents\id Software\Enemy Territory - QUAKE Wars
Inside this there are subdirectories called base and sdnet
Most .cfg files belong in base, but see below.

note: Vista has a slightly different directory structure, probably starting with c:\Users

What .cfg files does etqw use automatically
on startup, etqw loads:

base\etqwconfig.cfg
base\etqwbinds.cfg
and base\autoexec.cfg if it exists.


When you log in, some more .cfg files are loaded:

sdnet\<your profile name>\base\profile.cfg
sdnet\<your profile name>\base\bindings.cfg
and sdnet\<your profile name>\base\autoexec.cfg if it exists.


The files other than the autoexec.cfg files are maintained by etqw. If you want to be sure etqw won't overwrite your settings, you should make an autoexec.cfg.

Some cvars need to be set in the profile autoexec. In particular those related to context binds (http://community.enemyterritory.com/forums/showthread.php?t=4161).

what about other cfg files ?
You can create your own .cfg files which can then be run using the exec command. These should go in the base directory, NOT the profile directory.

cvars ? commands ? how do I find out more
cvars are console variables. They are settings that affect the game in some way. Set cvars using the set, seta or setp commands.

seta saves the cvar in etqwconfig.cfg
setp saves it in profile.cfg
set doesn't save it, unless it was already a saved cvar.

commands are commands you an type in the console. These take effect right away, and should not be preceded by any of the set commands.

To get a list of cvars, with descriptions, you can use the htmlcvars command. This creates a file called cvars.html (http://4newbies.planetwolfenstein.gamespy.com/ETQW/htmlcvars.php) (click for an online copy) in your base directory, listing most of the game defined cvars. You can also use the listcvars command.

To get a list of console commands, you can type listcmds. This lists the commands in the console. You can use the condump command to save the current contents of console to a file.

More information can be found here:
http://4newbies.planetwolfenstein.gamespy.com/ETQW/scripting.php

tab completion
The ET:QW console has extensive tab completion. If you start typing a cvar or command name, and press tab, it will show you all the cvars and commands that start with that string, and in the case of cvars, their values. If you type a complete command and press tab, it will often give you a list of the options that command accepts.

Help, I've messed my .cfg up completely, how do I start over ?
Delete (or move outside of your etqw directory) the cfg files listed above in What .cfg files does etqw use automatically ?

I have a scripting question
This thread is to tell you about the console, not answer specific scripting questions. If you have a specific scripting problem, please start a new thread.

Lekdevil.NL
09-15-2007, 11:54 AM
Bump-sticky-bump, and here's a dancing banana: :dance:

war59312
09-23-2007, 09:33 AM
Change:

C:\Documents and Settings\Your Username\My Documents\id Software

To:

%userprofile%\My Documents\id Software\Enemy Territory - QUAKE Wars Demo\

So that user can copy and paste. :)

And 1
09-24-2007, 06:10 PM
Ive got the popular movie/replay config on this forum. It binds all kinds of stuff, but after I'm done movie making my etqwbinds.cfg, etqwconfig.cfg, bindings.cfg, profile.cfg are all screwed up. Now I can't play reguarly in-game.

It binds keys already in use in my autoexec. And what about a movie cfg for maxing out the graphics? How can I use that and it revert back to normal when I'm done. Do you use the prefix "set, seta, setp" or neither before the graphic commands?

How can I avoid this?

bgnato
09-28-2007, 08:41 PM
I CANNOT access the console. It simply doesn't open. It is like i dont even have one, becouse my autoexec.cfg doesnt work either. Any ideas how to allow it ?

DreAdeDcoRpSE
10-08-2007, 02:09 AM
Ive got the popular movie/replay config on this forum. It binds all kinds of stuff, but after I'm done movie making my etqwbinds.cfg, etqwconfig.cfg, bindings.cfg, profile.cfg are all screwed up. Now I can't play reguarly in-game.

It binds keys already in use in my autoexec. And what about a movie cfg for maxing out the graphics? How can I use that and it revert back to normal when I'm done. Do you use the prefix "set, seta, setp" or neither before the graphic commands?

How can I avoid this?

What I did was I made a copy of my etqwbinds.cfg and renamed the copy to demoOFF.cfg and named my video play back cfg to demoON.cfg . My demo config that I use only rewrites the binds, nothing visually so when I want to play back a demo and use my demo config, all I do is as soon as I start up game and I am at the main menu, I drop console and type in there exec demoON and that changes all my binds to the demo controls, but once i wasnt to play, I just drop console again and type in the exec demoOFF so I have my game controls back. another thing I seem I have to do everytime I start up my game is type in console exec autoexec cause the game does not seem to want to exec it on its own, so I have to every time I play the game.

reyalp
10-08-2007, 02:13 AM
another thing I seem I have to do everytime I start up my game is type in console exec autoexec cause the game does not seem to want to exec it on its own, so I have to every time I play the game.
You shouldn't have to do this. My autoexecs load correctly.

Some settings need to be set in your profile autoexec to be set correctly. This goes under sdnet\yourprofilename\base as described above.

DreAdeDcoRpSE
10-08-2007, 02:18 AM
I CANNOT access the console. It simply doesn't open. It is like i dont even have one, becouse my autoexec.cfg doesnt work either. Any ideas how to allow it ?

Are you pressing Ctrl Alt ~ at the same time. Try this, Press and hold Ctrl, while holding Ctrl, Press Alt, and while holding bolth press the ~. That should drop it for the first time, Once droped type seta com_allowConsole 1.

If that is not working, there is only 2 things I could think of. 1 could be your keyboard with a broken key, or the other thing would be that the keyboard only allows so many keys to be pressed in a certain area.

If my memory serves me right, keyboards are split up into quadrants and some will only allow so many keys in one single quadrant to be press at the same time. And how to fix that, I have no idea. I would just suggest trying a different keyboard if thats the case. How can you tell, I have no idea. Like I said, this is only if I remember right from my old computer classes like 10 years ago.

reyalp
10-08-2007, 05:10 AM
The other thing to be aware of is that if your language setting or keyboard isn't US/english it may be a different key. It should be the same as the console key in other id games.

pookie
10-09-2007, 05:15 AM
Is there a way to disable the strogg's hit shimmer? It's extremely annoying.

base
10-22-2007, 10:28 PM
I CANNOT access the console. It simply doesn't open. It is like i dont even have one, becouse my autoexec.cfg doesnt work either. Any ideas how to allow it ?

I've got the same problem: Using a germany keyboard but i'm unable to open the console no matter what key i press (com_allowconsole 1 is set).

Is there a way to bind the console to another key?