Please Help Configuring a Controller in Emulation Station


6 posts
by jdesforges » Tue Jan 22, 2013 3:21 am
Hi guys,

I am a complete Linux noob and have no idea what I am doing... I managed to get RetroPie up and running on my Pi. I can run NES roms, and they work with the keyboard. The last thing I need to get working is the USB replica NES controllers (Retrolink), and of course that is where I get stuck. I searched and searched the web but I can't find anything that I can understand enough to make it work. I followed these directions: https://github.com/petrockblog/RetroPie ... mulator%3F and it didn't work. I have the controllers set up to run through the menus in Emulation Station, just not within the games themselves if that makes sense.

Please help, I need clear, step by step directions as to how to do this. I've been working on it all day and have made 0 progress.

Thanks!
Posts: 4
Joined: Tue Jan 22, 2013 2:55 am
by jdesforges » Tue Jan 22, 2013 2:41 pm
Update:

I have also tried the method under the heading "3. Joysticks and Fine Tuning" which also did not work.
I manage to get the configuration tool going with
Code: Select all
retroarch-joyconfig -o player1.txt
but then when entering
Code: Select all
cat player1.txt >> retroarch.cfg
I get the response
Code: Select all
bash: syntax error near unexpected token `;&'


A lot of the instructions I have found seem to be outdated, pointing to directories which don't exist and stuff. I know I'm so close to getting this working but for the life of me can't figure it out.
Posts: 4
Joined: Tue Jan 22, 2013 2:55 am
by rurwin » Tue Jan 22, 2013 2:52 pm
jdesforges wrote: but then when entering
Code: Select all
cat player1.txt >> retroarch.cfg


That line has been corrupted by web software somewhere. It should read:

Code: Select all
cat player1.txt >> retroarch.cfg
User avatar
Moderator
Moderator
Posts: 2890
Joined: Mon Jan 09, 2012 3:16 pm
by jdesforges » Tue Jan 22, 2013 3:10 pm
rurwin wrote:
jdesforges wrote: but then when entering
Code: Select all
cat player1.txt >> retroarch.cfg


That line has been corrupted by web software somewhere. It should read:

Code: Select all
cat player1.txt >> retroarch.cfg


Thank you, good sir! You are truly a savior. I managed to get one controller working. I'm trying to get two so my little cousin can play along with me. The instructions are:

If you have more than one player, be sure to use the -p flag, which signifies the player number, and the -j tag for a different controller. The joystick numbering starts at 0, so watch out. Change the filenames after -o for each player.

So would that look like this?

Code: Select all
retroarch-joyconfig -o -p2 -j1 player2.txt


Thanks again!
Posts: 4
Joined: Tue Jan 22, 2013 2:55 am
by rurwin » Tue Jan 22, 2013 3:32 pm
I know Bash, but I've never even considered running a console emulator.

I see from Google though that it has a man page. Try:
Code: Select all
man retroarch-joyconfig
User avatar
Moderator
Moderator
Posts: 2890
Joined: Mon Jan 09, 2012 3:16 pm
by jdesforges » Tue Jan 22, 2013 7:16 pm
input_player2_joypad_index = "1"
input_player2_a_btn = "1"
input_player2_b_btn = "2"
input_player2_x_btn = "2"
input_player2_y_btn = "2"
input_player2_l_btn = "2"
input_player2_r_btn = "2"
input_player2_l2_btn = "2"
input_player2_r2_btn = "2"
input_player2_l3_btn = "2"
input_player2_r3_btn = "2"
input_player2_start_btn = "9"
input_player2_select_btn = "8"
input_player2_left_axis = "-0"
input_player2_up_axis = "-1"
input_player2_right_axis = "+0"
input_player2_down_axis = "+1"
input_player2_l_x_plus_btn = "2"
input_player2_l_y_plus_btn = "2"
input_player2_l_x_minus_btn = "2"
input_player2_l_y_minus_btn = "2"
input_player2_r_x_plus_btn = "2"
input_player2_r_y_plus_btn = "2"
input_player2_r_x_minus_btn = "2"
input_player2_r_y_minus_btn = "2"

Thanks, when I tried that it said there was no manual to accompany the file or something along those lines. Here is the workaround I figured out if anyone else has this problem. Just view retroarch.cfg in a text viewer and paste this at the bottom.
Posts: 4
Joined: Tue Jan 22, 2013 2:55 am