View previous topic :: View next topic |
Author |
Message |
aethyr Veteran
Joined: 06 Apr 2003 Posts: 1085 Location: NYC
|
Posted: Wed Oct 22, 2003 5:12 am Post subject: 'Underground' Adventure Games |
|
|
Well, in honor of my new guru status, I've decided to do a bit of a HOWTO...
I've always enjoyed adventure gaming, but unfortunately it seems to be a dying hobby. The games that companies like Sierra and Lucasarts developed are definitely some of the best ever made. Fortunately, we can play many of these classics on Linux thanks to the hard work of people like Dosbox (http://dosbox.sourceforge.net), ScummVM (http://scummv.sourceforge.net), FreeSCI (http://freesci.linuxgames.com), etc...
However, there really isn't too much in the way of new adventure games.
Well, I remember reading about Adventure Game Studio (http://www.agsforums.com) awhile ago. Unfortunately, it was only for Windows, however, it seemed some people were working on neat projects. Yesterday I was on adventuregamers.com and I noticed that they have an 'Underground' section (http://adventuregamers.com/underground). After some reading, I was impressed with how good these homemade games looked.
Luck was on my side though, as unbeknownst to me AGS had been ported to linux. So I decided to give a it a shot and see what some of these games were like, and let me just say I've been surprised, in a good way. I just finished 5 Days a Stranger (http://www.fullyramblomatic.com/5days) last night, and it was a pretty good mystery game. I'm in the middle of playing Bestowers of Eternity (http://www.davelgil.com/ags/eternity/eternity.zip) and I've been enjoying that as well. I also recently began playing the remake of King's Quest I(http://www.tierraentertainment.com).
Anyway, I figured I'd write up a short "HOWTO Play AGS Games with Linux".
Here's the prerequisites (not sure if these are everything, feel free to correct me if you have problems):
1. Dependencies: Code: | ACCEPT_KEYWORDS=~x86 emerge -p =x11-libs/gtk+-1.2.10-r10 =/gnome-base/libglade-0.17-r6 allegro | Note, I know these dependencies may suck. But, I'm not sure if gtk1/libglade are mandatory for running the games. I do know they are necessary for the setup program, but I'll post mine at the bottom along with some explaination and you may be able to get around it. I emailed the author about rewriting the setup program with GTK2/libglade2.
If you'd like to try running AGS without ags-setup, copy my config files.
2. A game. There are two types of game packages: either a regular zip file, or one that uses a windows installer. If you want to use a game with a windows installer, you either have to unpack it in windows and zip it up, or you can run the installer with wine. Code: | ACCEPT_KEYWORDS=~x86 emerge -p wine | You can get a zipped game, 5 Days a Stranger, here (1.22MB http://www.fullyramblomatic.com/5days/5days13.zip). You can get a windows installer game, KQ1VGA, here (20.5 MB http://tierra.stablenetwork.com/KQ1/KQ1VGA.EXE ; optional music pack 26.8MB http://tierra.stablenetwork.com/KQ1/KQ1MUSICPACK.EXE ; optional speech pack 2.89MB http://tierra.stablenetwork.com/KQ1/KQ1SPEECHPACK.EXE).
3. AGS. You can get the newest version here (673kB http://drevil.warpcore.org/ags/). Also for music you need this file (1.4MB http://drevil.warpcore.org/ags/files/midiptch.tar.bz2).
OK, that's all the prerequisites.
Now, time to get the games running. Assuming you just downloaded all that stuff into your home directory, for 5 Days a Stranger:
Code: | $ mkdir ~/ags
$ mv 5days13.zip ags-v2* ~/ags
$ cd ~/ags
$ tar xfvj ags-v2_56_636.tar.bz2
$ mkdir 5days
$ mv 5days13.zip 5days
$ cp ags ags-setup 5days
$ cd 5days
$ unzip -x 5days13.zip
$ mv 5days.exe ac2game.dat
$ tar xfvj ~/ags/midiptch.tar.bz2
$ ./ags-setup
Check use digital music pack if available (isn't available for me on this game, but it says to check it in the FAQ). Leave graphics at 320x200 (it's the native resolution of this game). You can leave the sound as autodetect, it works for me. Click the Save button.
$ ./ags
Enjoy. | For KQ1 VGA, remember you either need wine, or to install the files in Windows and zip them up for Linux. I emailed the author, and he says he hopes to have native installations up soon, but for now, it's the best we can do.
Code: | $ mkdir ~/ags
$ mv KQ1* ags-v2* ~/ags
$ cd ~/ags
$ tar xfvj ags-v2_56_636.tar.bz2
$ mkdir kq1
$ mv KQ* kq1
$ cp ags ags-setup kq1
$ cd kq1
$ wine KQ1VGA.EXE (install to default dir)
$ wine KQ1MUSICPACK.EXE (install to default dir)
$ wine KQ1SPEECHPACK.EXE (install to default dir)
$ mv ~/.wine/fake_windows/Program\ Files/Tierra/KQVGA/* ~/ags/kq1
$ mv kqvga.exe ac2game.dat
$ tar xfvj ~/ags/midiptch.tar.bz2
$ ./ags-setup
Check use digital music/speech pack if available (they are available for me in this game). Leave graphics at 320x200 (it's the native resolution of this game), you can leave the sound as autodetect, it works for me. Click the Save button
$ ./ags
Enjoy. Note, if it works, you can cleanup the larger downloaded files
$ rm KQ*EXE
|
That's all there is to playing these AGS games in Linux. Feel free to explore http://www.agsforums.com and http://www.adventuregamers.com/underground to find other games you might enjoy playing :)
One final note, unfortunately the AGS game editor isn't currently available for Linux. If you'd like to design games as well as play them, send an email to Chris Jones (programmer of AGS) expressing your interest.
Here's to many more years of adventure gaming :)
________________________________________
Here's my config file for 5 Days a Stranger, the filename is acsetup.cfg Code: | [misc]
cachemax=5120
screenres=0
windowed=0
forceletterbox=0
antialias=0
[sound]
digiid=-1
midiid=-1
usevox=0
usespeech=0
[language]
| And my config file for KQ1VGA, the filename is again acsetup.cfg Code: | [misc]
cachemax=5120
screenres=0
windowed=0
forceletterbox=0
antialias=0
[sound]
digiid=-1
midiid=-1
usevox=1
usespeech=1
[language] |
Last edited by aethyr on Mon Aug 30, 2004 2:18 am; edited 1 time in total |
|
Back to top |
|
|
Anime_Fan Guru
Joined: 01 Jul 2003 Posts: 366 Location: Linköping, Sweden
|
Posted: Wed Oct 22, 2003 8:34 am Post subject: |
|
|
Nice guide... Now for me to try it out. My internet connection seems slow at the moment, but I'll try it out ASAP.
They don't make games as they used to. |
|
Back to top |
|
|
BlastM Tux's lil' helper
Joined: 07 Mar 2003 Posts: 133 Location: Newcastle, Australia. 7487 miles south-west of America.
|
Posted: Tue Nov 25, 2003 12:05 am Post subject: |
|
|
Thanks for the guide!
Hopefully some of these games can fill the void between now and Adonthell 0.4. |
|
Back to top |
|
|
ChojinDSL l33t
Joined: 07 Jul 2003 Posts: 784
|
Posted: Mon Mar 29, 2004 2:42 am Post subject: |
|
|
There seems to be a linux port of the AGS engine for linux in the AGS homepage. I think it only allows you to run the games. But at least thats a start. |
|
Back to top |
|
|
bonedaddyhimself Tux's lil' helper
Joined: 24 Jan 2004 Posts: 101
|
Posted: Tue Mar 30, 2004 5:17 pm Post subject: |
|
|
Thanks for the info aethyr.
I plan on getting an AtariST emulator up and running eventually. There were some excellent adventure games for it, with graphics on par with the one's noted here.
bd |
|
Back to top |
|
|
aethyr Veteran
Joined: 06 Apr 2003 Posts: 1085 Location: NYC
|
Posted: Tue Mar 30, 2004 6:02 pm Post subject: |
|
|
I actually just fired up Hatari last night to play some Llamatron ;) Fun stuff! |
|
Back to top |
|
|
jaingaurav n00b
Joined: 10 Dec 2003 Posts: 62 Location: Guelph, Canada
|
Posted: Thu Apr 01, 2004 5:23 am Post subject: |
|
|
This is a great little tutorial thanks.. used it successfully for KQ1VGA and KQ2VGA
Unfortunately though for some games it seems to have a segmentation fault when running ags as a non-root user... dunno whats causing that problem |
|
Back to top |
|
|
eGore911 Apprentice
Joined: 11 Mar 2003 Posts: 290
|
Posted: Thu Apr 01, 2004 12:14 pm Post subject: |
|
|
Since you were able to post all the code, why not make an ebuild out of it? |
|
Back to top |
|
|
jaingaurav n00b
Joined: 10 Dec 2003 Posts: 62 Location: Guelph, Canada
|
Posted: Thu Apr 01, 2004 3:31 pm Post subject: |
|
|
It doesn't seem that an ebuild may suit this process as then we would need an ebuild for each and every ags game..
However.. am I right in saying that the ags and ags-setup script can be a universal program, and thus can be installed in /usr/bin ? |
|
Back to top |
|
|
aethyr Veteran
Joined: 06 Apr 2003 Posts: 1085 Location: NYC
|
Posted: Thu Apr 01, 2004 5:30 pm Post subject: |
|
|
jaingaurav wrote: | However.. am I right in saying that the ags and ags-setup script can be a universal program, and thus can be installed in /usr/bin ? |
Actually, I think the binaries have to be in the game's directory... I'm not 100% sure though (haven't tried it otherwise), but that's how it's also described when setting it up on the main page's FAQ. |
|
Back to top |
|
|
jaingaurav n00b
Joined: 10 Dec 2003 Posts: 62 Location: Guelph, Canada
|
Posted: Fri Apr 02, 2004 7:33 am Post subject: |
|
|
just checked it out... ags and ags-setup are universal scripts,,, you need to just make sure that they are run from the proper game directory... I think the midipatch though still needs to be in each directory.
So one could make an ebuild for ags... though proper instructions need to be given that they be run from the proper directory... something like the scummvm frontend might be a better way to approach this aspect.. in scummvm you simply set the game as a command line arguement |
|
Back to top |
|
|
Beetle B. Guru
Joined: 01 Mar 2003 Posts: 524
|
Posted: Sun Apr 25, 2004 4:24 am Post subject: |
|
|
Hi,
Can't get ags to work on my side. When I try running 5steps, I get:
Code: |
./ags: relocation error: ./ags: undefined symbol: _mask_mmx_16
|
This is after I just installed Allegro 4.1.12 (also tried 4.1.11) - both are masked.
I'm assuming Allegro is what's causing the problems. Any ideas? _________________ Beetle B.
Please update the table of equivalents.
A Firefox guide. |
|
Back to top |
|
|
aethyr Veteran
Joined: 06 Apr 2003 Posts: 1085 Location: NYC
|
Posted: Sun Apr 25, 2004 4:57 am Post subject: |
|
|
Hm, not sure...
The first thing I would try would be to reduce your CFLAGS to just "mcpu=i686 -O2" and try compiling again...
What version of gcc do you have? What version of nasm? |
|
Back to top |
|
|
Beetle B. Guru
Joined: 01 Mar 2003 Posts: 524
|
Posted: Sun Apr 25, 2004 4:16 pm Post subject: |
|
|
Quote: | The first thing I would try would be to reduce your CFLAGS to just "mcpu=i686 -O2" and try compiling again... |
Tried it - same problem.
GCC = 3.3.2
NASM = 0.98.38 _________________ Beetle B.
Please update the table of equivalents.
A Firefox guide. |
|
Back to top |
|
|
aethyr Veteran
Joined: 06 Apr 2003 Posts: 1085 Location: NYC
|
Posted: Sun Apr 25, 2004 6:44 pm Post subject: |
|
|
Hm, after googling around for "relocation error" it seems that there might be a bad package somewhere along the chain.
Have you tried a different version of AGS?
You can find all the versions at:
http://drevil.warpcore.org/ags/ |
|
Back to top |
|
|
Beetle B. Guru
Joined: 01 Mar 2003 Posts: 524
|
Posted: Mon Apr 26, 2004 3:53 am Post subject: |
|
|
Quote: | Hm, after googling around for "relocation error" it seems that there might be a bad package somewhere along the chain. |
Hmm...I presume you mean on my side?
I actually do have a version from about September or so, and I use it. Doesn't have the Allegro dependency, so works fine. But I was just wondering, as apparently others got it to work. _________________ Beetle B.
Please update the table of equivalents.
A Firefox guide. |
|
Back to top |
|
|
aethyr Veteran
Joined: 06 Apr 2003 Posts: 1085 Location: NYC
|
Posted: Mon Apr 26, 2004 4:53 am Post subject: |
|
|
Works here with:
ags-v2_60_693.tar.bz2 and
ags-v2_56_6.tar.bz2
along with:
nasm-0.98.38
allegro-4.1.11
gcc 3.3.2
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -mfpmath=sse -mmmx -msse" |
|
Back to top |
|
|
Beetle B. Guru
Joined: 01 Mar 2003 Posts: 524
|
Posted: Fri Jul 23, 2004 4:21 am Post subject: |
|
|
Darn it!
Still doesn't work with the recent binaries (that require Allegro).
7 Days a Skeptic (sequel to 5 Days a Stranger) is out, and requires the latest (2.60.x) binary! _________________ Beetle B.
Please update the table of equivalents.
A Firefox guide. |
|
Back to top |
|
|
aethyr Veteran
Joined: 06 Apr 2003 Posts: 1085 Location: NYC
|
Posted: Fri Jul 23, 2004 6:01 am Post subject: |
|
|
I dunno what to tell you... Are you using prelinking? Did you try emailing the author of the program? drevil@warpcore.org
What are your USE flags? Here's what it looks like for me when I emerge allegro 4.1.14:
Code: | media-libs/allegro-4.1.14 [4.1.11] +X +alsa -arts +esd -fbcon +mmx +oss +sse -static +svga -tetex |
Maybe try it with and without the mmx use flag? Also try setting your CFLAGS to plain -O2.
According to http://cvs.sourceforge.net/viewcvs.py/alleg/allegro/src/i386/iscanmmx.s?rev=1.4&view=auto (which is the file that contains the _mask_mmx_16 statement:
Code: | * MMX polygon scanline filler helpers (gouraud shading, tmapping, etc).
* MMX instructions will be #ifdef'ed out if your assembler doesn't
* support them. |
Maybe there's something up with your nasm? You could try reemerging that with only "-O2" in your CFLAGS as well. |
|
Back to top |
|
|
manywele l33t
Joined: 12 Jul 2003 Posts: 739 Location: Inside
|
Posted: Mon Aug 30, 2004 1:53 am Post subject: |
|
|
I tried following the instructions but running ags craps out with
Code: | ./ags: symbol lookup error: /usr/lib/liballeg.so.4.1: undefined symbol: _colorconv_blit_16_to_8
|
That's with
allegro-4.1.15
ags-v2_60_693
Any ideas? Google is of no help. |
|
Back to top |
|
|
ssvb Tux's lil' helper
Joined: 06 Nov 2003 Posts: 96
|
Posted: Sun Sep 05, 2004 7:14 pm Post subject: |
|
|
You can try revdep-rebuild, hopefully that will fix the problems.
Allegro 4.1.x versions are not binary compatible with each other (they are unstable versions after all), so you need to rebuild all the allegro applications after upgrading. |
|
Back to top |
|
|
manywele l33t
Joined: 12 Jul 2003 Posts: 739 Location: Inside
|
Posted: Sun Sep 05, 2004 8:31 pm Post subject: |
|
|
No, I've tried rebuilding allegro, tried revdep-rebuild, tried ags-v2_56_636.tar.bz2, still getting the same error.
I get the same error if I reemerge allegro and then try to start a game (say atanks) that depends on allegro but hasn't been rebuilt yet. Reemerging the game makes it work again and revdep-rebuild doesn't pick up that it needs to be reemerged. I don't understand why that should be.
Other ideas/suggestions? |
|
Back to top |
|
|
|