Bug Issue: Code is logical but isn't recognized untill moved


Pages: 1

evanyeti

  • Subscriber - Stencyl Studio
  • *
January 11, 2023, 05:58:39 pm
I'm having a strange issue when trying to update my game api for the play store. I'm using version 4.1.0 beta-3, testing on Android, ndk-15c, min api 26, max api 33.

Some scenes work fine but some have random problems: camera won't follow player, pause menu won't show up when paused, currency not drawn in hud. Eventhough the scenes have identical events, some work and some don't. After hours of messing with the scenes I've found that raising the position of the events higher in the event tab in the faulty scenes makes them run fine. I have re-installed everything, cleaned and optimized the project and still have the same problem. I can go throuh and manually raise the events and test the snot out of everything but wanted to make sure there wasn't a better way and wanted you guys to be aware of the issue.


Justin

  • Master Stencyler
  • *
January 11, 2023, 07:21:29 pm
I'm not sure what's causing the code to be wrong in some way, but when you make a small change in your behavior, such as moving a block, that causes the previous cache of Haxe code on disk to be invalidated, and the Haxe class file for that behavior is then deleted and regenerated.

A likely quick fix would be to delete the [stencylworks]/games/[game name]/.cache/behavior-hx folder for your game and testing it again.

Before doing that, if you'd like to share your game project, then I can take a look at the cached code and see if I can figure out what the problem is.


evanyeti

  • Subscriber - Stencyl Studio
  • *
January 11, 2023, 08:21:49 pm
Thank you very much. Do you need logs or the whole game folder?
*edit* I deleted the folder but the problem persists.
« Last Edit: January 11, 2023, 09:59:54 pm by evanyeti »


evanyeti

  • Subscriber - Stencyl Studio
  • *
January 13, 2023, 08:30:10 pm
I found that the issue scenes were calling for an unspecified actor. Usually the game won't test with that issue and I'm not sure what happened when updating the game that some actors became unspecified but my problem is resolved. Thank you.


Pages: 1

Details

  • Reported
    January 11, 2023, 05:58:39 pm
  • Updated
    January 16, 2023, 04:42:02 am

  • View Status
    Public
  • Type
    Bug
  • Status
    New
  • Priority
    Normal
  • Version
    (none)
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    (none)

Tags