spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

Welcome, Guest. Please login or register.
30 Jul 2010, 01:36

Home | Help | Search | Games | Wiki | Login | Register


AGS Forums  |  Using AGS  |  Technical Forum (Moderators: Gilbet V7000a, Scorpiorus, strazer)  |  Topic: GNU/Linux Port [AGS 2.72] RC2 - includes sound & video support « previous next »
Pages: [1] 2 3 Print
Author Topic: GNU/Linux Port [AGS 2.72] RC2 - includes sound & video support  (Read 7398 times)
Electroshokker
Member



« on: 07 Jun 2009, 14:56 »

With the last linux port being in 2007, and the linux port being officially discontinued in december 2008, you probably thought it dead. Well, it ain't, since I took it over a little while ago.

The new website

I took off where Shawn stopped: AGS 2.72 - and took it a little further...

AGS Linux Engine 2.72 - "The undead Pinguin rises" edition

Just when you thought the damned pinguin was finally dead, he's back for more. Brains!

Release Candidate 2 for 32-bit/64-bit ubuntu, including a brand-new ags-setup utility.

NOTE!

* The included installer should work for both the 32-bit version of Ubuntu as well as the 64-bit version.

Changes in 2.72 RC2: See the included readme.

Grab the video test game to see it working yourself. (You might need to install the gstreamer0.10-ffmpeg package. Or another plugin which allows you to see xvid/divx movies.)

Remember, to see what's going wrong, start your game via the command prompt. (That way the error actually remains on your screen for you to report.)

-------------------------------------------------------------------

