pudding
Posts: 94
Joined: Sat Jan 12, 2013 3:55 pm
Location: UK

PiSNES released - Super Nintendo emulator

Mon Apr 29, 2013 9:20 am

I've released a SNES emulator for the Pi. It's based on v1.39 of SNES9X and highly "tuned" for the Raspberry Pi (dispmanx, ALSA audio, SDL for input), with configurable input. Most games run at full speed. Yes it's a very old version of SNES9X but it runs at a good speed on the Pi but won't play a number of the later SNES roms.

Designed for those who just like to "plugin" and play. :) Hope you enjoy it!

Get it from here http://sourceforge.net/projects/pisnes/
Last edited by pudding on Tue Feb 17, 2015 11:15 pm, edited 1 time in total.
Author of MAME4ALL for Pi, PiSNES, PiFBA & PiMenu

welshy
Posts: 1667
Joined: Mon Oct 29, 2012 2:07 pm

Re: PiSNES released - Super Nintendo emulator

Mon Apr 29, 2013 12:09 pm

pudding
Excellent work again my friend! BEST SNES (Super Famicom) Emulator by far! I have added an update/link to the "EMULATION ON THE RPi (UPDATE)" "Sticky" Thread.....

Update
Only one thing, I have just tested a few Titles and it seems they ALL suffer from an occasional "Brief" loss of Image/Sound (Accompanied by a loud “POP/CLICK”) then it returns! (Tested on 2013-02-09-wheezy-raspbian at 900MHz with HDMI Output). The BIGGER ROM's; Donkey Kong Country, SFII seem the worst offenders, which led me to believe it may be a “Bank Switching” problem (Although I don’t recall the SNES using this as a memory management device) but, no, even Super Mario World does it! Maybe an addition for your “Issues” Log? Still exceptional work none the less!
"The list of things I have heard now contains everything!"

pudding
Posts: 94
Joined: Sat Jan 12, 2013 3:55 pm
Location: UK

Re: PiSNES released - Super Nintendo emulator

Mon Apr 29, 2013 1:08 pm

Thanks Welshy! I don't experience any of those problems you mention. I'd appreciate an "issue" created for it on the code website.
Author of MAME4ALL for Pi, PiSNES, PiFBA & PiMenu

welshy
Posts: 1667
Joined: Mon Oct 29, 2012 2:07 pm

Re: PiSNES released - Super Nintendo emulator

Mon Apr 29, 2013 1:17 pm

Further Testing
I have just Tested PiSNES using 2012-09-18-wheezy-raspbian and it's working FINE! Looks like it could be an O/S Image Problem!!!

Additional, "issue" created for it on the code website by request of Author

Further, Further Testing
Tested using a NEW (i.e Clean, Fresh Image) Image 2013-02-09-wheezy-raspbian - Works fine WITHOUT Sound, however, forcing Sound Through HDMI causes the Issue Noted Above (Even with BIGGER than Default (64MEG) Memory Split to the GPU (Tested Just in Case!))
"The list of things I have heard now contains everything!"

JBaker1225
Posts: 48
Joined: Wed Apr 17, 2013 10:27 pm

Re: PiSNES released - Super Nintendo emulator

Mon Apr 29, 2013 3:10 pm

Is there a way to program a joypad combination to exit the emulator?
I'm playing with an SNES controller, so could I make select+start exit?

kalehrl
Posts: 350
Joined: Tue Jul 24, 2012 10:49 am

Re: PiSNES released - Super Nintendo emulator

Mon Apr 29, 2013 7:39 pm

I compared the speed of pisnes and palerider's snes9x and pisnes is not faster.
They are pretty much the same after my short test.
I used Axelay rom which seems to be one of the more demanding ones when it comes to speed.

Martin3232
Posts: 22
Joined: Fri Mar 01, 2013 5:25 pm

Re: PiSNES released - Super Nintendo emulator

Mon Apr 29, 2013 10:29 pm

Installed this today, excellent work, congratulations. I've linked it in with advMenu - just need to find some screen shots/snaps.

welshy
Posts: 1667
Joined: Mon Oct 29, 2012 2:07 pm

Re: PiSNES released - Super Nintendo emulator

Tue Apr 30, 2013 7:33 am

pudding
Added as a comment to the Issue 1 Log on code Website:
"On further Testing -
Opening snes9X from a Command Line Terminal (e.g ./snes9x supermarioworld.zip) does not produce the stated effect. This only becomes an Issue when running from the GUI (i.e ./snes9x.gui).
welshy"

Hope that Helps!
"The list of things I have heard now contains everything!"

SSilver2k2
Posts: 179
Joined: Wed Jun 06, 2012 1:51 am
Location: United States
Contact: Website AOL

Re: PiSNES released - Super Nintendo emulator

Tue Apr 30, 2013 4:28 pm

Woot. Can't wait to put this into PiMAME.
My blog of various geeky things - http://blog.sheasilverman.com
PiPLAY - http://piplay.org
DeskCade.com - Mini Raspberry Pi Arcade Cabinet

welshy
Posts: 1667
Joined: Mon Oct 29, 2012 2:07 pm

Re: PiSNES released - Super Nintendo emulator

Wed May 01, 2013 6:25 am

pudding
I have discovered the problem! Having tried again via composite output on a CRT and a few other HDMI LED/LCD TV’s it was the Sync of my Test Bed VHiDEF PC Monitor causing the Issue (Strange as I have not seen this in any other Application). I would say the Issue Log can now be closed (Unless others note the same Problem, which I doubt!)
"The list of things I have heard now contains everything!"

pudding
Posts: 94
Joined: Sat Jan 12, 2013 3:55 pm
Location: UK

Re: PiSNES released - Super Nintendo emulator

Thu May 02, 2013 1:09 pm

I've released a new version with two joystick support and start+select now quits.

Get it from the Pi Store or the binaries from the homepage.
Author of MAME4ALL for Pi, PiSNES, PiFBA & PiMenu

JBaker1225
Posts: 48
Joined: Wed Apr 17, 2013 10:27 pm

Re: PiSNES released - Super Nintendo emulator

Thu May 02, 2013 2:52 pm

pudding wrote:I've released a new version with two joystick support and start+select now quits.

Get it from the Pi Store or the binaries from the homepage.

This is awesome. I'll give it a download when I get home. Thanks for the work.

JBaker1225
Posts: 48
Joined: Wed Apr 17, 2013 10:27 pm

Re: PiSNES released - Super Nintendo emulator

Thu May 02, 2013 11:12 pm

Whenever I launch a game via SSH, none of my USB input seems to work.
If I launch from the command line, my keyboard and joypad both work. However, I have two joypads, and only 2 USB ports, so I can't launch it with both of them plugged in...
Any idea why this is happening?

Also, is there any setting I can tweak to "stretch" the visuals? Basically to mostly fill my 16:9 TV?

welshy
Posts: 1667
Joined: Mon Oct 29, 2012 2:07 pm

Re: PiSNES released - Super Nintendo emulator

Fri May 03, 2013 5:34 am

JBaker1225
“Also, is there any setting I can tweak to "stretch" the visuals? Basically to mostly fill my 16:9 TV?”

Just out of interest, why would you wish to do this?
"The list of things I have heard now contains everything!"

pudding
Posts: 94
Joined: Sat Jan 12, 2013 3:55 pm
Location: UK

Re: PiSNES released - Super Nintendo emulator

Fri May 03, 2013 7:10 am

JBaker1225 wrote:Whenever I launch a game via SSH, none of my USB input seems to work.
That's normal with SDL input, you need to use the "console" not a remote connection like SSH.
Author of MAME4ALL for Pi, PiSNES, PiFBA & PiMenu

JohnnyBoy
Posts: 1
Joined: Fri May 03, 2013 1:24 am

Re: PiSNES released - Super Nintendo emulator

Fri May 03, 2013 2:06 pm

I seem to have some issues when trying this over HDMI. The picture is super broken and streaky horizontally, audio doesn't play must of the time, and sometimes the whole system freezes and crashes. When I use the analog video and audio everything works great.

JBaker1225
Posts: 48
Joined: Wed Apr 17, 2013 10:27 pm

Re: PiSNES released - Super Nintendo emulator

Fri May 03, 2013 6:13 pm

Alright, so new question...
I modified the cfg file to remap my joypad controls. Whenever I launch SNES9x from the terminal, it works perfectly.

However, I redirected EmulationStation to launch my ROMs in SNES9X. And when I do, everything works perfectly, except the controls have reverted back to the default settings, without my custom mapping.
Any idea why this is happening? Do I need to copy my controller configuration file out of the "Full" directory they're currently in, to somewhere else as well?

User avatar
Aloshi
Posts: 359
Joined: Sat Jun 23, 2012 6:42 pm
Contact: Website

Re: PiSNES released - Super Nintendo emulator

Fri May 03, 2013 6:20 pm

I would guess that the config file is being read relative to the current working directory.

One way to fix that would be to change the CWD as part of the launch command:

