Hello again,
sorry, but could you help me get saving and loading my inventory running?
I have added the Save System Manager and the Inventory System Manager Item Saver to the scene and set up like this:
Aditionally my character has the Inventory Bridge Saver set up as follows:
Now I'm fairly sure the inventory gets saved, as there are references to my items in the save.json (attached to this post as .zip with save and debug file).
But upon restarting the game I'm getting the following NullReferenceException: NullReferenceException: Object reference not set to an instance of an object
This happens in the for-loop of this function:
Can you help me get saving and loading up and running, please?
sorry, but could you help me get saving and loading my inventory running?
I have added the Save System Manager and the Inventory System Manager Item Saver to the scene and set up like this:
Aditionally my character has the Inventory Bridge Saver set up as follows:
Now I'm fairly sure the inventory gets saved, as there are references to my items in the save.json (attached to this post as .zip with save and debug file).
But upon restarting the game I'm getting the following NullReferenceException: NullReferenceException: Object reference not set to an instance of an object
This happens in the for-loop of this function:
Code:
public void Equip(int categoryIndex, int itemSetIndex, bool forceEquipUnequip = false, bool immediateEquipUnequip = false)
{
// The correct ItemSet has been found. Equip the item using the correct EquipUnequip ability.
for (int i = 0; i < m_EquipUnequipAbilities.Length; ++i) {
var abilityCategoryIndex = m_EquipUnequipAbilities[i].ItemSetCategoryIndex;
if (abilityCategoryIndex >= 0 && abilityCategoryIndex != categoryIndex) {
continue;
}
m_EquipUnequipAbilities[i].StartEquipUnequip(itemSetIndex, forceEquipUnequip, immediateEquipUnequip);
}
}
Can you help me get saving and loading up and running, please?