clojure.lang.ExceptionInfo: Duplicate node key when changing script properties
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 time | 2019-11-29T13:39:24.408889 |
| Defold channel | editor-alpha |
| Defold editor sha | 39b2b2d4bd91ffd166a5776bd998912a0ec9758c |
| Defold engine sha | 2be2687cbb670c2dbe9cf2e99577bc3338561778 |
| Defold version | 1.2.164 |
| Error | 2d8159ea756045a08a1c86cd32eda42b |
| GPU | GeForce GTX 1050 Ti/PCIe/SSE2 |
| GPU Driver | 4.6.0 NVIDIA 441.66 |
| Java version | 11.0.1+13 |
| OS arch | amd64 |
| OS name | Windows 10 |
| OS version | 10.0 |
I'm having the exact same issue with the way I'm implementing moving platforms as well.
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.