RotJS Updated (Construct 3 Plugins)

You're viewing a single comment in a conversation. View all the comments
  • 2 Comments

  • Order by
  • Hello, I got this error using ROT.JS plugin and Save/Load.

    ------------------------------------------------------

    runtime.js:114 [Construct] Failed to load state from storage: TypeError: Cannot set properties of undefined (setting 'wallCleared')

    at RotJsInstance.LoadFromJson (8496761f-b9ad-46fb-ad80-c6ea81157d70:118:26)

    at Instance.LoadFromJson (instance.js:36:101)

    at ObjectClass._LoadFromJson (objectClass.js:30:470)

    at C3Runtime._DoLoadFromJsonString (runtime.js:120:13)

    at C3Runtime._DoLoadFromSlot (runtime.js:114:311)

    at async C3Runtime._HandleSaveOrLoad (runtime.js:111:52)

    at async C3Runtime.Tick (runtime.js:82:175)

    ------------------------------------------------------

    Everything is fine without the plugin. A small project with only ROT.JS and a Save/Load action triggers the error.

    • ! EDIT : problem found and solved !

      ------------------------------------------------------

      From "instance.js, under c3runtime folder, inside the plugin's .c3addon file

      Line 118, last line of "LoadFromJson(o)", there is this :

      "this.this.wallCleared = o["wallCleared"];"

      That line caused "wallCleared" to be undefined, and should be replaced by this :

      "this.wallCleared = o["wallCleared"];"

      Now the plugin supports Load again.

      ------------------------------------------------------