How do I load autoexec.cfg ??

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

Locked
User avatar
NeoHippo
Posts: 408
Joined: Tue Sep 13, 2005 0:47
Location: British Columbia Canada

How do I load autoexec.cfg ??

Post 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: :?:
TAtL, tU, aE
User avatar
wildweasel
DRD Team Admin (Inactive)
Posts: 2132
Joined: Wed Jun 29, 2005 22:00
Location: the Admincave!
Contact:

Post 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.
User avatar
NeoHippo
Posts: 408
Joined: Tue Sep 13, 2005 0:47
Location: British Columbia Canada

Post 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.
TAtL, tU, aE
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

The path to autoexec.cfg is stored in the config. Maybe you should check yours.
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post 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?
User avatar
NeoHippo
Posts: 408
Joined: Tue Sep 13, 2005 0:47
Location: British Columbia Canada

Post 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.
TAtL, tU, aE
Locked

Return to “GZDoom”