Skip to content

Bug Report , while Copy a Group to another Layer #1239

Description

Image

Hi,
i encountered the bug while copy a group from Layer A (foreground) to Layer B (background). Both Layer are Autolayer and have the same TileSet linked to it.

Layer B was created with duplicate of Layer A, but then i made additional Groups and wanted to copy them instead of making the work twice.

Is there maybe a better way to do this? some kind of parenting of layers possibly?

Image Image

Stack:

LDtk version: 1.5.3-64bits
Cannot read properties of null (reading 'color')
TypeError
TypeError: Cannot read properties of null (reading 'color')
    at misc_JsTools.createOutOfBoundsRulePolicy (file:///C:/Users/n_ati/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:231485:14)
    at ui_modal_dialog_RuleEditor.renderAll (file:///C:/Users/n_ati/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:296147:16)
    at new ui_modal_dialog_RuleEditor (file:///C:/Users/n_ati/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:295548:7)
    at HTMLDivElement.<anonymous> (file:///C:/Users/n_ati/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:301607:17)
    at HTMLDivElement.dispatch (C:\Users\n_ati\AppData\Local\Programs\ldtk\resources\app.asar\assets\js\jquery.min.js:2:43064)
    at v.handle (C:\Users\n_ati\AppData\Local\Programs\ldtk\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[--]
       |--- #173 tool.lt.IntGridTool [PAUSED][--]
       |--- #219 tool.lt.IntGridTool[--]
       |--- #282 tool.lt.IntGridTool [PAUSED][--]
       |--- #283 ui.modal.panel.EditAllAutoLayerRules
       |--- #286 ui.modal.dialog.RuleEditor

Log:

[RENDER]       Rendering world bg...
[USERACTION]   Opened panel #277 ui.modal.panel.EditProject
[USERACTION]   Closed panel #264 ui.modal.panel.EditAllAutoLayerRules
[GENERAL]      Applying invalidated rules...
[GENERAL]      Progress created.
[FILE]         Reading HTML template editProject from cache
[FILE]         Reading HTML template pivotEditor from cache
[RENDER]       Rendering world bg...
[GENERAL]      Progress started: : "Updating auto layers...", 80 operation(s)
[GENERAL]      Progress completed: "Updating auto layers..." (0s)
[RENDER]       Rendering world bg...
[RENDER]       Rendering world level data.Level#4af69640-6fc0-11f1-9f29-cd3612156b79 "rm_village_siege"...
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[USERACTION]   Closed panel #277 ui.modal.panel.EditProject
[EVENT]        LayerInstanceSelected 427
[RENDER]       Rendered level UI
[RENDER]       Rendering world bg...
[EVENT]        LayerInstanceSelected 635
[RENDER]       Rendered level UI
[USERACTION]   Opened panel #283 ui.modal.panel.EditAllAutoLayerRules
[FILE]         Reading HTML template editAllAutoLayerRules from cache
[RENDER]       Rendering world bg...
[RENDER]       Rendering world bg...
[EVENT]        LayerRuleGroupCollapseChanged 764
[EVENT]        LayerRuleGroupCollapseChanged 764
[RENDER]       Rendering world bg...
[FILE]         Loading HTML template ruleEditor
[GENERAL]      Page started: page.CrashReport()
[FILE]         Loading page template: crashReport from C:/Users/n_ati/AppData/Local/Programs/ldtk/resources/app.asar/assets/tpl/pages/crashReport.html
[ERROR]        Cannot read properties of null (reading 'color') (TypeError)
[ERROR]        TypeError: Cannot read properties of null (reading 'color')
    at misc_JsTools.createOutOfBoundsRulePolicy (file:///C:/Users/n_ati/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:231485:14)
    at ui_modal_dialog_RuleEditor.renderAll (file:///C:/Users/n_ati/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:296147:16)
    at new ui_modal_dialog_RuleEditor (file:///C:/Users/n_ati/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:295548:7)
    at HTMLDivElement.<anonymous> (file:///C:/Users/n_ati/AppData/Local/Programs/ldtk/resources/app.asar/assets/js/renderer.js:301607:17)
    at HTMLDivElement.dispatch (C:\Users\n_ati\AppData\Local\Programs\ldtk\resources\app.asar\assets\js\jquery.min.js:2:43064)
    at v.handle (C:\Users\n_ati\AppData\Local\Programs\ldtk\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[--]
       |--- #173 tool.lt.IntGridTool [PAUSED][--]
       |--- #219 tool.lt.IntGridTool[--]
       |--- #282 tool.lt.IntGridTool [PAUSED][--]
       |--- #283 ui.modal.panel.EditAllAutoLayerRules
       |--- #286 ui.modal.dialog.RuleEditor
 |--- #287 page.CrashReport

[TIDY]         Fixed lost outOfBoundsValue: 6
[TIDY]         Fixed lost outOfBoundsValue: 6
[TIDY]         Fixed lost outOfBoundsValue: 6
[TIDY]         Fixed lost outOfBoundsValue: 6
[TIDY]         Fixed lost outOfBoundsValue: 6
[TIDY]         Fixed lost outOfBoundsValue: 6
[TIDY]         Fixed lost outOfBoundsValue: 6
[TIDY]         Fixed lost outOfBoundsValue: 6
[TIDY]         Fixed lost outOfBoundsValue: 6
[TIDY]         Fixed lost outOfBoundsValue: 6
[TIDY]         Fixed lost outOfBoundsValue: 6
[TIDY]         Fixed lost outOfBoundsValue: 6
[TIDY]         Fixed lost outOfBoundsValue: 6
[TIDY]         Fixed lost outOfBoundsValue: 6
[FILE]         Cleared all file watches

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions