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

Re: PiSNES released - Super Nintendo emulator

Sat Sep 14, 2013 9:10 pm

ti84
'because I am using a precompiled pisnes file I have not download any sdl libraries...could that be causing me troubles?'
No any Binary you use will by default have the necessary dependencies included with the build, they are only needed to compile fromsource code.
"The list of things I have heard now contains everything!"

KitchUK
Posts: 256
Joined: Fri Jul 19, 2013 5:40 pm

Re: PiSNES released - Super Nintendo emulator

Mon Oct 14, 2013 10:02 pm

Pudding, if your still developing this emulator and get the chance could see if you can get super mario all stars working with it? It loads up the rom but when you select a game it glitches out. And is unplayable. Is this even a possibility? Thankyou.

clint westwood
Posts: 52
Joined: Fri Aug 03, 2012 12:16 pm

Re: PiSNES released - Super Nintendo emulator

Wed Nov 06, 2013 8:26 am

I have the same troubles as ti84 with precompiled binaries.
When a rom is launched a black screen appears and the emulator crash even without using the snes gui.

It appears it is a problem of egl surface creation. By refering to error message, the crash is due to the L 265-266 of /unix/graphic.cpp:

Code: Select all

  uint32_t crap;
        resource_bg = vc_dispmanx_resource_create(VC_IMAGE_RGB565, 128, 128, &crap);
        dispman_element_bg = vc_dispmanx_element_add(  dispman_update,
                                              dispman_display,
                                              9,
                                              &dst_rect,
                                              resource_bg,
                                              &src_rect,
                                              DISPMANX_PROTECTION_NONE,
                                              0,
                                              0,
                                              (DISPMANX_TRANSFORM_T) 0 );

        nativewindow.element = dispman_element;
        nativewindow.width = display_width;
        nativewindow.height = display_height;
        vc_dispmanx_update_submit_sync(dispman_update);

        surface = eglCreateWindowSurface(display, config, &nativewindow, NULL);// HERE
        assert(surface != EGL_NO_SURFACE);

Any idea to prevent this crash ? I have tried many roms with the memory splitting 64/196 (raspi B first rev; modest overclock :800 Mhz for the cpu) without any effects.

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

Re: PiSNES released - Super Nintendo emulator

Thu Nov 07, 2013 10:30 am

clint westwood
Seems odd, I haven't had ANY issues with this. Do you have any other programs installed that may be interfering with the dispmanx, e.g. another emulator installed that uses dispmanx acceleration or Vanfanel' SDL version?
"The list of things I have heard now contains everything!"

clint westwood
Posts: 52
Joined: Fri Aug 03, 2012 12:16 pm

Re: PiSNES released - Super Nintendo emulator

Thu Nov 07, 2013 4:43 pm

Yes Welshy, there are currently three other emulators installed on my pi that might interfering :
-hatari, installed from raspbian packages repo (works)
-mame4all, installed from the pi-store (works)
-scummvm, installed from raspbian packages repo (works)

Any ideas on how to check and prevent thoose possible interferences?

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

Re: PiSNES released - Super Nintendo emulator

Thu Nov 07, 2013 6:20 pm

clint westwood
Mmm, doesn't look like anything that would cause an issue...
First things first, remove PiSNES completely then download it again (just in case its got corrupted). Have you tried running PiSNES from console NOT XWindows? Seems odd because although PiSNES has a dispmanx back end, its the same one as PiMAME4ALL (pudding wrote both). Try a 'blank' image and add PiSNES first, see it then runs ok. BTW, what O/S are you running?
"The list of things I have heard now contains everything!"

clint westwood
Posts: 52
Joined: Fri Aug 03, 2012 12:16 pm

Re: PiSNES released - Super Nintendo emulator

Thu Nov 07, 2013 8:53 pm

Thanks for the help Welchy.
I am running the raspian 05/2013 distro with nothing installed but emulators. I have tried to remove completely pisnes and reinstalled it with the pudding' binary package. No change at all. Btw I run emulators almost all the time to prevent game slowdowns. I'll try pisnes on a fresh install!

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

Re: PiSNES released - Super Nintendo emulator

Fri Nov 08, 2013 9:27 am

clint westwood
There is a problem with 2013-05-25-wheezy-raspbian which effects many programs (See here for the 'fix' - http://www.raspberrypi.org/phpBB3/viewt ... 78&t=57035) it may not be the issue but it does affect many emulators Stella, Pcsx etc with regards to performance (its very noticeable with Stella as there is a big sound delay!). I will download the latest version of PiSNES to see if there are any issues as a cross check.

Update - I have tried the latest version of PiSNES with Image 2013-09-25 (with the 'fix' performed), no issues, works fine. Are you using an HDMI or Analogue connection for your RPi?

'Btw I run emulators almost all the time to prevent game slowdowns'
What exactly do you mean by this statement?
"The list of things I have heard now contains everything!"

clint westwood
Posts: 52
Joined: Fri Aug 03, 2012 12:16 pm

Re: PiSNES released - Super Nintendo emulator

Fri Nov 08, 2013 12:06 pm

Sorry my sentence was not complete :oops: , I avoid using X when playing with emulators to prevent slowdowns.
I have just tried the latest image of raspbian, snes9x now works perfectly :D but the gui turn my screen off. No more glsurface crashes, thanks a lot!
I use the hdmi output with an homemade hdmi/dvi cable.

User avatar
mrpi64
Posts: 931
Joined: Sat Feb 16, 2013 5:13 pm

Saving states

Fri Nov 08, 2013 1:59 pm

Is there any way to save states?
I'm happy to help.
https://www.raspberrypi.org/forums/viewtopic.php?f=78&t=51794 - List of games that work on the Pi.

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

Re: PiSNES released - Super Nintendo emulator

Fri Nov 08, 2013 2:03 pm

clint westwood
I had the same issue when testing for pudding using the GUI, it was down to my PC Monitor (was ok on anther 4 TV's tested). Not using the gui removed the issue, i.e. running snes9x (not snes9x.gui) direct from the command line with the rom location.
cd into the folder then where the snes9x executable is then -
./snes9x 'romlocation/romname.extension'
e.g. ./snes9x /home/pi/snesroms/supermarioworld.zip

Most emulators can be run this way from command line to eliminate the GUI. To prevent the constant typing (or remembering the ROMS if your collection is BIG) you can always add a Front End (GUI) such as Emulation Station or AdvanceMENU and configure them.
"The list of things I have heard now contains everything!"

shadowfax1007
Posts: 2
Joined: Mon Feb 10, 2014 5:45 am

Re: PiSNES released - Super Nintendo emulator

Wed Feb 12, 2014 1:23 am

JBaker1225 wrote:
pudding wrote:
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.
Awesome, thanks. I tried pulling the build down from the new Retro Pie setup script, and it's the same problem with regards to controls. It's launching from /RetroPie/emulators/pisnes/snes9x and the snes9x.cfg is in the same directory, but it still won't recognize it.
But when I launch from the terminal via

Code: Select all

 /RetroPie/emulators/pisnes/snes9x /home/pi/RetroPie/roms/snes/game.smc 
The controls I set are recognized and work perfectly. So it seems like an odd bug (at least to someone like me who understands absolute zero about programming and Linux :lol: )

Anyway, glad to hear you're working on it and really appreciate everything you've done. Looking forward to an update in the next few days.
I'm having this exact issue right now! Yet I'm using the most current version of PiSNES... any ideas people?

User avatar
Liber
Posts: 51
Joined: Sat Dec 01, 2012 12:31 pm
Location: Czech Republic
Contact: ICQ

Re: PiSNES released - Super Nintendo emulator

Sun May 18, 2014 10:03 am

I have a recent Raspberry Pi model B and I cannot find PiSNES in the Pi store. I am confused because the link http://store.raspberrypi.com/projects/pisnes can be opened in my Windows machine. How is it possible ?


piyh
Posts: 1
Joined: Mon Jan 12, 2015 1:04 am

Re: PiSNES released - Super Nintendo emulator

Mon Jan 12, 2015 1:08 am

Is there any way to modify via the snes9x.cfg what the joystick combination to exit the program is? I'm building my emulation from the ground up to be lighter weight than the RetroPie project and want to keep the exit emulator button combination consistent.

For instance if I want select + right trigger to be exit emulator, can I add to the config file QUIT=7+3 or something like that?

PuppetHoundZ
Posts: 170
Joined: Wed Jan 21, 2015 2:57 am

Saving states & Keyboard Layout PiSNES

Mon Feb 09, 2015 11:50 pm

mrpi64 wrote:Is there any way to save states?
Yes.

SAVE: Hold Shift and press any of the F1-F4 keys (one F key per save). On bottom left it will say game saved.
LOAD: Press F1-F4 (the same one you initially saved with). Also the google Code page linked at the very beginning explains this too.

Cool Tip:
To remap your keyboard you need to know ANSI keyboard Codes as the Config file list all the keyboard keys a number (ie. ANSI Keyboard Codes)


Here is a copy of my modified snes9x.config file. I've modified the Keyboard to allow the keys to be more ergonomic layout so that you hands can rest more comfortably on the keyboard while at the same time retaining more of the natural game-pad layout most gamers are used to (ie. D-PAD on the left, buttons on the right)

Code: Select all

[Keyboard]
# Get codes from /usr/include/SDL/SDL_keysym.h
# PuppetHound Z Custom Layout. This allows you to use the Keyboard in a more natural layout for your hands while at the same time attempting to mimick a game pad or Arcade Joypad with minimal hand strain.
A_1=59
# A Button= Keyboard ;
# should rest your right pinky finger on this key.

B_1=111
# B Button= Keybaord O 
# rest your right ring finger on this key

X_1=105
# X Button=Keyboard I 
# rest your right middle finger on this key

Y_1=106
# Y Button= Keyboard J 
# rest your right index finger on this key

L_1=276
# Left Trigger= Keyboard A 
# rest your left pinky finger on this key

R_1=32
# Right Trigger= Space Bar 
# rest your left or right thumb on this key

START_1=13
# Keybaord Return 
# Default key based on PiSNES, but can be accessed with your right pinky finger

SELECT_1=9
# Keyboard Tab 
# Default key based on the PiSNES, but can be easily reached with your left pinky finger

LEFT_1=115
# D-Pad Left= S 
# rest your left ring finger on this key

RIGHT_1=102
# D-Pad Right= F 
# rest your left index finger on this key

UP_1=101
# D-Pad Up= E also used for navigating menu in PiSNES 
# middle finger can rest on this key or D

DOWN_1=100
# D-Pad Down= D also used for navigating menu in PiSNES 
# middle finger can rest on this key or E

QUIT=27
# Escape Key 
# default in PiSNES

ACCEL=8
# Backspace 
# default in PiSNES

[Joystick]
# Get codes from "jstest /dev/input/js0"
# from package "joystick"
A_1=3
B_1=2
X_1=1
Y_1=0
L_1=4
R_1=6
START_1=9
SELECT_1=8
QUIT=99
ACCEL=7
QLOAD=10
QSAVE=11
#Joystick axis
JA_LR=0
JA_UD=1

[Graphics]
DisplaySmoothStretch=1
# Display Effect: 0 none, 1 scanlines, 2 phospher
# NOTE Phospher does not run at full speed
DisplayEffect=0
MaintainAspectRatio=1
DisplayBorder=0
AutoFrameskip=1
Frameskip=200
Transparency=1
CPUCycles=100

[Sound]
APUEnabled=1
# Sound rates below as index, i.e. 7=44100 (some of these produce static)
# 0, 8192, 11025, 16000, 22050, 29300, 32000, 44100
SoundPlaybackRate=7
InterpolatedSound=0
Update here is link to my experience with SNES9x and the Roms I own.
http://www.raspberrypi.org/forums/viewt ... 30#p675330

User avatar
ulysess
Posts: 306
Joined: Thu Aug 02, 2012 6:35 am
Location: Spain
Contact: Website

Re: PiSNES released - Super Nintendo emulator

Tue Mar 17, 2015 4:56 pm

With the new release of pisnes in http://sourceforge.net/projects/pisnes, I test on the Pi2 and works fine, but when I try to run on the Raspberry Pi Model B, I get the next error:

Code: Select all

kernel:[   83.151277] Internal error: Oops: 5 [#1] PREEMPT ARM

Message from syslogd@raspberrypi at Mar 17 16:28:02 ...
 kernel:[   83.228558] Process snes9x (pid: 2190, stack limit = 0xda2ac1b0)

Message from syslogd@raspberrypi at Mar 17 16:28:02 ...
 kernel:[   83.234554] Stack: (0xda2adfb0 to 0xda2ae000)

Message from syslogd@raspberrypi at Mar 17 16:28:02 ...
 kernel:[   83.238910] dfa0:                                     bed412e8 00000000 55085612 00000001

Message from syslogd@raspberrypi at Mar 17 16:28:02 ...
 kernel:[   83.247080] dfc0: bed412e8 0007e3bc 001376f0 0000004e 00000005 000080a5 00000000 b5a1c008

Message from syslogd@raspberrypi at Mar 17 16:28:02 ...
 kernel:[   83.255249] dfe0: 00000005 bed412e8 00044310 b6a252ec 20000010 bed412e8 00000000 00000000

Message from syslogd@raspberrypi at Mar 17 16:28:02 ...
 kernel:[   83.269793] Code: e58d0044 e3a0b000 ee11cf10 e59fa0b0 (e59aa000)
I use the latest Raspbian.
Mis apuntes de...Raspberry Pi: http://misapuntesde.com
Google Docs RPi: http://goo.gl/Iwhbq

PuppetHoundZ
Posts: 170
Joined: Wed Jan 21, 2015 2:57 am

Re: PiSNES released - Super Nintendo emulator

Tue Mar 17, 2015 11:00 pm

ulysess wrote:With the new release of pisnes in http://sourceforge.net/projects/pisnes, I test on the Pi2 and works fine, but when I try to run on the Raspberry Pi Model B, I get the next error:



I use the latest Raspbian.
Awesome. I didn't even know he made a new update and migrated to Sourceforge. Sweet.

Return to “Gaming”