Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashing on trying to delete enum #1118

Open
Kryptoid987 opened this issue Jun 19, 2024 · 1 comment
Open

Crashing on trying to delete enum #1118

Kryptoid987 opened this issue Jun 19, 2024 · 1 comment

Comments

@Kryptoid987
Copy link

Stack:

LDtk version: 1.5.3-64bits
Cannot read properties of undefined (reading 'externalRelPath')
TypeError
TypeError: Cannot read properties of undefined (reading 'externalRelPath')
    at data_def_FieldDef.getJsonTypeString (file:///C:/Users/krypt/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:40563:15)
    at data_inst_FieldInstance.toJson (file:///C:/Users/krypt/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:47847:58)
    at data_Level.toJson (file:///C:/Users/krypt/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:33693:44)
    at LevelTimeline.saveFullLevelState (file:///C:/Users/krypt/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:16840:126)
    at LevelTimeline.clear (file:///C:/Users/krypt/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:16565:9)
    at LevelTimeline.manualOnGlobalEvent (file:///C:/Users/krypt/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:16677:9)
    at page_Editor.onGlobalEvent (file:///C:/Users/krypt/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:246817:8)
    at misc_GlobalEventDispatcher.emit (file:///C:/Users/krypt/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:229296:4)
    at _delete (file:///C:/Users/krypt/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:304280:23)
    at ui_modal_panel_EditEnumDefs.deleteEnumDef (file:///C:/Users/krypt/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:304325:5)

Processes:

#0 App
 |--- #4 page.Editor
       |--- #5 misc.FileWatcher
       |--- #6 display.WorldRender
       |--- #7 display.LevelRender
       |--- #8 display.Camera
       |--- #9 display.Rulers[--]
       |--- #10 tool.SelectionTool[--]
       |--- #11 tool.lt.DoNothing[--]
       |--- #12 WorldTool
       |--- #13 tool.PanView[--]
       |--- #14 tool.lt.TileTool[--]
       |--- #28 ui.modal.panel.EditEnumDefs
       |--- #30 ui.modal.ContextMenu
       |--- #33 ui.Tip
       |--- #34 ui.LastChance

Log:

[FILE]         Watching file: D:/Playdate/PlatformerPrototype/source/levels/tileset-table-24-24.png
[RENDER]       Rendering world level data.Level#abbda0b0-25d0-11ef-9c9d-ad16732125be "WoodmanNES_0"...
[RENDER]       Rendering world level fields data.Level#abbda0b0-25d0-11ef-9c9d-ad16732125be "WoodmanNES_0"...
[RENDER]       Rendered level UI
[RENDER]       Rendering world bg...
[GENERAL]      Progress completed: "MegamanTest.ldtk: Project..." (0.3s)
[RENDER]       Rendering world level data.Level#97545110-25d0-11ef-9144-ed4ec917c7a0 "WoodmanNES_2"...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[USERACTION]   Opened panel #19 ui.modal.panel.LevelInstancePanel
[FILE]         Loading HTML template levelInstancePanel
[FILE]         Loading HTML template levelInstanceForm
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[USERACTION]   Opened panel #22 ui.modal.panel.EditLayerDefs
[USERACTION]   Closed panel #19 ui.modal.panel.LevelInstancePanel
[FILE]         Loading HTML template editLayerDefs
[FILE]         Loading HTML template pivotEditor
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[USERACTION]   Opened panel #28 ui.modal.panel.EditEnumDefs
[USERACTION]   Closed panel #22 ui.modal.panel.EditLayerDefs
[FILE]         Loading HTML template editEnumDefs
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[WARNING]      Last chance for: Enum Df deleted
[EVENT]        EnumDefRemoved
[EVENT]        LevelJsonCacheInvalidated
[EVENT]        LevelJsonCacheInvalidated
[EVENT]        LevelJsonCacheInvalidated
[EVENT]        LevelJsonCacheInvalidated
[GENERAL]      Page started: page.CrashReport()
[FILE]         Loading page template: crashReport from C:/Users/krypt/AppData/Local/Programs/ldtk/resources/app.asar/assets/tpl/pages/crashReport.html
[ERROR]        Cannot read properties of undefined (reading 'externalRelPath') (TypeError)
[ERROR]        TypeError: Cannot read properties of undefined (reading 'externalRelPath')
    at data_def_FieldDef.getJsonTypeString (file:///C:/Users/krypt/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:40563:15)
    at data_inst_FieldInstance.toJson (file:///C:/Users/krypt/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:47847:58)
    at data_Level.toJson (file:///C:/Users/krypt/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:33693:44)
    at LevelTimeline.saveFullLevelState (file:///C:/Users/krypt/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:16840:126)
    at LevelTimeline.clear (file:///C:/Users/krypt/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:16565:9)
    at LevelTimeline.manualOnGlobalEvent (file:///C:/Users/krypt/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:16677:9)
    at page_Editor.onGlobalEvent (file:///C:/Users/krypt/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:246817:8)
    at misc_GlobalEventDispatcher.emit (file:///C:/Users/krypt/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:229296:4)
    at _delete (file:///C:/Users/krypt/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:304280:23)
    at ui_modal_panel_EditEnumDefs.deleteEnumDef (file:///C:/Users/krypt/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:304325:5)

[GENERAL]      
#0 App
 |--- #4 page.Editor
       |--- #5 misc.FileWatcher
       |--- #6 display.WorldRender
       |--- #7 display.LevelRender
       |--- #8 display.Camera
       |--- #9 display.Rulers[--]
       |--- #10 tool.SelectionTool[--]
       |--- #11 tool.lt.DoNothing[--]
       |--- #12 WorldTool
       |--- #13 tool.PanView[--]
       |--- #14 tool.lt.TileTool[--]
       |--- #28 ui.modal.panel.EditEnumDefs
       |--- #30 ui.modal.ContextMenu
       |--- #33 ui.Tip
       |--- #34 ui.LastChance
 |--- #35 page.CrashReport

[FILE]         Cleared all file watches
@Kryptoid987
Copy link
Author

I managed to delete the enum once I realized I had levels custom data accessing it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant