TIL: There is a whole birb music scene I didn’t know about and it’s freakin adorable – for example Stairway to Heaven (UNCAGED): https://www.youtube.com/watch?v=P9xaikDoY2I
Author Archives: Beko Pharm

TPM is actually a nice thing


Built me a head tracking device and it worked way too good. So much fun and the night is basically over. I’ll be so sorry later but it was totally worth it 👌
Wohoo, another upgrade for my man cave. The upcycled lamp post is complemented with some old tent pole strapped to a table leg with zip ties. Can even move it freely 🙌
Am I the only one having a #hotas throttle controller sitting on the desk doubling as fidget cube during work? 😅
As so many others, I’ve switched to VSCode as my go-to IDE in recent years. I won’t go into the details as to why I made that switch, but I really enjoy using it and find it to be a rather productive tool. It’s another Electron app for the desktop, and while that typically bothers me a bit, in today’s post we’ll actually use that to our advantage. VSCode in the Browser Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS.
Can’t tell if genius or horrifying
Me: I love fast space flying
Also Me: Some day I will even hit that pesky checkpoint 2 of the Fly Dangerous training course.
<random trivia>
Many many years ago in a galaxy far far away I trained at the age of 10 to become a X-Wing pilot. The training course was the classic “hit all checkpoints as fast as you can to qualify”. The course would reset on each failure and the instructor said: “Don’t worry, try it again!”
My dad is still pulling my leg with that line because I wasted so many hours on this to just get it right 🤣
(and yes I was delighted to learn about https://www.moddb.com/mods/xwvm recently)
</random trivia>

Some very special LED arrived today 😁 Time for a new project 👌
Fly Dangerous (on Linux PC)

Racing in space sims is a thing and usually done by a small and sometimes hidden community within games like Elite Dangerous or Star Citizen. What happens when this is not enough for players, or when they simply don’t want to waste time grinding the required resources in-game, is demonstrated by @jayleefaulkner at https://github.com/jukibom/FlyDangerous
I was delighted to find Linux PC binaries over at https://jukibom.itch.io/fly-dangerous as well – and this is a very early alpha even. Guess someone pestered the dev about Linux already and I so had to give this a spin, of course.
Unpacking the FlyDangerous-0.2.2b-linux.zip
was a no brainer and the game itself started just fine. I do have however a very specific triple head display setup and the game started on the wrong display in fullscreen mode and could not be persuaded to go into windowed mode so I could reach the buttons to change the display resolution via hotkey or tweak the config at ~/.config/unity3d/StarGoat/FlyDangerous/prefs
. It insisted of staying on defaults so once more wmctrl
to my aid:
wmctrl -x -r FlyDangerous -b remove,fullscreen
wmctrl -x -r FlyDangerous -e 0,0,0,5760,1200
Yes… this will do!
After this was sorted out I noticed that Unity detected “some” joystick with only an X and an Y axes. This doesn’t do my X52 Professional H.O.T.A.S justice. Usually I’d use the controller mapping in Steam now but this isn’t a Steam game and while it can be added as a foreign game to Steam I can not set any controller configs for it there so I started looking around.
Apparently (modern) Unity
uses SDL2
and the modern evdev
input system to detect joysticks on Linux PC and this can be indirectly configured / overridden using the environment variable SDL_GAMECONTROLLERCONFIG
to provide additional input configurations like the ones listed in https://github.com/libsdl-org/SDL/blob/main/src/joystick/SDL_gamecontrollerdb.h (that somehow does not know of the X52 H.O.T.A.S?). Luckily there are various tools to create a mapping for this – for example Gamepad Tool at https://generalarcade.com/gamepadtool/ – which sure looks familiar enough from the re-mapping I’m used to by… Steam! AntiMicroX should also work for this but I didn’t try.
And since I’m on Linux and totally lazy I threw all this in the script file flydangerous.sh
to start the game:
SDL_GAMECONTROLLERCONFIG="03000000a30600006207000011010000,Logitech X52 Professional H.O.T.A.S.,a:b30,b:b3,x:b4,y:b1,back:b33,guide:b31,start:b32,leftstick:b9,rightstick:b11,leftshoulder:b26,rightshoulder:b24,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a5,lefty:a2,rightx:a0,righty:a1,lefttrigger:b23,righttrigger:b25,platform:Linux," ./flydangerous.x86_64 &
sleep 2
wmctrl -x -r FlyDangerous -b remove,fullscreen
wmctrl -x -r FlyDangerous -e 0,0,0,5760,1200
What to say – Fly Dangerous sure hits a nerve here and I wonder what more is to come.
At least gaming itself is easy as pie on Linux in 2021. Very very very early indie and alpha version games? Not so much 😉
Stumbled over this old but awesome #simpit some days ago: http://www.bsbb-mkii.com/
Check the video of the release party!
Love it when gamers geek out like that 😍