Adventure Game Studio

AGS Development => Engine Development => Topic started by: eri0o on Sun 28/10/2018 01:25:00

Title: AGS as Snap for Ubuntu and derivatives on Linux
Post by: eri0o on Sun 28/10/2018 01:25:00
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) Select

snap install ags


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

Code (bash) Select

ags


in some systems, fullscreen is problematic, then try:

Code (bash) Select

ags --windowed


Please, report issues in the tracker here (https://github.com/ericoporto/ags-snap/issues) 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 !
Title: Re: AGS as Snap for Ubuntu and derivatives on Linux
Post by: eri0o on Wed 16/12/2020 14:38:05
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.
Title: Re: AGS as Snap for Ubuntu and derivatives on Linux
Post by: Dualnames on Sat 08/05/2021 11:13:05
Is there a chance we can upgrade this to 3.5.0.26?
Title: Re: AGS as Snap for Ubuntu and derivatives on Linux
Post by: eri0o on Sat 08/05/2021 12:49:56
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!
Title: Re: AGS as Snap for Ubuntu and derivatives on Linux
Post by: Crimson Wizard on Sat 08/05/2021 12:59:59
Quote from: eri0o on Sat 08/05/2021 12:49:56
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.
Title: Re: AGS as Snap for Ubuntu and derivatives on Linux
Post by: eri0o on Sat 08/05/2021 18:39:35
 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 (https://github.com/ericoporto/ags-snap/blob/7aca50dea8b7ba5cddd9380fc50910f3addfccc9/snapcraft.yaml#L122)), 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...
Title: Re: AGS as Snap for Ubuntu and derivatives on Linux
Post by: Dualnames on Sat 08/05/2021 22:34:24
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).
Title: Re: AGS as Snap for Ubuntu and derivatives on Linux
Post by: eri0o on Sat 08/05/2021 23:43:09
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.
Title: Re: AGS as Snap for Ubuntu and derivatives on Linux
Post by: Dualnames on Sun 09/05/2021 00:22:26
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.