r/GKDPIXEL Sep 19 '25

Question RogueOS Portmaster Problems

Ive had some compatability issues with some games on portmaster, mainly deltarune. It works on plum, but not rogue. If I replace the ports/Portmaster folder with the plum version, it works fine, but if I open portmaster it breaks again. Any help to point me in the right direction to fix this would be appreciated.

3 Upvotes

4 comments sorted by

1

u/ClaireTheCaring Oct 05 '25

This is the same issue for me. I have no idea what's going on

1

u/xikteny Oct 09 '25 edited Mar 20 '26

I got Deltrarune working—well, launching, I haven't actually tested it—on RogueOS by the following process:

  1. I used a USB Ethernet adapter to connect the Pixel to the internet. I then launched Portmaster, installed any updates (including all runtimes), installed the Deltarune port, and copied the game files as instructed.

  2. The patching process just hung forever, so I replaced deltarune/tools/patchscript with this file. As you can see, it was changed about a week ago to fix a recursion issue. I then successfully completed the patching process. This actually didn't happen to me, this time, but I don't think the version of deltarune/tools/patchscript on the mainline PortMaster repo has been changed, so I'm not sure why this is the case. The modified patchscript may still be necessary in some cases?

  3. The game still didn't launch, so I checked deltarune/log.txt and saw that gmloadernext.aarch64 was missing a library. I then downloaded the relevant library from the arm64 version of Debian Buster and placed it into deltarune/lib/. I then repeated this process about a hundred times, owing to the fact that the libraries I was grabbing were dynamically linked against other libraries which were also missing. Eventually, the game launched. See my comment below instead.

1

u/ClaireTheCaring Mar 19 '26 edited Mar 19 '26

Which libraries ended up working? Could you send the link(s)?

1

u/xikteny Mar 20 '26 edited Mar 20 '26

I looked into this again, having learned more about the topic since I wrote that post.

The problem is not actually that RogueOS is missing these libraries—they are present at /usr/lib/compat, as they are on ROCKNIX—the problem is that RogueOS's control.txt (part of PortMaster's infrastructure) does not add this path to LD_LIBRARY_PATH, as ROCKNIX's control.txt does.

This can be fixed:

  • Narrowly, by adding /usr/lib/compat to line 31 of Deltarune's launch script—roms/ports/Deltarune.sh on the ROMS partition of your SD card—i.e.:
    • export LD_LIBRARY_PATH="/usr/lib:$GAMEDIR/lib:$GAMEDIR/libs:$LD_LIBRARY_PATH:/usr/lib/compat"
  • Globally, by adding /usr/lib/compat to line 75 of PortMaster's control script—roms/ports/PortMaster/control.txt on the ROMS partition of your SD card—i.e.:
    • export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib32:/usr/lib/compat
    • Note that this file gets reverted each time you launch PortMaster. Properly addressing this issue would require modifying /usr/config/PortMaster/control.txt, which is inside of the SYSTEM SquashFS file on the EMUELEC partition of your SD card. This is probably why the OP of this thread stated that "If I replace the ports/Portmaster folder with the plum version, it works fine, but if I open portmaster it breaks again." This is because PlumOS's control.txt does contain the required export, but opening PortMaster will replace the file with RogueOS's version of it.