Author Topic: AGS as Snap for Ubuntu and derivatives on Linux  (Read 1423 times)

eri0o

So, I think I sucessfully built AGS ENGINE for Linux and packed as Snap.

To test it, you need first to install, just launch a Terminal anywhere and type:

Code: Bash
  1. snap install ags
  2.  

Once it's installed, in the game folder (where the .exe file is) just run it:

Code: Bash
  1. ags
  2.  

in some systems, fullscreen is problematic, then try:

Code: Bash
  1. ags --windowed
  2.  

Please, report issues in the tracker here or this thread.

Also, AGS seems to have successfully built on the following systems: amd64/i386/arm64/armhf/s390x . This means it should work on any Ubuntu/snap compatible distribution on the Raspiberry Pi !
« Last Edit: 30 Oct 2018, 13:11 by eri0o »

eri0o

Re: AGS as Snap for Ubuntu and derivatives on Linux
« Reply #1 on: 16 Dec 2020, 14:38 »
If someone happens to be using this please let me know, I haven't updated it for a while because I had no answers here and maintaining this can be a bit not trivial.

Dualnames

  • AGS Baker
  • Rottwheelers
  • Pretty Badass
    • Dualnames worked on one or more games that won an AGS Award!
    •  
    • Dualnames worked on one or more games that was nominated for an AGS Award!
Re: AGS as Snap for Ubuntu and derivatives on Linux
« Reply #2 on: Yesterday at 11:13 »
Is there a chance we can upgrade this to 3.5.0.26?
No more military army stuff. I'm alive and back.

eri0o

Re: AGS as Snap for Ubuntu and derivatives on Linux
« Reply #3 on: Yesterday at 12:49 »
I need this commit: https://github.com/adventuregamestudio/ags/commit/fa1541996caa05ba739fe9897b03fcb23824a24a#diff-ab6eb144429f13e1d4d0ea3bda99d6f31ca7b527b50777281a36fdaac4be4e6f

On this branch: https://github.com/adventuregamestudio/ags/tree/release-3.5.0/Engine

If someone can do this, I can upgrade it to the latest 3.5.0 release.

Also, Duals, if it's for testing Strangeland you need the plugins too!
« Last Edit: Yesterday at 13:00 by eri0o »

Crimson Wizard

  • Local Moderator
    • Lifetime Achievement Award Winner
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    • Crimson Wizard worked on one or more games that won an AGS Award!
    •  
    • Crimson Wizard worked on one or more games that was nominated for an AGS Award!
Re: AGS as Snap for Ubuntu and derivatives on Linux
« Reply #4 on: Yesterday at 12:59 »
I need this commit: https://github.com/adventuregamestudio/ags/commit/fa1541996caa05ba739fe9897b03fcb23824a24a#diff-ab6eb144429f13e1d4d0ea3bda99d6f31ca7b527b50777281a36fdaac4be4e6f

On this branch: https://github.com/adventuregamestudio/ags/tree/release-3.5.0/Engine

If someone can do this, I can upgrade it to the latest 3.5.0 release.

You can make PR to release-3.5.0 branch, and any other release-... branches.

eri0o

Re: AGS as Snap for Ubuntu and derivatives on Linux
« Reply #5 on: Yesterday at 18:39 »
 Sorry, CW, I should avoid commenting stuff when I am in bed, I was just going through my notes to find out what happened and noticed that missing.

I can make the PR but I also remembered other thing, I had a hard time getting sound to work with the Snap (in the latest versions of snapcraft, not ags), and one way to fix is using the sdl2 digi audio driver. The old version didn't need it because it used a hacked audio driver that pretended to be alsa and was a pulse-audio driver (here), but the newer version don't have that hack anymore.

BUT the sdl2-digi audio driver breaks the SDL2 based Joystick plugins.

Dualnames, is this for any of your games? I ask because you use the joystick plugins.

When I checked trying to run both crashed my computer so I couldn't debug ( https://github.com/ericoporto/agsjoy/issues/9 ), I remember at the time your plugin had the same problem but I haven't retested later, I think this was the other thing that made me postpone updating - I was kinda waiting for 3.6.0...
« Last Edit: Yesterday at 18:44 by eri0o »

Dualnames

  • AGS Baker
  • Rottwheelers
  • Pretty Badass
    • Dualnames worked on one or more games that won an AGS Award!
    •  
    • Dualnames worked on one or more games that was nominated for an AGS Award!
Re: AGS as Snap for Ubuntu and derivatives on Linux
« Reply #6 on: Yesterday at 22:34 »
It's for Strangeland which uses 3.5.0.26 and AGSWaves, which I'm able to compile under linux!

The game runs fine, just no sound. AGSWaves uses 2 SDL channels for crossfading and sounds, but uses voice through AGS's audio engine, and i have no sound coming out on 3 linux machines + 1 Virtual Machine (my own).
No more military army stuff. I'm alive and back.

eri0o

Re: AGS as Snap for Ubuntu and derivatives on Linux
« Reply #7 on: Yesterday at 23:43 »
What sounds are you not listening? Can you give a small binary that uses all types of sounds?

I am sorry, but I have been out of computer today and will be tomorrow too.

If you are using the 3.5.0.26 Linux build, can you try removing the sdl2 digi sound driver and see if it works? It's great alone but it could be some conflict.
« Last Edit: Today at 00:10 by eri0o »

Dualnames

  • AGS Baker
  • Rottwheelers
  • Pretty Badass
    • Dualnames worked on one or more games that won an AGS Award!
    •  
    • Dualnames worked on one or more games that was nominated for an AGS Award!
Re: AGS as Snap for Ubuntu and derivatives on Linux
« Reply #8 on: Today at 00:22 »
Neither of the sounds work, or music, or speech. There is no sound output, even though the audio device initializes, both on AGS and SDL2.

3.5.0.26 Afaik is not using SDL yet, i think it's 3.5.0.7 and on.
No more military army stuff. I'm alive and back.