adafruit / Adafruit-Retrogame

Raspberry Pi GPIO-to-virtual-keyboard utility for classic game emulators
https://learn.adafruit.com/retro-gaming-with-raspberry-pi
355 stars 123 forks source link

Error Installing Retrogame and Installing Retrogame.cfg #48

Open shanedertrain opened 7 years ago

shanedertrain commented 7 years ago

Hello,

I am having an issue with installing Retrogame.

The initial download from Github flows smoothly, but when I attempt to run the script I encounter the following issue:

image

What are the steps I should take in troubleshooting this?

PaintYourDragon commented 7 years ago

Most likely Github was temporarily down or inaccessible. Try the script again. Or enter these commands (normally done in the script) and see what actual errors they're throwing:

curl -f -s -o /tmp/retrogame https://raw.githubusercontent.com/adafruit/Adafruit-Retrogame/master/retrogame

curl -f -s -o /boot/retrogame.cfg https://raw.githubusercontent.com/adafruit/Adafruit-Retrogame/master/configs/retrogame.cfg.2button

shanedertrain commented 7 years ago

Attempt #2:

image

They do not seem to be returning anything.

PaintYourDragon commented 7 years ago

I apologize. Leave the '-s' out of the curl commands (that makes it 'silent' and we can't see any error messages).

PaintYourDragon commented 7 years ago

Try logging in as user 'pi' (not root) and use sudo when running the install script.

shanedertrain commented 7 years ago

Looks like the script had to be run with the insecure, or -k command.

image

Thanks a ton!

I am curious, however, as to why this verification of the certificate fails.

shanedertrain commented 7 years ago

I'm not sure if I should create another issue for this:

Now it seems that the controls aren't working, even when shorting the pins to ground.

I ran 'ps -ef | grep retrogame' and this is what returned:

image

I also ran 'ps -e' and did not see retrogame in the list of running processes, so I'm assuming that the process is not running.

PaintYourDragon commented 7 years ago

What version of RetroPie is this? And which Pi board?

Try running retrogame from the command line (don't background the process) and see if it reports anything. sudo /usr/local/bin/retrogame

(Assuming, of course, you've gotten it to download and have moved the executable there. Install script should do this.)

shanedertrain commented 7 years ago

I am using what I am assuming is the latest version of Retropie, having downloaded the image from their website last week, and the Pi 3 model B.

sudo /usr/local/bin/retrogame returns "command not found". Did the downloads within the install script fail too?

PaintYourDragon commented 7 years ago

The curl command puts it in /tmp. Move it to /usr/local/bin. Though, for the sake of testing, you can try just running it from /tmp, no biggie.

shanedertrain commented 7 years ago

Looks like there's nothing in /tmp nor /usr/local/bin.

I do have /etc/udev/rules.d/10-retrogame.rules, and retrogame.cfg though.

In addition my /etc/rc.local does have /usr/local/bin/retrogame &; exit 0.

Edit 2: I cheated and downloaded retrogame through the url. Then, I transferred it over SSH to /usr/local/bin/, but I'm still getting "command not found" when attempting to run it even after rebooting.

Edit 3: I attempted to run /usr/local/bin/retrogame as root and I got "Permission denied".

PaintYourDragon commented 7 years ago

sudo chmod 777 /usr/local/bin/retrogame sudo /usr/local/bin/retrogame

shanedertrain commented 7 years ago

That did the trick. Thanks a ton!

One last thing issue is that I'm having difficulty setting the "ESC" button in EmulationStation. I hold my designated A and B buttons, with the GPIO numbers assigned properly, and release them and it takes this as only either A or B being pressed.

This may have something to do with the fact that I'm using original Ms. Pacman arcade controls, and I can simply add more buttons if needed.

PaintYourDragon commented 7 years ago

Try start+select rather than A+B.