OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: MrSquishy on December 17, 2004, 11:23:06 pm
-
I've had problems getting Zemufe working on 3.5.2 so I took it as a good excuse to learn Opie-SH a little better. Awesome stuff.
Here is a script to make a list of Roms and run them.
This is made up for Snes9x, but it'd be painless to switch it to something else, since all it really does is make a list of files and pipe it to the command at the bottom.
IT it looking for Roms as *.zip (case sensitive)
#!/bin/sh
#Path to your Roms
LOCATION=/mnt/card/games/snes
#Load a game from your list
ROM=` cd $LOCATION; ls -1 *.zip \
| opie-sh -i -l -t "Roms" -F -g `
if [ "$ROM" = "" ]
then exit
fi
#Enable Sound Button
setsound () {
opie-sh -m -t "Sound" \
-M "Do you want sound?" \
-g -0 Yes -1 No
RETURNCODE=$?
#Hitting "OK" returns 255, so if you press "OK" you get sound.
case $RETURNCODE in
255) SOUND=-sound;;
0) SOUND=-sound;;
1) SOUND=-nosound;;
esac
}
setsound
if [ "$SOUND" = "" ]; then
exit
fi
snes9x $SOUND $LOCATION/$ROM
It's ugly, but it works.
Be sure to change the location of your roms.
I added this to my /etc/profile to get the buttons the way I like them.
S9XKEYS=113,32,293,291,290,111,112,13,46
A = Center Button
B = Home
X = Contacts
Y = Calendar
L = o
R = p
Start=Enter
Select=Space
Quit = q
then add S9XKEYS to the end of the "export" line.
-
This works pretty slick.
However, whenever I run snes9x it starts up then quits right away with Fatal Signal: Bus Error (SDL Parachute deployed)
Any ideas?
-
You did change the $LOCATION I am assuming, otherwise you wouldnt have any games listed.
What kind of errors does it spit out from the console?
Are you using snes9x-sdl-qpe out of the 3.5.2 feed?
I have only used this on a 5500, but I dont imagine that matters much.
-
Hey! this works fine here and I create a snes9x.desktop... works fine!
I using this icon /usr/kde/3.3/share/icons/crystalsvg/32x32/apps/package_games.png from KDE 3.3 Crystal Icons... very good...
http://www.geocities.com/anunakin/images/package_games.png (http://www.geocities.com/anunakin/images/package_games.png)
[img]http://www.geocities.com/anunakin/images/package_games.png\" border=\"0\" class=\"linked-image\" /]
[Desktop Entry]
Comment=Snes9x is a powerfull SNES Emulator
Exec=sn.sh
Icon=package_games
Type=Application
Name=Snes9x
-
I've *almost* got this perfect on my SL-5500.... Someone please tell me there's a way to make it portrait mode?
-
I think, u need edit and recompile snes9x to do it!
-
I would send baskets of money to whoever made a portrait snes9x.
Im working on building yet another mutant ipk of qtopiagnuboy.
Replacing qtopignuboyl with some Opie-SH scripts, so it should look very similar to the SNES frontend up above.
-
Hey guys =) I got a 1gig memory card for christmas and with it came a determination to run FFIV on my Zaurus. However, I am totally illiterate when it comes to mucking about in the innards of computers...so would someone be so kind as to give me a clue (or even something like a step by step guide) to how to get this to work? I literally don't know where to begin - I copied this into a .txt file, and then I guess I have to convert it to something, somehow, and then put that converted something on the Zaurus, but I have no idea how to do such a thing or even if that is the concept at all.
Many thanks if anyone can help me with this one
-
Its pretty easy once you get into it, but looking at it for the first time is probably intimidating.
What you can do (I'll let you cheat and I can send you an ipk of the files) is copy the text for that into a file called "opie-sh-snes.sh" and save it into /opt/QtPalmtop/bin on your zaurus.
make sure to do a 'chmod +x opie-sh-snes.sh' to get it to be executable.
The hard part is making the .desktop file to go with it, and using an icon that is there.
Save the icon into /opt/QtPalmtop/pics
and save [Desktop Entry]
Comment=Snes9x is a powerfull SNES Emulator
Exec=opie-sh-snes.sh
Icon=package_games
Type=Application
Name=Snes9x
into a file called snes9x.desktop in /opt/QtPalmtop/apps/Games
then you just restart opie, and it should show up.
Here is an ipk of the thing you'll need.
It is looking for games on the SD card at /mnt/card/games/snes, if you need to change this, edit opie-sh-snes.sh and change the LOCATION variable at the top.
You'll still need to do the export thing in my first post to get your keybindings to use the Application Buttons.
-
Great man! nice job!
-
If you add a popup / message where the script is looking for games, I'd be happy to add it to OE (and any future OZ feed for that matter).
The only difficulty I can see here are the buttons (S9XKEYS)
Does the current configuration work on other devices than a Z5x00, too?
-
Wow, quite an honor to get a package into the feed.
This one has an entry for rom location (Which can be disabled in the script) and I fixed the icon I broke in the 0.1 ipk above.
I didnt make the depend's need snes9x-qpe-sdl because this should work with several versions of snes9x.
Thank you everyone for the help.
-
Could you please try the attached ipk if it works for you?
-
It's odd that attaching the ipk converts the dashes to underscores. That could possibly mess up a package manager couldnt it?
Looks like the package works fine though.
-
CoreDump * r1.2774 openembedded/packages/opie-sh-snes/ (4 files in 2 dirs): Add opie-sh-snes, an opie-sh wrapper to launch SNES ROMs. Credits to MrSquishy @ ZUG
Gratulations
-
I just installed it on a 5600 with oz3.5.2... works great!
Thanks guys
Greg
-
Is there any way to rotate this so it plays in portrait mode like zfceu?
-
I saw a website that can do potrait mode, but it is in 6000 (consider the resolution 640X480) it is possible, but I wonder will it work in 5500
http://externe.net/zaurus/modules.php?op=m...order=0&thold=0 (http://externe.net/zaurus/modules.php?op=modload&name=News&file=article&sid=20&mode=thread&order=0&thold=0)
snes_landscape.sh:
#!/bin/sh
#export S9XKEYS=27,100,99,115,120,97,122,13,32,103,106,117,110,121,98,105,109
export S9XKEYS=27,290,291,292,294,293,122,13,32,103,106,117,110,121,98,105,109
# tiny non zoomed window
#snes9x -hi -xs 640 -ys 480 $*
# decent zoomed window
snes9x -hi -x2 -xs 640 -ys 480 $*
snes_portrait.sh
#!/bin/sh
#export S9XKEYS=27,100,99,115,120,97,122,13,32,103,106,117,110,121,98,105,109
export S9XKEYS=27,290,291,292,294,293,122,13,32,103,106,117,110,121,98,105,109
# tiny non zoomed window
#snes9x -hi -ys 640 -xs 480 $*
# decent zoomed window
export SDL_ROTATION_QTE=0
export SDL_ROTATION_SDL=0
snes9x -hi -x2 -xs 640 -ys 480 $*
snes_portrait_qvga.sh
#!/bin/sh
export SDL_ROTATION_QTE=0
export SDL_ROTATION_SDL=0
#export S9XKEYS=27,100,99,115,120,97,122,13,32,103,106,117,110,121,98,105,109
export S9XKEYS=27,290,291,292,294,293,122,13,32,103,106,117,110,121,98,105,109
snes9x -xs 320 -ys 240 /mnt/card/Games/Super_Nes/mario.smc
And my snes9x is not workin'
(Yeap, I am a noob, yeap, I have a lot of questions)
usage: snes9x
sh: ../bin/qcop: not found
That's what it show up. No matter how I reinstall the opie-qcop or even the libqpe1, is still showing this msg, and that package is really in the folder /bin, but it just said " not found"
BTW, how come there is 2 snes9x in the hentges feed, I tried both,
The snes9x_1.43-WIP1-r3_arm.ipk one have the problems of finding hte "joystick" and the "X server"
-
Yeah, I have (had) the same problem. Don't worry about the qcop thingie, it doesn't seem to matter. The script must be borked, I can start an image directly via "snes9x image.zip", and it works fine. So, there must be something wrong with this script, but I don't mind using the commandline first...
Cheers
Philipp
Edit: I just realized, the problem probably is that I used the script from the first post, and there are debugged versions available... not anymore, because the attachements of the posts have been deleted. But that's probably MY problem, dunno if it's yours as well *G*
-
Here is CoreDumps finalized Ipk of my initial script.
I of course have tweaked it to my tastes after installing to add another prompt of Input method (Zaurus Keys or IR Keyboard), but this Ipk is the same one CoreDump posted earlier.
Use this if the attached doesnt work
opie-sh-snes_0.2_r0_arm.ipk (http://legion.homedns.org/ipks/opie-sh-snes_0.2_r0_arm.ipk)
-
Hum....
I still have the problem of "qcop" not found no matter I use the package above (opie-sh-snes_0.2_r0_arm.ipk) or opie-sh-snes_0.2_r1_arm.ipk (in the hentiges feed)
-
The qcop message is from Snes9x itself.
The script doesnt do anything fancy, it just stores a couple variable from prompts then calls them back.
Is Snes9x not working at all?
Can you launch Snes9x without the script?
as in:
snes9x /mnt/card/roms/rom.zip
-
The message about qcop vanishes once you start snes9x in "/opt/QtPalmtop/bin". There seems to be a path hardcoded, namely "../bin/qcop". But it doesn't seem to matter anyway to me...
Cheers
Philipp
-
Snes9x terminate after I have
"../bin/qcop" no found
Thing...
Even tho I tried typin' it in console
-
I just thought of something that I worked around by changing what I do.
The roms you have, do they have spaces in the names?
I was having problems because of that, and I ended up just converting all the spaces to underscores.
It'd be for other odd characters too.
Because this basically passes things into the command line, anything that needs a leading "\" may cause it to not match the files.
If you want to test this, rename your rom to "test.zip" or something equally bland with no spaces.
-
I just thought of something that I worked around by changing what I do.
The roms you have, do they have spaces in the names?
I was having problems because of that, and I ended up just converting all the spaces to underscores.
It'd be for other odd characters too.
Because this basically passes things into the command line, anything that needs a leading "\" may cause it to not match the files.
If you want to test this, rename your rom to "test.zip" or something equally bland with no spaces.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=63063\")
The latest script can be found here: [a href=\"http://www.hentges.net/misc/openzaurus/feeds/opie_1.1.8/opie-sh-snes_0.2-r1_arm.ipk]http://www.hentges.net/misc/openzaurus/fee..._0.2-r1_arm.ipk[/url]
It should fix the problems with spaces in filenames.
-
Tried both, no luck for me...:/
Even I rename it w/ no space...:/
-
thx for the package, it woks good for me
only thing is i have to do a
'export QTDIR=/opt/QtPalmtop/'
for opie-shell to work. is there i way i can do this permanently?
cheers ben
-
thx for the package, it woks good for me
only thing is i have to do a
'export QTDIR=/opt/QtPalmtop/'
for opie-shell to work. is there i way i can do this permanently?
cheers ben
[div align=\"right\"][a href=\"index.php?act=findpost&pid=63243\"][{POST_SNAPBACK}][/a][/div]
Yes, installing service release1 from the upgrade feed will do it.
-
Yes, installing service release1 from the upgrade feed will do it.
A bit off topic, but I for one can't find the upgrade feed in the feeds directory. Where is it? thks
-
The latest script can be found here: http://www.hentges.net/misc/openzaurus/fee..._0.2-r1_arm.ipk (http://www.hentges.net/misc/openzaurus/fee..._0.2-r1_arm.ipk)
hm i have this one installed and still have to do
'export QTDIR=/opt/QtPalmtop/'
-
Naa, that's just the script for starting snes9x. You have to install the package service-release-1-oz-opie, which can be found in the feed.
Cheers
Philipp
-
Naa, that's just the script for starting snes9x. You have to install the package service-release-1-oz-opie, which can be found in the feed.
Cheers
Philipp
[div align=\"right\"][a href=\"index.php?act=findpost&pid=63444\"][{POST_SNAPBACK}][/a][/div]
thx for tellin' me bro
yours ben