Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hello,

I am a game developer, and I’ve been using your plugin r88_ProximitySensor.js. It’s a fantastic tool and has been very helpful.

However, some of my players have reported that they encounter the following error when running the game on JoiPlay:

"SyntaxError: Unexpected end of JSON input"

Would it be possible for you to look into this bug and see if a fix is available for JoiPlay compatibility?

Thank you for your hard work!

Hi,

I'm not familiar with Joiplay, and I don't have an Android device, so it'll be difficult to test on my end. "Unexpected end of JSON input" means there's a user input error. For example, if a weird character like "!" or "$#" is in one of the parameters or plugin command arguments, the code wouldn't be able to parse it. So that's one place I would start looking.

Here are some questions that might help zero in on the problem:

  1. Are you able to reproduce the issue on PC, or is it specifically a JoiPlay problem?
  2. How many players have encountered the error? Is it most players, a handful, or all of them?
  3. Does the error occur at the start of the game, when the player encounters a sensor, or on a specific sensor? Does it happen every time or just some of the time?
  4. Are you certain that the error is caused by the plugin, or could there be some other compatibility issue? Check the parameters of any other plugins that you're using to see if you accidentally typed a random character in the field.

Hope that helps,

r88