No sounds on Linux / Ubuntu ?

Started by adipson, Mon 31/12/2018 07:54:25

Previous topic - Next topic

adipson

Hello everyone.
I just looped my point and click ags and everything works fine (created from Windows 10 with latest version of AGS). File compiled on Windows and operational game. However, I wanted to compile it for LINUX at the same time.

So I installed the latest Ubuntu on my workstation and launched the game compiled on Linux (test version on the pc) and it works apart from the sound. No sound, no music. I do not know Linux at all and do not know if it comes from a misconfiguration of my pc, the OS ? (I have sound for music players, videos etc on the OS)

In short, the simplest question is:
when you compile the game under Linux, is it 100% functional on the Linux OS?

Thank you for your answers
POINT AND CLICK
2023-2024 : Magret & FaceDeBouc : https://store.steampowered.com/app/2661780/Magret__FaceDeBouc/
2019-2022 : Grandma Badass : https://store.steampowered.com/app/1606640/
Official website : https://adipson-studio.com/

VampireWombat

There are some issues with the latest version of Ubuntu. I've tried several times over the last month to install Wine without any luck. It's possible that it could be an issue between your sound card and Ubuntu. You could test to make sure that sound from other things works. Or you could have someone else using Ubuntu try the game. Or you could try a slightly older version of Ubuntu. Or Linux Mint instead.

eri0o

Could you try with snapped ags, do snap install ags, and then run it?

adipson

Hello
sorry for the delayed response but the release of this game took me a lot of time for 15 days.
For this case, in fact the game AGS works (although it is in strange resolution) on my latest version ubuntu but does not broadcast any sound)
The sound is correctly configured on my computer a priori since I hear the players videos etc.

But when you run the exe on linux, everything works without any sound and I do not know indeed if this is the case in other players.

I put online the playable demo for LINUX so that you tell me on your side if you have sound in the game? And by the way, if you can play it with a good graphic resolution because on my Linux it pixises a little ...

the playable demo of chapter 1 complete of 3 Geeks FOR LINUX is here : http://adipson.free.fr/3geeks/3GEEKS-Linux.zip

By the way if you are interested to test the demo version on Windows it's here: http://adispon.free.fr/3geeks/3GEEKS-DEMO.zip (No problem on Windows of course)

Thank you for your answers !
POINT AND CLICK
2023-2024 : Magret & FaceDeBouc : https://store.steampowered.com/app/2661780/Magret__FaceDeBouc/
2019-2022 : Grandma Badass : https://store.steampowered.com/app/1606640/
Official website : https://adipson-studio.com/

Kaktus

Hi, I am using Ubuntu 18.04 and I don't have sound with your Linux binary as well. Otherwise it works.

That's the output when I run it via terminal:
Code: ags

    Sound settings: digital driver ID: 'Auto' (0xffffffff), MIDI driver ID: 'Auto' (0xffffffff)
    Unable to initialize your audio hardware.
    [Problem: /dev/sequencer: file or directory not found]
    Installed digital driver ID: 'OSSD' (0x4f535344), MIDI driver ID: 'None' (0x0)


However if I run it with the AGS Snap as suggested by eri0o then sound works fine!! ;-D

Crimson Wizard

#5
Could you try disabling MIDI option in acsetup.cfg?

--------------
[sound]
midiid = 0
--------------


We had similar issue on Windows 10, for some reason AGS (or maybe Allegro 4) fails to play sounds at all if it first tries to init MIDI but fails, even if it installs digital sounds without midi later.


Quote from: Kaktus on Fri 25/01/2019 13:08:08
However if I run it with the AGS Snap as suggested by eri0o then sound works fine!! ;-D

This is a bit strange. How was the original game binary compiled for Linux (from what source etc)?
I dont know how this "snap" thing works and what difference it makes.

Kaktus

Quote from: Crimson Wizard on Fri 25/01/2019 13:57:55
Could you try disabling MIDI option in acsetup.cfg?

--------------
[sound]
midiid = 0
--------------
This didn't do anything. Still no sound.

Quote
I dont know how this "snap" thing works and what difference it makes.
Basically snap is a package manager for Linux, Snaps should run regardless of the Linux-distro you are using. Think of kinda as something akin to an installer in Windows
In this case it is the latest precompiled AGS-Engine for Linux (thanks, eri0o). So you install it and just go into the directory where the game files are and run "ags" in your terminal and it will run the game with the latest engine instead of the one that was bundled with the creator's AGS Editor.
So this may be a workaround for the Thread Starter. Simply distribute the game on Linux with the latest engine binaries instead of the ones that were created when you built your game in AGS.

By the way, adipson, I haven't played the game very much but I already like the obscurity of it.
You should really add a way to skip cutscenes (like with the Esc-Key).
Oh, and what version of the AGS Editor are you using?

Crimson Wizard

Quote from: Kaktus on Fri 25/01/2019 15:46:50
So this may be a workaround for the Thread Starter. Simply distribute the game on Linux with the latest engine binaries instead of the ones that were created when you built your game in AGS.

I'd really like to know where the flawed Linux binaries came from, and compare with the ones in snap's version. Adipson, did you download them from somewhere, or built yourself?

morganw

I think it is either a missing library (which doesn't effect a Snap package since it comes with its dependencies) or there is a config issue that is out of scope of the Snap package (the last person I spoke to who had audio issues had an invalid ALSA config file in their home folder). There is nothing wrong with the binaries, I've just tested it on Ubuntu 18.04 and it had working sound.

Quote from: GameWithSound
Adventure Game Studio v3.4 Interpreter
Copyright (c) 1999-2011 Chris Jones and 2011-2018 others
ACI version 3.4.1.15

Initializing allegro
Initializing game data
Located game data file: /home/mwillcock/Downloads/ex/data/3GEEKS - DEMO.ags
Opened game data file: game28.dta
Game data version: 49
Compiled with: 3.4.1.15
Setting up game configuration
Logging scipt to "warnings.log"
Setting up window
Initializing TTF renderer
Initializing mouse: number of buttons reported is 3
Checking memory
Data directory: /home/mwillcock/Downloads/ex/data
Audio vox found and initialized.
Initializing keyboard
Install timer
Sound settings: digital driver ID: 'Auto' (0xffffffff), MIDI driver ID: 'Auto' (0xffffffff)
ALSA lib rawmidi_hw.c:233:(snd_rawmidi_hw_open) open /dev/snd/midiC0D0 failed: No such file or directory

Unable to initialize your audio hardware.
[Problem: /dev/sequencer: No such file or directory]
Installed digital driver ID: 'ALSA' (0x414c5341), MIDI driver ID: 'None' (0x0)
Install exit handler
Initialize path finder library
Game GUI version: 118
Requested script API: v3.4.1 (5), compat level: v3.3.4 (2)
Game title: '3 GEEKS'
Checking for disk space
Initializing MOD/XM player
Game native resolution: 1024 x 768 (32 bit)
Game settings: windowed = no, screen def: max, screen size: 0 x 0, match device ratio: yes, game scale: proportional
Requested graphics driver 'D3D9' not found, will try existing drivers instead
Mouse control: on, base: 1.000000, speed: 1.000000
Initialize sprites
Audio is processed on the main thread
Engine initialization complete
Starting game
***** ENGINE HAS SHUTDOWN

Kaktus

#9
Hi, morganw, considering the things you wrote, I checked for any dependencies that could affect the sound (ALSA) output.
So the first thing I tried was installing the "alsa-tools" Package and... whaddayaknow. Spot on!
After installing that package sound works fine with the bundled binary now!

The crux is that it is not part of the standard Ubuntu installation. And telling your customers "oh btw you have to do 'sudo apt-get install alsa-tools' to expererience sound in this game") is a less than satisfying solution :-\

So after all it had nothing to do with the engine binary. I was barking up the wrong tree  :-D

adipson


Quote

By the way, adipson, I haven't played the game very much but I already like the obscurity of it.
You should really add a way to skip cutscenes (like with the Esc-Key).
Oh, and what version of the AGS Editor are you using?


Hello
thank you !
I thought about the function escha but it hurts, when creating a scenario that follows each other over the actions, to imagine that we can skip the steps when there are sometimes clues in the cinematics to better understand this scenario that goes on several time zones.

I started the game in 2012 on the version of the time and finished this month under the latest version 3.4.1.15
POINT AND CLICK
2023-2024 : Magret & FaceDeBouc : https://store.steampowered.com/app/2661780/Magret__FaceDeBouc/
2019-2022 : Grandma Badass : https://store.steampowered.com/app/1606640/
Official website : https://adipson-studio.com/

adipson

Quote

I'd really like to know where the flawed Linux binaries came from, and compare with the ones in snap's version. Adipson, did you download them from somewhere, or built yourself?

the game was compiled by the AGS software at the time of build in its classic method
POINT AND CLICK
2023-2024 : Magret & FaceDeBouc : https://store.steampowered.com/app/2661780/Magret__FaceDeBouc/
2019-2022 : Grandma Badass : https://store.steampowered.com/app/1606640/
Official website : https://adipson-studio.com/

Kaktus

Quote from: adipson on Sat 26/01/2019 07:34:51
I thought about the function escha but it hurts, when creating a scenario that follows each other over the actions, to imagine that we can skip the steps when there are sometimes clues in the cinematics to better understand this scenario that goes on several time zones.
I understand your concerns but if the player decides to skip the cutscenes, for what reason so ever, then why not let him do it.
Like maybe someone is knocking on his door or the game/computer crashed and he wants to play up to a certain point again.
Then it's a bit annoying not being able to skip them.
I mean when he presses the escape key then it shows his determination since it's not a key you usually hit by accident.

Oh, and did installing alsa-tools fix your sound problems on Ubuntu as well?

eri0o

#13
The Snapped ags doesn't require alsa, I am redirecting output to pulseaudio.

Also, try throwing the dependencies on game folder and specify to look on the game folder after the rest of computer for dependencies - pass to LD_LIBRARY_PATH before running the game. Lastly, I think Steam provides alsa, so don't worry if you are using Steam.

SMF spam blocked by CleanTalk