Hexen 2 on YDL 6

4/6/08:  Updated ppc rpm file(s) are now hosted at the Hammer of Thyrion SourceForge site.

Here’s a youtube video showing Hexen 2 running on Yellow Dog 6 for PS3. This is made possible by the awesome Hammer of Thyrion project on Sourceforge. Like Quake 2, it has a software rendering mode that the Playstation 3 handles very well.

While there are no PPC RPM packages listed, there’s a source package file on the project’s download page which makes installing this one much easier than building from the source alone. I downloaded the hexen2-1.4.2-1.src.rpm file, then copied it to my /usr/src/yellowdog/SRPMS folder. Then from the command line, I said:

cd /usr/src/yellowdog/SRPMS
sudo setarch ppc rpmbuild --rebuild --ppc hexen2-1.4.2-1.src.rpm

I was pleasantly surprised to see it go through the entire process without a hitch! If you’ve played with many open source projects you’ll know this isn’t always the case. Moving to my /usr/src/yellowdog/RPMS folder I found the hexen2-1.4.2-1.ppc.rpm, hexen2-debuginfo-1.4.2-1.ppc.rpm, and hexenworld-1.4.2-1.ppc.rpm it had generated. So I just browsed to it with the file manager and double-clicked on the hexen2-1.4.2-1.ppc.rpm file to start the install. Again, no problems at all. If you run into trouble here, see my list of Third party repos for Yellow Dog 6. Rebuilding the package will require SDL-devel, at least.

After installing from the new hexen2-1.4.2-1.ppc.rpm I saw I had a Hexen 2 menu item under Applications -> Games. Of course now I needed the data files for Hexen 2. If you want to use the demo files you need version 1.11 of the Hexen 2 demo. Just search Google for hexen 2 demo 1.11 and you should find it available from several sources.

The Hexen 2 demo comes in the form of an .EXE file, but that’s OK — you can still use the unzip command to extract the file. For example, assuming you have downloaded the file to your Desktop, open a terminal window and:

unzip -j ~/Desktop/h2demo.exe Install/Hexen2/data1/*.pak

That will extract the pak0.pak file to your current directory (the -j switch tells unzip you just want to extract the file not create directories). Then you need to move the pak0.pak file to the necessary location: /usr/games/hexen2/data1

sudo mv pak0.pak /usr/games/hexen2/data1

After that, you should be ready to run Hexen 2. If you want to use the full version of Hexen 2, see the readme on the Hammer of Thyrion project page for details.

Start Hexen 2 from the menu item Applications -> Games -> Hexen 2. This should bring up a Hexen II Launcher window. Uncheck the box next to OpenGL, optionally leave Full Screen checked, and select SDL for sound, sample rate 48000 (optional). Without OpenGL checked it will allow you to select a max resolution of 640×480 — don’t worry, you can change it later in the game menu. Finally, click on Play Hexen II. If everything went well you should be up and running!

On my system I’m running at 1280×720, but the game starts at 640×480 at first. If I bring up the game menu I can select Options -> Video Modes and change it to 1280×720 (you can see me doing that in the video).

Maybe they’ll host PPC rpm files on the Hammer of Thyrion page so you won’t have to go through the process of rebuilding the source package… If not, I created a Yellow Dog Linux group on Yahoo! Groups that has some limited file storage. You have to register (free) with Yahoo Groups to access it. In the files area you’ll find a ready-made hexen2-1.4.2-1.ppc.rpm file, along with one I created for Quake 2: quake2-r0.16.1-ydl6.ppc.rpm.

Hopefully all of this is OK with everyone involved … :D

do you no why yellowdog_board is down. Im trying to get you article on how to make my sixaxis wireless

No, I don’t know why the board is down — it’s a bit of a mystery. ;-)

I have a new forum up:
http://forums.ps3bodega.com/

Look in the Guides & How-to Articles section.

I remember seeing you article on yellowdog-forums, so when i was ready the site was down. Looked every where for a subsitute but not explained as well as yours. This being said, Thanks, really. You got anything on how to compile mame to work on my ps3 yld6 linux.

Also on the new forum, look under Gaming & Emulation (just posted it).

Whilst it works I cannot get the zoom to zentre on Quake 2 it always seems to be in topleft of screen quake2 that is not the zoom.
Also gconf-editor is not recognised in YDL

Not sure I understand … what resolution are you running on your desktop, and at what resolution are you running quake2 full screen?

Re: gconf-editor, you just need to install it first (it’s included in yellowdog-base)
yum install gconf-editor

awesome yellowdog-board.com is back up and running ;-)

I have the same new Hitatchi hard drive, can you tell me how to format my old 80 GB ps3 Hard Drive so I can use it as an external drive for my ps3 plugged into the usb

Assuming you’re using YDL6, one way to do it would be to install this version of gparted:

http://pleasantfiction.ipower.com/ps3linux/ps3bodega/gparted-0.3.3-3.ppc.rpm

And I would strongly suggest reading about how to use gparted before using it — wouldn’t want you partitioning / formatting the wrong drive! ;)

http://gparted.sourceforge.net/manpage.php

Also, you should be able to determine which device it is after you plug it in with:

su -l
fdisk -l

(those are lowercase l’s, not number 1’s)

If you have trouble, please post on yellowdog-board.com or forums.ps3bodega.com.

I figured it out finally thanks anyway

hi, really good tutorial. I got everything working *nearly*
cant seem to get past the

LoadLibrary(”ref_softx.so”) failed: No such file or directory

error when I boot up. Its only building ref_softsdl for me as well
any ideas??

You must be compiling Quake2? The comments don’t always come up under the correct post here … I’ll need to go back and look at how I launch it … I’ve created an RPM package for it since that post — if you’re running YDL6 on PS3 you can install it with that, instead … you can find it here:

http://pleasantfiction.ipower.com/ps3linux/ps3bodega/repodata/repoview/Amusements.Games.group.html

OK — this is how I’m starting it:

cd /your/quake2/folder

./sdlquake2 +set vid_ref=softsdl

Reference link:
http://www.yellowdog-board.com/viewtopic.php?f=19&t=2937#p10945

wow thanks for the quick reply! i am compiling quake2.. noticced i don’t hax x11r6 libraries .. at least where the make script is looking for them - i’ll try your rpm first though :)

yeah i have ydl6 on my ps3

yeah i start it in the same way, do i need to set some kind of env var to tell it where to find the file?

Glad that worked for you …

Occasionally it crashes (segmentation fault) at startup but will usually run on repeated attempts … never figured out why it does that and haven’t had the motivation to try a debug build and see what the backtrace looks like. Most of the time it starts up with no problem.

Anybody get the MIDI music for heXen II to work? Mine doesn’t play.. :/

Hi Billb. First off, I wanna say thanks thanks THANKS for the great tutorials. I would’ve never in a million years been able to get SDLMame up without them.

And the scaler is greatness, because I set it to two, don’t have to change anything about the audio and even leave autoframeskip to 0 and my games run at 99+%. You’re deifnitely the man.

One thing I need help with though, is setting up the key inputs through gconf-editor. I have it installed and have played around with the command lines, but I can’t figure out for the life of me what to put in there. Could you let me know?

@onehand — seems like mine wasn’t playing either last time I tried it … will look into it when I get a chance. Could be something to do with the SDL_mixer version.

@TJ Duckett — I’ll try to write a more detailed tutorial regarding setting up the scaler tool … It has been a while since I set it up … I believe the way I did it was to write scripts for starting the scaler at different scale levels and one for killing the process, then assigned those scripts as commands for the different keys. When I get a chance to put up more detailed info I’ll post it on forums.ps3bodega.com. :)

And yeah, that SPE scaler tool is nice. I hope the author does more with it!

Oh, I know how to use the scaler (I do it straight from the terminal with scaler -s -t), but, I don’t know how to put translate commands into the keyboard configurer value.

I’ll a value under command_1 that just says “scaler -s * -t ***” But then when I press the keys I’ve assigned it to, it won’t work.

I know how to setup the scripts (each to enlarge will be 2, 3, and 4, and the 1 to kill will be 1)… I just need to know the base script to write as the command value in gconfig-editor.

*
To prove you're a person (not a spam script), type the security word shown in the picture.

CAPTCHA