Botspot / pi-apps

Raspberry Pi App Store for Open Source Projects
GNU General Public License v3.0
2.05k stars 208 forks source link

Kerbal Space Program #139

Open Botspot opened 3 years ago

Botspot commented 3 years ago

@mobilegmYT says it runs fairly well on the Pi with the help of Box86.

I haven't tried it yet, but this issue keeps it from falling off the to-do list.

NoozAbooz commented 3 years ago

The only problem is we have to verify the user owns the game.

Botspot commented 3 years ago

I was thinking we could have the user download the game from Steam first.

Itai-Nelken commented 3 years ago

I tried the game on both Ubuntu 20.10 and TwisterOS, the farthest I got is the loading screen on Ubuntu, on Twister it opens a black window and crashes without any errors. also the latest version that has 32bit x86 support is 1.4.5 (latest version is 1.11).

Itai-Nelken commented 3 years ago

I was thinking we could have the user download the game from Steam first.

I own the game not from steam, so maybe each user Downloads the game files from where he owns the game, and only has to point pi-apps to where it is.

NoozAbooz commented 3 years ago

Ah, you need to open the install files and run KSP.x86 instead of the sh

Itai-Nelken commented 3 years ago

Ah, you need to open the install files and run KSP.x86 instead of the sh Itai Nelken

Thats what I ran, anyway will try again on a clean install.

NoozAbooz commented 3 years ago

You might also want to try installing it from GOG games instead of steam.

Itai-Nelken commented 3 years ago

You might also want to try installing it from GOG games instead of steam.

I never tried steam, I don't even have a steam account, I bought the game straight from the website.

Itai-Nelken commented 3 years ago

I fixed KSP not starting for me by downgrading to mesa 20.2

Itai-Nelken commented 3 years ago

takes over 30minutes to load, and seems to hang a lot of times.

NoozAbooz commented 3 years ago

30 minutes to load? Only about 1 min or 2 for me.

Itai-Nelken commented 3 years ago

and crashes when creating a new game. now it doesn't even start. @mobilegmYT what version are you using?

Botspot commented 3 years ago

I fixed KSP not starting for me by downgrading to mesa 20.2

@Itai-Nelken Before you downgraded, did you see an error similar to this?

pi@raspberrypi:~ $ "/home/pi/GOG Games/Kerbal Space Program/start.sh" "--launcher"
Running Kerbal Space Program
Box86 with Dynarec v0.1.9 96f944c8 built on Dec 21 2020 00:03:56
Set current directory to /home/pi/GOG Games/Kerbal Space Program/game
Found path: /home/pi/GOG Games/Kerbal Space Program/game/Launcher.x86
Error: Global Symbol data_start not found, cannot apply R_386_GLOB_DAT @0xb528ebbc ((nil)) in /home/pi/GOG Games/Kerbal Space Program/game/Launcher_Data/Mono/x86/libmono.so
Error: Global Symbol __data_start not found, cannot apply R_386_GLOB_DAT @0xb528ed48 ((nil)) in /home/pi/GOG Games/Kerbal Space Program/game/Launcher_Data/Mono/x86/libmono.so
Mono path[0] = '/home/pi/GOG Games/Kerbal Space Program/game/Launcher_Data/Managed'
Mono path[1] = '/home/pi/GOG Games/Kerbal Space Program/game/Launcher_Data/Mono'
Mono config path = '/home/pi/GOG Games/Kerbal Space Program/game/Launcher_Data/Mono/etc'
displaymanager : xrandr version warning. 1.5
client has 1 screens
displaymanager screen (0)(HDMI-1): 1920 x 1080
Using libudev for joystick management

Importing game controller configs
support/gog_com.shlib: line 94: 22768 Aborted                 ./"${bin_32}"
pi@raspberrypi:~ $

For me, using the GOG games installer, a black window pops up for a moment, then disappears.

Itai-Nelken commented 3 years ago

I fixed KSP not starting for me by downgrading to mesa 20.2

@Itai-Nelken Before you downgraded, did you see an error similar to this?

pi@raspberrypi:~ $ "/home/pi/GOG Games/Kerbal Space Program/start.sh" "--launcher"
Running Kerbal Space Program
Box86 with Dynarec v0.1.9 96f944c8 built on Dec 21 2020 00:03:56
Set current directory to /home/pi/GOG Games/Kerbal Space Program/game
Found path: /home/pi/GOG Games/Kerbal Space Program/game/Launcher.x86
Error: Global Symbol data_start not found, cannot apply R_386_GLOB_DAT @0xb528ebbc ((nil)) in /home/pi/GOG Games/Kerbal Space Program/game/Launcher_Data/Mono/x86/libmono.so
Error: Global Symbol __data_start not found, cannot apply R_386_GLOB_DAT @0xb528ed48 ((nil)) in /home/pi/GOG Games/Kerbal Space Program/game/Launcher_Data/Mono/x86/libmono.so
Mono path[0] = '/home/pi/GOG Games/Kerbal Space Program/game/Launcher_Data/Managed'
Mono path[1] = '/home/pi/GOG Games/Kerbal Space Program/game/Launcher_Data/Mono'
Mono config path = '/home/pi/GOG Games/Kerbal Space Program/game/Launcher_Data/Mono/etc'
displaymanager : xrandr version warning. 1.5
client has 1 screens
displaymanager screen (0)(HDMI-1): 1920 x 1080
Using libudev for joystick management

Importing game controller configs
support/gog_com.shlib: line 94: 22768 Aborted                 ./"${bin_32}"
pi@raspberrypi:~ $

For me, using the GOG games installer, a black window pops up for a moment, then disappears.

@Botspot I don't own the GOG version, I bought it straight from the kerbalspaceprogram.com, so I didn't have the GOG stuff. It said the box86 stuff, Importing game controller configs, and then aborting. And a black window opens, then closes when it says aborting

Itai-Nelken commented 3 years ago

@Botspot KSP isn't free and has no demo version as far as I know, just wanted to point that out because in #185 you wrote that only free apps or apps with a free demo can be on pi-apps

Botspot commented 3 years ago

@Botspot KSP isn't free and has no demo version as far as I know, just wanted to point that out because in #185 you wrote that only free apps or apps with a free demo can be on pi-apps

Technically there is a demo version. But that's off-point. You are correct: MC Java and MC Bedrock will require an indirect monetary payment in order to play.

I feel that despite their cost, both of the above, and KSP, would fit well in Pi-Apps. I will clarify this in #185. Thanks for bringing this up, @Itai-Nelken.

Itai-Nelken commented 3 years ago

this might help: https://github.com/ptitSeb/box86/issues/273#issuecomment-753638655

Itai-Nelken commented 3 years ago

@Botspot I got pretty far with the schroot method, see this https://github.com/ptitSeb/box86/discussions/308. I got as far as to install all dependencies for meson to not abort, but now ninja build fails. here is the file where I am writing everything I'm doing: ksp-rpi.txt

Pythonic456 commented 3 years ago

You definitely can get it to work. Except for the fact that the terrian is at 100M, making it (possibly) unplayable. But I am working on it.

Itai-Nelken commented 3 years ago

You definitely can get it to work. Except for the fact that the terrian is at 100M, making it (possibly) unplayable. But I am working on it.

the terrain is ok for me, I got to orbit and back. I was using mesa 20.2, stock clock speeds on TwisterOS.

Botspot commented 3 years ago

On Mesa 20.2, there was no terrain for me, but at 100m my rockets kept exploding. (So probaby an invisible ground layer or something like that)

I just moved the rocket to the top of the VAB and gave it some attachment towers. That way it started above the 100m zone. XD

Pythonic456 commented 3 years ago

@Botspot How do you move it to the top of the VAB?

Botspot commented 3 years ago

@Botspot How do you move it to the top of the VAB?

Hope that helps.

ghost commented 3 years ago

Ain't this game very heavy?

Itai-Nelken commented 3 years ago

@Dell-Glitch it's not really heavy, but because the only version that runs with box86 is very old (1.2.2) it's lighter than the newest version (1.11 I think) and it runs at ok speeds on the pi4 4gb no overclock.

ghost commented 3 years ago

@Itai-Nelken I was thinking it was heavy because my xbox one lags sometimes on ksp but it's prob a preformace issue

Pythonic456 commented 3 years ago

@Dell-Glitch You could try lowering the graphics settings... if you haven't already. :)

ghost commented 3 years ago

@Pythonic456 it's when i turn off my engines in space is where i lag but when i turn them on the lag stops

NoozAbooz commented 3 years ago

BTW, if it's planned for pi-apps to install a demo version like doom, this might help: https://forum.kerbalspaceprogram.com/index.php?/topic/183849-how-do-i-download-the-demo/&do=findComment&comment=3586448

Botspot commented 3 years ago

BTW, if it's planned for pi-apps to install a demo version like doom, this might help: https://forum.kerbalspaceprogram.com/index.php?/topic/183849-how-do-i-download-the-demo/&do=findComment&comment=3586448

Interesting. I'll give it a try.

ghost commented 3 years ago

BTW, if it's planned for pi-apps to install a demo version like doom, this might help: https://forum.kerbalspaceprogram.com/index.php?/topic/183849-how-do-i-download-the-demo/&do=findComment&comment=3586448

