OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: Merardon on February 13, 2005, 07:31:46 pm
-
Has anyone managed to get either PrBoom or Snes9x working in the latest OpenZaurus? I've yet to get barely anything working in it yet. If so, would you mind giving me a simple guide to doing so, including a place to find SDL that works in OZ? Thanks in advance. EDIT: Just a followup that I have all the .wad files from the Collector's Edition Doom, and that I've read all of the forum notices and guides that I've managed to lay my virtual hands on. Oh, and it's the Zaurus 5500.
-
Make sure you install the Service Release from the Upgrades.
3.5.2 Feed:
Libs:
libsdl-mixer
libsdl-image
libsdl-net
libsdl-qpe
Opie:
snes9x-sdl-qpe
Upgrades:
prboom-2.2.6
Opie-SH Frontends:
Snes9x = [ You are not allowed to view attachments ]
PrBoom:
Change /opt/QtPalmtop/apps/Games/prboom.desktop. Replace "prboom" with "opie-sh-prboom.sh"
This is opie-sh-prboom.sh
#!/bin/sh
#Set additional files
test -e /root/.prboom/dpad.cfg || touch /root/.prboom/dpad.cfg
test -e /root/.prboom/irkeyboard.cfg || touch /root/.prboom/irkeyboard.cfg
test -e /root/.prboom/servers.list || touch /root/.prboom/servers.list
#Input method
opie-sh -m -t Input -M "Select Input Device" -g -0 "IR Keyboard" -1 D-Pad
RETURNCODE=$?
case $RETURNCODE in
0) INPUT="-config /root/.prboom/irkeyboard.cfg";;
1) INPUT="-config /root/.prboom/dpad.cfg";;
esac
if [ "$INPUT" = "" ]; then exit; fi
#Choose Game Version
opie-sh -m -t "Game" -M "Choose game" -g -0 Doom -1 DoomII
RETURNCODE=$?
case $RETURNCODE in
0)IWAD=doom.wad;;
1)IWAD=doom2.wad;;
esac
#Enable Singleplayer/Multiplayer Menu
opie-sh -m -t "Players" -M "Choose gametype" -g -0 Single -1 Multi
RETURNCODE=$?
case $RETURNCODE in
0) NET="";;
1) SERVER=` opie-sh -i -t "Server" -g -E -l -F \
/root/.prboom/servers.list `; if [ "$SERVER" = "" ]; then exit; fi; \
NET="-net $SERVER";;
esac
SDL_QT_INVERT_ROTATION=1 prboom -height 240 -iwad $IWAD $INPUT $NET
Good luck.
I believe the newest Hentges rom has all of this working already, if you'd like a shortcut.
-
Thanks very much. Do you know if Plutonia or TNT will work? For Doom? EDIT: Oh, and the Hentges rom didn't have any of that, but PrBoom was mentioned on the Hentges main page for some inexplicable reason. None of those packages were installed, and it would not even allow me to install new ones.
-
I havent looked at the Hentges Roms since way back in 3.3.6pre1 days.
I've got the $9.99 Collectors Edition of Doom, and I just use Doom 1 and Doom 2 with it.
I didnt even try Final Doom.
It isnt a problem at all to add different PWADs, and I can make a couple extra prompts for it if you'd like.
One unfortunate limitation with Opie-SH is that you can only have 3 buttons in the button menus.
So I could (probably) make it say Doom / Doom II / Other
And have the "Other" menu allow you to type in different PWADs to use.
You should be able to do all of this off the command-line if you want.
Oh, and be careful with the Netplay option. PrBoom doesnt time out waiting for servers.
So you have to either Hard Reboot, or ssh in and kill prboom to kill it.
If anyone knows how to add Alarm commands to kill the process if it is idle too long at a specific spot, I'd love to know.
-
I wanted to like the Hentges rom, but I didn't agree with the replacement applications, personally, and 80% of Opie was missing. Not only that, but I wouldn't trust my Sandisk 512MB SD with any parts of my filesystem, let alone all of it. Where should I place opie-sh-prboom.sh? I've got the wads on my SD card, actually. Thanks a lot for all of the help. Oh, and a new script would be great, if you have the time. Why not have it say More, then direct to a new menu with Plutonia, TNT, and Back? This script would also come in handy for the other people who have all four wads. The files are plutonia.wad and tnt.wad.
-
Put opie-sh-prboom.sh in /opt/QtPalmtop/bin, or /mnt/card/opt/QtPalmtop/bin and symlink it.
I can rewrite/add those extra lines. Are the Plutonia and TnT IWADs? From the commandline do you just run them as:
prboom -iwad plutonia.wad
?
And honestly (though I dont want to sound selfish and self-centered) the scripts I write I do so because it is what I use. So if you want me to take out the IR Keyboard option, and restore the default rotation, I can.
I'll probably make the menu as
Doom / Doom 2 / More
More:
Plutonia / TnT / Other
Other:
input field for wads/arguments
Let me know if that'd work for you.
-
They're IWADS, and actually, your script is perfectly fine. That would be great. I have the Pocketop keyboard, and although it currently doesn't work with OpenZaurus, I'd love to use it for Doom when it does. Final question is whether there is any way to listen to music in PrBoom, with OpenZaurus. Installing timidity on my SD card then linking /usr/local/libs/timidity and /usr/local/share/timidity to the /mnt/card/timidity didn't work, and neither did linking /usr/libs/timidity and usr/share/timidity to /mnt/card/timidity. Many thanks.
-
You might want to check the Upgrades feed, HRW recently split IRK back into IRK and IRK-Belkin.
Pocketop keyboard *should* be working with either, but the vanilla IRK is the more "official" one, I believe. (Not to step on Kopsis' feelings, I greatly enjoy his contribution).
Timidity is working very well.
They go in (for me) /mnt/card/usr/share/timidity
and get symlinked to /usr/local/share/timidity AND /usr/local/lib/timidity
"lib", not "libs"
#!/bin/sh
#Set additional files
test -e /root/.prboom/dpad.cfg || touch /root/.prboom/dpad.cfg
test -e /root/.prboom/irkeyboard.cfg || touch /root/.prboom/irkeyboard.cfg
test -e /root/.prboom/servers.list || touch /root/.prboom/servers.list
#Input method
opie-sh -m -t Input -M "Select Input Device" -g -0 "IR Keyboard" -1 D-Pad
RETURNCODE=$?
case $RETURNCODE in
0) INPUT="-config /root/.prboom/irkeyboard.cfg";;
1) INPUT="-config /root/.prboom/dpad.cfg";;
esac
if [ "$INPUT" = "" ]; then exit; fi
#Choose Game Version
opie-sh -m -t "Game" -M "Choose Game File" -g -0 Doom -1 DoomII -2 More
RETURNCODE=$?
case $RETURNCODE in
0)IWAD=doom.wad;;
1)IWAD=doom2.wad;;
2)opie-sh -m -t "Game" -M "Choose Game File" -g -0 Plutonia -1 TnT -2 Other
RETURNCODE=$?
case $RETURNCODE in
0)IWAD=plutonia.wad;;
1)IWAD=tnt.wad;;
2)IWAD=`opie-sh -i -t "IWAD" -g -E`;;
esac
esac
if [ "$IWAD" = "" ]; then exit; fi
#Enable Singleplayer/Multiplayer Menu
opie-sh -m -t "Players" -M "Choose gametype" -g -0 Single -1 Multi
RETURNCODE=$?
case $RETURNCODE in
0) NET="";;
1) SERVER=` opie-sh -i -t "Server" -g -E -l -F \
/root/.prboom/servers.list `; if [ "$SERVER" = "" ]; then exit; fi; \
NET="-net $SERVER";;
esac
SDL_QT_INVERT_ROTATION=1 prboom -height 240 -iwad $IWAD $INPUT $NET
The other line can be used to run all the extra arguments you should need.
You start it off as calling the IWAD you want, then just plug in anything after it.
Such as:
doom.wad -pwad pwad.wad -someswitch -someotherswitch
Hopefully that'll add more to the script and it wont be too cumbersome.
-
I really hate to be a bother, but the script halts after asking for either the DPAD or the IR Keyboard, but I can use the old one. Music still doesn't work, and I linked it and everything, but I'm not too picky, I can still run Doom. Which package do you use for Timidity? I've been trying guspat-20000706-required.tar.gz, but I'm wondering if OZ requires a different package. After all of this, I'd be perfectly happy to write up a guide for other newbies for the Documentation project. Got the keyboard to work as well, with a bit of fiddling. I can't thank you enough for all of your help.
-
The "Input Method" block is the same in both scripts.
You might want to doublecheck that it got pasted in correctly.
Opie-SH fun:
You cannot use the Hardware OK button to make a choice on the buttoned menus.
The Hardware OK and the Hardware Cancel button both send the same signal, and the script ends if $INPUT is blank.
So either click (with the stylus) on "IR Keyboard" or "D-Pad" or highlight them with the silver ring and press the center button.
I hope this was the problem, and not something more difficult to get around.
And guspat sounds familiar... I just followed the instructions in another PrBoom Midi thread.
If I could collect my notes/remember what I did, it'd be nice to write it down for others.
Good luck.
-
This is from Cmisips page (Which I cant find anymore, anyone seen it around?) about Timidity.
If you are using an sdl-mixer with timidity built in, then you can have midi sound if you download the timidity patches and install them on your z. This is quite a huge download so I put it on my SD card. You will need guspat-20000706-required.tar.gz which I found here*. Edit the timidity.cfg file so that it points to the directory where the timidity patches are. Then create a symlink to your timidity patches directory on /usr/local/lib/ on the Z. Apparently, SDL mixer looks for timidity.cfg in /usr/local/lib/timidity.
ln -sf /mnt/card/Documents/timidity /usr/local/lib/timidity
Did you do the "Edit the timidity.cfg file so that it points to the directory where the timidity patches are" part?
* = http://www.linet.gr.jp/~tamuki/timidity/eawplus/ (http://www.linet.gr.jp/~tamuki/timidity/eawplus/)
-
I did, and it still doesn't work. I've also been having trouble running your script, and am currently using sh opie-sh-prboom.cfg. Neither chmod +x, chmod u+x, chmod 755, or any combination I could think of would make it executable, so that is likely the issue.
-
You might want to open it up with vi and make sure that "#!/bin/sh" is at the top
I dont know if that whitespace would mess it up, it happened because I started a newline after the [ CODE ] tag.
-
I deleted the whitespace already, actually. Here's the text from the command prompt when I run it via sh opie-sh-prboom.sh:
:not foundoom.sh: 6:
[The input box comes up properly]
opie-sh-prboom.sh: 10: Syntax error: word unexpected (expecting "in")
The text of opie-sh-prboom.sh was copied in Windows XP, and saved in Windows Notepad as a .sh file, then transferred via a cf card, if that helps. (Saved in ANSI format)
-
Use Vi (or nano or something like that) on the zaurus to make sure Windows isnt garbling it.
Line 10 should be:
case $RETURNCODE in
check to see if it added something on the end.
-
Ah, that was it, thanks! All working fine now, save timidity, which comes out with: Couldn't load MIDI from /tmp/prboom-music-nt130L: timidity.cfg: No such file or directory. I'll see if I can figure it out.
-
This is what my /mnt/card/usr/share/timidity/timidity.cfg is
##############################################################################
#
# Instrument configuration file for timidity
#
# Specify library directory: dir
#
# - Multiple library directories may be given. The ones given last will be
# searched first so you can override them in later configuration files.
# Extra configuration files and MIDI files will also be searched in these
# directories.
#
# Set tone bank or drum set to modify: bank
# drumset
#
# Map program number to patch map:
#
# - If the patch can't be found in the library directories, TiMidity will
# search again with ".pat" appended to the name.
# Programs without a loaded patch will be silent, except that for
# banks/drumsets >0, the corresponding patch in bank/drumset 0 will
# be used (if one exists).
#
# Read another configuration file: source
#
dir /usr/local/share/timidity/inst
dir /usr/local/share/timidity
source default.cfg
source gsdrum.cfg
source gsdrum25.cfg
source sfx.cfg
source mt32.cfg
source power.cfg
source release.cfg
source altassign.cfg
##############################################################################
# Local configulation
# These nice patches are from the Roland SCC-1 Sound Canvas MIDI synthesizer.
bank 0
47 roland/C2TIMPNI.PAT amp=125
115 roland/C3WODBLK.PAT amp=160
116 roland/C3TAIKO.PAT amp=160
##############################################################################
# End of configuration file
Indeed it is my Local "Configulation"
-
All working fine. I'll start up writing a Doom newbie guide tommorrow, when I don't have an assignment pressing on me. (Then I'll see if I can work out snes9x on my own) Thanks for all of your help, I couldn't have done it without you.