Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/home/<username>/.local/share/ruffle is not generated using nightly desktop #19271

Open
idealemu opened this issue Jan 18, 2025 · 5 comments
Open
Labels
flatpak question Further information is requested

Comments

@idealemu
Copy link

Describe the bug

I just tried nightly desktop running a file for CannyonDefense2.swf and while looking for saves, which I found should be in /home/<username>/.local/share/ruffle I found that the nightly desktop version, installed with flatpack, does not create this folder ? I assume this is a bug since, this issue says that it is where the saves should be made.
I know that the browser version of this game, when flash was still a thing, had saving functionality.
Ruffle preferences are set to save to disk.

Expected behavior

Folder path /home/<username>/.local/share/ruffle should be generated and contain saves ?

Content Location

SWF can be downloaded from https://www.play-games.com/game/37945/canyon-defense-2.html, the file can be seen on the network tab and is called 2v4.swf.

Affected platform

Desktop app

Operating system

Linux, PopOs 22.04

Browser

No response

Additional information

Ruffle Version:

Image

@idealemu idealemu added the bug Something isn't working label Jan 18, 2025
@Croworbit
Copy link

if you don't see any save data (assuming this is a completely fresh install of ruffle), most likely no save data has been created yet.
the game may not save at all, or you may not have reached a point in the game where it does save

and then there is the matter of when. some games save only after the game is closed, some save at points you can interact while the game runs, some auto save and some do not save at all, even on original flash

since you say this game does have saving, try seeing at what point the game saves
if that doesn't work, it might indeed be a bug

@kjarosh
Copy link
Member

kjarosh commented Jan 18, 2025

Hi @idealemu!

Flatpak doesn't store local data inside ~/.local/share/ruffle, check instead ~/.var/app/rs.ruffle.Ruffle/. We should probably update information about save files location.

Please let me know if the path works for you

@kjarosh kjarosh added question Further information is requested flatpak and removed bug Something isn't working labels Jan 18, 2025
@idealemu
Copy link
Author

Hi @idealemu!

Flatpak doesn't store local data inside ~/.local/share/ruffle, check instead ~/.var/app/rs.ruffle.Ruffle/. We should probably update information about save files location.

Please let me know if the path works for you

This path does indeed exist ! I'm not sure what form, or where inside, save data should go, but the folder does indeed exist 👍

@idealemu
Copy link
Author

if you don't see any save data (assuming this is a completely fresh install of ruffle), most likely no save data has been created yet. the game may not save at all, or you may not have reached a point in the game where it does save

and then there is the matter of when. some games save only after the game is closed, some save at points you can interact while the game runs, some auto save and some do not save at all, even on original flash

since you say this game does have saving, try seeing at what point the game saves if that doesn't work, it might indeed be a bug

I can confirm that using ruffle on web, through this website produces saves. In the sense that I can reload the page, and/or refresh Ruffle, and progress remains.
From what I have seen of local desktop nightly behaviour this does not seem to be the case.

But I am also facing some unrelated graphical issues which makes further testing difficult, where using Ruffle makes me graphics card glitch out and my screen go white, but I do not think this is specific to Ruffle itself, or at least not entirely.

@kjarosh
Copy link
Member

kjarosh commented Jan 19, 2025

This path does indeed exist ! I'm not sure what form, or where inside, save data should go, but the folder does indeed exist 👍

I'm sorry, I should have been more clear. The directory is specifically ~/.var/app/rs.ruffle.Ruffle/data/ruffle/, it's the equivalent of ~/.local/share/ruffle for Flatpak. Inside of it, the directory SharedObjects contains save data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flatpak question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants