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

Click the rule tileset, got error: Cannot read properties of null (reading 'addClass') (TypeError) #1154

Open
ReZeroS opened this issue Jan 3, 2025 · 0 comments

Comments

@ReZeroS
Copy link

ReZeroS commented Jan 3, 2025

Stack:

LDtk version: 1.5.3-
Cannot read properties of null (reading 'addClass')
TypeError
TypeError: Cannot read properties of null (reading 'addClass')
    at ui_RulePatternEditor.render (file:///Applications/LDtk.app/Contents/Resources/app.asar/assets/js/renderer.js:288154:82)
    at new ui_RulePatternEditor (file:///Applications/LDtk.app/Contents/Resources/app.asar/assets/js/renderer.js:287940:7)
    at ui_modal_panel_EditAllAutoLayerRules.createRuleBlock (file:///Applications/LDtk.app/Contents/Resources/app.asar/assets/js/renderer.js:301599:13)
    at ui_modal_panel_EditAllAutoLayerRules.createRuleGroupBlock (file:///Applications/LDtk.app/Contents/Resources/app.asar/assets/js/renderer.js:301478:23)
    at ui_modal_panel_EditAllAutoLayerRules.updateRuleGroup (file:///Applications/LDtk.app/Contents/Resources/app.asar/assets/js/renderer.js:300711:21)
    at ui_modal_panel_EditAllAutoLayerRules.onGlobalEvent (file:///Applications/LDtk.app/Contents/Resources/app.asar/assets/js/renderer.js:300066:9)
    at misc_GlobalEventDispatcher.emit (file:///Applications/LDtk.app/Contents/Resources/app.asar/assets/js/renderer.js:229296:4)
    at HTMLDivElement.<anonymous> (file:///Applications/LDtk.app/Contents/Resources/app.asar/assets/js/renderer.js:300912:22)
    at HTMLDivElement.dispatch (/Applications/LDtk.app/Contents/Resources/app.asar/assets/js/jquery.min.js:2:43064)
    at v.handle (/Applications/LDtk.app/Contents/Resources/app.asar/assets/js/jquery.min.js:2:41048)

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.IntGridTool[--]
       |--- #21 ui.modal.panel.EditAllAutoLayerRules

Log:

[FILE]         Reloading tileset: Ldtkiconpng path=ldtkiconpng.png
[FILE]         Loading atlas image: ldtkiconpng.png...
[CACHE]        Caching image ldtkiconpng.png...
[CACHE]         -> identified as Png
[CACHE]         -> base64 260416
[CACHE]         -> pixels 512x1024
[FILE]          -> Loaded 195310 bytes.
[FILE]          -> Decoded 512x1024 pixels.
[FILE]          -> Old size: 512x1024 -> 512x1024
[WARNING]      Tileset Ldtkiconpng remapping (image size changed)...
[FILE]          -> Reload result: Ok
[FILE]          -> pixelData: Ok
[EVENT]        TilesetImageLoaded
[EVENT]        ProjectSelected
[WARNING]      Full level render requested
[RENDER]       Rendering all world...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bounds...
[FILE]         Watching file: /Users/rezero/Jaxer/Assets/LDTK/Cavernas_by_Adam_Saltsman.png
[FILE]         Watching file: /Users/rezero/Jaxer/Assets/LDTK/ldtkiconpng.png
[RENDER]       Rendering world level data.Level#a2b563a0-66b0-11ec-9cd7-fd8a9b24800f "World_Level_0"...
[RENDER]       Rendering world level fields data.Level#a2b563a0-66b0-11ec-9cd7-fd8a9b24800f "World_Level_0"...
[RENDER]       Rendered level UI
[RENDER]       Rendering world bg...
[RENDER]       Rendering world level data.Level#92a51d00-9b00-11ef-9e24-47478d35415b "World_Level_1"...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[USERACTION]   Opened panel #19 ui.modal.panel.EditTilesetDefs
[FILE]         Loading HTML template editTilesetDefs
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[USERACTION]   Closed panel #19 ui.modal.panel.EditTilesetDefs
[USERACTION]   Opened panel #21 ui.modal.panel.EditAllAutoLayerRules
[FILE]         Loading HTML template editAllAutoLayerRules
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[EVENT]        LayerRuleGroupCollapseChanged 74
[GENERAL]      Page started: page.CrashReport()
[FILE]         Loading page template: crashReport from /Applications/LDtk.app/Contents/Resources/app.asar/assets/tpl/pages/crashReport.html
[ERROR]        Cannot read properties of null (reading 'addClass') (TypeError)
[ERROR]        TypeError: Cannot read properties of null (reading 'addClass')
    at ui_RulePatternEditor.render (file:///Applications/LDtk.app/Contents/Resources/app.asar/assets/js/renderer.js:288154:82)
    at new ui_RulePatternEditor (file:///Applications/LDtk.app/Contents/Resources/app.asar/assets/js/renderer.js:287940:7)
    at ui_modal_panel_EditAllAutoLayerRules.createRuleBlock (file:///Applications/LDtk.app/Contents/Resources/app.asar/assets/js/renderer.js:301599:13)
    at ui_modal_panel_EditAllAutoLayerRules.createRuleGroupBlock (file:///Applications/LDtk.app/Contents/Resources/app.asar/assets/js/renderer.js:301478:23)
    at ui_modal_panel_EditAllAutoLayerRules.updateRuleGroup (file:///Applications/LDtk.app/Contents/Resources/app.asar/assets/js/renderer.js:300711:21)
    at ui_modal_panel_EditAllAutoLayerRules.onGlobalEvent (file:///Applications/LDtk.app/Contents/Resources/app.asar/assets/js/renderer.js:300066:9)
    at misc_GlobalEventDispatcher.emit (file:///Applications/LDtk.app/Contents/Resources/app.asar/assets/js/renderer.js:229296:4)
    at HTMLDivElement.<anonymous> (file:///Applications/LDtk.app/Contents/Resources/app.asar/assets/js/renderer.js:300912:22)
    at HTMLDivElement.dispatch (/Applications/LDtk.app/Contents/Resources/app.asar/assets/js/jquery.min.js:2:43064)
    at v.handle (/Applications/LDtk.app/Contents/Resources/app.asar/assets/js/jquery.min.js:2:41048)

[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.IntGridTool[--]
       |--- #21 ui.modal.panel.EditAllAutoLayerRules
 |--- #26 page.CrashReport

[FILE]         Cleared all file watches
@ReZeroS ReZeroS closed this as completed Jan 3, 2025
@ReZeroS ReZeroS reopened this Jan 4, 2025
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