Engine instability at high table numbers?
So I spent the night making a new item and getting familiar with the code when I came across an interesting issue.
When I first started I wondered why just use the next number for new table entries, obviously other modders are going to be using them and they're just arbitrary and inconvenient numbers to remember to boot right? Itemtypes 417, itemprops 84, treasuretable 583, recipes 84, ingredients 97, etc. So I figured I'd pick an easier to remember high number to work with (1313), so now I would only have to remember one number for most new entries when I start making new items.
Well the game didn't like that. Loaded up fine and everything works normally, until you tried to do any crafting, then suddenly the game would start throwing all kinds of fits. Available crafting items wouldn't show up half of the time, couldn't finish crafting items (no Confirm button), busy hourglass icon that didn't want to go away, the game getting stuck in a loop ending your turn over and over without being able to stop it, etc, all kinds of interesting and game breaking bugs.
I then fixed the issue by reverting my new table entries and things pointing to them to the next number in sequence, itemtypes 417, itemprops 84, treasuretable 583, recipes 84, ingredients 97, and such, instead of all those entries being at 1313. This fixed the issue completely and my new item and recipe worked flawlessly this time.
So I guess the bug is that the game either doesn't like you skipping table number entries, or crafting becomes unstable with a large amount (1313) of entries in most tables.
Figured it was worth bringing to Dan's attention, even though he said he's for the most part not going to be doing bugfixes with regards to modding.