Author Topic: Prboom/snes9x  (Read 6864 times)

Merardon

  • Full Member
  • ***
  • Posts: 141
    • View Profile
    • http://
Prboom/snes9x
« 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.
« Last Edit: February 13, 2005, 08:10:12 pm by Merardon »
Zaurus SL-C3100 (Borzoi) - Cacko ROM 1.23 & OpenBSD 4.0 Beta
Zaurus SL-5500 (Collie) - OpenZaurus 3.5.4.2 RC1
[img]http://forum.zaurus.cn/data/chroot/zaurus/upcoming/c3100_126.gif\" border=\"0\" class=\"linked-sig-image\" /][img]http://forum.zaurus.cn/data/chroot/zaurus/upcoming/5500_134.gif\" border=\"0\" class=\"linked-sig-image\" /]
Miscellaneous random accessories

MrSquishy

  • Full Member
  • ***
  • Posts: 159
    • View Profile
    • http://
Prboom/snes9x
« Reply #1 on: February 13, 2005, 08:57:31 pm »
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 =  [ Invalid Attachment ]

     PrBoom:

          Change /opt/QtPalmtop/apps/Games/prboom.desktop.  Replace "prboom" with "opie-sh-prboom.sh"

This is opie-sh-prboom.sh
Code: [Select]
#!/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.
« Last Edit: February 13, 2005, 08:58:49 pm by MrSquishy »

Merardon

  • Full Member
  • ***
  • Posts: 141
    • View Profile
    • http://
Prboom/snes9x
« Reply #2 on: February 13, 2005, 10:29:28 pm »
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.
« Last Edit: February 13, 2005, 10:32:54 pm by Merardon »
Zaurus SL-C3100 (Borzoi) - Cacko ROM 1.23 & OpenBSD 4.0 Beta
Zaurus SL-5500 (Collie) - OpenZaurus 3.5.4.2 RC1
[img]http://forum.zaurus.cn/data/chroot/zaurus/upcoming/c3100_126.gif\" border=\"0\" class=\"linked-sig-image\" /][img]http://forum.zaurus.cn/data/chroot/zaurus/upcoming/5500_134.gif\" border=\"0\" class=\"linked-sig-image\" /]
Miscellaneous random accessories

MrSquishy

  • Full Member
  • ***
  • Posts: 159
    • View Profile
    • http://
Prboom/snes9x
« Reply #3 on: February 13, 2005, 11:26:23 pm »
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.

Merardon

  • Full Member
  • ***
  • Posts: 141
    • View Profile
    • http://
Prboom/snes9x
« Reply #4 on: February 13, 2005, 11:38:32 pm »
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.
« Last Edit: February 14, 2005, 12:54:50 am by Merardon »
Zaurus SL-C3100 (Borzoi) - Cacko ROM 1.23 & OpenBSD 4.0 Beta
Zaurus SL-5500 (Collie) - OpenZaurus 3.5.4.2 RC1
[img]http://forum.zaurus.cn/data/chroot/zaurus/upcoming/c3100_126.gif\" border=\"0\" class=\"linked-sig-image\" /][img]http://forum.zaurus.cn/data/chroot/zaurus/upcoming/5500_134.gif\" border=\"0\" class=\"linked-sig-image\" /]
Miscellaneous random accessories

MrSquishy

  • Full Member
  • ***
  • Posts: 159
    • View Profile
    • http://
Prboom/snes9x
« Reply #5 on: February 14, 2005, 01:29:05 am »
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.

Merardon

  • Full Member
  • ***
  • Posts: 141
    • View Profile
    • http://
Prboom/snes9x
« Reply #6 on: February 14, 2005, 01:38:34 am »
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.
« Last Edit: February 14, 2005, 03:52:34 am by Merardon »
Zaurus SL-C3100 (Borzoi) - Cacko ROM 1.23 & OpenBSD 4.0 Beta
Zaurus SL-5500 (Collie) - OpenZaurus 3.5.4.2 RC1
[img]http://forum.zaurus.cn/data/chroot/zaurus/upcoming/c3100_126.gif\" border=\"0\" class=\"linked-sig-image\" /][img]http://forum.zaurus.cn/data/chroot/zaurus/upcoming/5500_134.gif\" border=\"0\" class=\"linked-sig-image\" /]
Miscellaneous random accessories

MrSquishy

  • Full Member
  • ***
  • Posts: 159
    • View Profile
    • http://
Prboom/snes9x
« Reply #7 on: February 14, 2005, 01:10:15 pm »
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"



Code: [Select]
#!/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.

Merardon

  • Full Member
  • ***
  • Posts: 141
    • View Profile
    • http://
Prboom/snes9x
« Reply #8 on: February 15, 2005, 03:04:29 am »
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.
« Last Edit: February 15, 2005, 03:08:32 am by Merardon »
Zaurus SL-C3100 (Borzoi) - Cacko ROM 1.23 & OpenBSD 4.0 Beta
Zaurus SL-5500 (Collie) - OpenZaurus 3.5.4.2 RC1
[img]http://forum.zaurus.cn/data/chroot/zaurus/upcoming/c3100_126.gif\" border=\"0\" class=\"linked-sig-image\" /][img]http://forum.zaurus.cn/data/chroot/zaurus/upcoming/5500_134.gif\" border=\"0\" class=\"linked-sig-image\" /]
Miscellaneous random accessories

MrSquishy

  • Full Member
  • ***
  • Posts: 159
    • View Profile
    • http://
Prboom/snes9x
« Reply #9 on: February 15, 2005, 01:31:36 pm »
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.

MrSquishy

  • Full Member
  • ***
  • Posts: 159
    • View Profile
    • http://
Prboom/snes9x
« Reply #10 on: February 15, 2005, 02:06:37 pm »
This is from Cmisips page (Which I cant find anymore, anyone seen it around?) about Timidity.

Quote
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/
« Last Edit: February 15, 2005, 02:10:21 pm by MrSquishy »

Merardon

  • Full Member
  • ***
  • Posts: 141
    • View Profile
    • http://
Prboom/snes9x
« Reply #11 on: February 15, 2005, 05:39:21 pm »
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.
Zaurus SL-C3100 (Borzoi) - Cacko ROM 1.23 & OpenBSD 4.0 Beta
Zaurus SL-5500 (Collie) - OpenZaurus 3.5.4.2 RC1
[img]http://forum.zaurus.cn/data/chroot/zaurus/upcoming/c3100_126.gif\" border=\"0\" class=\"linked-sig-image\" /][img]http://forum.zaurus.cn/data/chroot/zaurus/upcoming/5500_134.gif\" border=\"0\" class=\"linked-sig-image\" /]
Miscellaneous random accessories

MrSquishy

  • Full Member
  • ***
  • Posts: 159
    • View Profile
    • http://
Prboom/snes9x
« Reply #12 on: February 15, 2005, 05:47:21 pm »
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.

Merardon

  • Full Member
  • ***
  • Posts: 141
    • View Profile
    • http://
Prboom/snes9x
« Reply #13 on: February 15, 2005, 06:42:09 pm »
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)
Zaurus SL-C3100 (Borzoi) - Cacko ROM 1.23 & OpenBSD 4.0 Beta
Zaurus SL-5500 (Collie) - OpenZaurus 3.5.4.2 RC1
[img]http://forum.zaurus.cn/data/chroot/zaurus/upcoming/c3100_126.gif\" border=\"0\" class=\"linked-sig-image\" /][img]http://forum.zaurus.cn/data/chroot/zaurus/upcoming/5500_134.gif\" border=\"0\" class=\"linked-sig-image\" /]
Miscellaneous random accessories

MrSquishy

  • Full Member
  • ***
  • Posts: 159
    • View Profile
    • http://
Prboom/snes9x
« Reply #14 on: February 15, 2005, 08:17:44 pm »
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.