ClusterM / retroarch-clover

GNU General Public License v3.0
321 stars 50 forks source link

[SNES mini] Return to game select after launching game #77

Closed Agmorenard closed 7 years ago

Agmorenard commented 7 years ago

Greeting, i have one problem.

After a launch a game, using retroarch, when i push any button, it returning back to game select with ability to save "save state". It's like, after pushing button, it automatically "pushes" reset button. What can be a problem there? For some information, i'm using same modules, that i downloaded from here. And tried to launch Sega and SNES game.

LanceloteHK commented 7 years ago

Same here. I am using Super Famicom mini. I tried the Street Fighter 2 zero japan ver rom. The game runs fine, but when i press any button it pops out to the main menu. Any other game runs with '--retroarch' have same issue.

progranadegrinder commented 7 years ago

I've found that if you use the CloverApp, everything works fine, it's just when you add a ROM to the actual list of games that any button will close it.

buggii commented 7 years ago

I also have this issue. The "return to main menu" happens 2-3 seconds after i press one of the pad buttons (no matter which one); it happens with retroarch-launched games only.

Tried to uninstall everything+factory reset and re-patch kernel: always the same problem.

buggii commented 7 years ago

I did some more tests to dig out the problem (tests done with only genesis plus gx core):

retroarch 0.7 + genesis plus gx 0.7 = bug is not present, Mega Drive game starts and works fine (no exit when pressing pad buttons) but when exiting I have C8 error; need to remove USB power to turn off the console and after reboot it asks for language select.

retroarch 0.7 + genesis plus gx 0.8 = game does not start (black screen).

retroarch 0.8 + genesis plus gx 0.7 = bug is present (game starts and exits at each butto press).

I suppose the problem is inside retroarch core, need to dig it out.

EDIT: those are the file differencies between retroarch 0.7 and 0.8: https://i.imgur.com/4DhIpDE.png , hope someone will find the bug and solve it; it seems to be related to new stuff added in 0.8 retroarch module. My best guess are:

/bin/retroarch-clover and/or / /etc/preinit.d/pe9af_retroarch

Agmorenard commented 7 years ago

I just don't understand, why so many people have no problem with retroarch, while we have this problem. There are differences between each SNES mini?

buggii commented 7 years ago

My best guess is that the problem is present in people who modded with early hakchi versions but there are reports of people haveing the problem even if they started "hacking" with hakchi2 2.20 so... dunno ! :P

Agmorenard commented 7 years ago

Actually, i didn't hack SNES with early hakchi. I hacked with official 2.20, that was released yesterday. So, I'm one of them :P

buggii commented 7 years ago

Can this be the problem: https://i.imgur.com/QXUwuLX.png ? (I am not a script guru, sorry)

File is: user_mods 0.8/retroarch/bin/retroarch-clover-child

buggii commented 7 years ago

I think the "bug" is in that piece of code; removing all this part:

[code]

Playing games until reset pressed

while [ true ]; do kill -0 $rpid 2> /dev/null || break kill -0 $reset_pid 2> /dev/null || break kill -0 $power_pid 2> /dev/null || break if [ ! -z "$demo" ]; then

Exit on any button

kill -0 $anybutton_pid 2> /dev/null || break
# Or after some time
ts2=$(date +"%s")
tp=$((ts2 - ts))
[ "$tp" -ge "$demo_time" ] && break

fi done

kill $rpid 2> /dev/null kill -KILL $reset_pid 2> /dev/null kill -KILL $power_pid 2> /dev/null [ ! -z "$demo" ] && kill -KILL $anybutton_pid 2> /dev/null

[ ! -z "$save" ] && mkdir -p $(dirname "$save") [ ! -z "$sram" ] && mkdir -p $(dirname "$sram") [ ! -z "$screenshot" ] && mkdir -p $(dirname "$screenshot") [/code]

Totally removing that part solve the problem (but makes the game crash when home button is pressed); is someone able to fix this part of code ? The problem, i sum it up, is that when launching a retroarch game at each button press the game exits to SNES Mini main menu.

Thanks in advance !

Agmorenard commented 7 years ago

I'm not a good programmer, my i'm curious about this raw: if [ ! -z "$demo" ]; then Will it work without '!'?

buggii commented 7 years ago

I think it refers to "demo mode" which is halted when you press a button but I don't know if it is properly coded.

Agmorenard commented 7 years ago

I think so too, but i dunno about '!'... It's more like NOT demo

buggii commented 7 years ago

Someone should bring this thread to Cluster attention ;)

FierceLog commented 7 years ago

I am having this issue as well. All of the controller buttons seem to be mapped to "Reset" so it goes back to the menu. On some games I can quickly hit "Select" and watch it move to the next option, but within a second it goes back to the Menu like I hit "Reset" aka "Suspend".

Type of game: NES. In a folder created with Folders Manager. One controller plugged in.

sebabadi commented 7 years ago

Same here! A fix is needed!

FierceLog commented 7 years ago

Here's what fixed it for me: I checked the box marked "Use button combination to reset" under Settings -> Controller Hacks.

First I flashed the custom kernel, then I installed the extra module for RetroArch 0.8, then I checked the box mentioned above and clicked "Save Settings to SNES Now". Finally I synchronized my selected games.

For now it looks like "Use button combination to reset" under Settings -> Controller Hacks is required if you are using RetroArch mod.

Agmorenard commented 7 years ago

OMG, Thank you so much, FierceLog. It worked for me! Just to simplify your post: Checking "Use button combination to reset" under Settings -> Controller Hacks really fix that problem. Just do not forget to save it to SNES)

progranadegrinder commented 7 years ago

Are you guys having issues with save games not staying?

buggii commented 7 years ago

Good catch FierceLog ! It worked for me too !

ClusterM commented 7 years ago

I need more info. Maybe someone can let me see it via teamviewer?

Agmorenard commented 7 years ago

What exactly "it"?

ClusterM commented 7 years ago

I need to login via telnet, check /dev/input/event* files, edit RetroArch script to add logs, check logs.

ClusterM commented 7 years ago

Oh, I found problem. Will be fixed soon.

buggii commented 7 years ago

Thank you Cluster !

ClusterM commented 7 years ago

Fixed and released. Download and install new version. Sorry for that.

FierceLog commented 7 years ago

Awesome! Thanks ClusterM!