Code: Select all

COMMAND=pushd path/to/snes9x/folder && path/to/snes9x %ROM% && popd

JBaker1225
Posts: 48
Joined: Wed Apr 17, 2013 10:27 pm

Re: PiSNES released - Super Nintendo emulator

Fri May 03, 2013 6:38 pm

Aloshi wrote:I would guess that the config file is being read relative to the current working directory.

One way to fix that would be to change the CWD as part of the launch command:

Code: Select all

COMMAND=pushd path/to/snes9x/folder && path/to/snes9x %ROM% && popd

Great thanks. I'll give that a go when I get home.
Would I need to have

Code: Select all

COMMAND=pushd usr/local/bin/indiecity/InstalledApps/pisnes/Final && snes9x %ROM% && popd
Since the snes9x binary is in the "Final" directory (the same location as the cfg file), or do I need to put the whole path again after the "&&"?

Code: Select all

usr/local/bin/indiecity/InstalledApps/pisnes/Final/snes9x
As I'm sure you can tell, the problem I messaged you about earlier was indeed solved by removing that ". So thanks for correcting my brainfart. The original COMMAND from RetroArch was wrapped in quotes, so that was an artifact I accidentally left in as I was modifying.
Thanks again.

User avatar
Aloshi
Posts: 359
Joined: Sat Jun 23, 2012 6:42 pm
Contact: Website

Re: PiSNES released - Super Nintendo emulator

Fri May 03, 2013 6:42 pm

Your example is correct (though I think you're missing a slash at the start of the path), this should work.

Code: Select all

COMMAND=pushd /usr/local/bin/indiecity/InstalledApps/pisnes/Final && snes9x %ROM% && popd

JBaker1225
Posts: 48
Joined: Wed Apr 17, 2013 10:27 pm

Re: PiSNES released - Super Nintendo emulator

Fri May 03, 2013 6:49 pm

Cool. Thanks again.


welshy wrote:
JBaker1225
“Also, is there any setting I can tweak to "stretch" the visuals? Basically to mostly fill my 16:9 TV?”

Just out of interest, why would you wish to do this?
It's not top priority for me, but I've been running the RetroPie/RetroArch SNES emu on my Pi for the last few weeks, and I've just gotten used to it filling the screen. If you look through my posts, I think when I first started using that one, I was asking how to letterbox it to get the true aspect ratio. :lol:

JBaker1225
Posts: 48
Joined: Wed Apr 17, 2013 10:27 pm

Re: PiSNES released - Super Nintendo emulator

Fri May 03, 2013 10:41 pm

Aloshi wrote:Your example is correct (though I think you're missing a slash at the start of the path), this should work.

Code: Select all

COMMAND=pushd /usr/local/bin/indiecity/InstalledApps/pisnes/Final && snes9x %ROM% && popd
So I did this (changing /Final to /Full because that's the actual directory... And I get the following:

Code: Select all

lvl2: 	Attempting to launch game...
lvl2: 		pushd /usr/local/bin/indiecity/InstalledApps/pisnes/Full && snes9x /home/pi/RetroPie/roms/snes/Super\ Mario\ Kart.smc && popd
lvl2: 	==============================================
lvl2: 	==============================================
lvl1: 	...launch terminated with nonzero exit code 32512!

pudding
Posts: 94
Joined: Sat Jan 12, 2013 3:55 pm
Location: UK

Re: PiSNES released - Super Nintendo emulator

Sat May 04, 2013 7:30 am

JBaker1225 wrote:However, I redirected EmulationStation to launch my ROMs in SNES9X. And when I do, everything works perfectly, except the controls have reverted back to the default settings, without my custom mapping.
Any idea why this is
I'll put a fix in for this. And I'll add an option to stretch the video.
Author of MAME4ALL for Pi, PiSNES, PiFBA & PiMenu

noob
Posts: 218
Joined: Sat Dec 08, 2012 3:58 pm

Re: PiSNES released - Super Nintendo emulator

Sat May 04, 2013 6:24 pm

it says that it is'nt able to find roms, but i have some on the pi, should i put them in a special directory or something?

JBaker1225
Posts: 48
Joined: Wed Apr 17, 2013 10:27 pm

Re: PiSNES released - Super Nintendo emulator

Sat May 04, 2013 7:49 pm

You should put your roms in usr/local/bin/indiecity/InstalledApps/pisnes/Full/roms
Last edited by JBaker1225 on Sat May 04, 2013 7:51 pm, edited 1 time in total.

Return to “Gaming”