[FTE]Saving custom cfg error
Moderator: InsideQC Admins
7 posts
• Page 1 of 1
[FTE]Saving custom cfg error
Hi guys. FTE doesnt' allow to save custom cfg with the command
It says:
Instead, if I create by myself the foo.cfg in the configs folder and I read it via
Is it a bug or did I miss a step?
Any help will be appreciated and thanked as always!
- Code: Select all
cfg_save foo
It says:
- Code: Select all
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
- Code: Select all
localcmd("cfg_load foo\n");
- Code: Select all
float myval= cvar("my_cfg_val");
Any help will be appreciated and thanked as always!
Meadow Fun!! - my first commercial game, made with FTEQW game engine
- toneddu2000
- Posts: 1352
- Joined: Tue Feb 24, 2009 4:39 pm
- Location: Italy
Re: [FTE]Saving custom cfg error
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)."
Sorry for my english 
- Max_Salivan
- Posts: 93
- Joined: Thu Dec 15, 2011 1:00 pm
Re: [FTE]Saving custom cfg error
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?
Is it also possible to save only specified cvars to a .cfg file?
Meadow Fun!! - my first commercial game, made with FTEQW game engine
- toneddu2000
- Posts: 1352
- Joined: Tue Feb 24, 2009 4:39 pm
- Location: Italy
Re: [FTE]Saving custom cfg error
- Code: Select all
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?
-

Dr. Shadowborg - InsideQC Staff
- Posts: 1110
- Joined: Sat Oct 16, 2004 3:34 pm
Re: [FTE]Saving custom cfg error
Dr. Shadowborg wrote:O_o
Is it supposed to be mixing the back and forward slashes like that in the paths?
yeah, FTE does it (at least on Windows)
Meadow Fun!! - my first commercial game, made with FTEQW game engine
- toneddu2000
- Posts: 1352
- Joined: Tue Feb 24, 2009 4:39 pm
- Location: Italy
Re: [FTE]Saving custom cfg error
make sure the directory it says actually exists.
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.
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
- Posts: 2892
- Joined: Fri Nov 05, 2004 3:12 am
- Location: UK
Re: [FTE]Saving custom cfg error
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 fileSpike wrote:make sure the directory it says actually exists.
Meadow Fun!! - my first commercial game, made with FTEQW game engine
- toneddu2000
- Posts: 1352
- Joined: Tue Feb 24, 2009 4:39 pm
- Location: Italy
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest