Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Electroshokker on Tue 04/08/2009 07:05:09

Title: GNU/Linux Port [AGS 3.1.2 SP1 - beta 3]
Post by: Electroshokker on Tue 04/08/2009 07:05:09
Admins, please keep both this thread and the AGS 2.72 one stickied. (as neither is considered final and needs further testing and development)

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

So yes, it's finally here: a 3.1.2 SP1 build (http://www.t-vandepoele.be/AGS/files/testbuilds/AGS%203.1.2%20SP1%20beta%203.tar.gz).  :=

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

Please submit any and all bugs you encounter!
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 1]
Post by: Pumaman on Tue 04/08/2009 17:56:08
Excellent work! :D

The Linux port is back!!  :=
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 1]
Post by: on Tue 04/08/2009 21:16:32
I just read in SSH's blog about this! It is awesome! Thanks Electro!
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 1]
Post by: Joseph DiPerla on Tue 04/08/2009 21:40:19
 :o
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 1]
Post by: strazer on Mon 17/08/2009 15:21:32
I must be doing something wrong, I cannot get any game to run, I always get the resolution error message. Can you post a sample config file we can use that definitely works on your system?
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 1]
Post by: Electroshokker on Tue 18/08/2009 11:43:25
Quote from: strazer on Mon 17/08/2009 15:21:32
I must be doing something wrong, I cannot get any game to run, I always get the resolution error message. Can you post a sample config file we can use that definitely works on your system?

I'll try finishing the new config utility this week(end?).

I'm currently swamped with work and the move to my new appartment. I'll put a sample config file online soon, though.
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 1]
Post by: bearseatbeats on Tue 18/08/2009 16:42:01
I'm also having problems running 3.1.2 and also the 2.72 runtimes.

I seem to have the correct libraries installed and I thought I followed the instructions for install.sh correctly, but when I try to run the AGS312 or AGS272 runtimes (on different games, obviously), I get absolutely nothing. No errors, etc. When I run from the config utility (save and run), it just shuts down and nothing happens. I can't get the runtimes to start from a terminal either but that may be due to my n00biness (well, not a complete newbie, but close). Is there an exact command I can try to run that would at least give me an error message that I can report? I'm on Ubuntu 9.04 w/ nvidia drivers.

I'm not home so I can't try anything right now, but I could later.

Thanks!

Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 1]
Post by: Electroshokker on Tue 25/08/2009 17:31:09
Looks like there's some more problem with this build. I'll try to resolve all problems asap.

bearseatbeats, the 2.72 runtime should work flawlessly. Did you change the game runtime filename (the .exe file) to 'ac2game.dat'?

Also, try to run it from the command line to get more details. (install the nautilus command line package from the package manager, it gives you a handy extra button in the right-click context menu which allows you to quickly open up a terminal)
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 1]
Post by: deadsuperhero on Wed 09/09/2009 07:31:59
No matter what resolution I put in the config settings, I always get the equivalent of this:

QuoteUnable to initialize your audio hardware.
[Problem: No supported synth type found]
There was a problem initializing graphics mode 640 x 400 (32-bit).
(Problem: '')
Try to correct the problem, or seek help from the AGS homepage.

Possible causes:
* your graphics card drivers do not support this resolution. Run the game setup program and try the other resolution.
* the graphics driver you have selected does not work. Try switching between Direct3D and DirectDraw.
* the graphics filter you have selected does not work. Try another filter.

Not quite sure what to do here.
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 2]
Post by: Electroshokker on Fri 18/09/2009 21:41:32
A new beta is up. This time without the game-breaking bug and with an updated setup utility.

Enjoy!  8)

(Oh, and don't forget to file bug reports if you have any problems with the engine or the setup utility!)
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 2]
Post by: RickJ on Wed 30/09/2009 17:41:00
Will this work on an 64-bit AMD machine?
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 2]
Post by: Electroshokker on Thu 01/10/2009 13:39:36
Quote from: RickJ on Wed 30/09/2009 17:41:00
Will this work on an 64-bit AMD machine?

Yes, if you get all the required 32-bit libraries. (Which the installer script does for you on Ubuntu Linux, though there might be issues with the gstreamer video plugin libraries)
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 2]
Post by: Joseph DiPerla on Mon 05/10/2009 16:17:30
For anyone who doesn't know....

Be sure to open a terminal window. And where the file install.sh is located type in:
sudo ./install.sh and it should take care of everything you need.
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 2]
Post by: redspark on Wed 07/10/2009 13:00:06
Is there any chance that this port can be used as a basis for the OS X port?  I think there are many who would like to see a native OS X port.  I'd do it, if I knew how.
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 2]
Post by: xenogia on Thu 08/10/2009 05:54:50
I get a Segmentation Fault when I try to run the setup program.  Using Ubuntu 32-bit with all appropriate libraries installed.
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 2]
Post by: Electroshokker on Fri 09/10/2009 11:26:52
Quote from: Xenogia on Thu 08/10/2009 05:54:50
I get a Segmentation Fault when I try to run the setup program.  Using Ubuntu 32-bit with all appropriate libraries installed.

What's the exact error you're seeing in the command terminal? (segmentation fault is a bit vague, and can point to numerous things)
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 2]
Post by: Radiant on Mon 12/10/2009 21:00:13
It looks nice, but it runs very slowly on my Ubuntu machine, to the point where it takes 10 seconds for a fadeout to complete. Are my system specs too low or am I doing something wrong here?
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 2]
Post by: Electroshokker on Tue 13/10/2009 14:28:57
Quote from: Radiant on Mon 12/10/2009 21:00:13
It looks nice, but it runs very slowly on my Ubuntu machine, to the point where it takes 10 seconds for a fadeout to complete. Are my system specs too low or am I doing something wrong here?

Nope, I got the same problem. I've been looking into it, but doesn't seem I'm gonna figure this one out soon.
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 2]
Post by: Angelus3K on Thu 29/10/2009 17:44:14
Would this also allow AGS games to be ran under Yellow Dog Linux on PS3?
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 2]
Post by: Joseph DiPerla on Thu 29/10/2009 19:09:12
I think he mentioned that with a little tweaking, you should be able to get it working under any kind of linux os.

EDIT: Here is where he said it: http://www.adventuregamestudio.co.uk/yabb/index.php?topic=37968.msg499586#msg499586
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 2]
Post by: Cephas on Thu 05/11/2009 18:58:52
I tried this program and had the same problem of speed.
However when I changed alsa to oss in winecfg then used...
env WINEPREFIX="/home/####/.wine" MIDIDEV=/dev/midi3 wine "C:\AGS\5DAYS\5days.exe"
as a launcher sound worked.  ;)
Hope this helps.
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 2]
Post by: Lantizia on Tue 26/01/2010 23:55:40
Hey I've tried this build and some of the older builds before I was told that the Linux version of AGS doesn't support plugins.  Basically I'm trying to play MMD (Maniac Mansion Deluxe) on Linux natively without using Wine and I get this message...

Script link failed: Runtime error: unresolved import 'GetFlashlightMinLightLevel'

Now the AGSflashlight.dll file is there... but can you confirm this latest build still doesn't have plugin support or when that might be on the cards?
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 2]
Post by: Gilbert on Wed 27/01/2010 04:18:04
I think even plugin support was added to the Linux engine (which I think is not the case) you still need to have the plugins recompiled for Linux for them to work, so the dlls just couldn't be used directly anyway. For games using plugins your best bet is to use Wine or Virtualisation.
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 2]
Post by: Lantizia on Wed 27/01/2010 18:45:52
Well AGS Flashlight is the only plugin that Maniac Mansion Deluxe uses...

Does anyone know where I can get from/if available the source code for this plugin - or perhaps a Linux library of the same plugin?  I really would love to get Maniac Mansion Deluxe running on Linux (without wine) just as I have the original Maniac Mansion running on Linux (again without wine but with ScummVM).

I could even package up a fully working Linux version as a .deb and .rpm.
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 2]
Post by: SuperDre on Thu 25/02/2010 19:13:46
Quote from: Angelus3K on Thu 29/10/2009 17:44:14
Would this also allow AGS games to be ran under Yellow Dog Linux on PS3?
No it won't as the current binaries are x86 binaries only (and since any linux on the PS3 is PPU based it's not possible unless a specific compile is done, which would require the source-code and I doubt Electroshokker has a PS3 or is willing to go through the trouble of trying to get it to compile, and I wouldn't blame him hehe..)..
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 2]
Post by: Electroshokker on Sat 06/03/2010 22:36:27
Sorry I haven't been around much lately. Work's been killing me (both professional and personal), it's almost impossible to find any time for personal projects. (though I try)

I can't promise anything at this point, but I do intend to update the linux port soon.

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

Though I intend to try adding support for other architectures at some point in the future, that's waaay in the future, and will depend on the availability of cross-platform compilers. (as I don't own a PS3, PDA, smartphone or any of that stuff)
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 2]
Post by: SSH on Thu 18/03/2010 13:10:10
Hi Electro, I know you've not got much time but the fade in/out problem is terrible. Any chance that you could introduce an option to make fades just be instant room changes instead until it is fixed properly?

Thanks,

Andrew
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 2]
Post by: Electroshokker on Fri 19/03/2010 06:00:40
Quote from: SSH on Thu 18/03/2010 13:10:10
Hi Electro, I know you've not got much time but the fade in/out problem is terrible. Any chance that you could introduce an option to make fades just be instant room changes instead until it is fixed properly?

Thanks,

Andrew

I'll look into it soon, I promise. I cleared the upcoming weekend for my personal projects.
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 2]
Post by: Electroshokker on Sun 21/03/2010 11:25:10
A temporary fix is up for the fading problem. (See first post)
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 2]
Post by: SSH on Mon 22/03/2010 13:00:41
Thanks, dude!
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 2]
Post by: -x- on Mon 07/02/2011 07:43:19
I have problems running Maniac Mansion Deluxe (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=42799.msg567985#msg567985) with the two linux builds because of having the same popular errors than other users (http://www.adventuregamestudio.co.uk/yabb/index.php?topic=39098.msg540305#msg540305):


$ ./AGS272
./AGS272: symbol lookup error: /usr/lib/liballeg.so.4.2: undefined symbol: _blender_trans24


It seems that it is because of a wrong compiled version (http://www.allegro.cc/forums/thread/595777) of AGS. Is there a way to fix this?
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 3]
Post by: Electroshokker on Wed 30/03/2011 12:30:01
New beta is up. Like the new 2.72 build, it includes ags & dumb as static libraries.

Please test.
Title: Re: GNU/Linux Port [AGS 3.1.2 SP1 - beta 3]
Post by: strazer on Fri 01/04/2011 15:22:50
The threads have been merged, please continue discussion here: http://www.adventuregamestudio.co.uk/yabb/index.php?topic=37968