Interesting. I'll give it a try.

Did it work?

Botspot commented 3 years ago

Did it work?

Nope, I couldn't even get Steam to launch.

pi@raspberrypi:~ $ /usr/bin/steam
Running Steam on raspbian 10 32-bit
STEAM_RUNTIME is enabled by the user
Pins up-to-date!
/home/pi/.local/share/Steam/steam.sh: line 403: /home/pi/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/bin/steam-runtime-check-requirements: cannot execute binary file: Exec format error
steam-runtime-check-requirements failed with an unexpected nonzero exit status. Trying to continue
/home/pi/.local/share/Steam/ubuntu12_32/steam
/home/pi/.local/share/Steam/steam.sh: line 749: /home/pi/.local/share/Steam/ubuntu12_32/steam: cannot execute binary file: Exec format error
Botspot commented 3 years ago

BTW, if it's planned for pi-apps to install a demo version like doom, this might help: https://forum.kerbalspaceprogram.com/index.php?/topic/183849-how-do-i-download-the-demo/&do=findComment&comment=3586448

Interesting. I'll give it a try.

Did it work?

Nope. @vedforeal tried his best. No luck. Squad seems to have completely removed the demos from everywhere. There are a few Windows KSP demo downloads, but we need the Linux ones. So far I haven't found any downloads for those.

ghost commented 3 years ago

We can use wine x86 but that doesn't support 64bit

On Wed, Mar 17, 2021 at 2:08 PM Botspot @.***> wrote:

BTW, if it's planned for pi-apps to install a demo version like doom, this might help: https://forum.kerbalspaceprogram.com/index.php?/topic/183849-how-do-i-download-the-demo/&do=findComment&comment=3586448

Interesting. I'll give it a try.

Did it work?

Nope. @vedforeal https://github.com/vedforeal tried his best. No luck. Squad seems to have completely removed the demos from everywhere. There are a few Windows KSP demo downloads, but we need the Linux ones. So far I haven't found any downloads for those.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Botspot/pi-apps/issues/139#issuecomment-801298572, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARNPDTYWDGMZX53IIIBLG3DTEDVYRANCNFSM4VABVL7Q .

Botspot commented 3 years ago

We can use wine x86 but that doesn't support 64bit

I'd be surprised if Wine could even run KSP. Complicated things usually don't work. :(

ghost commented 3 years ago

qemu?

On Wed, Mar 17, 2021 at 2:28 PM Botspot @.***> wrote:

We can use wine x86 but that doesn't support 64bit

I'd be surprised if Wine could even run KSP. Complicated things usually don't work. :(

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Botspot/pi-apps/issues/139#issuecomment-801313731, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARNPDTYKUETRJDKSLRMLJITTEDYFBANCNFSM4VABVL7Q .

Botspot commented 3 years ago

qemu?

We'd already have to use an emulator to get the Linux version running. (the box86 emulator which is faster) QEMU would just be slower, and would still need the Linux version of KSP as well.

ghost commented 3 years ago

qemu?

We'd already have to use an emulator to get the Linux version running. (the box86 emulator which is faster) QEMU would just be slower, and would still need the Linux version of KSP as well.

ok

Painadath commented 3 years ago

Does it added yet

NoozAbooz commented 3 years ago

@Botspot In that case, we should just make it use user-provided game files.

VolkerSchlegel commented 3 years ago

I saw the issue on the box86 repo, have those issues been resolved? Is it playable(if you wouldn't crash at 100m) on a pi 4(8GB RAM)? I'm really impressed that the pi can even run it :D

NoozAbooz commented 3 years ago

I saw the issue on the box86 repo, have those issues been resolved? Is it playable(if you wouldn't crash at 100m) on a pi 4(8GB RAM)? I'm really impressed that the pi can even run it :D

Not playable but it runs fine for a modern game on a pi

https://www.youtube.com/watch?v=0YqOAY-WZ14&

ghost commented 3 years ago

I like that

VolkerSchlegel commented 3 years ago

Ok, what about the issue where it crashes into terrain at 100m?

ghost commented 3 years ago

Ok, what about the issue where it crashes into terrain at 100m?

100m/s or 100m in height?

Pythonic456 commented 3 years ago

It's 100m in height. I had this issue too, but open the debug menu (Alt-F12 I think), and set your elevation to 100m.

VolkerSchlegel commented 3 years ago

ah, ok thanks :+1:

Pythonic456 commented 3 years ago

👍

virat2010 commented 2 years ago

wow, insteresting

Br0wnie007 commented 2 years ago

Has Anyone tried using The 64bit version of the game With Box64