Skip to content

Opening the map editor sometimes resets/deletes everything in the game folder #1938

@XnKradst

Description

@XnKradst

This is a rather inconsistent but very annoying bug that has happened to me for the third time now.
The first two times it happened it was in an older version (38.0), and I was hoping it no longer happens in newer versions... but no, it has happened again in version 38.5, which is the latest.

So basically, sometimes when opening the map editor, there's a random chance that the game will decide to delete everything in the game folder and start fresh.
This makes it a risk to use the map editor because it wipes out ALL of my data, including mods, maps, screenshots, saves, replays, etc.

This is the state of the folder right after it happens, these are all the files and folders that remain:
Image
(Commander_Wars.ini might not be there and is only there now because I opened the exe for a split second, but not sure)

It seems the game is, for whatever reason, initializing the folders and files as if I just opened it for the first time, which deletes everything that was already there in the process.
Apparently no one else has had it happen to them, so I don't know if you can reproduce it, but maybe check if there's anything in the game's code that could've possibly caused the game to do this.

All 3 times it happened, it happens when I open the map editor. This time however, I noticed a long delay between clicking the button and getting to the map editor screen, so clearly, some code is running in the background that "initialized" the game folders.
Once it happens, the map editor will "work", but if you try to press Ctrl+Z to undo, nothing happens, presumably because whatever file stores the previous map states also got deleted.

I'm using Windows 11.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixed/donebug has been resolved

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions