Author Topic: Steam Deck - I will pay a nerd to get Knossos working.  (Read 1154 times)

0 Members and 1 Guest are viewing this topic.

Steam Deck - I will pay a nerd to get Knossos working.
Scroll down to my TLDR EDIT on this first post to see the current instructions on getting FSO working on Steam deck


Alright. I'm nerdy but apparently not nerdy enough. I spent about 5 hours  :banghead: :banghead: :banghead: trying to get my steam deck to run the Knossos portal, but I just couldn't figure it out. What I need is a super easy flat pack for the Discover store or some similarly easy way to install Knossos on Linux.

It's worth money to me to get it working, $69 via PayPal or Venmo to anyone who can get me into FSO via Knossos on my deck.

I can't afford any more sanity trying to figure this out myself. Running Knossos with proton seemed broken, and I just could not wrap my head around the AUR instructions.

I know that most of you guys are in it for the love of freespace like I am, and if the person that solves this for me prefers, I will also pay the bounty to the upkeep of this site instead of a personal payment.


****EDIT FOR TLDR*****
If you just want to install Knossos on Steam Deck for now, you'll have to reinstall it every SteamOS update. Here's the sequence that works for me:
First, in Desktop Mode, set an admin password for your deck. Go to System Settings>User>Change password. Make it super duper unbelievably easy to remember, because if you forget, You'll have to reimage your steam deck to reset it. When the Konsole asks for your password, it hides the letters as you type, they are there, you just don't see the cursor moving.

Open Konsole in Desktop Mode.
Use a bluetooth keyboard for your sanity.
Start typing. Hit enter after each line. Remember that Linux is very case sensitive for all commands, not just passwords. Y is not the same as y. Type in your new password as required.
Code: [Select]
sudo steamos-readonly disable
sudo btrfs property set -ts / ro false

For a REINSTALL after a SteamOS Update, also throw in these:
Code: [Select]
cd /etc/ld.so.conf.d/
sudo rm fakeroot.conf
rm -r ~/pkgbuild


Continuing on for initial install (select Y to continue through all the parts of the install):
Code: [Select]
mkdir ~/pkgbuild && cd ~/pkgbuild
git clone https://aur.archlinux.org/python-token-bucket.git
git clone https://aur.archlinux.org/fs2-knossos.git
cd ~/pkgbuild/python-token-bucket
sudo pacman-key --populate archlinux
sudo pacman -S archlinux-keyring
sudo pacman -S base-devel
sudo pacman -Syu --needed base-devel git python-pip
makepkg -si
cd ~/pkgbuild/fs2-knossos

Do not close the Konsole for this next step. If you do, just re-ender the last "cd" command above to get you to the right directory. At this point you need to go to the  the Knossos maintenance project thread https://www.hard-light.net/forums/index.php?topic=98391 and copy all the green code into a notepad or KWrite file, and save it as fix.patch saved in the directory home/deck/pkgbuild/fs2-knossos/fix.patch, then continue:

Code: [Select]
patch PKGBUILD fix.patch
makepkg -si

Close Konsole

To get it to run in Gaming mode:

Open up KWrite and copy this stuff to a new file that you'll call Freespace.sh:
Code: [Select]
#!/bin/sh
unset LD_PRELOAD
exec startplasma-wayland --xwayland --x11-display $DISPLAY --no-lockscreen --width 1280 --height 800 -- plasma_session
Save it into the Home directory.
Right click on that file, go to properties, Permissions, then check "Is Ececutable"
Next, Start normal Steam in Desktop Mode (not Return to Gaming Mode) and click "Add a Game" then "Add a non-steam game" and go to home/deck. You'll have to select "All Files" from the "File Type" dropdown to see Freespace.sh. Add it. You can add game art if you want for added class.

Create a shortcut for the ~home/deck/pkgbuild/fs2-knossos/Knossos.desktop file on your desktop by dragging it out of the dolphin file explorer and selecting "create link"

