You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you create a new layer in LDtk, the default name will be the same as its type name:
However, when you try to load this project with the macro, it fails with the internal compile error "Recursive class", because the generated name (using the prefix of "Level_") yields the exact same name as the internal base class Level_Entities.
I have attached a minimal LDtk project file (renamed to .json so Github would let me upload it) that illustrates the problem. repro.json
Here is a text log of the generated type definitions, where you can see that the Entities class is being generated with the name Layer_Entities and that its parent class is also Layer_Entities.
When you create a new layer in LDtk, the default name will be the same as its type name:
However, when you try to load this project with the macro, it fails with the internal compile error "Recursive class", because the generated name (using the prefix of "Level_") yields the exact same name as the internal base class
Level_Entities
.I have attached a minimal LDtk project file (renamed to .json so Github would let me upload it) that illustrates the problem.
repro.json
Embed it as per the official documentation:
Here is a text log of the generated type definitions, where you can see that the
Entities
class is being generated with the nameLayer_Entities
and that its parent class is alsoLayer_Entities
.repro_output.txt
The text was updated successfully, but these errors were encountered: