I add this code to the item:
Code: Select all
public override bool IsStackable()
{
return true;
}
However, if I ctrl-click the stack and split it to a lootpile or wagon: the stack I split out stops working as a dye/paint. You can no longer use it. Looking at my save game, this is because the className is now set to null for that stack.
The save info shows working stacks with:
"className": "PaintsAndDyes.Dye"
While the bugged stack is:
"className": null
Apparently the code for splitting out stacks is not copying the class data from items created by a mod.
Is there a way around this? Except attempting to just override the stacking code, which seems like complete overkill?
The DFU stack split code is here and is honestly a bit beyond me to find exactly what piece of data i missing:
https://github.com/Interkarma/daggerfal ... on.cs#L258
Unless I am mistaken, the problem occurs when the new stack item is created using FromItem:
https://github.com/Interkarma/daggerfal ... m.cs#L1475