OpenArena / engine

OpenArena modifications to the ioquake3 engine
http://openarena.ws
GNU General Public License v2.0
212 stars 50 forks source link

couldn't exec autoexec.cfg #38

Closed suijingfeng closed 6 years ago

suijingfeng commented 6 years ago

command line show couldn't exec autoexec.cfg

NeonKnightOA commented 6 years ago

Creating a blank file called autoexec.cfg in your homedir/OpenArena/baseoa may work?

suijingfeng commented 6 years ago

Yes, It work. but I don't know what it is and what it is used for. if no use, may I comment the following code? Cbuf_ExecuteText(EXEC_NOW, "exec autoexec.cfg\n"); Cbuf_Execute();

After reading the source code, i think it is use for store the automated executed command for user configuration. as the default.cfg. I close this issue

The-Gig commented 6 years ago

IIRC, default.cfg is a different thing (that contains the default key bindings use at the time of a "clean" install). Autoexec.cfg is indeed an optional user-defined configuration file which can be used to enter commands that will be automatically executed on startup.