Bug: Common event resources are not preloaded on scene load.

● ARCHIVED · READ-ONLY
Started by Yare 3 posts View original ↗
  1. I noticed that when I used Join Scene with direct placement inside of a Common Event, that the character busts would be in the wrong spot the first time they each appear. I dug in and discovered that ResourceManager._loadEventCommandsData isn't diving into any commands that contain Common Events, and so the resources in Common Events aren't being preloaded as part of GameScene setup. Adding this to the switch statement fixed the issue on my machine:

    Code:
    when "gs.CallCommonEvent"
                        if command.params.commonEventId 
                            commonEvent = RecordManager.commonEvents[command.params.commonEventId]
                            if commonEvent?
                                @loadCommonEventResources(command.params.commonEventId)

    (Presumably the auto-preload checkbox on common events isn't working, if this is an issue)
  2. Hello, thanks for your feedback, I will take a look into that soon to figure out if that is an actual bug or by purpose. I will let you know.
  3. Thank you for looking into this.