Anuken / Mindustry

The automation tower defense RTS
https://mindustrygame.github.io
GNU General Public License v3.0
22.69k stars 2.98k forks source link

Multiple steam accounts overwrite saves and schematics #6786

Closed Jammo2000 closed 2 years ago

Jammo2000 commented 2 years ago

Platform: Windows 11 / Steam

Build: Steam Build 126.3

Issue: If multiple steam accounts have the game on the same computer, their saves and schematics overwrite each other, and the overwritten saves will be synced with steam cloud. This is because saves and schematics are stored next to the executable in C:\Program Files (x86)\Steam\steamapps\common\Mindustry. This directory is shared between user accounts (both steam users and windows users). This gets even more problematic if you have other computers that Steam syncs between. Other games that don't have this issue store saves/data in %AppData%\\<Game name> or \<Steam-folder>\userdata\\<user-id>\\<Numbers that I think are the game ID>

Relevant Steam docs (section heading "save file paths")

Steps to reproduce: How you happened across the issue, and what exactly you did to make the bug happen.

  1. Have 2 Windows user accounts, both of which have Steam set up with different Steam users
  2. Play campaign as one user, than the other. Create a few saves and schematics
  3. Observe that both users will have the same saves and schematics.

Link(s) to mod(s) used: The mod repositories or zip files that are related to the issue, if applicable. I dont have any mods that impact saves, only time control and sandbox unit spawning

Save file: The (zipped) save file you were playing on when the bug happened. THIS IS REQUIRED FOR ANY ISSUE HAPPENING IN-GAME OR IN MULTIPLAYER, REGARDLESS OF WHETHER YOU THINK IT HAPPENS EVERYWHERE. DO NOT DELETE OR OMIT THIS LINE UNLESS YOU ARE SURE THAT THE ISSUE DOES NOT HAPPEN IN-GAME. IF YOU DO NOT HAVE A SAVE, DON'T WASTE TIME OPENING THIS ISSUE.

If you remove the line above without reading it properly and understanding what it means, I will reap your soul. Even if you're playing on someone's server, you can still save the game to a slot. Issue does not happen in game. All the save files are valid, there's no corruption, just overwriting.

(Crash) logs: No crash


Place an X (no spaces) between the brackets to confirm that you have read the line below.

Anuken commented 2 years ago

I will not be changing this behavior.