Need Help Translating Errors

supremelorax

  • Posts: 41
Recently, on publishing an app I received some of the following errors:

WARNING - Suspicious code. This code lacks side-effects. Is there a bug?
WARNING - Failed to resolve sourcemap:
WARNING - Suspicious code. The result of the 'not' operator is not being used.
WARNING - If this if/for/while really shouldn't have a body, use {}

Would anyone be able to help me understand the effects these are describing and what I might be able to do within Stencyl to rectify them? They haven't caused any issues so far with use but I would like to avoid doing anything potentially catastrophic in the future. Thank you!  8)

Luyren

  • *
  • Posts: 2747
Where did you get those errors? You should get more information if you run in debug mode and use the game console.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

supremelorax

  • Posts: 41
I noticed them in the log viewer when publishing to HTML5. Running in debug mode didn't turn up anything note worthy.

Luyren

  • *
  • Posts: 2747
If you use the game controller instead (you can enable it under preferences, then the button will appear beside the log viwewer), it might point to whatever the issue is, if it's something in your code. If it's nothing on your code and is only during publishing, it might be harmless stuff.

Edit: disregard that, game controller is only for running games. Unless the log viewer you mentioned points in some way to specific code you wrote, you'd have to manually revise your code if that is indeed the issue.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

supremelorax

  • Posts: 41
Internet research has been telling me some of these mean that there is code that is not referred to or used that is included. I haven't found anything like that in going through, but sounds harmless, albeit extra and unneeded potentially.

The log viewer does point, I just didn't include those as I figured it wouldn't be as helpful, but maybe it would have.