Author Topic: Running an AGS game on Steam OS  (Read 401 times)

Running an AGS game on Steam OS
« on: 19 Aug 2018, 03:26 »
So, I was trying to run my AGS game on Steam OS and for some reason it kept failing on missing libaldmb.so.1 . Now, for the 64-bit version, I use the sdl2 port and use the regular on 32-bit. No matter what I did, the ALLEGRO_MODULES variable wasn't recognised on SteamOS, for the libaldmb.so.1 , so I solved by passing the LD_LIBRARY_PATH - since lib32 / lib64 include the libaldmb.so.1 . I also place the ags binary inside the lib32 / lib64 directories.

Below is what I got that worked consistently across my Linux PCs, through Steam. I pass the full screen modifier because it's needed now in the sdl2 port for some reason.

Code: Adventure Game Studio
  1. #!/bin/sh
  2. SCRIPTPATH="$(dirname "$(readlink -f $0)")"
  3.  
  4. if test "x$@" = "x-h" -o "x$@" = "x--help"
  5.   then
  6.     echo "Usage:" "$(basename "$(readlink -f $0)")" "[<ags options>]"
  7.     echo ""
  8. fi
  9.  
  10. if test $(uname -m) = x86_64
  11.   then
  12.     export LD_LIBRARY_PATH="$SCRIPTPATH/lib64":$LD_LIBRARY_PATH
  13.     ALLEGRO_MODULES="$SCRIPTPATH/lib64" "$SCRIPTPATH/lib64/ags_sdl2_64" --fullscreen "$@" "$SCRIPTPATH/"
  14.   else
  15.     export LD_LIBRARY_PATH="$SCRIPTPATH/lib32":$LD_LIBRARY_PATH
  16.     ALLEGRO_MODULES="$SCRIPTPATH/lib32" "$SCRIPTPATH/lib64/ags32" "$@" "$SCRIPTPATH/"
  17. fi
  18.