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

Where exactly .dat files should go on Linux? #197

Open
pawzoflion opened this issue Nov 17, 2023 · 9 comments
Open

Where exactly .dat files should go on Linux? #197

pawzoflion opened this issue Nov 17, 2023 · 9 comments
Labels
question Further information is requested

Comments

@pawzoflion
Copy link

I've installed it from flathub, and now I want to enable fulltilt data with CADET.DAT but I just don't have a clue where should it go.

@k4zmu2a k4zmu2a added the question Further information is requested label Nov 20, 2023
@k4zmu2a
Copy link
Owner

k4zmu2a commented Nov 20, 2023

I don’t know how to pass files into Flathub packages, since it is isolated from the host.
@kowalski7cc might know more about Flathub package.
In my opinion, Flathub package should just include FT CADET game data out of the box.

One way to bypass Flathub limitations is to build the game from source.
To get all valid data locations run the game without game data.

@kowalski7cc
Copy link
Contributor

I'll look into it

@kowalski7cc
Copy link
Contributor

I tested that files in /home/$USER/.var/app/com.github.k4zmu2a.spacecadetpinball/data/SpaceCadetPinball are correctly found, but you cannot switch between FT PB and 3D PB data.

@k4zmu2a
Copy link
Owner

k4zmu2a commented Dec 28, 2023

3DBP/FT switch works only when both game data sets are in the same folder.
Otherwise, the game loads the first data set found regardless of the option.
I made it this way to avoid potential confusion with mixed data directories.

An alternative approach would be to search all data locations for one particular data type at a time.
This way 3DBP and Cadet data could be stored in different locations and still be both accessible in game.

@p0kR
Copy link

p0kR commented Feb 28, 2024

@kowalski7cc Could you share a screenshot of how the file structure in that directory should look?

I could not get it to load the full tilt space cadet version :/

@Con-Rez
Copy link

Con-Rez commented Sep 14, 2024

I thought i'd pitch in on this for anyone else that finds it. Placing the DAT and SOUND folder here resolved the issue for me, as the directory kowalski7cc mentioned didn't work for me.
/home/$USER/.local/share/flatpak/app/com.github.k4zmu2a.spacecadetpinball/x86_64/stable/5c017de987535d62ad01a836e3d1ca47f8a768a2c468249840fb3b43b670dd3b/files/bin/

@kowalski7cc
Copy link
Contributor

@Con-Rez that path only works if you have installed in user mode and not system mode, also the hash is subject to change between updates and will not carry game files.

@Con-Rez
Copy link

Con-Rez commented Sep 15, 2024

@kowalski7cc Unfortunately, that also didn't work for me. Tested in both System and User mode and had the same behavior (except that system mode doesn't have the I directory previously refered). I confirmed using the flatpak list --system command. I don't recall encountering this issue on Manjaro before switching to Bazzite, but i'm not sure if it's related. Is it expecting a specific directory in the SpaceCadetPinball directory?

@Con-Rez
Copy link

Con-Rez commented Dec 8, 2024

I did some further testing on this and have a temp solution for now.

It does load from /home/$USER/.var/app/com.github.k4zmu2a.spacecadetpinball/data/SpaceCadetPinball as kowalski7cc stated, but only if you run the command depending on your installation method:

  • Flatpak: sudo mv /var/lib/flatpak/app/com.github.k4zmu2a.spacecadetpinball/current/active/files/bin/PINBALL.DAT /home/$USER/.var/app/com.github.k4zmu2a.spacecadetpinball/data/SpaceCadetPinball
  • Flatpak (User): mv /var/home/$USER/.local/share/flatpak/app/com.github.k4zmu2a.spacecadetpinball/current/active/files/bin/PINBALL.DAT /home/$USER/.var/app/com.github.k4zmu2a.spacecadetpinball/data/SpaceCadetPinball

Assuming that one has placed the necessary files in the /home/$USER/.var/app/com.github.k4zmu2a.spacecadetpinball/data/SpaceCadetPinball directory, running either of these terminal commands removes the PINBALL.DAT from the installation's active directory and places it alongside the CADET.DAT in the same directory to activate the behavior k4zmu2a confirmed earlier. If PINBALL.DAT is not removed or moved from the active directory using one of the above commands, the application will still default to that directory and its files regardless of the presence of anything in the SpaceCadetPinball directory.

If the audio isn't working, make sure Full Tilt's SOUND folder in it's entirety is copied into the same /home/$USER/.var/app/com.github.k4zmu2a.spacecadetpinball/data/SpaceCadetPinball directory (Note that this is the folder and its contents, not the contents in itself). This means the contents of the SpaceCadetPinball directory should have CADET.DAT, PINBALL.DAT, imgui_pb.ini, and the SOUND folder.

This is not a great solution, as it would have to be done everytime an update to the app occurred not fixing this, but it is a good solution for now until a fix is provided.

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

No branches or pull requests

5 participants