PhaserEditor2D / PhaserEditor

A friendly IDE to develop HTML5 games based on the Phaser framework.
https://phasereditor2d.com
Eclipse Public License 1.0
327 stars 45 forks source link

Game Object Name Not Saved When Scene Is Saved #144

Closed Cartrell closed 4 years ago

Cartrell commented 4 years ago

Version

Description

Hey there,

First, I perform the following steps:

  1. Select a game object on the scene
  2. Expand the Game Object section from the Properties panel
  3. Check the box next to Name
  4. Save then close the scene
  5. Re-open the Scene, and the Name box is unchecked

game-object-name-checked game-object-name-check-removed-after-save

Possible solution

Not sure, but I was looking at src/phasereditor/scene/core/GameObjectComponent.java, and maybe the Name property isn't being save along with the other properties?

PhaserEditor2D commented 4 years ago

Hi, I can reproduce this error. I will fix it and send you a patch. Thanks.

PhaserEditor2D commented 4 years ago

Fixed. Please, uncompress this file:

patch-2.1.6-issue-144.zip

And replace the phasereditor.scene.core_2.1.5.20191125.jar file. It is a patched plugin with the fix.

Close the editor and start it again using the Debug.bat file that is present in the root folder of the editor installation. Please tell me if it works for you.

Cartrell commented 4 years ago

Looks like the patch is working. I set the names of objects in several scenes, saved, closed, and reopened those scene. The names were saved.

PhaserEditor2D commented 4 years ago

Thanks @Cartrell ! I close this. If there is any issue you can open it again. This will be included in the next release.

Cartrell commented 4 years ago

Will do. Thanks so much, man!