RandomityGuy / MBHaxe

A Haxe port of Marble Blast Gold, Platinum and Ultra with 99% identical physics and cross platform multiplayer, runs on Windows, Mac, Web and Android!
MIT License
61 stars 7 forks source link

On Mac build, multiplayer button has no effect #44

Open dflat2 opened 3 weeks ago

dflat2 commented 3 weeks ago

When pressing the Multiplier game button from the MBHaxe Ultra main menu:

Expected behaviour: it should show an 'Enter your name' dialog, like it does on the web build. Actual behaviour: it doesn't do anything and the main menu is still the active canvas content. No errors are shown in the logs.

It used to work in v1.1.2 but stopped working in v1.1.3. I play on macOS 14.

RandomityGuy commented 3 weeks ago

This is related to the process where the game tries to connect to the master server. Check your internet connectiom?

Does it happen on MBP version?

dflat2 commented 2 weeks ago

Oops, I found what was the problem, it looks like my settings.json file was corrupted. The highscoreName field was null instead of a string. Changed it back to a string and now the button works.

I didn't make that string -> null change by myself, so I guess this field must have been set to null somewhere in the game.

RandomityGuy commented 2 weeks ago

Good catch, game should ensure that it should not be null