Couldn't write config c:\blah\mygame\data/configs/foo.cfg (if disablehomedir is set to 1 in default.fmf manifest file) or Couldn't write config c:\Users\blah\Documents/Mygames/FTE Quake/data/configs/foo.cfg if disablehomedir is set to 0
Instead, if I create by myself the foo.cfg in the configs folder and I read it via
cfg_save_all "If 1, cfg_save ALWAYS saves all cvars. If 0, cfg_save only ever saves archived cvars. If empty, cfg_save saves all cvars only when an explicit filename was given (ie: when not used internally via quit menu options)."
thanks Max_Salivan , but cfg_save_all is set to "", so, technically, it should work. Plus, if I set cfg_save_name to foo for example, and I query cfg_save_name, it says foo, but when I issue cfg_save command, it saves all the cvars to fte.cfg!
Is it also possible to save only specified cvars to a .cfg file?
Meadow Fun!! - my first commercial game, made with FTEQW game engine
Couldn't write config c:\blah\mygame\data/configs/foo.cfg (if disablehomedir is set to 1 in default.fmf manifest file) or Couldn't write config c:\Users\blah\Documents/Mygames/FTE Quake/data/configs/foo.cfg if disablehomedir is set to 0
O_o
Is it supposed to be mixing the back and forward slashes like that in the paths?
FTE internally uses forward slashes everywhere, because they work everywhere (there's a few microsoft-specific exceptions to that, but they don't apply to standard C).
the backslashes can arise from using microsoft functions to query working directories etc. There's also a few mods that explicitly use backslashes, so the engine has to tolerate them regardless.
Spike wrote:make sure the directory it says actually exists.
Thanks Spike, but it totally exists. Infact, if I try to read via localcmd("cfg_load foo\n"); the foo.cfg in configs/ folder is read perfectly. And, even if folder doesn't exist, when command is issued, fte DOES create folder but does not create .cfg file
Meadow Fun!! - my first commercial game, made with FTEQW game engine