ShadowTheAge / yafc

Powerful Factorio calculator/analyser that works with mods
GNU General Public License v3.0
161 stars 50 forks source link

[BUG] Can't get past the welcome screen #226

Open drdozer opened 9 months ago

drdozer commented 9 months ago

I downloaded 0.6.0 today from flatpak. I am on linux.

uname -a
Linux persephone 5.15.0-87-generic #97-Ubuntu SMP Mon Oct 2 21:09:21 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

I launched yafc through flatpak as per the instructions. It popped up the welcome screen with the ux to begin a project. I have provided the location of my factorio data directory and a project file location. The create button remains greyed out and doesn't do anything.

image

Stefan-JLU commented 6 months ago

I just had the same problem.

By looking at the available paths I figured, that flatpak limits the folders you can access. (I'm new to flatpak) And on the flathub website you can see that only some paths are enabled.

If you click on the partially unsafe button on the flathub site [0] you can see that it only allow some subfolders of home like .var .steam and .factorio. If your game is not installed there, YAFC can not see that path.

As an alternative, I tried installing dotnet myself. First, the packaged YAFC.runtimeconfig.json states a 3.1.0 dotnet runtime dependency which is so far out of date, that I couldn't get it to start. So I just changed that line to 8.0.0. Also more SDL2 dependencies than stated, but they were easy to find: SDL2_tff, SDL2_image. But now I got it running.

0: https://flathub.org/apps/com.github.petebuffon.yafc