Guild icon
DDraceNetwork
Development / bugs
Report client & server bugs, especially but not limited to release candidates.
Between 2024-10-24 00:00 and 2024-10-25 00:00
Avatar
OS EREA OFICIAL 2024-10-24 00:22
Unfortunate, I already had files of my data saved, I just turned off the computer with ddnet open outside the server, and when I opened ddnet all my settings were reset (edited)
Avatar
spooky oxyzo 2024-10-24 00:25
pretty sure ddnet saves your settings when you exit the game
Avatar
Avatar
spooky oxyzo
pretty sure ddnet saves your settings when you exit the game
OS EREA OFICIAL 2024-10-24 00:26
but this only happens when I press exit, but I forced the computer to shut down, and when I came back there was nothing saved. I don't know if it was some antivirus, but I don't have one, so there would be no reason to delete them. (edited)
Avatar
thats what he said
06:04
the game saves your settings when you exit it
06:04
not when you immediately make a change
Avatar
OS EREA OFICIAL 2024-10-24 10:21
This only happens when the game has time to save, I shut down the game while holding down the power button, it shut down immediately without the game having time to save these settings, oddly enough it deleted my settings for some reason, I don't know how to explain it, but it is considerably a bug that I reported, you can test if this happens sorry my english is not very good (edited)
Avatar
Yes, that's probably a bug where you shut down too quickly and the save file is corrupted. We should write the save to a new file and atomically move it over the old one to prevent that from ever happening.
👍 2
Avatar
OS EREA OFICIAL 2024-10-24 10:26
I am sad about the loss of my data, as the saved friendship links were all in it, especially the binds, but I will try to recover them, I appreciate your attention and I hope this bug is resolved. (edited)
Avatar
I checked the source code and I think we doing this correctly already: https://github.com/ddnet/ddnet/blob/master/src/engine/shared/config.cpp#L410-L433 Basically: 1. Write to a temporary file 2. Sync the temporary file 3. Rename temporary file to new config file.
Avatar
Avatar
deen
I checked the source code and I think we doing this correctly already: https://github.com/ddnet/ddnet/blob/master/src/engine/shared/config.cpp#L410-L433 Basically: 1. Write to a temporary file 2. Sync the temporary file 3. Rename temporary file to new config file.
What about when you load current map it loads with small letters example easyright_3 not EasyRight_3 ?
Avatar
Avatar
OS EREA OFICIAL
This only happens when the game has time to save, I shut down the game while holding down the power button, it shut down immediately without the game having time to save these settings, oddly enough it deleted my settings for some reason, I don't know how to explain it, but it is considerably a bug that I reported, you can test if this happens sorry my english is not very good (edited)
What do you mean with "holding down the power button"? That's going to forcefully shut down your PC so data loss would be expected if it happens during the renaming of the temporary file. I don't know if Windows even makes any guarantee that programs are closed cleanly even if you use the normal shutdown.
Avatar
Avatar
texnonik
What about when you load current map it loads with small letters example easyright_3 not EasyRight_3 ?
Jupstar ✪ 2024-10-24 13:13
Why should that corrupt the config file?
Avatar
how to fix this
Avatar
Avatar
rrrost
how to fix this
Does it happen on every server? Also for other maps? Try restarting the client
Avatar
Avatar
Robyt3
Does it happen on every server? Also for other maps? Try restarting the client
This happens on absolutely all servers and maps.
Avatar
Avatar
rrrost
This happens on absolutely all servers and maps.
Which client version?
16:43
Does restarting the client fix it? Otherwise it seems like a problem with your internet
Avatar
Restarting the client did not help
16:44
I'm sure the internet is good, other games are running well
Avatar
Are you on the latest client version?
Avatar
Avatar
Robyt3
Are you on the latest client version?
one second
16:47
18.6
Avatar
Avatar
Robyt3
Are you on the latest client version?
.
Avatar
Try reset cl_map_download_url in the console (F1)
16:51
Or try with the default settings by renaming your config folder
16:51
$configdir
Avatar
Avatar
Robyt3
$configdir

DDNet config directory:

On Windows: Old: %appdata%\Teeworlds New: %appdata%\DDNet On Linux: Old: ~/.teeworlds New: ~/.local/share/ddnet On macOS: Old: ~/Library/Application Support/Teeworlds New: ~/Library/Application Support/DDNet
Avatar
You could also try restarting your PC and router
Avatar
Avatar
Robyt3
Try reset cl_map_download_url in the console (F1)
It didn't help
Avatar
Avatar
Robyt3
Or try with the default settings by renaming your config folder
How to do this?
Avatar
Avatar
Robyt3
You could also try restarting your PC and router
I did this first
Avatar
Avatar
rrrost
How to do this?
Find the config folder (either Teeworlds or DDNet, see bot post above), rename it for example to DDNet-old
16:56
Please stop spamming unrelated to this discussion and channel
Avatar
AppData>Roaming>DDnet?
16:59
and rename it to ddnet old?
Avatar
yeah
17:00
Then try again if the map download works
Avatar
It doesn't work
17:02
😦
Avatar
If it doesn't work with the latest client and default settings then it seems like a problem with your PC or internet, even if other programs work
17:03
You can remove the DDNet folder and rename the DDNet-old back to DDNet to get back your original settings
Avatar
Jupstar ✪ 2024-10-24 17:03
What does f1 console show during the download?
Avatar
Jupstar ✪ 2024-10-24 17:05
Anti virus running?
Avatar
hmm, do you not have a downloadedmaps folder in your config directory?
Avatar
Jupstar ✪ 2024-10-24 17:06
i have the feeling you either started ddnet with admin, or your anti virus is blocking ddnet
17:07
best is you uninstall anti virus and only use windows defender
Avatar
Avatar
Robyt3
hmm, do you not have a downloadedmaps folder in your config directory?
She's not here
Avatar
Avatar
Jupstar ✪
best is you uninstall anti virus and only use windows defender
I only have windows defender
Avatar
Jupstar ✪ 2024-10-24 17:08
Do you use steam?
17:08
steam version
Avatar
I tried from Steam and other clients, it didn't help
Avatar
Avatar
rrrost
I tried from Steam and other clients, it didn't help
Jupstar ✪ 2024-10-24 17:09
try website build and replace storage.cfg with this
987 bytes
17:09
But anyway, robyte is right. this is 100% a problem with your pc
17:10
dunno how you fucked it up, but you did somehow
Avatar
I have now downloaded the version from the official website
Avatar
Jupstar ✪ 2024-10-24 17:10
nice
17:10
unpack it
17:11
replace storage cfg with the above
17:11
and see if that works better
Avatar
Also, when I exit ddnet, the settings are not saved.
Avatar
Jupstar ✪ 2024-10-24 17:11
yeah obviously xd
17:11
you somehow disallowed ddnet to write any files in appdata
Avatar
yeah, maybe you launched the game as admin when it created the folder and now you don't have access anymore, or you somehow messed with permissions
Avatar
Avatar
Jupstar ✪
try website build and replace storage.cfg with this
where should I throw this?
Avatar
You should do general Windows fixes first:
  • Install all Windows updates.
  • Open cmd as admin:
    • DISM.exe /Online /Cleanup-image /Restorehealth, press enter, wait until it's done
    • sfc /scannow, press enter, wait until it's done
    • Repeat until both commands say that no errors were found.
  • Reboot.
Avatar
Avatar
rrrost
where should I throw this?
Jupstar ✪ 2024-10-24 17:14
next to ddnet.exe there is already storage.cfg, replace that
Avatar
Avatar
rrrost
where should I throw this?
(try to replace the storage.cfg before those)
Avatar
yeah, put the storage.cfg in that folder
Avatar
And try to launch the map?
Avatar
yeah
17:19
(of course restart the client)
17:19
it's working
17:20
I am very grateful to you
17:20
❤️
Avatar
ok, now I wish we knew what you previous had in your storage.cfg
17:20
do you know if you changed it somehow?
17:21
or did you maybe move your files to another PC with different drive letters?
Avatar
Actually, this error didn't happen to me but to a friend, I don't know how he launched ddnet, but when he threw storage.cfg then this started working (edited)
17:23
P.s I am writing through a translator, so some messages may contain errors
Exported 84 message(s)
Timezone: UTC+0