HGL
generous-apricot

getting .sh files that run a game using a wrapper to work

hey guys I installed https://github.com/bakustarver/rpgmakermlinux-cicpoffs and I can select it for use in steam compatibility tools but not on heroic so I went ahead and made a simple bash that runs the command rpgmaker-linus --gamepath "/path/to/game" and it works fine but when adding this .sh file on Heroic as a Linux game it doesn't work the log error I get is Game Log: ./Run Game.sh: line 2: rpgmaker-linux: command not found tried running with the explicit path to the command and it says directory not found my best guess right now is flatpack issues ? anyone got any ideas
GitHub
GitHub - bakustarver/rpgmakermlinux-cicpoffs: Run any RPG Maker XP,...
Run any RPG Maker XP, VX, VX Ace, MV, MZ, TyranoBuilder, Godot, Construct 2/3, Nscripter game on linux natively - bakustarver/rpgmakermlinux-cicpoffs
10 Replies
CommandMC
CommandMC3mo ago
Make sure both your compatibility tool and the script itself are somewhere in ~/Games/Heroic/, otherwise Flatpak Heroic won't be able to see it You can test your script by running
flatpak run --command=bash com.heroicgameslauncher.hgl
flatpak run --command=bash com.heroicgameslauncher.hgl
in the terminal & then executing your script
generous-apricot
generous-apricotOP3mo ago
can I add a shortcut for the wrapper to a file in ~/Games/Heroic/ ? or do I have to move the entire installation there on the wrapper website there is a way to change custom install echo "$HOME/somedirpath/" > "$HOME/.config/defrpgmakerlinuxpath.txt" I'm sorry I'm a bit new does this mean that I make a text file where I specify the install ? or do I run this command as is ?
CommandMC
CommandMC3mo ago
You have to move the entire thing there, a shortcut will end up pointing to a (to the Flatpak) nonexistent file Looking at the script, you only have to download the latest release and extract the nwjs folder from there. The file that'd usually be rpgmaker-linux is nwjs/packagefiles/nvjsstart-cicpoffs.sh
generous-apricot
generous-apricotOP3mo ago
it still doesn't work because even when I put the wrapper in the heroic directory I think it's looking for dependacies and not finding them /home/../../Heroic/rpgmaker-linux/rpgmaker-linux: line 463: strings: command not found /home/../../Heroic/rpgmaker-linux/mkxp-z/mkxp-z.x86_64: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: No such file or directory will the app image version of heroic be the same and still have those issues ?
CommandMC
CommandMC3mo ago
AppImage doesn't do sandboxing, so it'll work like you'd just run your script from the terminal. But that also assumes the rest of your system configuration is sane (notably that you have GPU drivers installed properly)
generous-apricot
generous-apricotOP3mo ago
gotcha
CommandMC
CommandMC3mo ago
If you're not going the Flatpak route, usually the native package for your distro is the best choice You can use the AppImage, but you'll lose some features (protocol support, a desktop entry for Heroic)
generous-apricot
generous-apricotOP3mo ago
I hesitate to use the native version just because I assume the flatpack version is pushed hard for a reason
CommandMC
CommandMC3mo ago
Flatpak is the preferred version, yes, but the native ones still work
generous-apricot
generous-apricotOP3mo ago
I think I'll probably keep the flatpack and since steam works will just add rpgmaker games as steam games and call it a day thanks a bunch for the help CommandMC

Did you find this page helpful?