|
INSTAL·LACIÓ I CONFIGURACIÓ DE RETROPIE A RASPBERRY PI La consola RETRO DEFINITIVA
BY @La_KONFRARIA TENIM GRUP «RETROPIE» AL TELEGRAM. SI T'INTERESSA CONTACTA AMB L'USUARI http://telegram.me/KonfrareAlbert
Els fitxers de suport a aquest tutorial els trobareu a: http://www.konfraria.org/retropie
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
QUÈ ÉS RASPBERRY PI?
El Raspberry Pi és un ordinador monoplaca o SBC (acrònim en anglès de Single-Board Computer) de baix cost desenvolupat en el Regne Unit per la Fundació Raspberry Pi. L'objectiu principal d'aquest disseny és estimular l'ensenyança de les ciències de la computació, però també s'ha popularitzat com a plataforma per a dissenys d'aficionats i per a usos informàtics generals.
La fundació dóna suport per a descàrregues de diferents distribucions Linux adaptades a l'arquitectura ARM: Raspbian (derivada de Debian), RISC OS 5, Arch Linux ARM (derivat d'Arch Linux) i Pidora (derivada de Fedora).
Viquipèdia
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
HAIG DE SABER DE GNU/LINUX?
El terminal usuari@nom_equip:on_sóc$ ~ significa carpeta usuari
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
ESTRUCTURA DE FITXERS
/ és l'arrel (cal permís superusuari)
/home/pi és la carpeta d'usuari (l'usuari pi hi té permisos)
comanda SUDO
Per defecte: usuari: pi contrasenya: raspberry
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
ALGUNES COMANDES BÀSIQUES
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$ls $ls -l $ls -la
$cd directori
$cd ..
$mkdir nom
$rm fitxer $rm – r carpeta $cp fitxer1 fitxer2 $mv fitxer lloc
$nano fitxer
$df -h
$sudo find / -name nom
$sudo reboot
|
veure fitxers veures fitxers en llistat veure fitxers en llistat i també ocults (.)
anar a directori, per exemple, $cd /home/pi vés al directori previ
crea un directori amb el nom
elimina fitxer, tbé /ruta/fitxer elimina carpeta i contingut còpia fitxer1 a fitxer2 desplaça el fitxer al lloc indicat (ruta)
obre el fitxer amb l'editor de text «nano». Per sortir, Ctrl+X
mostra les unitats i espai lliure
cerca el fitxer «nom» a la ruta «/» (arrel). A home, sense sudo.
reinicia la RaspberryPi
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
IMATGE (.img) DE RETROPIE A LA MICROSD
Baixem la imatge de la pàgina oficial: https://retropie.org.uk/download/ Descomprimim (amb 7-Zip), si cal.
Per copiar la imatge a la MicroSD podem utilitzar:
Windows: Win32 Disk Imager Baixada: https://sourceforge.net/projects/win32diskimager/
Mac: ApplePi Baker Baixada: http://www.tweaking4all.com/hardware/raspberry-pi/macosx-apple-pi-baker/
Linux: per Terminal
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$df -h
$sudo umount /dev/sdd1
$sudo dd bs=1M if=retropie-v3.3.1-rpi2.img of=/dev/sdd
|
esbrinem on tenim MicroSD
desmuntem la unitat
copiem la imatge (.img) a la unitat de la targeta (sdd). Posar nom de la imatge. |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
ARRANQUEM LA RASPBERRYPI AMB LA TARGETA
Molt senzill: posem la MicroSD, connectem el cable HDMI i engeguem la RaspberryPi... Si el nostre comandament va endollat amb USB, automàticament el detectarà i el podrem configurar. Per exemple, aquesta seria la configuració d'un comandament d'SNES: |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
CONFIGURACIÓ BÀSICA RASPBERRYPI
Sortim d'EmulationStation (F4)
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$sudo raspi-config
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
→ «Expand root partition to fill SD card» → «Change password for 'pi' user» → «Set locale» → «Set timezone» → «Enable or disable ssh server» → «Configure overclocking»
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$sudo reboot
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
CONFIGURACIÓ DE LA CONNEXIÓ A INTERNET
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$sudo nano /etc/network/interfaces
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
auto lo
iface lo inet loopback iface eth0 inet dhcp
allow-hotplug wlan0 auto wlan0
iface wlan0 inet static wireless-essid WLAN_NOM wireless-mode Managed wireless-key s:xxxxxxxxxxxxx address 192.168.1.X netmask 255.255.255.0 gateway 192.168.1.1
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$sudo nano /etc/resolv.conf
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
nameserver 80.58.0.33 nameserver 80.58.32.97
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$sudo ifconfig wlan0 up
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
ACCÉS PER SSH
Windows: PuTTy
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Linux o Mac: per Terminal
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$ssh usuari@host $ssh pi@192.168.1.15
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
ACTUALIZACIÓ I INSTAL·LACIÓ DELS EMULADORS
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$sudo apt-get update $sudo apt-get upgrade -y $sudo reboot $cd RetroPie-Setup $chmod +x ./retropie_setup.sh $sudo ./retropie_setup.sh
|
actualitzem repositoris actualitzem versió reiniciem anem a carpeta RetroPie permís d'execució a script executem script |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
→ «Update RetroPie-Setup script» → «Exit»
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$sudo ./retropie_setup.sh
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
→ «Binaries-based INSTALLATION (faster, but possibly not up-to-date» → «Exit»
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$sudo reboot
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
INSTAL·LACIÓ COMANDAMENTS PS3 PER BLUETOOTH
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$lsusb $sudo hciconfig hci0 up $hcitool dev $cd /home/pi/RetroPie-Setup $sudo ./retropie_setup.sh
|
trobar dongle USB engegar dongle USB veure si dongle funciona anar al directori de l'script executar l'script d'instal·lació |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
→ «Setup/Configuration (to be used post install)» → «Install/Pair PS3 controller »
SI NO FUNCIONA, MÈTODE ALTERNATIU:
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
1.Fer el mateix d'abans amb el primer comandament
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
2.$git clone https://github.com/supertypo/qtsixa.git 3.$cd qtsixa/sixad 4.$make 5.$sudo mkdir -p /var/lib/sixad/profiles 6.$sudo checkinstall 7.$sudo reboot
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
8.Connectar el 1er comandament (Bluetooth) i connectar el segon comandament per USB i després prémer el botó PS 9.Perquè funcioni al menú principal caldrà iniciar una vegada només amb el segon comandament. |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
ACTIVAR DONGLE USB A L'INICI
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$sudo nano /etc/rc.local
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
(abans de exit 0) hciconfig hci0 up hciconfig hci0 piscan exit 0
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$sudo nano /usr/bin/emulationstation
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
echo ""; echo ""; echo ""; echo "";echo ""; echo ""; echo ""; echo ""; echo ""; echo "" echo -e "\e[90m################################################################################" echo -e "\e[93m Premeu el botó PS per sincronitzar els comandaments Sony PlayStation 3 " echo "" echo -e "\e[93m ____ ____ _____ ____ ___ _ _ _____ ____ ___ _ _ _____ ____ " echo -e "\e[93m | _ \/ ___|___ / / ___/ _ \| \ | |_ _| _ \ / _ \| | | | | ____| _ \ " echo -e "\e[33m | |_) \___ \ |_ \ | | | | | | \| | | | | |_) | | | | | | | | _| | |_) |"; echo -e "\e[92m | __/ ___) |__) | | |__| |_| | |\ | | | | _ <| |_| | |___| |___| |___| _ < "; echo -e "\e[94m |_| |____/____/ \____\___/|_| \_| |_| |_| \_|\___/|_____|_____|_____|_| \_|"; echo ""; echo ""; echo -e "\e[90m################################################################################\e[0m" echo ""; echo ""; echo ""; echo "";echo ""; echo ""; echo ""; echo ""; echo ""; echo "" secs=$((10));while [ $secs -gt -1 ]; do echo -ne -e "Temps que us queda per sincronitzar: $secs\033[0K\r"; sleep 1; : $((secs--)); done echo ""; echo ""; echo -e "\e[30m\e[104m Continua la càrrega \e[0m" sleep 1
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
COPIAR ROMS A RETROPIE
Windows, Mac i Linux: FileZilla
Host: 192.168.1.15 Username: pi Password: raspberry Port: 22
Moure fitxers de ROMS a la carpeta corresponent a /home/pi/RetroPie/roms
Per exemple, els fitxers d'SNES aniran a: /home/pi/RetroPie/roms/snes
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
LES BIOS
Normalment les BIOS aniran a la carpeta /home/pi/RetroPie/BIOS
Exemples: Videopac → o2rom.bin
Game Boy Advance → gba_bios.bin Sega Saturn → saturn_bios.bin TurboGrafx 16 → syscard3.pce Sega Dreamcast → dc_boot.bin i dc_flash.bin etc...
En el cas dels arcades (Neo-Geo, Mame, FB Alpha...) el fitxer de BIOS anirà a la carpeta on van les ROMS
Exemples: Mame → neogeo.zip → /home/pi/RetroPie/roms/mame-mame4all NeoGeo → neogeo.zip → /home/pi/RetroPie/roms/neogeo FB Alpha → neogeo.zip → /home/pi/RetroPie/roms/fba etc...
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
SCRAPING DE JOCS
Què és l'scraping?
EL MILLOR MÈTODE:
Comprovar versió a: https://github.com/sselph/scraper/releases
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$wget https://github.com/sselph/scraper/releases/download/ v1.0.2/scraper_rpi2.zip
$sudo unzip scraper_rpi2.zip scraper -d /usr/local/bin
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Fer scraper d'un emulador (per exemple, SNES):
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$cd /home/pi/RetroPie/roms/snes $scraper
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Fer scraper de tots els emuladors
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$scraper -scrape_all
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Fer scraper només de caràtules
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$scraper -thumb_only $scraper -scrape_all -thumb_only
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Scraper dels arcades (Neo-Geo, Mame, FB Alpha...). Exemple amb Neo-Geo:
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$cd /home/pi/RetroPie/roms/neogeo $scraper -mame
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
ON ES DESA LA INFORMACIÓ? Per exemple, veurem on són els fitxers d'SNES.
Caràtules: /home/pi/RetroPie/roms/snes/images Dades: /home/pi/RetroPie/roms/snes/gamelist.xml
Podem modificar imatges (hem de mantenir el nom del .JPG que ha de coincidir amb el de la rom sense extensió afegint-hi «-image»)
Podem crear els nostres propis gamelist.xml
<?xml version="1.0"?> <gameList> <game> <path>./Aladdin.bin</path> <name>Aladdin (USA)</name> <desc>Hang on to your carpet for ACTION and FUN! Aladdin slashes his shining scimitar to fight through Agrabah, escape the Sultan's dungeon, survive the fiery Cave of Wonders, [...]</desc> <image>./images/Aladdin-image.jpg</image> <thumbnail></thumbnail> <rating>0.6</rating> <releasedate>19931126T000000</releasedate> <developer>Disney Interactive Studios</developer> <publisher>Virgin Interactive</publisher> <genre>Action</genre> <players>1</players> <favorite>true</favorite> <kidgame>true</kidgame> <hidden>false</hidden> <playcount>0</playcount> <lastplayed>0</lastplayed> </game> </gameList> |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
A aquestes alçades ja no cal dir que podem editar el fitxer gamelist.xml amb:
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$nano /home/pi/RetroPie/roms/snes/gamelist.xml
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
CONFIGURAR ELS COMANDAMENTS (PS3)
La darrera versió de RetroPie sembla que autoconfigura els comandaments a RetroArch. La tecla «select» (0) està configurada com a hotkey, i això dóna problemes en alguns jocs on es realitza l'«Insert coin» amb «select»... Ho podem canviar amb:
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$sudo nano /opt/retropie/configs/all/retroarch.cfg
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hem de canviar: input_enable_hotkey_btn = 0 Per: input_enable_hotkey_btn = 16
Un altre problema és que als jocs (això sobretot es nota als jocs de recreatives) només podem moure els personatges amb els botons de desplaçament. Si volem poder utilitzar tant els botons com el joystick del comandament PS3, només cal editar el mateix fitxer.
Cerquem les cadenes: # input_player1_left_axis = # input_player1_right_axis = # input_player1_up_axis = # input_player1_down_axis =
I les canviem per: input_player1_left_axis = -0 input_player1_right_axis = +0 input_player1_up_axis = -1 input_player1_down_axis = +1 input_player2_left_axis = -0 input_player2_right_axis = +0 input_player2_up_axis = -1 input_player2_down_axis = +1 input_player3_left_axis = -0 input_player3_right_axis = +0 input_player3_up_axis = -1 input_player3_down_axis = +1
Amb això tindrem els 3 comandaments de la PS3 preparats per funcionar tant amb els botons de desplaçament, com amb el joystick.
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
SI NECESSITEM CONFIGURAR-LOS MANUALMENT...
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$sudo find / -name retroarch $cd /opt/retropie/configs/all/retroarch-joypads
$ls $sudo nano ''PLAYSTATION(R)3Controller(00180128D8E9).cfg'' |
cerca lloc fitxers config comand. veure fitxers edita
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I després de input_driver enganxem:
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
#============================= # RetroPad #============================= # D-Pad input_up_btn = "4" input_down_btn = "6" input_left_btn = "7" input_right_btn = "5" # Analog Stick input_l_x_plus_axis = "+0" input_l_x_minus_axis = "-0" input_l_y_plus_axis = "+1" input_l_y_minus_axis = "-1" input_r_x_plus_axis = "+2" input_r_x_minus_axis = "-2" input_r_y_plus_axis = "+3" input_r_y_minus_axis = "-3" # Action Buttons input_a_btn = "13" input_b_btn = "14" input_x_btn = "12" input_y_btn = "15" # Trigger Buttons input_l_btn = "10" input_r_btn = "11" input_l2_btn = "8" input_r2_btn = "9" input_l3_btn = "1" input_r3_btn = "2" # Selectors input_start_btn = "3" input_select_btn = "0" #============================= # Hotkeys #============================= input_enable_hotkey_btn = "16"
input_menu_toggle_btn = "12" input_load_state_btn = "10" input_save_state_btn = "11" input_rewind_btn = "8" input_toggle_fast_forward_btn = "9" input_state_slot_increase_btn = "5" input_state_slot_decrease_btn = "7" input_volume_up_btn = "4" input_volume_down_btn = "6"
input_pause_toggle_btn = "0" input_reset_btn = "14" input_exit_emulator_btn = "3"
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
CONFIGURACIÓ COMANDAMENTS A MAME
Obrir qualsevol joc de Mame amb els comandaments PS3 sincronitzats i un teclat connectat i prémer la tecla TAB al teclat
Apareix interfície de configuració (desplaçar-se amb fletxes, ENTER per canviar i ESC per eliminar configuració d'una acció), seleccionar Input (general) per configurar els comandaments per tots els jocs, o bé Input (this game) per configurar-ho només pel joc que tenim obert.
Tecles a modificar (jugador 1, jugador 2 i jugador 3)
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
CONFIGURACIÓ DE JOCS DE MS-DOS
Per configurar el comandament a Dosbox, cal posar a la carpeta /home/pi/.dosbox (que en realitat és /opt/retropie/configs/pc) el fitxer mapper-SVN.map amb un contingut similar a:
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
hand_shutdown "key 290 mod1" hand_capmouse "key 291 mod1" hand_fullscr "key 13 mod2" hand_pause "key 19 mod2" hand_mapper "key 282 mod1" hand_speedlock "key 293 mod2" hand_recwave "key 287 mod1" hand_caprawmidi "key 289 mod1 mod2" hand_scrshot "key 286 mod1" hand_video "key 286 mod1 mod2" hand_decfskip "key 288 mod1" hand_incfskip "key 289 mod1" hand_cycledown "key 292 mod1" hand_cycleup "key 293 mod1" hand_caprawopl "key 288 mod1 mod2" hand_swapimg "key 285 mod1" key_esc "key 27" "stick_0 button 0" key_f1 "key 282" key_f2 "key 283" key_f3 "key 284" key_f4 "key 285" key_f5 "key 286" key_f6 "key 287" key_f7 "key 288" key_f8 "key 289" key_f9 "key 290" key_f10 "key 291" key_f11 "key 292" key_f12 "key 293" key_grave "key 96" key_1 "key 49" key_2 "key 50" key_3 "key 51" key_4 "key 52" key_5 "key 53" key_6 "key 54" key_7 "key 55" key_8 "key 56" key_9 "key 57" key_0 "key 48" key_minus "key 45" key_equals "key 61" key_bspace "key 8" key_tab "key 9" key_q "key 113" "stick_0 button 11" key_w "key 119" key_e "key 101" key_r "key 114" key_t "key 116" key_y "key 121" "stick_0 button 16" key_u "key 117" key_i "key 105" key_o "key 111" key_p "key 112" key_lbracket "key 91" key_rbracket "key 93" key_enter "key 13" key_capslock "key 301" key_a "key 97" key_s "key 115" key_d "key 100" key_f "key 102" key_g "key 103" key_h "key 104" key_j "key 106" key_k "key 107" key_l "key 108" key_semicolon "key 59" key_quote "key 39" key_backslash "key 92" key_lshift "key 304" key_lessthan "key 60" key_z "key 122" key_x "key 120" key_c "key 99" key_v "key 118" key_b "key 98" key_n "key 110" "stick_0 button 10" key_m "key 109" key_comma "key 44" key_period "key 46" key_slash "key 47" key_rshift "key 303" key_lctrl "key 306" "stick_0 button 15" key_lalt "key 308" "stick_0 button 13" key_space "key 32" "stick_0 button 3" "stick_0 button 14" key_ralt "key 307" key_rctrl "key 305" key_printscreen "key 316" key_scrolllock "key 302" key_pause "key 19" key_insert "key 277" key_pagedown "key 281" key_up "key 273" "stick_0 button 4" key_left "key 276" "stick_0 button 7" key_home "key 278" key_pageup "key 280" key_delete "key 127" key_end "key 279" key_down "key 274" "stick_0 button 6" key_right "key 275" "stick_0 button 5" key_numlock "key 300" key_kp_divide "key 267" key_kp_multiply "key 268" key_kp_minus "key 269" key_kp_7 "key 263" key_kp_8 "key 264" key_kp_9 "key 265" key_kp_plus "key 270" key_kp_4 "key 260" key_kp_5 "key 261" key_kp_6 "key 262" key_kp_1 "key 257" key_kp_2 "key 258" key_kp_3 "key 259" key_kp_enter "key 271" "stick_0 button 3" key_kp_0 "key 256" key_kp_period "key 266" jbutton_0_0 "stick_0 button 14" jbutton_0_1 "stick_0 button 15" jaxis_0_1- "stick_0 axis 1 0" jaxis_0_1+ "stick_0 axis 1 1" jaxis_0_0- "stick_0 axis 0 0" jaxis_0_0+ "stick_0 axis 0 1" jbutton_0_2 "stick_0 button 12" jbutton_0_3 "stick_0 button 13" jbutton_1_0 jbutton_1_1 jaxis_0_2- "stick_0 axis 2 0" jaxis_0_2+ "stick_0 axis 2 1" jaxis_0_3- "stick_0 axis 3 0" jaxis_0_3+ "stick_0 axis 3 1" jaxis_1_0- jaxis_1_0+ jaxis_1_1- jaxis_1_1+ jbutton_0_4 "stick_0 button 4" jbutton_0_5 "stick_0 button 5" jhat_0_0_0 "stick_0 hat 0 1" jhat_0_0_3 "stick_0 hat 0 8" jhat_0_0_2 "stick_0 hat 0 4" jhat_0_0_1 "stick_0 hat 0 2" mod_1 "key 306" "key 305" mod_2 "key 308" "key 307" mod_3 |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
En aquest cas s'ha configurat:
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
lines 121 to 124 Gravis Gamepad D-pad/joystick mapped to left analogue stick (by default). lines 119, 120, 125, 126 Gravis Gamepad actions buttons mapped to buttons on PS3 controller. lines 98 to 101 Keyboard arrow keys mapped to D-pad on PS3 controller. line 17 ESC mapped to SELECT. line 86 SPACE mapped to START and X button. line 116 Enter/Return mapped to START line 84 Left CTRL mapped to Square button line 85 Left ALT mapped to Circle button line 71 Left SHIFT not mapped. line 45 Key Q mapped to L2 line 50 Key Y mapped to PS button. line 78 Key N mapped to L1 button.
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
FER FUNCIONAR ELS JOCS:
Copiar els jocs en una carpeta a /home/pi/RetroPie/roms/pc Entrar a RetroPie i llançar l'script «+Start DOSBox.sh» (no fer-ho per ssh) Z:\>mount c /home/pi/RetroPie/roms/pc Z:\>c: C:\>DIR C:\>CD JOC C:\JOC>INSTALL.EXE
Per muntar imatges iso: Z:\>imgmount e /home/pi/RetroPie/roms/pc/joc.iso -T iso
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
CREAR LLANÇADOR I CONFIGURACIÓ PERSONALITZADA:
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Crear script per llançar l'aplicació:
- Copiem fitxer /home/pi/.dosbox/dosbox-SVN.conf a /home/pi/RetroPie/roms/pc/joc.conf
- Editem el fitxer joc.conf i canviem on diu
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$sudo apt-get install dosbox
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
NETEJA DE FITXERS AL LLISTAT D'EMULATIONSTATION:
Per fer que RetroPie només ens mostri els scripts per llançar els jocs, però no els executables:
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$sudo nano /etc/emulationstation/es_systems.cfg
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I hi deixem només les extensions .sh i .SH (en comptes de <extension>.bat .com .exe .sh .BAT .COM .EXE .SH</extension>): |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
<system> <name>pc</name>
<path>
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
CONFIGURACIÓ DE JOCS DE ZX SPECTRUM
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Des de l'script de configuracio, anar a «Experimental packages» i seleccionar «ZEsarUX» que l'instal·larà. En instal·lar-lo ZesarUX serà l'emulador per defecte. Per canviar-ho:
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$sudo nano /opt/retropie/configs/zxspectrum/emulators.cfg
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Per configurar el comandament als jocs de ZX Spectrum, cal crear un fitxer amb el nom: nom_de_ROM_(amb extensió).config i el contingut per cada botó (màxim 8) --joystickkeybt botó_joystick 'tecla_teclat'
Per exemple, pel joc Batman: ROM: Batman (1986).tap Fitxer configuració: Batman (1986).tap.config Contingut del fitxer de configuració: --joystickkeybt 4 'q' --joystickkeybt 6 'a' --joystickkeybt 7 'o' --joystickkeybt 5 'p' --joystickkeybt 14 'n' --joystickkeybt 13 'z' --joystickkeybt 15 '32' --joystickkeybt 11 '1'
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
CONFIGURACIÓ COMANDAMENT A COLECOVISION
Editem el fitxer /home/pi/coolcv_mapping.txt
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$nano /home/pi/coolcv_mapping.txt
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I podem modificar-hi els elements que aquí estan subratllats en color groc (jugador 1) i verd (jugador 2):
' CoolCV mappings for Colecovision controllers to keyboard and joystick up_1 key1073741906 joy0_4 right_1 key1073741903 joy0_5 down_1 key1073741905 joy0_6 left_1 key1073741904 joy0_7 left_button_1 key32 joy0_13 right_button_1 key109 joy0_12 button3_1 key1073741939 joy0_14 button4_1 key1073741939 joy0_15 key1_1 key49 joy0_8 key2_1 key50 joy0_10 key3_1 key51 joy0_0 key4_1 key52 joy0_1 key5_1 key53 joy0_9 key6_1 key54 joy0_11 key7_1 key55 joy0_3 key8_1 key56 joy0_2 key9_1 key57 key*_1 key111 key0_1 key48 key#_1 key112 up_2 key119 joy1_4 right_2 key100 joy1_5 down_2 key115 joy1_6 left_2 key97 joy1_7 left_button_2 key9 joy1_13 right_button_2 key113 joy1_12 button3_2 key1073741939 joy1_14 button4_2 key1073741939 joy1_15 key1_2 key114 key2_2 key116 key3_2 key121 key4_2 key102 key5_2 key103 key6_2 key104 key7_2 key118 key8_2 key98 key9_2 key110 key*_2 key106 key0_2 key107 key#_2 key108 key_save key1073741882 key_restore key1073741883 key_exit key1073741939 joy0_16 key_pause key1073741884 key_reset key8
Amb aquesta configuració seleccionarem el nombre de jugadors i el nivell de dificultat segons la imatge... Botons en groc: un jugador; en verd: dos jugadors.
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
CONFIGURACIÓ DE COMANDAMENTS A SUPERTUX
En teoria pot llançar-se el joc amb el joystick configurat a la comanda de la forma:
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$supertux - -joymap XAXIS:YAXIS:A:B:START
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Per exemple, per un comandament PS3 podria ser:
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$supertux - -joymap 0:1:13:14:0
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Amb aquest sistema caldria afegir el joymap a l'script SuperTux.sh de /home/pi/RetroPie/roms/ports.
També es pot configurar els comandaments editant el fitxer /home/pi/.supertux/config
MÉS INFORMACIÓ... https://github.com/retropie/retropie-setup/wiki
I SI EL NEN JUGA A RETROPIE...?
Podem crear un entorn a segur a RetroPie amb:
1. Instal·lar EmulationStation-Kids (script de configuració)
Permet etiquetar els jocs com: Favorite, Kidgame o Hidden Permet interfícies: Full, Kiosk, Kid |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
2. Amagar menú RetroPie
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$sudo nano /etc/emulationstation/es_systems.cfg
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I posem < ! - - i - - > per amagar secció RetroPie, així:
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
<!--<system> <name>retropie</name> <fullname>RetroPie</fullname> <path>~/RetroPie/retropiemenu</path> <extension>.rp .sh</extension> <command>sudo /home/pi/RetroPie-Setup/retropie_packages.sh retropiemenu lau$ <platform/> <theme>retropie</theme> <directlaunch/> </system>--> |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
3. Amagar menú de configuració emulador (quan llancem joc)
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
$sudo nano /opt/retropie/configs/all/runcommand.cfg
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Canviem disable_menu=''0'' per disable_menu=''1''. Si el fitxer runcommand.cfg no existeix, el creem i dins hi posem disable_menu=''1''.
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
CÒPIA DE SEGURETAT A UN USB
FORMAT EXT3 A PENDRIVE USB
Cerquem el dispositiu amb:
$df
Per exemple:
/dev/sdf1 60530720 32 60530688 1% /media/usuari/KINGSTON
Desmuntem la unitat:
$umount /dev/sdf1
Li donem format ext3:
$sudo mkfs.ext3 /dev/sdf1
Etiquetar la unitat:
$
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|