Problem : ET window resizes after startup


(PuP) #1

I have a problem. After I start ET, and it opens and loads the resolution that I want, it resizes the resolution to 1024x768. My config sets the resolution to 1280x1024, non-fullscreen.

At the ET prompt, I see that everything is loading fine, and then I get a bunch of ‘Unknown command “cpm”’ messages, and then it says ‘execing preset_high.cfg’! I can find no such file on my system.

Does anyone know what I can do to get it working again? I run ET with a script which removes all etconfig.cfg and profile.pid files in all the mod directories before it launches et.exe. Everything was working fine until i mucked with one too many cvar settings. I know that I can step through each cvar (which I’ve tried), but I’m hoping someone in this forum knows how to fix it quick.


(Rippin Kitten) #2

Try setting the resolution via a command line switch when you launch the game.

Assuming you are using Windows and you installed to the default path, you would just change the shortcut from:

“c:\program files\wolfenstien - Enemy Territory\et.exe”

to

“c:\program files\wolfenstien - Enemy Territory\et.exe” +r_mode 8

Note that any switches go outside the quotes. You can also add this command to your batch file when you call et.exe .

I may be wrong with the specific r_mode number. I know that r_mode 4 is 800x600, and r_mode 6 is 1024x768. I’m guessing 7 is the 11somethingx9something, making 8 your desired resolution.

RK


(MuffinMan) #3

i solved the problem by simply creating an autoexec.cfg in main with one entry: seta r_mode “8”


(PuP) #4

neither of those hints solved the problem.


(pgh) #5

Delete the Profiles manually. Move your old custom configs out, restart the game and let it create new ones then replace them… maybe try it without the .bat too? Try running just the et.exe on its own.


(PuP) #6

Thanks Piggy.

I thought I tried that (deleting the .pid and .cfg files manually), but I’ll try again. And yes, you’re right, I’ll try it without the .bat wrapper. Thanks.

What’s weird is that I cleaned everything up, started it fresh, and I still get the preset_high.cfg statement… but it doesn’t resize. I figure everyone gets this, and that I just never noticed it before because everything just worked.

I’m still puzzled about the ‘Unknown command “cpm”’ messages; they appear to be caused by my cfg files (cvar settings and binds). Any insight on what these errors are? Probably spelling mistakes!


(pgh) #7

Only thing I can think of off the top of my head is:

preset_high.cfg is a ‘preset’ config of high quality settings that will probably be in one of the pak files. (pak0.pk3 etc) And somewhere in one of your configs or maybe cos the options (Setup/System) is changed to Highest Quality and thats how the game sets those settings. I have a feeling that for example, if as stated the options is set to highest quality then ET just simply executes a config for that settin upon start up and thats whats happening.

To be perfectly honest, and this is just what I would do… is:

[ul]
[li] Delete the Profiles (.pids)
[/li][li] Delete etconfig.cfg and any other custom configs from ETMain/ETPro etc.
[/li][li] Remove (Not delete obv if you want to keep em) any 3rd party paks (.pk3s) in the same dirs…
[/li][li] Without using the .bat and making sure ET’s cleaned up directory wise, start it up. Go into Setup/System and set the settings you wish then either Apply or vid_restart… make sure that these settings are what you want.
[/li][li] Make the newly created and hopefully working configs Read Only (Right Click the file > Properties > Tick Read Only) [Note: This will STOP ALL writing to these files, eg, if you bind a key in game or change a setting in game it WILL work until you close ET tho it wont save obv.)
[/li][li] If none of the above work? Reinstall ET and start from scratch. Basically this is the above just without actuall reinstalling… :stuck_out_tongue:
[/li][/ul]

Good Luck m8… let us know how you get on…


(SCDS_reyalP) #8

Are you using my config ? If you are, r_mode is set in the reyalp.cfg file, to 1024*768.

I get the cpm thing as well, and haven’t been able to figure out where it comes from. The string ‘cpm’, case insensitive, doesn’t appear in any of the .cfg files :banana:

Mine doesn’t say anything about preset_high. I suspect that might be related having the etconfig.cfg files deleted.


3854 files in pk3 files
execing default.cfg
couldn't exec language.cfg
execing profiles/SCDS_reyalP/etconfig.cfg
execing autoexec.cfg
execing reyalp.cfg
execing mod.cfg
Unknown command "cpm"
Unknown command "cpm"
Hunk_Clear: reset the hunk ok


(PuP) #9

No, not the whole script… I just stole your #1-0 gun backup binds. :wink:

Hmmmm. I think that it may be caused by the .bat file stuff. Perhaps I’ll only delete the .pid and .cfg files in the <mod>/profiles directories and not the etmain/profiles directories. I think the ‘cpm’ thing are syntax errors in the cfg files, but I don’t know. I wonder what the impact is of setting a cvar to an incorrect value. For instance, what if a variable that expects a string gets a number… or expects a decimal value and gets a whole. Hmmmmm.

I have had nothing but trouble with this config thing (being new to this kind of tweaking). ;( I ended up just clearing everything out and adding my own changes back in… as opposed to taking someone else’s config in whole. Everything was working until this little bug.

The next thing I want to do is merge the team/enemy selector for spawntimer and superselector… so you only have to declare this with one toggle. Anyone done this?


(pgh) #10

One button for all? Or a button per thing, eg, a = cycle soldier, b = cycle covert etc…

Ive got a class selection script that replaces meh limbo menu and it runs of the FKeys… never bothered with a spawn selector… I just change from when im dead.


(PuP) #11

I want to merge the team/enemy selector for spawnTIMER (not spawnSELECTOR) and superselector. In both scripts you need to choose your team (thus who the enemy is). For the spawntimer, this is needed so that the correct enemy timecycle can be known… for superselector it’s so that it knows what team to put you in. I got both of these scripts off the web, but they use different keys (and more importantly) different techniques for doing this choosing. I just want one button that toggles the choice… but this gets difficult to work into both scripts. If I’m successful, I’ll post the result.


(SCDS_reyalP) #12

Delete the .pid files from everywhere. They is only used for crash detection, which is useless anyway. (if you change a setting that causes you to crash, just revert to your old config, or in the worst case, delete it)

I don’t delete any of the etconfig.cfg files. It seems if et doesn’t find one, it will try to generate a default one. Deleteing from the mod profiles might be OK.

I think the ‘cpm’ thing are syntax errors in the cfg files, but I don’t know.

I would agree, except that ‘cpm’ doesn’t appear in any of the .cfg files.

I wonder what the impact is of setting a cvar to an incorrect value. For instance, what if a variable that expects a string gets a number… or expects a decimal value and gets a whole. Hmmmmm.

various things. For the most part it gets forced to some sane value.


(Rain) #13

This is the cause of the ‘cpm thing’:

]\echo Hello, world!
Unknown command "cpm"

(PuP) #14

A little brute force debugging last night has revealed two things:

One, that the ‘Invalid commmand “cpm”’ entries are caused by echo statements in .cfg files. I determined this because when I added many more echo statements in an effort to help my debugging, I got an equal number of “cpm” entries. When I removed the echo statements, it removed the “cpm” entries.

Two, that my video resetting problem was caused by having the following entry:

seta com_recommendedSet "0"

So this is what I did. By commenting out certain .cfg execs in my autoexec.cfg, I’ve determined that it’s my cvar.cfg that is causing the problem. I went into that config file and changed all my ‘seta’ statements to ‘set’ so that it wouldn’t write changes to my etconfig.cfg file… so that each time I ran ET it was a new test. I then began commenting out whole sections of that file (e.g. all the cg_ stuff, or all the r_ stuff), restarting ET, and if the problem appeared I’d shut ET and comment a different section. Ultimately I narrowed it down to once section (com_) and one setting (the code above).

Now sure what this setting does or means, (might have something to do with “set” being a special word) but I’ve removed it. It was just one of those settings that I found in someone’s config online and put it in to try it out. I need to be more methodical about changing these files now… lest I get the CVAR VD again!