Next, insure you have purchased Freespace 2 from Steam and install it. You can find my custom control set under the Community Layouts tab. It's called Freespace Open.
You'll have to save it as a local template. Go to your Library and go to non-steam games. You can now add that template to your Freespace.sh program as the default control layout.

When you launch Freespace.sh it will just take you to desktop mode. You'll need to click on the Knossos.desktop shortcut to launch the portal. Your Freespace VPs are installed at Home>.steam>steam>steamapps>common>Freespace 2
The .steam folder may be hidden, so you may need to click on the three lines in the upper right corner of the dolphin explorer to see it, or select "All Files" from the file type dropdown.

Once Knossos knows where to find Freespace, you should be able to install your mods as you please, but there's one more quirk before launching...

You'll need to pin the sound options window. It's down in the task bar, click on the speaker icon and then click on the pin icon in upper right. I don't know why, but without doing that, it would not have any sound some of the time. With that pinned, you can click launch on your selected mod launch.

Expect to spend a bit of time looking at my bindings and figuring out if you like mine or if you need to redo them completely.

To Exit the game, or to exit ghetto desktop mode, click on the steam button and select "Exit Game". If you need to do anything else in desktop mode, restart your steam deck and go into it the normal way.

After all that nonsense, you appreciate this game so much more.

One final note, after a SteamOS update, you'll have to do the Konsole work again, but none of the rest. This is not a great process, but it worked.





« Last Edit: November 09, 2022, 10:42:34 pm by delta_5-1 »

 
Re: Steam Deck - I will pay a nerd to get Knossos working.
The AUR instructions are to deal with qt update incompatibilities. They should be hopefully unnecessary on a fresh install like the steam deck. As Phantom Hoover is working towards a bugfix release, I'm standing ready to push a new and simpler version to the AUR.
So your problems might vanish with a little patience, but as I don't have a 'deck, you'll have to test for yourself.
Bookmarking this thread to notify on future developments.

 
Re: Steam Deck - I will pay a nerd to get Knossos working.
Alright. I'm nerdy but apparently not nerdy enough. I spent about 5 hours  :banghead: :banghead: :banghead: trying to get my steam deck to run the Knossos portal, but I just couldn't figure it out. What I need is a super easy flat pack for the Discover store or some similarly easy way to install Knossos on Linux.

flatpak.... oh god, flatpak


i spent ages getting knossos to build on flatpak, and it worked! the problem is that the linux FSO binaries are packaged with appimage, and appimage absolutely does not work inside flatpak.

I think another crack at the AUR install is probably your best bet — I can't experiment on SteamOS but if you have makepkg at the command-line that's really the only tool you need. Follow the instructions here to build AUR packages manually: first python-token-bucket, then fs2-knossos. Use makepkg -si for the build stages to make sure you get the dependencies.
The good Christian should beware of mathematicians, and all those who make empty prophecies. The danger already exists that the mathematicians have made a covenant with the devil to darken the spirit and to confine man in the bonds of Hell.

 
Re: Steam Deck - I will pay a nerd to get Knossos working.
first python-token-bucket, then fs2-knossos. Use makepkg -si for the build stages to make sure you get the dependencies.

I think it's in the dependencies that I got lost. I've only ever followed exact instructions for Linux installs through the console. If someone can give me the exact commands to input into the console, in text or video form, it meets my bounty criteria. I just was screwing up the "install dependancies" step.

 
Re: Steam Deck - I will pay a nerd to get Knossos working.
The problem is I don't have a Steam Deck myself, so I can't test any commands I write — I'm kind of flying blind. This is pretty much what I'm thinking:

Code: [Select]
sudo pacman -Syu --needed base-devel git python-pip
mkdir ~/pkgbuild && cd ~/pkgbuild
git clone https://aur.archlinux.org/python-token-bucket.git
git clone https://aur.archlinux.org/fs2-knossos.git
cd ~/pkgbuild/python-token-bucket
makepkg -si
cd ~/pkgbuild/fs2-knossos

At this point you need to go to the Knossos maintenance project thread, paste the patch given in the Arch section there into a file called ~/pkgbuild/fs2-knossos/fix.patch, then continue:

Code: [Select]
patch PKGBUILD fix.patch
makepkg -si

I've actually tested this on a fresh Arch install, but that's still not exactly the same as Steam OS. Best of luck.
The good Christian should beware of mathematicians, and all those who make empty prophecies. The danger already exists that the mathematicians have made a covenant with the devil to darken the spirit and to confine man in the bonds of Hell.

 
Re: Steam Deck - I will pay a nerd to get Knossos working.
Before I forget how I got this far...

In order to run
Code: [Select]
sudo pacman -Syu --needed base-devel git python-pipi had to go in and 1- Make the Steam OS no longer read only     
Code: [Select]
sudo steamos-readonly disableand i also did this: 
Code: [Select]
sudo btrfs property set -ts / ro falseand then I had to 2- comment out [jupiter-beta] to just be [jupiter] as something with the Steam OS hated the beta.
after that everything has worked up to this patch.

I'm diving into how to actually apply that patch, as I've never done this before, so the phrase 
Quote
"take the PKGBUILD from the AUR and apply the following patch"
  means nothing to me. How do I apply that patch? If you see this @Phantom Hoover before I figure it out and post, let me know what I need to type to get access to the file to add that patch into.



-EDIT-
I figured it out. I opened the PKGBUILD from the file explorer and repaced the - lines with the + lines than continued. It worked!

I'm still trying to get Steam to open Knossos in gaming mode, as this will be required to take advantage over the real power of the steamdeck.

Next problem... is there a way to force Knossos to run fullscreen?
« Last Edit: October 05, 2022, 11:13:36 pm by delta_5-1 »

 
Re: Steam Deck - I will pay a nerd to get Knossos working.
I honestly hadn’t considered the Steam Deck until now. Given how that thing’s selling we probably need to find a better way of distributing to it.
The good Christian should beware of mathematicians, and all those who make empty prophecies. The danger already exists that the mathematicians have made a covenant with the devil to darken the spirit and to confine man in the bonds of Hell.

 
Re: Steam Deck - I will pay a nerd to get Knossos working.
I got the Flatpak working. I had to do terrible things to do it, but it works. Watch this space.
The good Christian should beware of mathematicians, and all those who make empty prophecies. The danger already exists that the mathematicians have made a covenant with the devil to darken the spirit and to confine man in the bonds of Hell.

 
Re: Steam Deck - I will pay a nerd to get Knossos working.
(yeah i'm now fighting flathub bureaucracy to be able to distribute the ****ing thing because flatpak is completely built around a repository middleman model)
The good Christian should beware of mathematicians, and all those who make empty prophecies. The danger already exists that the mathematicians have made a covenant with the devil to darken the spirit and to confine man in the bonds of Hell.

 
Re: Steam Deck - I will pay a nerd to get Knossos working.
So I am currently building a steam deck input control layout that manages to capture most of the useful commands. The fact that each button can have three different bindings is really helping. When I get it finalized I'll probably export it to the free space game on Steam that way future generations can save it as a local control layout and then apply it to whatever the solution ends up being for freespace open.

 I had to create a script that would let me run desktop mode for the steam deck as a steam deck game... It was a very simple script and I'll share it here later. So you open up the normal desktop mode from Steam gaming mode and then you click on the Knossos app and launch it from there. This allows you to have full access to all of the steam controller bindings that make this game much more playable.

Currently the new problem that I'm facing is that the sound only works some of the time. I find that I have to turn off and then turn on whatever sound device I'm using, whether it be onboard speakers or Bluetooth headphones, and then just keep launching and closing the game until it starts with sound. The sound source selection in Knossos only has "Jack" as an option and I'm not really sure if that's just a weird Linux work around for sound sources... If anybody has any ideas of how to get the sound working more consistently or predictably I would appreciate any help.

 
Re: Steam Deck - I will pay a nerd to get Knossos working.
My feeling is that you're better off treating that as a Steam Deck issue first and a Knossos/FSO issue second — FSO is essentially a normal SDL application when it comes to audio output, whereas Linux audio configuration can get notoriously complicated.
The good Christian should beware of mathematicians, and all those who make empty prophecies. The danger already exists that the mathematicians have made a covenant with the devil to darken the spirit and to confine man in the bonds of Hell.

 
Re: Steam Deck - I will pay a nerd to get Knossos working.
In reviewing other reported bugs, it looks like this is a known issue for steam deck OS. There are a bunch of people who have tried to run emulators or other programs in desktop mode that have caused similar problems. In case anyone else looks here, I'll keep updates to me solving this problem here.

On a slightly related note, has there been much discussion about pushing free space open via the Steam workshop system? I figure they're probably has been a ton of discussion I just didn't dig through and find it.
« Last Edit: September 28, 2022, 12:19:43 am by delta_5-1 »

 

Offline EatThePath

  • 28
  • Laser Lich
    • Twitter
Re: Steam Deck - I will pay a nerd to get Knossos working.
FSO on the steam workshop is basically legally impossible unless some benevolent billionaire buys interplay and volition and then donates freespace to the public domain, or some similarly unlikely circumstance
Name your damn turrets and sounds! Numbers alone aren't helpful!
"if disco is dead then I am the laser lich"
"...[Warmachine] keeps changing as fast as EatThePath can force the engine to do his dark bidding..."

 
Re: Steam Deck - I will pay a nerd to get Knossos working.
Good News!

I was able to get the audio to work consistently. I had to click on the speaker icon on the taskbar and pin it so that it always stays open. That kept it from switching audio devices and that works every time.

 
Re: Steam Deck - I will pay a nerd to get Knossos working.
(yeah i'm now fighting flathub bureaucracy to be able to distribute the ****ing thing because flatpak is completely built around a repository middleman model)

 Have you had any luck with the flat pack route?? Steam just push an update to their OS and it completely ruined my fix. So I think that for a long-term solution, I'll either need to create a script that I can run every single time to set it back up, or encourage somebody or pay them to do a flat pack.

 

Offline Colonol Dekker

  • HLP is my mistress
  • 213
  • Aken Tigh Dekker
    • My old squad sub-domain
Re: Steam Deck - I will pay a nerd to get Knossos working.
FSO on the steam workshop is basically legally impossible unless some benevolent billionaire buys interplay and volition and then donates freespace to the public domain, or some similarly unlikely circumstance


The age old win-win scenario.

 
Re: Steam Deck - I will pay a nerd to get Knossos working.
Well I'm not a billionaire, but I'll still throw more than just the original bounty at anyone who gets the flat-pack or whatever on the discovery store for Linux. Now that I have played Freespace on a Steam Deck, I cannot live without it.

 
Re: Steam Deck - I will pay a nerd to get Knossos working.
Soooo...

Steam updated their OS, and i had to go back and reinstall Knossos.
I had to fix some of the keys for fakeroot, the "sudo pacman -Syu --needed base-devel git python-pip' command was a pain, had to google about 6 different errors to get it fixed, and I regret not documenting what I did.

I had do delete the old fakeroot
Code: [Select]
cd /etc/ld.so.conf.d/
sudo rm fakeroot.conf
I had to fix some keys:
Code: [Select]
sudo pacman-key --populate archlinux
sudo pacman -S archlinux-keyring

Honestly, there were just a lot of errors and can't remember them all, but I could google them. After doing a fresh install of Knossos, it opened back up with all my mods and settings, so that's a win in the short term.

Flatpack distribution is still the long term steam deck fix.  :banghead: :banghead:



 
Re: Steam Deck - I will pay a nerd to get Knossos working.
For those following, I updated my first post with a comprehensive guide. Hopefully somebody will get to test it to make sure it works elsewhere. It no longer requires a reservation to buy a Steam Deck.

 

Offline 5thAce

  • 26
Re: Steam Deck - I will pay a nerd to get Knossos working.
I'll give this a try later today and report back on how it works!

UPDATE: It's working! I'll need to look into modifying the control layout but so far so good.
« Last Edit: October 07, 2022, 10:49:45 pm by 5thAce »