-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GamePi20] Dark screen after running game and buttons mapping(detected&working) #18
Comments
Please see: https://github.com/Vegz78/McAirpos#issues Get back to me if you’re still stuck. |
Thanks for help. I changed chmods for mods folder and every game works. Now i have problem with controler. Don't know how to remap keys. Nomap command on start .elf file don't work but this problem is for other topic. |
👍 But there is an issue, unknown if it was solved ultimately, for the gamepi20 here: And many other solved cases(issue topic starts with controller name in parentheses) concerning similar controllers here: Usually, my impression is that you should get the physical wiring correct first, if possible, before starting to play with the rather complex McAirpos config files. Forget that it already works in RetroPie; McAirpos/MCA works on a lower raw and totally independent level of input devices. When it is working for MCA games, it is easy to reconfigure via the menus in RetroPie afterwards. |
I have attempted to explain how the controllers work and are set up here: PS: Since it seems that quite a few people who end up trying McAirpos are people who are building different DIY Arcade machines(I had various console controllers in mind and at home when I started), and since many have bought the GamePi20, it would be great to get a confirmed working example of the GamePi20 in use here. I am therefore interested in helping you as much as I am able, in exchange for that you write a decently detailed summary of how you got it to work afterwards, for others in the community to follow. What do you think? |
Any progress on the Gamepi20, or anything I can do to help, @marjian88? |
Still didn't make any progress. I was editing config arcade1.py and based on codes from "evtest" tried to remap controler but there was not better. Couple of buttons work, such as Up button works in game as right button, down button works as reset game button. Only right button works fine as it should but after a minute of playing in "Cat Jumper" the games crashes without any error and exits to retropie menu. I tried to replace some key codes in arcade1.py but without any succesful result. In retropie in my menu there is option which can remap the keys bu it only detects GPIO controler. When you run MakeCode application in system appears some kind MakeCode virtual controler but i don't know how to switch on him to remap it on RetroPie. |
Thanks for your reply! I can see that the possibility to rewire physically is difficult, since the controls are GPIO which are connected in a fixed connector between the RPi Zero and Gamepi20. So we can forget this approach. However, unless you want to become an expert on complex and poorly documented uinput-mapper configs, I would suggest resetting back to the original/default McAirpos configs and continue from the bottom up. Possibility 1: Possibility 2: Possibility 3: Regarding games suddenly quitting, for me it is mostly a symptom of games receiving the exit command somehow unintentionally(bad connection in some old and worn PS3 controllers, or redundant inputs close to used buttons in arcade1.cfg), or maybe uinput-mapper is a bit too demanding for the RPi Zero. Anyhow, this might be optimized later, as soon as you get everything to play together ok: (sorry if my support does not hit precisely the mark, but I don’t have this equipment myself and cannot tinker and test directly. But I am sure we can manage together, and it would also be of great help to others with the GamePi20. Could you please upload the first screen from evtest here, before pressing any buttons?) |
Could you please provide a copy of your evtest readout? Best for me to help if you mark on the readout which EV code is which button on the GamePi20. From a similar readout from @Kay-Wolfe, the GamePi20 should be recognized(BTN_START&BTN_SOUTH), and at least BTN_SOUTH, BTN_B, BTN_START, BTN_SELECT, ABS_X(left-right) and ABS_Y(up-down) should be mapped on fresh install of McAirpos. What do you see? PS: The makecode virtual controller is uinput-mapper at work. |
Sorry for late answer, but I just came back from summer holidays. Here is my log from evtest: https://photos.app.goo.gl/6XqySmZCNv6a9j9V6 The keys are: The rest buttons are not responding on evtest. |
No worries and thanks for the log! Hope you had a nice summer holiday. We're getting closer, but it looks like you chose "device event number" 1, which is the remapped "UInput_mapper MakeCode_Arcade" device. Could you please do the same for "/dev/input/event0" - "GPIO Controller 1", so that I get the full picture of the direct physical controller device instead?: Seems to be a slightly unusual default setup for the GamePi20, but based on button codes for /dev/input/event0, we should be able to get the GamePi20 to work with only "/sd/arcade.cfg" and launCharc with the |
Yeah, the GamePi20 device and/or driver has a highly unusual compliance to the "standard". But, then again, a button is just a button, and a name/code is just a name, which can be mapped however you like. That's why RetroPie lets you through this button mapping routine on every installation/newly connected controller, and why you experience that the controller works ok in all the other emulators in RetroPie/Retroarch. But, as soon as we have the full picture, we can map the GamePi20's buttons manually likewise in MakeCode Arcade games, as well! Please run
|
Here you go: |
Great! Give me some time, and I’ll put together a config file for you to test. Hopefully, we’re very close to a working solution now. |
It's ok. Thanks for help. I can wait. I have also Tinkergen GameGO, so i have a quick test platform for makecode. |
Allright @marjian88, I am unable to test this file where I am at the moment, but I've tried to configure it according to the table above. Could you please download this file, rename it to arcade1.py and replace /home/pi/McAirpos/McAirpos/uinput-mapper/configs/arcade1.py with it?: Keep the original/default /sd/arcade.cfg as-is and run McAirpos without the Hope it works for you and looking forward to hearing back from you! |
Now everything works fine. Really good job, thanks. |
Your welcome, and thanks for helping out solving for the popular GamePi20! A better solution would probably be to remap the GPIO to only EV_KEY event codes in the Waveshare config file, so that we did not need the uinput-mapper remapping. I have sent them a mail about the unusual mappings in the table above. All working ok and stable now, @marjian88? I got a mail mentioning missing exit and reset buttons etc., a little different than your last message above… ;-) If everything is working satisfactory, a star for the repo would be appreciated! |
Yes at first i think that something is wrong because when i push start button the game freezes for 2 seconds and after that exits to retropie menu. And the same with reset button. |
This sounds about right, as McAirpos uses a couple of seconds to ensure that all game processes are killed before returning to RetroPie.
The reset button should only restart the game, while I think I mapped the left shoulder/trigger button to the “menu” function. Do I need to make some small adjustments? How about game play? Games aren’t suddenly quit/shut down during game play any more? Thanks for the star! ;-) |
I played only a few games like "cat jumper" and "falling duck" and everything works fluently and stable. |
Closing this issue, as McAirpos is confirmed working with the uinput-mapper configuration as mentioned here with instructions and download link: A possibly better approach - only using the MCA games' _/sd/arcade.cfg directly and without the need for uinput-mapper - might be to configure the GamePi20 driver configuration to adhere more to the Linux Subsystem event button standard and the button keys McAirpos expects, as described earlier by @Kay-Wolfe and as suggested by the Waveshare Service Team: Thanks, @marjian88 for your testing, feedbacks and patience! |
I have a problem. I have gamepi20 and i would like to run some MakeCode games on it. I installed McAirpos from git as you described: curl -sL https://raw.githubusercontent.com/Vegz78/McAirpos/master/install.sh | bash -
Everything installed fine. But after running game I see dark screen and after about 15 seconds retropie shows game select menu again.
Anyone has the same problem? I tried to running games on built in screen and i connect monitor wiht HDMI and the problem is still occurs.
The text was updated successfully, but these errors were encountered: