Video Guide: Neo Geo on a Raspberry Pi

Info on the Pi and retro gaming emulation
Post Reply
Floob
Site Admin
Posts: 182
Joined: Mon Feb 09, 2015 8:27 pm

Video Guide: Neo Geo on a Raspberry Pi

Post by Floob » Sat Feb 28, 2015 7:18 pm

This is the video link:
http://youtu.be/v1S9_IGZOJA


You need roms from MAME 0.138 for GnGeo

A very useful Wiki on GnGeo for Pi is at
https://github.com/ymartel06/GnGeo-Pi/wiki
https://github.com/RetroPie/RetroPie-Setup/wiki/Neo-Geo

You can get a copy of the Unibios here:
http://unibios.free.fr/


Here are the bios files in neogeo.zip

Code: Select all

required files:
000-lo.lo (sometimes named ng-lo.rom, must be renamed)
sfix.sfx (sometimes named ng-sfix.rom, must be renamed)

country files (sometimes named neo-geo.rom, must be renamed)
usa_2slt.bin - USA
vs-bios.rom - Japan
asia-s3.rom - Asia
sp-s2.sp1 - Europe

system files
aes-bios.bin - A.E.S:
uni-bios.rom - UniBios
The controller and config file is at:
/home/pi/.gngeo/gngeorc

Here is the iBuffalo USB control line that goes in the file above:
p1control A=J0B3,B=J0B1,C=J0B0,D=J0B2,START=J0B7,COIN=J0B6,UP=J0a1,DOWN=J0a1,LEFT=J0A0,RIGHT=J0A0,MENU=J0B5

You can also add
country usa
(valid options are usa, japan, europe)
system arcade
(valid options are arcade, unibios)

For Unibios, press A,B,C to enter main menu, or if in game press START, A, B, C to get to the restart option.
http://unibios.free.fr/howitworks.html

An example config file is here:
https://github.com/ssilverm/PiMAME/blob ... eo/gngeorc
(Not sure if all variables are valid with the Pi version though)

Main GnGeo page:
https://code.google.com/p/gngeo/

snesfan89
Posts: 4
Joined: Sun Mar 08, 2015 9:59 pm

Re: Video Guide: Neo Geo on a Raspberry Pi

Post by snesfan89 » Sun Mar 08, 2015 10:18 pm

Hey Floob,

I'm currently trying to set up an ultimarc ipac 2 for use with an rpi 2 running retropie. I have several neogeo roms I would like to play through gngeo but am having difficulty getting the controller to work correctly. I'm trying to jstest to see what buttons to map but cant really make sense of the output.

jstest /dev/input/js0 yields the following

Driver version is 2.1.0

Joystick (Ultimarc IPAC 2 Ultimarc IPAC 2) has 6 axes (X, Y, Z, Rx, Hat0X, Hat0Y)
and 32 buttons (Trigger, ThumbBtn, ThumbBtn2, TopBtn, TopBtn2, PinkieBtn, BaseBtn, BaseBtn2, BaseBtn3, BaseBtn4, BaseBtn5, BaseBtn6, BtnDead, BtnA, BtnB, BtnC, (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null), (null)).

I'm not quite sure how to translate any of that to the config file or how each of those buttons would correspond to my actual layout... any thoughts?

Floob
Site Admin
Posts: 182
Joined: Mon Feb 09, 2015 8:27 pm

Re: Video Guide: Neo Geo on a Raspberry Pi

Post by Floob » Sun Mar 08, 2015 11:01 pm

Hi,

I dont have an ipac but I think they transmit keys as opposed to buttons, so they effectively emulate a keyboard.
So when you edit the gngeorc file you use key commands as opposed to the joypad buttons.

Check the bottom of this file for examples:
https://github.com/ssilverm/PiMAME/blob ... eo/gngeorc

It looks like the ipac2 codes are here:
http://www.ultimarc.com/ipac2.html

Here is a keymapping doc:
http://www.libsdl.org/release/SDL-1.2.1 ... L_keysym.h

So to press the Start button, thats the number "1", which is code "49" according to the doc, so your entry would be
START=K49

snesfan89
Posts: 4
Joined: Sun Mar 08, 2015 9:59 pm

Re: Video Guide: Neo Geo on a Raspberry Pi

Post by snesfan89 » Mon Mar 09, 2015 7:43 am

Awesome, thanks! With everything there I was able to get up and running in gngeo and fba!

snesfan89
Posts: 4
Joined: Sun Mar 08, 2015 9:59 pm

Re: Video Guide: Neo Geo on a Raspberry Pi

Post by snesfan89 » Tue Mar 10, 2015 10:58 pm

Sorry, one last question! How would I change the config file to also allow iBuffalo USB gamepads to be accepted as well? For example I will primarily be using my I-PAC 2 to play but may want to play around on the gamepads once in a while (e.g. if I take my Pi over to a friends house?)

I tried adding two more additional p1 and p2 control lines below but nothing happened I figured it was in my formatting... would it instead be something like

p1control A=K306,J0B2
p2control A=K97,J1B2

or

p1control A=K306,
p2control A=K97,
p1control A=J0B2,
p2control A=J1B2,

Floob
Site Admin
Posts: 182
Joined: Mon Feb 09, 2015 8:27 pm

Re: Video Guide: Neo Geo on a Raspberry Pi

Post by Floob » Tue Mar 10, 2015 11:03 pm

I use an iBuffalo on mine, but I only have one P1 entry, I dont think it would understand if you set 2x P1 entries.

Mine is

Code: Select all

p1control A=J0B3,B=J0B1,C=J0B0,D=J0B2,START=J0B7,COIN=J0B6,UP=J0a1,DOWN=J0a1,LEFT=J0A0,RIGHT=J0A0,MENU=J0B5

snesfan89
Posts: 4
Joined: Sun Mar 08, 2015 9:59 pm

Re: Video Guide: Neo Geo on a Raspberry Pi

Post by snesfan89 » Wed Mar 11, 2015 12:06 am

Aha, figured it out! I should have paid more attention to ssilverm's github instructions, in it s/he says
# by the way, you can define a button multiple time, for example A=J0B0,A=K123,etc..
So fyi anyone who wants do have 2x the inputs just double up the definitions! Works great!

Floob
Site Admin
Posts: 182
Joined: Mon Feb 09, 2015 8:27 pm

Re: Video Guide: Neo Geo on a Raspberry Pi

Post by Floob » Wed Mar 11, 2015 12:15 am

Good catch! Nice.

Husar
Posts: 1
Joined: Wed Apr 01, 2015 11:48 pm

Re: Video Guide: Neo Geo on a Raspberry Pi

Post by Husar » Wed Apr 01, 2015 11:52 pm

Is it safe to assume that a wireless PS3 controller can be mapped to control Neogeo games? Everything I've read and see, like your video, only mentions wired or keyboard keys.

Ed

Floob
Site Admin
Posts: 182
Joined: Mon Feb 09, 2015 8:27 pm

Re: Video Guide: Neo Geo on a Raspberry Pi

Post by Floob » Thu Apr 02, 2015 7:57 pm

Husar wrote:Is it safe to assume that a wireless PS3 controller can be mapped to control Neogeo games? Everything I've read and see, like your video, only mentions wired or keyboard keys.

Ed
Yep - should be no problem.

Post Reply