defold / editor2-issues

DEPRECATED
44 stars 4 forks source link

Error message when saving script file #2621

Open benjames-171 opened 5 years ago

benjames-171 commented 5 years ago

Expected behaviour

Run the game

Actual behaviour

Error message box pops up

Steps to reproduce

Made small change to .script file (uncommented 1 line of code). Pressed CTRL-B to run game and error message appeared. This seems to be to do with having a game object factory within an object of the same type.


Build time2019-05-27T09:55:17.092680
Defold channeleditor-alpha
Defold editor shaf18b603f54f0200888279b53abbaba68890354b0
Defold engine sha1a8f9e14786e6779405aedf490ebb82da01d7198
Defold version1.2.154
Errorcb90f8b7b68a4f039a8f9265ec461bed
GPUIntel(R) HD Graphics 520
GPU Driver4.5.0 - Build 25.20.100.6471
Java version11.0.1+13
OS archamd64
OS nameWindows 10
OS version10.0
vlaaad commented 5 years ago

Hi! The exception states that there is a cycle in resource dependency graph, which is not allowed. Did game object factory with an object of the same type worked before?

benjames-171 commented 5 years ago

According to britzl in this forum thread, it's never been possible to spawn a new game object from within an object of the same type. Just needs a more user-friendly error message.