Page 1 of 4

PiSNES released - Super Nintendo emulator

Posted: Mon Apr 29, 2013 9:20 am
by pudding
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/

Re: PiSNES released - Super Nintendo emulator

Posted: Mon Apr 29, 2013 12:09 pm
by welshy
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!

Re: PiSNES released - Super Nintendo emulator

Posted: Mon Apr 29, 2013 1:08 pm
by pudding
Thanks Welshy! I don't experience any of those problems you mention. I'd appreciate an "issue" created for it on the code website.

Re: PiSNES released - Super Nintendo emulator

Posted: Mon Apr 29, 2013 1:17 pm
by welshy
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!))

Re: PiSNES released - Super Nintendo emulator

Posted: Mon Apr 29, 2013 3:10 pm
by JBaker1225
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?

Re: PiSNES released - Super Nintendo emulator

Posted: Mon Apr 29, 2013 7:39 pm
by kalehrl
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.

Re: PiSNES released - Super Nintendo emulator

Posted: Mon Apr 29, 2013 10:29 pm
by Martin3232
Installed this today, excellent work, congratulations. I've linked it in with advMenu - just need to find some screen shots/snaps.

Re: PiSNES released - Super Nintendo emulator

Posted: Tue Apr 30, 2013 7:33 am
by welshy
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!

Re: PiSNES released - Super Nintendo emulator

Posted: Tue Apr 30, 2013 4:28 pm
by SSilver2k2
Woot. Can't wait to put this into PiMAME.

Re: PiSNES released - Super Nintendo emulator

Posted: Wed May 01, 2013 6:25 am
by welshy
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!)

Re: PiSNES released - Super Nintendo emulator

Posted: Thu May 02, 2013 1:09 pm
by pudding
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.

Re: PiSNES released - Super Nintendo emulator

Posted: Thu May 02, 2013 2:52 pm
by JBaker1225
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.

Re: PiSNES released - Super Nintendo emulator

Posted: Thu May 02, 2013 11:12 pm
by JBaker1225
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?

Re: PiSNES released - Super Nintendo emulator

Posted: Fri May 03, 2013 5:34 am
by welshy
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?

Re: PiSNES released - Super Nintendo emulator

Posted: Fri May 03, 2013 7:10 am
by pudding
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.

Re: PiSNES released - Super Nintendo emulator

Posted: Fri May 03, 2013 2:06 pm
by JohnnyBoy
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.

Re: PiSNES released - Super Nintendo emulator

Posted: Fri May 03, 2013 6:13 pm
by JBaker1225
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?

Re: PiSNES released - Super Nintendo emulator

Posted: Fri May 03, 2013 6:20 pm
by Aloshi
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

Re: PiSNES released - Super Nintendo emulator

Posted: Fri May 03, 2013 6:38 pm
by JBaker1225
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.

Re: PiSNES released - Super Nintendo emulator

Posted: Fri May 03, 2013 6:42 pm
by Aloshi
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

Re: PiSNES released - Super Nintendo emulator

Posted: Fri May 03, 2013 6:49 pm
by JBaker1225
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:

Re: PiSNES released - Super Nintendo emulator

Posted: Fri May 03, 2013 10:41 pm
by JBaker1225
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!

Re: PiSNES released - Super Nintendo emulator

Posted: Sat May 04, 2013 7:30 am
by pudding
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.

Re: PiSNES released - Super Nintendo emulator

Posted: Sat May 04, 2013 6:24 pm
by noob
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?

Re: PiSNES released - Super Nintendo emulator

Posted: Sat May 04, 2013 7:49 pm
by JBaker1225
You should put your roms in usr/local/bin/indiecity/InstalledApps/pisnes/Full/roms