- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
In the LUA object generation script, it is possible to write to non-existent field in an object, if it is a name for an actual field in at least one object.
e.g. Rain of Fire has a field for the number of waves--most spells do not have this field, but any spell object can attempt to write to this field anyway.
I made such a mistake when writing to the Berserk field for attack speed modification, but via a Lightning Shield spell object.
After doing so, I get this error message whenever I delete more than 3 of any custom object.
Now when I fixed my incorrect field writing and moved to a brand new map, I was able to delete any number of custom objects without the editor crashing.
So what values did I write to that made the editor crash whenever deleting custom objects?
And is there anyway to reverse this or do I need to copy and paste all my code to a new map?
In the LUA object generation script, it is possible to write to non-existent field in an object, if it is a name for an actual field in at least one object.
e.g. Rain of Fire has a field for the number of waves--most spells do not have this field, but any spell object can attempt to write to this field anyway.
I made such a mistake when writing to the Berserk field for attack speed modification, but via a Lightning Shield spell object.
After doing so, I get this error message whenever I delete more than 3 of any custom object.
Now when I fixed my incorrect field writing and moved to a brand new map, I was able to delete any number of custom objects without the editor crashing.
So what values did I write to that made the editor crash whenever deleting custom objects?
And is there anyway to reverse this or do I need to copy and paste all my code to a new map?