k4zmu2a / SpaceCadetPinball

Decompilation of 3D Pinball for Windows – Space Cadet
MIT License
3.37k stars 209 forks source link

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

Open pawzoflion opened 10 months ago

pawzoflion commented 10 months ago

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 commented 10 months ago

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 commented 9 months ago

I'll look into it

kowalski7cc commented 9 months ago

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 commented 8 months ago

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 commented 6 months ago

@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 commented 2 days ago

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 commented 1 day ago

@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 commented 1 day ago

@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?