kaspergm
Deity
- Joined
- Aug 19, 2012
- Messages
- 5,827
I would like to request some help in tracking down an error in a mod I'm working on.
The purpose of the mod is to make Art and Artifacts go into two different slots, and to give Artifacts their own icon. I have been fairly succesfull with this so far, in the sense that I've gotten the two slots defined and the artwork for the artifact seems to be recognized, at least in the empty slot and in the highlighted slot, as seen in the screenshot below.
However, when I set out an Archeologist to dig up an artifact and the dig is completed, if I choose the artifact option, I get a nasty bug where the game freezes and crashes to desctop. No report is left in the lua.log or xml.log as to what causes the crash. If I chose to create a landmark, no crash happens. Here's a link to the mod and a save just before an artifact is dug up:
Link to mod
Link to save game
I have tried to figure out what can be the cause of this. I don't know if I need to make a icon map over the artifact icons for the filled slot (there are four different in the .dds file), but I didn't have a template for an icon map for this kind of file, so I didn't make any - however, given that the empty slot shows up fine, I'm not sure this is the cause, nor can I see why this would give such a nasty crash (but what do I know).
Any help on this subject would be very much appreciated.
The purpose of the mod is to make Art and Artifacts go into two different slots, and to give Artifacts their own icon. I have been fairly succesfull with this so far, in the sense that I've gotten the two slots defined and the artwork for the artifact seems to be recognized, at least in the empty slot and in the highlighted slot, as seen in the screenshot below.
However, when I set out an Archeologist to dig up an artifact and the dig is completed, if I choose the artifact option, I get a nasty bug where the game freezes and crashes to desctop. No report is left in the lua.log or xml.log as to what causes the crash. If I chose to create a landmark, no crash happens. Here's a link to the mod and a save just before an artifact is dug up:
Link to mod
Link to save game
I have tried to figure out what can be the cause of this. I don't know if I need to make a icon map over the artifact icons for the filled slot (there are four different in the .dds file), but I didn't have a template for an icon map for this kind of file, so I didn't make any - however, given that the empty slot shows up fine, I'm not sure this is the cause, nor can I see why this would give such a nasty crash (but what do I know).
Any help on this subject would be very much appreciated.