LexGear,
@LexGear@mastodon.gamedev.place avatar

Hey does any #Linux / #Godot expert know where player preferences are saved for each game? I've created a file "save_data.fly" but I can't find where it has been placed and it does not come up in a system-wide search.

tracefree,
@tracefree@mastodon.gamedev.place avatar

@LexGear When you save a file under "user://", it will appear in ~/.local/share/godot/app_userdata/[project_name]/

LexGear,
@LexGear@mastodon.gamedev.place avatar

@tracefree 😭 Then why is my folder empty but the file "exists"?

LexGear,
@LexGear@mastodon.gamedev.place avatar
tracefree,
@tracefree@mastodon.gamedev.place avatar

@LexGear How did you save the file after creating it?

LexGear,
@LexGear@mastodon.gamedev.place avatar

@tracefree Like this / starting from line 20

tracefree,
@tracefree@mastodon.gamedev.place avatar

@LexGear What is the value of SAVE_PATH?

LexGear,
@LexGear@mastodon.gamedev.place avatar
tracefree,
@tracefree@mastodon.gamedev.place avatar

@LexGear Hmm, this all looks correct at first glance. And the console prints "File created successfully." when you run the code?
By any chance, have you installed Godot as a snap or flatpak etc?

LexGear,
@LexGear@mastodon.gamedev.place avatar

@tracefree Yep, and it loads data from the save too.

Gah! It must have something to do with that. I don't understand how "flatpacking" works, I'm very new to linux.

It is indeed from flathub. I also get very confused with the shear amount of "Godot" listings in the software store.

tracefree,
@tracefree@mastodon.gamedev.place avatar

@LexGear Ah yeah, flatpak does some weird stuff sometimes. It keeps apps in a sandbox and can prevent them from creating new files, or redirects where they get created. Best to install Godot directly from your system repository, i.e. not flatpak or snap

LexGear,
@LexGear@mastodon.gamedev.place avatar

@tracefree Doing this now. Thank you.

AngryAnt,
@AngryAnt@mastodon.gamedev.place avatar

@LexGear @tracefree In case you did like the flatpak install aside from this issue, note that you can grant flatpaks access to the real file system (vs. the default sandbox they're restricted to).

Flatseal is a nice GUI app for this task. You can break the sandbox completely or give access to specific parts of your file system for example.

LexGear,
@LexGear@mastodon.gamedev.place avatar

@AngryAnt @tracefree I have so much to learn. No way I'm going back to Windows now.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux
  • DreamBathrooms
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • GTA5RPClips
  • JUstTest
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • megavids
  • lostlight
  • All magazines