Skip to content
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

Mortal Kombat Trilogy will hang if joysticktype=none #1241

Closed
nemo93 opened this issue Sep 2, 2021 · 6 comments · Fixed by #1295
Closed

Mortal Kombat Trilogy will hang if joysticktype=none #1241

nemo93 opened this issue Sep 2, 2021 · 6 comments · Fixed by #1295
Labels
bug Something isn't working game compatibility Issues related to a specific game Linux Issues related to GNU/Linux
Milestone

Comments

@nemo93
Copy link
Collaborator

nemo93 commented Sep 2, 2021

Describe the bug
Mortal Kombat Trilogy gave me a headache... Indeed the game was always hanging at the same spot (the dragon head logo right after the bunch of company logos). The game hangs there forever yet you can still hear the sound of the next screen (which is normally a text scrolling with Goro's cave as background). You can only Ctrl+F9.

I realize I was facing the issue only when my xbox controller was switched ON. When switched OFF no problem whatsoever.

This is an annoying bug though as I can't properly use the mapper as I must declare a joystick in my conf file otherwise game will hang. Here's the exact behaviour in various scenarii:

  1. game will freeze if => joysticktype=none + controller ON (with or without a mapper file)
  2. game will NOT freeze if => joysticktype=none + controller OFF
  3. game will NOT freeze if => joysticktype=disabled + controller ON
  4. game will NOT freeze if => joysticktype=auto (or any other value except none ) + controller ON

To Reproduce
Have the game running with a controller switched ON and with joysticktype=none then wait for the "dragon head logo". Please note it's the only game tested so far doing this.

Expected behaviour
Game to work as expected + being able to set joysticktype=none while a controller is ON in order to bind it with the mapper.

Environment:

  • Raspbian OS 32bit (Buster)
  • Pi4, no overclock, fKMS (fake mode, default), stock kernel

Additional context
Issue: #1111
Change: #1166

@nemo93 nemo93 added bug Something isn't working Linux Issues related to GNU/Linux game compatibility Issues related to a specific game labels Sep 2, 2021
@kcgen
Copy link
Member

kcgen commented Sep 26, 2021

@nemo93 - sorry for delay on this one.
Reproduced on my side, and now should be working in the latest sources.

@nemo93
Copy link
Collaborator Author

nemo93 commented Sep 27, 2021

No need to apologize. Take all time you need, no rush. Good you were able to reproduce. I've just tested with this "morning" master but unfortunately this time no mappings are working whatsoever. With any games I've tested with (these mappings were working fine before).

It's like joysticktype=disabled is being set yet I still have set joysticktype=none. If you need anything please let me know. Thanks.

@kcgen
Copy link
Member

kcgen commented Sep 27, 2021

Thank you, @nemo93 - reproduced on my side.

Unrelated - but given we're in alpha and touching the code: joysticktype = none and disabled are very ambiguous terms that, if possible, I'd like to make more intuitive. "None" means invisible to DOS but still mappable; is there a short and sweet way to sum that up? The best I can come with is "only_mappable", which is perhaps a slight improvement.
All ideas welcome!

@kcgen
Copy link
Member

kcgen commented Sep 28, 2021

@nemo93 - hopefully better results in the PR. Thankful for any further testing you can do on the kc/joystick-use-doubles-1.

@nemo93
Copy link
Collaborator Author

nemo93 commented Sep 28, 2021

@kcgen this time it works flawless. Thank you for that. I haven't had time to go through an extended testing session yet MKT works perfectly. The few other mappings tested from other games have no issue at all. I'm closing this one off.

I agree none is not that great value in that case while disabled makes immediate sense. The best term would be invisible although a bit long. What about hidden then?

@nemo93 nemo93 closed this as completed Sep 28, 2021
@kcgen
Copy link
Member

kcgen commented Sep 29, 2021

@nemo93 - more candidate names for the mapping-only / invisible in DOS mode:

Feel free to add a vote and your name 👍

@kcgen kcgen added this to the 0.78 milestone Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working game compatibility Issues related to a specific game Linux Issues related to GNU/Linux
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants