1 (edited by don't good 2015-12-10 16:24:58)

Topic: [SOLVED] Failed to open "settings.cfg" & "autoexec.cfg"

Mistake is that one day when I ran Teeworlds, I had such a mistake as in the screenshot, there was no two files: autoexec.cfg & settings.cfg .I do not know how they were gone, maybe they do not even disappeared, but after then I erased everything related files Teeworlds, even folders \Roaming. I was playing through Steam, but first run Teeworlds was from the official site, even before this game appeared on Steam, so these files have been created already, perhaps. My friend gave me the folder that was before I had the path C:\Users\??????\AppData\Roaming\Teeworlds (that is, he gave me a folder Teeworlds, which are files (see the screenshot, the red frame), but it did not help. I tried to play through Steam, and version from the official site, but it did not help too.
PunBB bbcode test
PunBB bbcode test
Besides, you can specify the path to the folder itself, I tried to do it, but it did not work or I did it wrong
PunBB bbcode test
It's been translated using Google translator, I'm Russian, but you must help me :D

2

Re: [SOLVED] Failed to open "settings.cfg" & "autoexec.cfg"

in storage.cfg is defined where to look for those files.
autoexec and settings are probably in the directory where the client binary is

Having troubles finding servers in the serverlist? Go to Pastebin (its a referer cause there is daily a new pastebin) and add the lines to your settings.cfg (in %APPDATA%\teeworlds). Then open teeworlds and go to the favorites tab. (Note however, standard teeworlds client can only show 256 favorites, use ddnet instead)

3 (edited by [pieLover] 2015-12-02 22:51:20)

Re: [SOLVED] Failed to open "settings.cfg" & "autoexec.cfg"

Notice in first screenshot, Steam and teeworlds is operating on drive D but the settings.cfg and autoexec.cfg you expected it to open are on drive C? this is the problem!

Edit: it appears that $USERDIR is set properly but contains "?" instead of the proper Cryllic text due to Windows being stupid, that could be the problem, because it cannot read from the folder properly.
try putting the configs on drive D where you are launching teeworlds from:

D:\Games\Steam\steamapps\common\Teeworlds\
Clan: Riot (I'm one of three leaders: Mile, Deku, pie)
Host teeworlds maps on a fng/ctf/dm/ddrace server for testing:http://riotproductions.tk/teewo/ broken-need reinstall nginx http://riotproductions.tk/bounce?whatEven, Teeworlds NA Discord chat

4

Re: [SOLVED] Failed to open "settings.cfg" & "autoexec.cfg"

So, I followed the advice pielover88888, and put the files with a red frame in the folder (screenshot). And yes, the game began to work for this configuration (settings changed, etc.), but these settings can not be changed in the game, after leaving, they are not saved, as before (you can change the settings, but only when editing of the "settings.cfg" (but I'm not going to edit a file, I just want to set up everything in the game)). After I moved to the commentary SchwertSpize: I decided to change "$ USERDIR", but then I stopped, what should I write in "$ USERDIR"?
This?
D:\Games\Steam\SteamApps\common\Teeworlds
Or this?
PunBB bbcode test
And what about the name of the system: there are question marks because the name has been entered in Russian, the name of the folder can not be changed, but you can create a new one - "bla", and specify the path to it?  You can do so, or not? (I doubt that the whole thing in question marks, because it was before, and everything was fine, before missing .cfg)
PunBB bbcode test

5 (edited by [pieLover] 2015-12-03 03:27:02)

Re: [SOLVED] Failed to open "settings.cfg" & "autoexec.cfg"

I meant, put the configuration files on D:\Games\Steam\steamapps\common\Teeworlds\
Since you put it where it tries to read from, it can read, but since it's being run from a different drive (Teeworlds is on D:, files are on C:), it doesn't have write permissions so it can't save the settings. Changing the file permissions )right click->properties(, should work, but if it doesn't you might need to resort to running Teeworlds as administrator sad.

edit (much later in the day): "first path is where it looks for configs"
that means save and load. so put $CURRENTPATH as the first path, then user path, and make sure the configs are also in $CURRENTPATH. that should be the fix

Clan: Riot (I'm one of three leaders: Mile, Deku, pie)
Host teeworlds maps on a fng/ctf/dm/ddrace server for testing:http://riotproductions.tk/teewo/ broken-need reinstall nginx http://riotproductions.tk/bounce?whatEven, Teeworlds NA Discord chat

6

Re: [SOLVED] Failed to open "settings.cfg" & "autoexec.cfg"

How to add the path correct? I do not get it
example (that's right?) :
PunBB bbcode test

7 (edited by [pieLover] 2015-12-04 07:32:09)

Re: [SOLVED] Failed to open "settings.cfg" & "autoexec.cfg"

Not sure how to add a path but the fix is to reorder them, set currentpath to be the first in the list instead of userdir

Clan: Riot (I'm one of three leaders: Mile, Deku, pie)
Host teeworlds maps on a fng/ctf/dm/ddrace server for testing:http://riotproductions.tk/teewo/ broken-need reinstall nginx http://riotproductions.tk/bounce?whatEven, Teeworlds NA Discord chat

8 (edited by don't good 2015-12-12 12:52:54)

Re: [SOLVED] Failed to open "settings.cfg" & "autoexec.cfg"

pielover88888 wrote:

Edit: it appears that $USERDIR is set properly but contains "?" instead of the proper Cryllic text due to Windows being stupid, that could be the problem, because it cannot read from the folder properly.

it was true, the whole thing in Russian letters, which does not recognize the system, so I created a new profile in English and simply reinstall the game. Everything worked. Thanks for your help <3
PunBB bbcode test