Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Sky Rogue

A fwooshy, intense, procedurally generated fly-em-up · By Fractal Phase

Please write save data to the user's HOME rather than the game directory

A topic by Chewi created Jun 24, 2020 Views: 568 Replies: 6
Viewing posts 1 to 5
(+3)(-1)

On starting up, the game tries to create the Mod and Save directories inside the game directory and continues to write save data there. If the user lacks permission to do this, the main menu never appears. Why would the user lack permission? Well...

I'm the Gentoo Linux games team lead and I'd like to add this game to our repository. This would give you added exposure. It would be involve users downloading the purchased zip from here, sticking it in a folder, and the package manager would install it system-wide with a menu icon and so on.

That doesn't work when the save data is written to the system-wide location. Where should it go? There are already a couple of files, prefs and Player.log, written to ~/.config/unity3d/Fractal Phase/Sky Rogue, and it should live alongside these. I had the same issue with Assault Android Cactus+, which is also Unity-based, and the developers were kind enough to fix it for me. Please could you do the same? Working around this some other way is so painful that I don't think I'd bother packaging the game at all, which would be a shame.

(1 edit) (+1)

yes, please. follow the XDG Base Directory Specification on Linux
$XDG_CONFIG_HOME/unity3d/DefaultCompany/UnityProject
"~/.config/unity3d/Fractal Phase/Sky Rogue" would be nice

Developer

Thanks for pointing this out and giving a detailed description. I've made a note of changing the save location.

I don't keep my eye on the linux version, so is this something that is reasonable for all modern distributions?

(+2)

Yes, the XDG standards apply to all distributions. This would not negatively impact anyone. The only question is whether you implement it so that it copies from the old location if there is no save in the new location. Personally I don't mind.

Developer(+1)

Hello!

As of version 1.3, the game should be saved to the correct XDG directory.

If that's not actually the case for some reason, please get in touch and I'll make a quick patch.

Fantastic, thanks so much! The 64-bit build is a great addition too. As promised, here is the Gentoo package.

Oops I missed this and just deleted my entire old game folder + all of its data. Blast.

Anyways, I replayed the tutorial (Mission 0), died, respawned for Mission 0, finished it, and then the game put me on Mission 2...