Future plans and dreams (don't get your hopes up too much, as some of these might not be realized in a looooooong time if at all)

In order of (probable) occurrence (or not):

- AGS 3.1.2 SP1 linux runtime + new ags-setup utility
- AGS linux game editor
- Porting AGS to other architectures (like ARM for handhelds and what not)

-------------------------------------------------------------------

If you encounter any problems running AGS 2.72 games, let me know. Your feedback is appreciated!

-------------------------------------------------------------------
« Last Edit: 05 Jul 2009, 01:03 by Electroshokker » Logged
Joseph DiPerla
Member

Joseph DiPerla, Adventure Game Creator Wannabe!

AGS tutoring: I am not that smart, but I could help. I have made Tutorials before.Play-testing: I love playing games, therefore I love testing them.Voice acting: I can do voice acting in Italian and English. I can make my voice have different variants but not many.Backgrounds: I can do some 3d Backgrounds through use of a special Cad program. But they are not great.Character art: I can do 3d characters with Poser 2 and 3. Nothing special though.Scripting: I could do a little scripting. Enough to make a game.
Story design: I am a good story writer. In fact, am writing novels(not published). I can help in this.Web design: I may be able to host some games and resources. Let me know.Translating: I speak and Write Italian and English fluently

« Reply #1 on: 07 Jun 2009, 15:57 »

OOOOOOHHHHH. Awesome. Will try it out on my linux box. Any knowledge in porting to Mac and Pocket PC?Huh?
Logged

Joseph DiPerla--- http://www.adventurestockpile.com
Member in this community since before 1996.
-The oldest member without ever making a full game...
Pumaman
Mittician
Administrator

Member


I sense danger.


« Reply #2 on: 07 Jun 2009, 17:47 »

Thanks for taking this on, Electroshokker! It's good to have the Linux port back in development Smiley
Logged
strazer
Moderator
Member



« Reply #3 on: 10 Jun 2009, 18:05 »

I'm so excited! Great news, thanks for doing this Electroshokker! Smiley

I checked out the beta engine, seems to work fine apart from the sound of course. Can't wait for ALSA support!
Logged

abstauber
Member


Hochrotations-zerstäuber


« Reply #4 on: 10 Jun 2009, 18:28 »

Truely great news! Thank you so much for doing this  Larry Values!!11
Logged

Electroshokker
Member



« Reply #5 on: 10 Jun 2009, 18:55 »

Looking further into this, I discovered:

ALSA's SND_PCM_FORMAT_U16_BE (and LE) not supported, so Allegro fails to initialize sound.

link with more info

The solution seems to be to move to a newer version of allegro, as they fixed it since 4.3.10

Dunno if this is a valid option. (Maybe I should statically link allegro again, making a build for 4.2.2 which includes the fix)

Anyways, I'll look into it more.  Wink
Logged
Pumaman
Mittician
Administrator

Member


I sense danger.


« Reply #6 on: 10 Jun 2009, 19:15 »

Moving to a newer version of Allegro probably isn't an option, as I understand it they're changing the API in the new versions which would probably break it.

Can you explain why this problem didn't affect the Linux engine builds that Shawn did?
Logged
Electroshokker
Member



« Reply #7 on: 10 Jun 2009, 19:24 »

Moving to a newer version of Allegro probably isn't an option, as I understand it they're changing the API in the new versions which would probably break it.

Can you explain why this problem didn't affect the Linux engine builds that Shawn did?

I suspect that it's because pulse-audio moved from 0.9.10 in intrepid (8.10) to 0.9.14 in jaunty (9.04)
I'll try reverting to the older package and see what that gives.
Logged
Pumaman
Mittician
Administrator

Member


I sense danger.


« Reply #8 on: 10 Jun 2009, 19:30 »

Good luck! Alternatively as you suggest you could try to find the Allegro fix that they did in 4.3.10 and port it into 4.2.2 to get it working.
Logged
Electroshokker
Member



« Reply #9 on: 10 Jun 2009, 20:26 »

Moving to a newer version of Allegro probably isn't an option, as I understand it they're changing the API in the new versions which would probably break it.

Allegro 4.3.10 still uses the same api. (as far as I know) Allegro 4.9.x uses a different api.

I did a statically linked build and ran the game 'Apprentice'. To my joy, I got sound!!!  Grin

NOTE: Guys, I need a good example game which includes all types of sound/music AND video, for testing purposes. If you are able to provide one, or point me towards one in the database, I'd much appreciate it.
« Last Edit: 10 Jun 2009, 21:48 by Electroshokker » Logged
Electroshokker
Member



« Reply #10 on: 10 Jun 2009, 21:21 »

Allright!!!  Grin Grin Grin

The patched static library is working like a charm!  Larry Values!!11 All music and sounds now ok!

Packaging, adding instructions and uploading the new beta. Guys, give this one a try. You'll love it!
« Last Edit: 10 Jun 2009, 21:48 by Electroshokker » Logged
Electroshokker
Member



« Reply #11 on: 11 Jun 2009, 05:59 »

Ok, to make it easier on you guys, I created an installer script.

It checks you're not in 64-bit mode, then does the apt-get stuff and copies the *patched* allegro library, so everything should work fine.

The rest remains the same: copy all runtime files to your game directory and enjoy!

« Last Edit: 11 Jun 2009, 06:05 by Electroshokker » Logged
strazer
Moderator
Member



« Reply #12 on: 11 Jun 2009, 06:43 »

Didn't use the installer and copied the files myself, but it works like a charm, including sound & music!
Do I understand correctly that Allegro is now dynamically linked? What happens when Ubuntu issues an Allegro update?
Logged

Electroshokker
Member



« Reply #13 on: 11 Jun 2009, 12:58 »

Didn't use the installer and copied the files myself, but it works like a charm, including sound & music!
Do I understand correctly that Allegro is now dynamically linked? What happens when Ubuntu issues an Allegro update?

Yes, it's still dynamically linked.

If Ubuntu issues an Allegro update (which will likely happen after it hits stable with allegro 5.0), the package will be called liballegro-5.0 or similar, and you can still get the older allegro-4.2.2 package. (maybe they'll phase it out after a few releases, so I'll put all the current .deb packages on my website so it's always available)

Also, did you know you can  LOCK a package, so it will never update, in the synaptic package manager?
Logged
Joseph DiPerla
Member

Joseph DiPerla, Adventure Game Creator Wannabe!

AGS tutoring: I am not that smart, but I could help. I have made Tutorials before.Play-testing: I love playing games, therefore I love testing them.Voice acting: I can do voice acting in Italian and English. I can make my voice have different variants but not many.Backgrounds: I can do some 3d Backgrounds through use of a special Cad program. But they are not great.Character art: I can do 3d characters with Poser 2 and 3. Nothing special though.Scripting: I could do a little scripting. Enough to make a game.
Story design: I am a good story writer. In fact, am writing novels(not published). I can help in this.Web design: I may be able to host some games and resources. Let me know.Translating: I speak and Write Italian and English fluently

« Reply #14 on: 11 Jun 2009, 17:35 »

This is awesome. My linux box is not up yet. Only using ubuntu live cd. Its a hassle to install external stuff. Once its up I will try it.

ES: The source cant be ported to MAC? I thought that most of the code for Linux would be pretty accessible and compiled in MAC. I could be wrong though.
Logged

Joseph DiPerla--- http://www.adventurestockpile.com
Member in this community since before 1996.
-The oldest member without ever making a full game...
Pumaman
Mittician
Administrator

Member


I sense danger.


« Reply #15 on: 11 Jun 2009, 18:48 »

The patched static library is working like a charm!  Larry Values!!11 All music and sounds now ok!

Packaging, adding instructions and uploading the new beta. Guys, give this one a try. You'll love it!

Excellent, good work Cheesy
Logged
Joseph DiPerla
Member

Joseph DiPerla, Adventure Game Creator Wannabe!

AGS tutoring: I am not that smart, but I could help. I have made Tutorials before.Play-testing: I love playing games, therefore I love testing them.Voice acting: I can do voice acting in Italian and English. I can make my voice have different variants but not many.Backgrounds: I can do some 3d Backgrounds through use of a special Cad program. But they are not great.Character art: I can do 3d characters with Poser 2 and 3. Nothing special though.Scripting: I could do a little scripting. Enough to make a game.
Story design: I am a good story writer. In fact, am writing novels(not published). I can help in this.Web design: I may be able to host some games and resources. Let me know.Translating: I speak and Write Italian and English fluently

« Reply #16 on: 11 Jun 2009, 20:08 »

So this works with Ubuntu only? Not Knoppix or Suse?
Logged

Joseph DiPerla--- http://www.adventurestockpile.com
Member in this community since before 1996.
-The oldest member without ever making a full game...
Electroshokker
Member



« Reply #17 on: 11 Jun 2009, 21:16 »

So this works with Ubuntu only? Not Knoppix or Suse?

Actually, it should work on other distributions if you can get the correct library versions.

In Ubuntu (and other debian-based distros) you can run the installer script and see if you can get all libraries.

For other distributions, check if the libraries are available in the package repositories.
I will not support other distributions, BUT if you want to set up the dependencies manually (compiling & installing the libraries), I could probably write a guide on how to do so.

Dependencies AGS Linux Runtime 2.72

To run the engine, you need:

* libaldmb1 (DUMB - Dynamic Universal Music Bibliotheque)
* liballegro4.2 (ALLEGRO 4.2.2, *patched*)

To use the ags-setup utility, you need:

* libgtk1.2 (GIMP Toolkit set of widgets for X)
* libxml1 (GNOME XML library)
« Last Edit: 11 Jun 2009, 21:23 by Electroshokker » Logged
Electroshokker
Member



« Reply #18 on: 13 Jun 2009, 08:36 »

I'm thinking of using gstreamer for video playback in linux.

Any thoughts? (gstreamer is the default back-end for Totem in Ubuntu 9.04)

I'll see if I can get video working...
Logged
Electroshokker
Member



« Reply #19 on: 14 Jun 2009, 17:07 »

Status update on the video issue:

Managed to figure out how to use gstreamer, only 1~2 major issues remain:

1) I haven't got any AGS 2.72 games which play video, can someone point me to one? I need one once I'm done compiling for testing purposes. (Any simple video being played in AGS will do)

2) Integrating with the ags engine: Currently the video player will open up inside a new window, rather then playing the video in the existing window.
 
Tested this with a simple GTK+ program. I know how to integrate it in the current window, but for that I need to somehow get the currently active AGS window ID in code.

-------------------------------------------------------------------------
...Not quite there yet, but just thought I'd give you guys an update.
Logged
Pages: [1] 2 3 Print 
AGS Forums  |  Using AGS  |  Technical Forum (Moderators: Gilbet V7000a, Scorpiorus, strazer)  |  Topic: GNU/Linux Port [AGS 2.72] RC2 - includes sound & video support « previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Page created in 0.17 seconds with 15 queries.