overbound / SonicTimeTwisted

Source Code for a Sonic Fan Game Made in Game Maker Studio
https://overboundstudio.com/
GNU General Public License v3.0
58 stars 16 forks source link

Game crashes on certain phones once the gameplay starts #131

Closed AlexKhayrullin closed 3 years ago

AlexKhayrullin commented 3 years ago

Reported by @Eukaryot3K :

Upon running the game on a Moto G5 Plus with Android 8.1.0, a few seconds into the game it crashes with the following stack trace:

image

This seems to be vibration-related, I might have wrongfully assumed that vibration in all phones worked the same and a Vibrator was guaranteed to exist, which might not be the case.

EDIT: It's not the absence of a Vibrator, it's the way I implemented vibrations, completely different.

AlexKhayrullin commented 3 years ago

After some digging online, I can't seem to find a viable solution, while the bug persists despite a reimplemented rumble for newer devices.

It looks like some phones will not have access to vibrations of haptic feedback at all. In this case, the menu will not even be displayed.

To make sure everything is set automatically, upon first launch the game will vibrate shortly and, depending on whether it went well, everything vibration-related will be enabled or disabled.