Retropie

Nastaveni Retropie

21. 9. 2015

Alt+F4 … command line (mozna staci jen F4 … vyzkouset)

emulationstation  … spusiti gui

 

https://www.youtube.com/watch?…

 

1) Download the latest version of RetroPie’s SD image. This document is based off version 2.3.

http://blog.petrockblock.com/…oject-image/

2) Download and use Win32 Disk Imager to apply the above SD image to a 4 GB or larger SD card. 8 GB is really recommended.

http://sourceforge.net/…2diskimager/

3) Boot the SD Image on your Raspberry Pi.

4) The first time the system boots up into Emulation Station, you will need to setup your joystick.

5) If this is a new Pi, you’ll probably want to update to the latest firmware and reboot. You may need to use a wired cable even if you plan on using wifi.

sudo rpi-update
sudo reboot
sudo apt-get update && sudo apt-get upgrade -y

6) I purchased a EW-7811Un USB wifi, which is supported by the Raspberry Pi out of the box. I also have a TL-WN725N, which can be setup as follows:

http://www.raspberrypi.org/…iewtopic.php?…

tar -zxvf 8188eu-201×yyzz.tar.gz
sudo install -p -m 644 8188eu.ko /lib/modules/$(u­name -r)/kernel/dri­vers/net/wire­less
sudo insmod /lib/modules/$(u­name -r)/kernel/dri­vers/net/wire­less/8188eu.ko
sudo depmod -a

7) Now we need to setup wifi. Edit /etc/network/in­terfaces to configure wlan0.

allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-ssid zInternet
wpa-psk *******

8) Before we can move to configuring everything via SSH, we need to configure our joystick for the emulators themselves.

cd /opt/retropie/e­mulators/Retro­Arch/installdir/bin
sudo ./retroarch-joyconfig -j 1 >> /opt/retropie/con­figs/all/retro­arch.cfg

pokud mam jen jeden ovladac tak 0 místo 1

9) Grab the IP address and SSH into the device to continue configuration. The default user/password that comes with Raspbian is used: The username is “pi”, the password is “raspberry”.

10) Let’s setup the player 2 controller for our emulators before we forget.

cd /opt/retropie/con­figs/all/
vi retroarch.cfg

Copy and paste the entire section that begins with “input_player1_” and change it to “input_player2_”. Don’t forget to change the “input_player_jo­ypad_index” to 1 or 2 as well.

Note: If you have a keyboard connected, things can be a little odd. You may need to change the joypad index to 0 and 1 if you remove the keyboard, which I’m going to do.

At the end of the retroarch.cfg file, it is a good idea to add the following to allow you to press select+start to exit the game.

input_enable_hot­key_btn = „8“
input_exit_emu­lator_btn = „9“

I also like to take advantage of the save and load states in emulation, which some people consider cheating. Add the following lines to enable these buttons on your joypad.

input_save_sta­te_btn = „5“
input_load_sta­te_btn = „4“

After this has been done, you can hold select and press the L and R paddles to save and load states respectively. I also like to add some in-game volume control.

input_volume_up_a­xis = „-1“
input_volume_dow­n_axis = „+1“

11) Run configuration.

sudo raspi-config

12) Change password.

13) Change Memory-split to 384.

14) Set your time zone and localization options, then configure the keyboard keymap. I used en_US.UTF-8.

15) Expand root file system to fill entire SD card.

16) Force audio out of audio jack (instead of HDMI).

17) Exit from tool and reboot.

18) SSH back in (if you are using DHCP, the resizing of the file system can cause an IP change).

19) Now copy your Roms to the SMB shares (ex. \\RaspberryPi\snes is where the Super Nintendo ROMs go).

20) All done? Reboot and game on.

sudo reboot

21) Start up any Genesis/Megadrive game and press F1 on the keyboard. Go through the options and select “6-button controller” for Sega Genesis. Save the config.

22) And once you are happy for a few days, go back into “raspi-config” and overclock your pi, if you are feeling daring. It will iron out some of the annoying blips in audio. I purchased a few heat sinks just in case. I go turbo without issue.

 

From <http://blog.petrockblock.com/…-step-guide/>

 

 

one more thing you guys should know as well. you are able to save during the game and load if needed. all you need to do is add some more lines to retroarch.cfg, here is the exceprt from my file

savefile_directory = /home/pi/RetroPie/

savestate_directory = /home/pi/RetroPie/

#Save State: L2 + L1

input_save_sta­te_btn = “4″

#Load State: L2 + R1

input_load_sta­te_btn = “5″

whenever your button defined in input_enable_hot­key_btn is being pressed followed by input_save_sta­te_btn you make a save state, whenever your button defined in input_enable_hot­key_btn is being pressed followed by input_load_sta­te_btn you load the last save state

 

From <http://blog.petrockblock.com/…ystick-help/>