Page 1 of 1

How do I load autoexec.cfg ??

Posted: Tue Sep 20, 2005 3:06
by NeoHippo
I have autoexec.cfg in the GZDoom directory.
I also specified the path to it in the ini file in this section:
[Doom.AutoExec]
Path=L:/GZDOOM/autoexec.cfg
The contents of the autoexec.cfg file is as follows:
god
give weapons
give ammo
vid_fps 1
sv_cheats 1
I start up GZDoom 2.0.96x (0.9.5) (SEP 11 2005) and nothing from the autoexec.cfg is loaded. :( :evil: :?:

Posted: Tue Sep 20, 2005 3:22
by wildweasel
In a case like yours, I'd rename the autoexec.cfg to something else (like cheat.cfg) and bind it to a key through the console. I'd imagine that these commands don't work unless you're already in the game, by which point autoexec.cfg is worthless.

Posted: Thu Sep 22, 2005 0:13
by NeoHippo
That sounds very well and good, however, my understanding was that autoexec.cfg is loaded automatically when zdoom or in this case, GZDoom, is started up. And it does not load automatically, at least not for me.

Posted: Thu Sep 22, 2005 7:54
by Graf Zahl
The path to autoexec.cfg is stored in the config. Maybe you should check yours.

Posted: Thu Sep 22, 2005 14:23
by Enjay
Certain commands need to be executed from within a game. I'm not surprised the first 3 are not working, the fourth one I would have expected to work and the final one certainly should.

As an aside, I've found it very frustrating that Zdoom stores the full path info for the autoexec in its ini. If you ever move/rename/copy your directory, you have to go in and edit that path entry. It works just as well if the line only reads autoexec.cfg without the path, provided that you have the autoexec file in the directory that you ran Zdoom from. Surely most people will be loading their autoexecs from the current directory, so there is no need for full path information in that case. If someone wants to load an autoexec from somewhere else, they'll have to edit the ini file anyway. IMO, Zdoom should just default to not putting in path information and allow Zdoom to still read/process path info should it be entered by a user. (At present, if you start Zdoom for the first time without an ini, it puts in the full path info for the current directory.) I know, wrong forum. I'll maybe post this as a feature request over at Zdoom.org

Oh, and whilst we're on about ini's, I think I'm right in saying that GZDoom still uses zdoom.ini, and adds OpenGL (etc) settings to it. Any chance it could use its own ini by default?

Posted: Fri Sep 23, 2005 1:42
by NeoHippo
Ach, I cannot believe it. :evil:

Somehow, the contents of my autoexec.cfg got overwritten with the contents of zdoom-name.ini

All is working well again :D

Thank you to all who responded.