defold / editor2-issues

DEPRECATED
44 stars 4 forks source link

clojure.lang.ExceptionInfo: Duplicate node key when changing script properties #2870

Open TurboSplash opened 4 years ago

TurboSplash commented 4 years ago

Expected behaviour

Able to change proeprty defaults of custom script properties from editor.

Actual behaviour

Editor throws error.

Steps to reproduce

I have a bunch of go files, with a single script attached, with custom properties (created via go.property()), used in a collection. There are a few of these (10 or so) since they're moving platforms in a level. Once I actually use them in the level and override the property defaults on any one of them, it throws this error. The error message changes depending on what properties I have overriden, for example "Duplicate node key 'move_x'" or "Duplicate node key 'move_distance_x'". Not 100% sure, but the properties I set seem to behave as expected in engine, it's just the editor that is throwing this error.


Build time2019-11-29T13:39:24.408889
Defold channeleditor-alpha
Defold editor sha39b2b2d4bd91ffd166a5776bd998912a0ec9758c
Defold engine sha2be2687cbb670c2dbe9cf2e99577bc3338561778
Defold version1.2.164
Error2d8159ea756045a08a1c86cd32eda42b
GPUGeForce GTX 1050 Ti/PCIe/SSE2
GPU Driver4.6.0 NVIDIA 441.66
Java version11.0.1+13
OS archamd64
OS nameWindows 10
OS version10.0
rocamocha commented 3 years ago

I'm having the exact same issue with the way I'm implementing moving platforms as well.

rocamocha commented 3 years ago

It might be related to this issue ---> when creating new platforms by copying and pasting the gameobject in the editor - during runtime the gameobject does not respect any changes to any properties within the editor until it is explicitly cut and paste back into the scene - acting as if the two objects share the same properties until this is done.