SDL Asylum Screenshot A port of Digital Psychosis' 1994 platform shooter for the Acorn Archimedes.

Young Sigmund has a few problems. To help him resolve his mental instability you must enter the surreal world of his inner mind and shut down the malfunctioning brain cells.

Guide Sigmund through the Ego, Psyche and Id zones - each one 300 times the size of the screen - to locate the eight renegade neurons, entering them one by one to find and trigger their self-destruct system.

License: free
Requirements: SDL, SDL_mixer

Sound:Play in X:Play in Console:Multiplayer:Network Play:3D Acceleration:Source Available:
yesyesyesnonoyesyes
Suggest an update

Comments

The supplied binary worked from the extracted directory which is just as well.

Unfortunately compiling it is messy. If I don't edit the Makefile and run the game from the extracted directory (the README states I needn't install it) it seg faults after pressing space on the start screen. Very briefly I can see Digital Pychosis in a gold curly font with the border graphics so it is finding the data files.

If I edit the makefile (INSTALLBIN=/home/woden/Source/asylum-0.2, INSTALLRESOURCEPATH=/home/woden/Source/asylum-0.2, INSTALLHISCORES=/home/woden/Source/asylum-0.2) and run it I get this :-

woden[asylum-0.2]$ make
Makefile:29: warning: overriding commands for target `/home/woden/Source/asylum-0.2'
Makefile:23: warning: ignoring old commands for target `/home/woden/Source/asylum-0.2'
Makefile:35: warning: overriding commands for target `/home/woden/Source/asylum-0.2'
Makefile:29: warning: ignoring old commands for target `/home/woden/Source/asylum-0.2'
gcc -x c++ -O2 -funsigned-char -DRESOURCEPATH=\"/home/woden/Source/asylum-0.2\" -DSCOREPATH=\"/home/woden/Source/asylum-0.2\" -o asylum asylum.c -lm -lSDL -lSDL_mixer -lstdc++
asylum.c: In function `void bonusplot()':
asylum.c:2982: warning: comparison is always false due to limited range of data type
asylum.c: In function `Mix_Chunk* make_sound(char, int, int, int, char)':
asylum.c:6138: warning: converting to `int' from `double'
asylum.c:6178: warning: converting to `Uint16' from `double'
asylum.c:6179: warning: converting to `Uint16' from `double'
asylum.c: In function `void sdl_music_hook(void*, Uint8*, int)':
asylum.c:6263: warning: converting to `short unsigned int' from `double'
asylum.c:6264: warning: converting to `short unsigned int' from `double'
woden[asylum-0.2]$ ./asylum
Sound disabled: loading sound effects failed
A file vital to the game cannot be loaded. Please reset your machine and try againwoden[asylum-0.2]$
woden[asylum-0.2]$

I don't understand why this doesn't work as I am currently in /home/woden/Source/asylum-0.2 . Also I think you should fix the limited data range warning above as that's going to be a bug.

There is a folder called highscores (it's empty) which I imagine you are going to save to? The Makefile states this is to be created in /var/games/asylum so I'm wondering how you are going to save to that!

The README states "the default keys are Z, X, ;, ." although I haven't found what "." does and it fails to mention Enter is fire. Perhaps Enter is supposed to be "."?

Thankfully the controls can be redefined but unfortunately the joystick doesn't work: int swi_joystick_read(int a,int* x,int* y) is empty.

"Save Settings" is interesting. I saw it once and then had to hunt it down. If you press Escape a menu pops-up. In-game there are two options otherwise there are three. To get the fourth option "Save Settings" you have to choose one of the first three and on returning to the menu the "Save Settings" option appears.
I've enjoyed what I've played of the game but there are some issues with the gameplay. The height of some of the platforms the guy has to jump onto are barely higher than the guy which makes the task tricky. The map I played was huge. I kept dropping down and I didn't think I was going to find the bottom!

Re: Interesting posted by anonymous on Sep 19 2007 3:59 PM
Hey,

Is there anyway of downloading and playing Asylum on pc? I have Windows XP but cannot find anywhere to download it.

Thank you in advance,

Tom

Re: Interesting posted by blotwell on Sep 20 2007 1:12 AM
It's definitely *possible* to make it work on Windows: it compiles and runs fine with gcc under Cygwin (the Linux download includes the source code). I'd like to build a Windows version to distribute which doesn't depend on Cygwin, but I haven't worked out how to do that yet. Any takers?
This time I modified the Makefile to install into /home/woden/Games/asylum-0.2 and "make install" as user :-

woden[asylum-0.2]$ make install
Makefile:29: warning: overriding commands for target `/home/woden/Games/asylum-0.2'
Makefile:23: warning: ignoring old commands for target `/home/woden/Games/asylum-0.2'
Makefile:35: warning: overriding commands for target `/home/woden/Games/asylum-0.2'
Makefile:29: warning: ignoring old commands for target `/home/woden/Games/asylum-0.2'
mkdir -p /home/woden/Games/asylum-0.2
chgrp games /home/woden/Games/asylum-0.2
chgrp: changing group of `/home/woden/Games/asylum-0.2': Operation not permitted
make: *** [/home/woden/Games/asylum-0.2] Error 1
woden[asylum-0.2]$

If I delete the chgrp lines (there are two) all I get is an empty /home/woden/Games/asylum-0.2.

Looking at the Makefile I'd say it was screwed.
Here's a simple Makefile that works :-

INSTALLBIN=$(HOME)/asylum
INSTALLRESOURCEPATH=$(HOME)/asylum/data
INSTALLHISCORES=$(HOME)/asylum/highscores

CC=gcc
CFLAGS= -x c++ -O2 -funsigned-char -DRESOURCEPATH=\"$(INSTALLRESOURCEPATH)\" -DSCOREPATH=\"$(INSTALLHISCORES)\"
LIBS= -lm -lSDL -lSDL_mixer -lstdc++

RESOURCES=data/Resources data/Ego data/Psyche data/Id data/Voices

all:
	$(CC) $(CFLAGS) -o asylum asylum.c $(LIBS)

clean:
	rm asylum

install:
	mkdir -p $(INSTALLBIN)
	mkdir -p $(INSTALLRESOURCEPATH)
	mkdir -p $(INSTALLHISCORES)
	cp asylum $(INSTALLBIN)
	cp -r $(RESOURCES) $(INSTALLRESOURCEPATH)

It still seg faults for me when pressing space on the start screen. Perhaps others will have better luck running their own binary.

Regards
Re: Makefile posted by blotwell on Aug 29 2007 1:51 AM

Thanks for the feedback! I had thought the difficulty of jumping onto some platforms was how the original author had intended the game, but since you commented on it I took another look and lo, behold and by golly there was in fact a bug. This is fixed in 0.2.1, and I tried to make the Makefile slightly simpler too.

The segfault on startup was tracked down by Dmitry Marakasov building the game on FreeBSD, and is fixed in SVN. And everything else you suggested ... I took note, it's on the wishlist. :)

I have been unable to get sound working with this great game. I find myself playing it on my A7000+ as the sound is kinda important. Please post back if anyone has sound working.

chrisclark781 at hotmail.com

Re: SOund posted by blotwell on Oct 16 2007 5:28 PM
Well, the sound works for me (as you might expect since I wrote it). But there's now a Fedora .rpm for Asylum, and the one change the packagers made to the source is the following, which they call "fixsound.patch"; you might try it, though I'm not sure why it should make a difference.

--- asylum-0.2.2/asylum.c.orig  2007-09-10 22:17:16.000000000 +0100
+++ asylum-0.2.2/asylum.c       2007-09-14 22:48:35.000000000 +0100
@@ -6445,7 +6445,7 @@
   }
  }
  SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO);
- sound_available=!Mix_OpenAudio(22050,AUDIO_U16LSB,2,1024);
+ sound_available=!Mix_OpenAudio(22050,MIX_DEFAULT_FORMAT,2,1024);
  if (!sound_available) fprintf(stderr,"Sound disabled: opening audio device failed: %s\n",Mix_GetError());
  c_array_initializers();
 /*MODE 15

Im looking to have this ported to MorphOS and im wondering if you could make Big Endian sources?
Re: Big Endian Source posted by blotwell on Oct 23 2007 4:50 AM

The problem seems to be little-endian ints in the data files; the code was assuming it could treat them as native ints. I've fixed several such places in the latest SVN, but I can't promise I found them all.

Try building the new version and let me know how it goes. You can also email me directly from the "developer contact" page on the Sourceforge site.

Re: Big Endian Source posted by anonymous on Oct 23 2007 6:42 PM
Lovely, should be done in the next day or so. Friend is porting it. i will post a link here when it is completed.
Re: Big Endian Source posted by anonymous on Oct 23 2007 7:23 PM
Big Endian issues remain!
Re: Big Endian Source posted by blotwell on Oct 25 2007 5:05 AM
I fixed one more similar place I missed last time. If you still have problems, a backtrace (e.g. from gdb) would be useful (assuming it's a crash at runtime).
Re: Big Endian Source posted by frostwork on Oct 25 2007 6:35 PM
seems to work now on linux-powerpc - at least i set keyconfig and walked around a bit
now time's up to play it :) - thank you very much for another kewl oss game!
Re: Big Endian Source posted by blotwell on Oct 28 2007 6:45 AM
Thanks for reporting your success! It's very useful since I don't have a big-endian machine to test on.
When i put this in fullscreen its just the same size in the middle of the screen, any reason for this?
Re: Fullscreen posted by blotwell on Oct 28 2007 1:34 AM

That means SDL doesn't know how to deliver a 320x256 fullscreen mode. Probably some officious person removed it from your X installation because nobody would ever need something so archaic. (What platform or distribution are you using?)

The solution is to modify your XF86Config, but that may be nontrivial if you don't already know how to do it (try Google.)

The other solution is to design a new set of sprites for Asylum at a more reasonable resolution (640x512 or higher) and send them to me, which will give me an incentive to add higher resolution support to the code :).

Re: Fullscreen posted by anonymous on Nov 12 2007 8:17 PM
You can scale them with gimp.
Re: Fullscreen posted by blotwell on Mar 21 2010 7:16 PM
As of 0.3.0 this should be much less of a problem, since Asylum now supports higher screen resolutions (currently up to 1280x1024) via the new OpenGL rendering.
Hey

Trying to compile on macos.

I fixed the issue wth SDL libraries and includes but i get this error when compiling

/usr/bin/ld: Undefined symbols: _main

Hope you can shed some light on this!

Re: MACOSX Compiling posted by sijmen on Nov 11 2007 5:16 PM
You can fix that by changing the line: int main() to int main(int argc, char *argv[]).
You given up responding on here?
Re: blotwell posted by blotwell on Nov 10 2007 6:28 AM

This is a general discussion forum, so I reply to questions to which I know the answer and leave the others for someone who does ... if you want them treated as support requests you should be on the sourceforge site :).

On the OS X question below, assuming that's what you wanted an answer to: I know nothing about OS X, which is why I don't feel I'm the best person to respond. If you post the command line you're using to compile, and how you fixed the issue with SDL, I'll look over them for obvious mistakes, but I still think you'd be better posting on an OS X-related board. Heck, you'd be better posting in the general happypenguin forums, simply because they have higher readership.

Re: blotwell posted by sijmen on Nov 11 2007 5:15 PM
I don't know what happened to my earlier comment here, but I tried an OS X port, without success. It's probably a bit easier when you port it the Unix way, but the Mac way - as a standalone .app - is pretty difficult. Not in the least because the source is so messy, almost as if it was deliberately obfuscated.
not yet rated? How come?
I'd say it's a good port of an (admittedly very) old game, but still fun to play and I did see no showstoppers. I like platformers, so that's a 4 from my side :)

Pit

Log in or register to rate this game or post a comment.