GMWolf
aka fel666
This makes use of an early beta meant to run on ubuntu. Needless to say this is not supported by YYG and results may vary
Installing and running the new GMS2 beta on Arch linux
I will cover:
How it works:
Hope you find this useful, let me know if you have any questions or issues!
Installing and running the new GMS2 beta on Arch linux
I will cover:
- How to install the beta on arch linux
- How to run games from the IDE on arch linux
- Some linux experience.
- Some make experience.
- yay (but of course you can just use pacman if you like)
- an x server or wayland.
- clang (although you can probably modify the make files to use gcc instead, i didn't try)
- Download the beta from http://gms.yoyogames.com/GameMakerStudio2-Beta-23.1.1.329.deb
- Install debtap
yay -S debtap
- Create the arch package
cd <where you downloaded game maker>
sudo debtap -u
debtap GameMakerStudio2-Beta-23.1.1.329.deb
- Install the arch package
sudo pacman -U gamemakerstudio2-beta-23.1.1.329-1-any.pkg.tar.zst
- Done! Game maker should show up along with all your other applications.The IDE should pretty much just work out of the box.
- Switch to YYC
- Navigate to your games build directory
tmp/yyc/<project name>
- Create a new file called
GNUmakefile
. add the following: -
Code:
b: a mv <PROJECT_NAME> _app cp run_app <PROJECT_NAME> a: make -f makefile COMPILEOPTS=-no-pie LINUX_LIBDIR_USR=/usr/lib
Replace <PROJECT_NAME> with your project name- create a new file called
run_app
with the following:
Code:#!/bin/bash export DISPLAY=:0 ./_app
- make the file runnable:
chmod u+x run_app
- Good to go! launching the game from the IDE should work.
How it works:
First of all we want to override some of the options found in the default makefile. To do this we create the GNUmakefile which has higher priority over the default makefile.
We run make on the original makefile with a couple variables overridden to ensure we dont use PIE and use the correct library directory.
Game maker will try to run our compiled application but doesnt export the right enviroment variables. So we will instead inject our own script to call it correctly.
We do this by replacing renaming our compiled application, and then substituting it with our own launch script.
The launch script exports the right display and just runs the app.
Hope you find this useful, let me know if you have any questions or issues!
Last edited: