Exiting Mame and FinalBurnAlpha - problem solved

Here is all the tutorials, FAQ and support for RaspiBoy Kit
Post Reply
trantornator
Posts: 7
Joined: Mon 28 Aug 2017 21:56

Exiting Mame and FinalBurnAlpha - problem solved

Post by trantornator »

Ok, I've spent the last few days trying to figure out how to solve the issue of exiting from MAME and FBA with the Raspiboy controller.

Several people seem to have given up on running these games on a Pi Zero due to the poor performance of most NeoGeo and complex Capcom games under libreto emulators. Under PiFBA and mame4all though they work wonderfully (at least the big ones I've tested, like Metal Slug, Street Fighter Alpha and AvP). After messing with cfg files for a bit, I managed to find a workable solution (at least with the games I've tested so far.)

I tried to attach my modified fba2x.cfg file to this post, but it didn't work, so I'll just copy the txt here. (the file is located under /opt/retropie/emulators/pifba ).

[Keyboard]
# Get codes from /usr/include/SDL/SDL_keysym.h
A_1=306
B_1=32
X_1=308
Y_1=304
L_1=122
R_1=120
START_1=13
SELECT_1=9
LEFT_1=276
RIGHT_1=275
UP_1=273
DOWN_1=274
QUIT=27
#player 2 keyboard controls, disabled by default
A_2=999
B_2=999
X_2=999
Y_2=999
L_2=999
R_2=999
START_2=999
SELECT_2=999
LEFT_2=999
RIGHT_2=999
UP_2=999
DOWN_2=999

[Joystick]
# Get codes from "jstest /dev/input/js0"
# from package "joystick"
# Defaults to XBOX 360 Controller
A_1=1
B_1=2
X_1=0
Y_1=3
L_1=4
R_1=5
START_1=9
SELECT_1=8

#Joystick axis
JA_LR=0
JA_UD=1
#player 2 button configuration
A_2=1
B_2=0
X_2=2
Y_2=3
L_2=4
R_2=5
START_2=7
SELECT_2=6
#Joystick axis
JA_LR_2=0
JA_UD_2=1
#player 3 button configuration
A_3=1
B_3=0
X_3=2
Y_3=3
L_3=4
R_3=5
START_3=7
SELECT_3=6
#Joystick axis
JA_LR_3=0
JA_UD_3=1
#player 4 button configuration
A_4=1
B_4=0
X_4=2
Y_4=3
L_4=4
R_4=5
START_4=7
SELECT_4=6
#Joystick axis
JA_LR_4=0
JA_UD_4=1

[Graphics]
DisplaySmoothStretch=1
# Display Effect: 0 none, 1 scanlines
DisplayEffect=0
DisplayBorder=0

Posting the whole thing here to make an easier copy and paste for the uninitiated (only change is actually to the Player 1 joystick controls)

In FBA, all six firing buttons are set as normal buttons, (you may want to reset these by reassigning them, depending on your preference... A=1, B=2, X=0, Y=3, L=4, R=5, Start=9 and Select=8)
Select inserts coins and Start is start, and pressing both should throw you back to Emustation.

In mame4all, what I did was (using a keyboard), from inside any game, hit tab to enter the menu screen, chose Input (general) -> User Interface and then changed "UI Cancel" to Select and then under Player 1 controls, I set coin 1 and start 1 to the Start key.
While this is not optimal, it shouldn't interfere with the vast majority of games and still give you the option of exiting mame4all back to Emustation. Just don't accidentally hit the select key. ;)
Vinc3Has3
Posts: 4
Joined: Fri 10 Nov 2017 08:07

Re: Exiting Mame and FinalBurnAlpha - problem solved

Post by Vinc3Has3 »

Thank you! I was about to give up, myself. My Raspiboy is still in the mail, but I’ve been setting up my Zero w while I wait.

I’m getting the new PCB board with my shipment. Supposedly, one of the back buttons can now be used as a button in the system. I’m wondering if we can use it to exit. I’ll certainly check that out when it arrives.
roostaar
Posts: 31
Joined: Tue 2 Jan 2018 00:39

Re: Exiting Mame and FinalBurnAlpha - problem solved

Post by roostaar »

Thanks trantornator

Finally got round to doing this and your edits work a treat.

I used nano and terminal to edit the cfg file as I couldn't edit the file over cyberduck and ssh.

Cheers!
Bosco
Posts: 12
Joined: Mon 15 Jan 2018 22:12

Re: Exiting Mame and FinalBurnAlpha - problem solved

Post by Bosco »

@trantornator - Thanks for posting your solution. :D

I've been trying to figure out how to do the exact same thing for XRoar (Dragon/Tandy Color Computer emu), another non-libretro emulator.

Will try later.
Post Reply