• herr@lemmy.world
    link
    fedilink
    arrow-up
    51
    arrow-down
    1
    ·
    1 year ago

    Same shit happens on Windows. Games will just install their shit literally all over OS with no rhyme or reason to it.

    Why can’t the save game and config.ini just be in the main god damn game directory? Nobody knows.

    • AdmiralShat@programming.dev
      link
      fedilink
      English
      arrow-up
      19
      ·
      1 year ago

      Microsoft OWNS not just gaming companies, but one of the largest gaming hardware companies and many of the largest game developers.

      You’d think by now we’d get a dedicated Saves folder to organize this shit after this long.

      • Jakeroxs@sh.itjust.works
        link
        fedilink
        arrow-up
        10
        ·
        1 year ago

        My Documents > My Games is kinda the default, but then you have steam cloud syncing and tons of games that default to various Appdata folder seemingly at random.

      • jayandp@sh.itjust.works
        link
        fedilink
        arrow-up
        6
        ·
        1 year ago

        C:\Users\Username\Saved Games is a thing. Not a lot of games use it though.

        There’s also C:\Users\Username\Documents\My Games which seems more popular with some devs. Though some devs inexplicably use the base Documents folder, which is just obnoxious.

        But yeah, a lot of devs still use AppData. I read a post from a dev once that explained the advantages and disadvantages to each Directory, though I can’t remember the specifics, there is at least logic to why saves get stored in so many odd locations.

    • lloram239@feddit.de
      link
      fedilink
      arrow-up
      20
      arrow-down
      1
      ·
      1 year ago

      Why can’t the save game and config.ini just be in the main god damn game directory?

      You’d lose all save games every time you uninstall the game. We already had that in DOS/Win9x days and I am very happy that we moved away from this. Static program data and generated data should be clearly separated.

      In Linux we have the XDG Base Directory spec for that, that gives you directories for cache, config, state and data, so everything is nicely separated. The only problem is that not every app follows it, bug reports can help.

      I find Android handles this by far the worst. They have the core right idea with permissions that makes it impossible for games to write outside of their assigned directories, but the way they handle it your savegames go into an area that will be deleted when you uninstall the app. So the risk of losing savegames is extremely high. The alternative is that games require SD card permissions and than just write wherever they want. It’s basically all just a dark pattern to force games into using the Google Play service for cloud saves. Games that lose state and restart when you switch apps are also great.

      • Gyoza Power@discuss.tchncs.de
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        I mean, in Windows they literally have a “saved games” folder and almost no games use it. I too hate that most fucking games have to save their shit to the Documents directory. That’s the directory FOR MY FUCKING DOCUMENTS, NOT GAME SAVEDATA

    • jasondj@ttrpg.network
      link
      fedilink
      arrow-up
      19
      ·
      1 year ago

      Actual reason is system permissions.

      Most the default installation path is Program Files. That needs elevation to write to. Fine when you’re installing something, but not something you want to need just to run the game.

      Writing to %APPDATA% or really anywhere in %USERHOME% is guaranteed to have the right permissions for this user.

      Granted, a lot of home PCs and gaming PCs are single-user environments. The “personal” computer. In that case there’s no reason games and applications can’t be installed in %LOCALAPPADATA%, and in fact, I think windows has an environment variable or registry setting for that.

      It’s no different in Linux. You don’t want users writing to /etc. And you may expect multiple users. So all of that stuff goes to dot files in $HOME.

    • nayminlwin@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      They’re probably trying to handle per user config. But nowadays, there’s mostly only one user using a machine.