peterb
February 15th, 2010, 13:14
This bug is most probably the result of my modifications to a ruleset - which is why I post my question here instread of the support forum.
I'm using version 2.6.4
I've made some modifications to the CoC ruleset. I restructured the main-tab, added armour fields, fatigue and a major wounds field. I also added some automations to handle random Armour Point-rolls.
I've also edited the default skilllist in eramanager.lua.
On the skills-tab of my modified ruleset a empty skill always appears when you toggle the skills-tab. I have made no modifications to the skilltab code or the skilllistitem code. This empty skill does not appear in db.xml. If you manually create a new skill - that skill does appear in db.xml. If you delete the empty skill - FG crashes!
The skill behaves as all other skills. You can add a base, a name, you can double click it and a d100 is rolled etc. But it's never saved to the db.xml and if you remove it then FG crashes.
I'm lost. I've tried removing all skills onInit code and inserting a print statement instead. A empty skill still appears. Something seems to create a skill outside the onInit routine of charsheet_skilllist.lua.
I've searched the code for what in earth it could be, but I can't find a thing. My first thought was that some code somehow referenced the skill frame and sent create item requests. But I can't find any such code.
How do I best proceed with debugging this? For example, is there a way one could trace what code does what in what frames (e.g. get a print statement on the console)?
I'm using version 2.6.4
I've made some modifications to the CoC ruleset. I restructured the main-tab, added armour fields, fatigue and a major wounds field. I also added some automations to handle random Armour Point-rolls.
I've also edited the default skilllist in eramanager.lua.
On the skills-tab of my modified ruleset a empty skill always appears when you toggle the skills-tab. I have made no modifications to the skilltab code or the skilllistitem code. This empty skill does not appear in db.xml. If you manually create a new skill - that skill does appear in db.xml. If you delete the empty skill - FG crashes!
The skill behaves as all other skills. You can add a base, a name, you can double click it and a d100 is rolled etc. But it's never saved to the db.xml and if you remove it then FG crashes.
I'm lost. I've tried removing all skills onInit code and inserting a print statement instead. A empty skill still appears. Something seems to create a skill outside the onInit routine of charsheet_skilllist.lua.
I've searched the code for what in earth it could be, but I can't find a thing. My first thought was that some code somehow referenced the skill frame and sent create item requests. But I can't find any such code.
How do I best proceed with debugging this? For example, is there a way one could trace what code does what in what frames (e.g. get a print statement on the console)?