Forum Replies Created

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • in reply to: N64 controller setup #98288
    TorVaga
    Participant

    Check out this page: https://github.com/retropie/RetroPie-Setup/wiki/Nintendo-64
    It shows you what buttons is assigned where on the N64 controller. I am struggling to get this controller work myself, since the games I try to play is launched in Mupen64 (atleast that’s what I think).

    in reply to: Autofire on the axis #94014
    TorVaga
    Participant

    As for the other buttons, I mean what I should “call” them. To get them assigned to selecting 1player and 2player inside emulators.
    [quote=93776]If you only had to swap the axis on one of the controllers that would sound like a wiring issue. Especially if it works correctly in in the emulators and not ES. That sounds like setup is correct in one and not the other.

    As for your other buttons. I don’t know know why they wouldn’t map as the others. If you see them in jstest, you should be able to map them to a retroarch input.
    [/quote]

    in reply to: Autofire on the axis #93723
    TorVaga
    Participant

    Yay. Finaly got it! (Atleast ingame in emulators)

    
    input_player1_joypad_index = 0
    input_player1_b_btn = 4
    input_player1_y_btn = 0
    input_player1_select_btn = 2
    input_player1_start_btn = 5
    input_player1_up_axis = +0
    input_player1_down_axis = -0
    input_player1_left_axis = -1
    input_player1_right_axis = +1
    input_player1_a_btn = 3
    input_player1_enable_hotkey_btn = 2
    input_player1_exit_emulator_btn = 5
    
    input_player2_joypad_index = 1
    input_player2_b_btn = 4
    input_player2_y_btn = 0
    input_player2_select_btn = 2
    input_player2_start_btn = 5
    input_player2_up_axis = +1
    input_player2_down_axis = -1
    input_player2_left_axis = -0
    input_player2_right_axis = +0
    input_player2_a_btn = 3
    input_player2_enable_hotkey_btn = 2
    input_player2_exit_emulator_btn = 5
    

    I had to swap player_2 axis +0/-0 and +1/-1. And I removed all the “quotes”
    Out in Emulationstation my player 2 joystick register up and down as left and right. Can this just be the wiring?
    Last question regarding the buttons: Anyone got a clue how to map the “Select 1 player” and “Select 2 player” buttons?
    Edit:
    It was just my wiring on the one controller I was sure I had wired correct =) So now all of my controls work as the should. Thanks again for all the guiding Feederchain!

    in reply to: Autofire on the axis #93686
    TorVaga
    Participant

    Sorry, I noticed that the #’s where there, but they weren’t when I tried the setup. Regarding the jstest I have the same number on the buttons on both players, except p1 @ js0 and p2 @ js1. And the same axis on the joysticks.
    I’ll have another go at it tomorrow and look at that code you pointed out now.

    [quote=93678]Is the first set of mappings exactly as seen in the cfg file? As in, are the #’s there? They shouldn’t be. You have to remove those.

    So both sets should probably look the same as what you pasted as working except

    input_player2_joypad_index = 1

    You can use jstest to figure out which button is which to map to the button in retroarch. But if you say that the uncommented button map works for player 1. Player 2’s should match.
    [/quote]

    in reply to: Autofire on the axis #93676
    TorVaga
    Participant

    I guess I would have tried a fresh install of the image to see if you can have a corrupt file or something. What img of Retropie do you use btw?

    in reply to: Autofire on the axis #93675
    TorVaga
    Participant

    Then I understand the concept of what I should do, but I can’t seem to get the right mappings.
    Should the mapping of the buttons be the same as the output of the jstest?
    When I haven’t altered the retroarch.cfg Player 1 works as it should.
    When I alter the file, and try this, nothing works (neither joysticks or buttons)

    #input_device = “Xin-Mo Xin-Mo Dual Arcade”
    #input_driver = “udev”
    
    #input_player1_joypad_index= “0”
    #input_player1_b_btn = “4”
    #input_player1_select_btn = “2”
    #input_player1_start_btn = “5"
    #input_player1_up_axis = “+0"
    #input_player1_down_axis = “-0"
    #input_player1_left_axis = “-1"
    #input_player1_right_axis = “+1"
    #input_player1_a_btn = “3”
    #input_player1_l_btn = “0”
    #input_player1_r_btn = “1”
    
    #input_enable_hotkey_btn = “2”
    #input_exit_emulator_btn = “5”
    
    #input_player2_joypad_index = “1”
    #input_player2_b_btn = “4”
    #input_player2_select_btn = “2”
    #input_player2_start_btn = “5”
    #input_player2_up_axis = “+0"
    #input_player2_down_axis = “-0"
    #input_player2_left_axis = “-1"
    #input_player2_right_axis = “+1"
    #input_player2_a_btn = “3”
    #input_player2_l_btn = “0”
    #input_player2_r_btn = “1”
    

    The Xin-Mo….cfg file (from the configuration I did in Retroarch of player 1) gives me this:`input_device = Xin-Mo Xin-Mo Dual Arcade
    input_driver = udev

    input_player1_joypad_index = 0
    input_player1_b_btn = 4
    input_player1_select_btn = 2
    input_player1_start_btn = 5
    input_player1_up_axis = +0
    input_player1_down_axis = -0
    input_player1_left_axis = -1
    input_player1_right_axis = +1
    input_player1_a_btn = 3
    input_player1_l_btn = 0
    input_player1_r_btn = 1
    `
    I’m a question mark at this point. Sorry for troubling you guys!

    in reply to: Autofire on the axis #93669
    TorVaga
    Participant

    I recommend you try testing the joystick/ buttons with jstest if you haven’t done already. To see that they register to the Pi. Exit Emulationstation and type sudo jstest /dev/input/js0 and js1 if you got the 2 player controllers. Then you can test if the buttons work. To exit out of the testing, you press Ctrl + C. If they register correctly there, I’m not sure why they wont register in Emulationstation I’m afraid.

    in reply to: Autofire on the axis #93639
    TorVaga
    Participant

    This might be a stupid question, but I gotta ask. In the retroarch.cfg file, there are alot of lines with # in front of all lines. Around line 400 in my file there is the “setup” for joypad, but is this where i should enter my “new” lines?
    Or am I supposed to enter both player 1 and player 2 at the very end of the document without the # in front?
    I’m quite a noob when it comes to altering lines like that, and I don’t really know what those # does to a line. I recon now that they might not effect the behavior of the Pi/ emulator when they got this # at first? Sorry for asking the obvious, but that’s how I learn. Thanks for trying to help, I appreciate it alot! =)

    in reply to: Autofire on the axis #93625
    TorVaga
    Participant

    Ok.
    I’m just referring to what Feederchain has written earlier in this post. And this is to remotely install it from a windows computer while the Pi is powered on and pluged into an Ethernet cable.
    I’m assuming you have already installed Retropie on your SD-card
    1. Download WinSCP
    2. Open it up and type in the IP-address to your Pi, together with the username (pi by deafault) and you will be prompted for the password later on.
    3. Find the downloaded .tar-file on the left side of the WinSCP, and some location on the right side on your Pi. (I used /root/home/pie or something like that, so I didn’t have to be logged in with super user rights on the Pi.)
    4. Drag and drop the file to that folder on your Pi.
    5. When the file is finished transfering I would download Putty. This is an SSH client. Use that to log into your Pi. (IP-address, username and Port 22)
    6. Log in with User: pi and PW: raspberry
    Run this commands 1 by 1

    tar -xf custom_kernel_1.20150317-1.tar.gz
    cd custom_kernel_1.20150317-1
    sudo ./install.sh

    Now you should have gotten the kernal patched.
    When you reboot your Pi and it enters Emulationstation, it should say that it finds 2 joypads. If you go to Retropie in the menu, you can select Configure keyboard/ joypad to retroarch. Here you will have to press the buttons you want to assign in the order the configuration takes you.
    And this is as far as I have gotten by now. I’m still troubling to configure the 2player side of the joypad. =)
    Hope this helps you! I’m probably just as noob as you are on this, so don’t be afraid to ask if I wrote something unclear.

    in reply to: Autofire on the axis #93621
    TorVaga
    Participant

    I can answer you on this when I get home in a couple of hours. It’s explained by feederchain earlier in this thread though.

    in reply to: Autofire on the axis #93610
    TorVaga
    Participant

    [quote=93601]Ya.. sorry I screwed up on remembering the config file name.

    I find it odd that with the latest version of the kernel I have posted

    (https://www.petrockblock.com/forums/topic/autofire-on-the-axis/page/2/#post-91680)

    you are unable to get player two to work. Are there input_player2 lines added to the .cfg file?
    [/quote]
    No, I have not added lines for input player 2. Sorry for my last post holding too many questions. I’m sure everything will work nicely when I can add those lines, but I’m uncertain where/ how to write them in the .cfg

    in reply to: Autofire on the axis #93462
    TorVaga
    Participant

    I recon you mean the retroarch.cfg or am I missing a file retropie.cfg?

    At line 470 in /opt/retropie/configs/all/retroarch.cfg I got these lines:

    # Joypad buttons.
    # Figure these out by using RetroArch-Phoenix or retroarch-joyconfig.
    # You can use joypad hats with hnxx, where n is the hat, and xx is a string representing direction. 
    # E.g. "h0up"
    # input_player1_a_btn = 
    # input_player1_b_btn =
    # input_player1_y_btn =
    # input_player1_x_btn =
    # input_player1_start_btn =
    # input_player1_select_btn =
    # input_player1_l_btn =
    # input_player1_r_btn =
    # input_player1_left_btn =
    # input_player1_right_btn =
    # input_player1_up_btn =
    # input_player1_down_btn =
    # input_player1_l2_btn =
    # input_player1_r2_btn =
    # input_player1_l3_btn =
    # input_player1_r3_btn =
    

    Is this where I should alter the buttons?
    And add them once more for player 2 below?
    My jstest tells me the same inputs on player 1 and player 2, but on different “levels” js0 for player 1, and js0 for player 2. Do I need to give that input at the start of the lines aswell?

    Edit:
    Ok. I went into the Retropie UI, and went throught the controller config. Then I was able to play the games with player 1. I could not however use 2 player controller. Then I shut down the system, removed the keyboard, and started up again. I could still use the player 1 buttons, but I was shutting it down again to do some other maintenance. When I turned it on again, I can’t get into the UI at all. Says PANIC: Unable to mount roof fs on unknown block. Do you know what might cause that?
    Edit:
    Back again after a clean install again. This time I used the 3.0 Beta vs. of Retropie. Now I have configured the joystick and buttons for player 1, but I’m not sure how to proceed to get player 2 working. Neither do I know how I can get those dedicated 1 Player and 2 Player buttons to work.

    in reply to: Autofire on the axis #93419
    TorVaga
    Participant

    Thanks for the files feederchain, you are a true hero =) That solved my trigger happy joystick movement. I do still have a problem to solve that I hope some merciful person can help me with here. I have installed the Retropie 2.6.0 for my Pi2, and wired up the Xin-Mo 2player control board. The “jstest /dev/input/js0 and js1” Gives all the right inputs. However, I can not get them to work inside any roms yet. I have tried inside the pre loaded Doom and such, but nothing works. (Btw I only have 2*6button + 1/2player buttons) In emulationstation both sets of joysticks and buttons work they way they should, but not inside the roms as said above. I guess this have something to do with mapping of buttons, but I have red my eyes sore trying to find out what files to alter, and what to do with the “problem” that I don’t have 2 extra buttons as most people seems to have.

    If anyone bother to read this, and point me to somewhere/ help me, you would get loads of carma coming your way ;)

    Thanks in advance.

Viewing 13 posts - 1 through 13 (of 13 total)