OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

3 Pages V   1 2 3 >  
Reply to this topicStart new topic
> Opie-sh Script For Snes9x, Since zemufe doesnt work anymore...
MrSquishy
post Dec 17 2004, 08:23 PM
Post #1





Group: Members
Posts: 159
Joined: 3-June 04
Member No.: 3,558



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)
CODE
#!/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.
CODE
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.
Go to the top of the page
 
+Quote Post
Appleman
post Dec 19 2004, 01:42 PM
Post #2





Group: Members
Posts: 5
Joined: 26-August 04
Member No.: 4,393



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?
Go to the top of the page
 
+Quote Post
MrSquishy
post Dec 19 2004, 08:11 PM
Post #3





Group: Members
Posts: 159
Joined: 3-June 04
Member No.: 3,558



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.
Go to the top of the page
 
+Quote Post
anunakin
post Dec 20 2004, 10:17 AM
Post #4





Group: Members
Posts: 340
Joined: 22-August 04
From: Belem, Brasil
Member No.: 4,358



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

[Desktop Entry]
Comment=Snes9x is a powerfull SNES Emulator
Exec=sn.sh
Icon=package_games
Type=Application
Name=Snes9x
Go to the top of the page
 
+Quote Post
x86Daddy
post Dec 21 2004, 10:49 PM
Post #5





Group: Members
Posts: 46
Joined: 27-January 04
From: Memphis
Member No.: 1,558



I've *almost* got this perfect on my SL-5500.... Someone please tell me there's a way to make it portrait mode?
Go to the top of the page
 
+Quote Post
anunakin
post Dec 22 2004, 06:22 AM
Post #6





Group: Members
Posts: 340
Joined: 22-August 04
From: Belem, Brasil
Member No.: 4,358



I think, u need edit and recompile snes9x to do it!
Go to the top of the page
 
+Quote Post
MrSquishy
post Dec 22 2004, 01:35 PM
Post #7





Group: Members
Posts: 159
Joined: 3-June 04
Member No.: 3,558



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.
Go to the top of the page
 
+Quote Post
Duskrider
post Dec 26 2004, 09:07 PM
Post #8





Group: Members
Posts: 8
Joined: 26-December 04
Member No.: 6,026



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 smile.gif
Go to the top of the page
 
+Quote Post
MrSquishy
post Dec 27 2004, 12:24 AM
Post #9





Group: Members
Posts: 159
Joined: 3-June 04
Member No.: 3,558



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
CODE
[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.
Attached File(s)
Attached File  opie_sh_snes_0.1_arm.ipk ( 3.52K ) Number of downloads: 26
 
Go to the top of the page
 
+Quote Post
anunakin
post Dec 27 2004, 04:21 AM
Post #10





Group: Members
Posts: 340
Joined: 22-August 04
From: Belem, Brasil
Member No.: 4,358



Great man! nice job! biggrin.gif
Go to the top of the page
 
+Quote Post
CoreDump
post Dec 27 2004, 11:15 AM
Post #11





Group: Members
Posts: 715
Joined: 25-July 04
From: .de
Member No.: 4,094



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?
Go to the top of the page
 
+Quote Post
MrSquishy
post Dec 27 2004, 01:15 PM
Post #12





Group: Members
Posts: 159
Joined: 3-June 04
Member No.: 3,558



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.
Attached File(s)
Attached File  opie_sh_snes_0.2_arm.ipk ( 3.63K ) Number of downloads: 24
 
Go to the top of the page
 
+Quote Post
CoreDump
post Dec 27 2004, 02:29 PM
Post #13





Group: Members
Posts: 715
Joined: 25-July 04
From: .de
Member No.: 4,094



Could you please try the attached ipk if it works for you?
Attached File(s)
Attached File  opie_sh_snes_0.2_r0_arm.ipk ( 3.71K ) Number of downloads: 33
 
Go to the top of the page
 
+Quote Post
MrSquishy
post Dec 27 2004, 03:11 PM
Post #14





Group: Members
Posts: 159
Joined: 3-June 04
Member No.: 3,558



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.
Go to the top of the page
 
+Quote Post
CoreDump
post Dec 27 2004, 03:33 PM
Post #15





Group: Members
Posts: 715
Joined: 25-July 04
From: .de
Member No.: 4,094



CODE
<CIA-4> 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 wink.gif
Go to the top of the page
 
+Quote Post

3 Pages V   1 2 3 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 12th July 2014 - 06:57 AM