[KNOWN ISSUE] BaleLoader does not properly store bales in savegame

User avatar
Rahkiin
Former GIANTS employee
Posts: 753
Joined: Tue Jan 17, 2017 12:45 pm

[KNOWN ISSUE] BaleLoader does not properly store bales in savegame

Post by Rahkiin »

- PC/Mac/PS4/XB1: All
- Vehicle/Tool/Model/Object: Vehicles using BaleLoader
- Issue:
The BaleLoader spec defines its own contents of the <bale> for each balePlace, instead of using the getSaveAttributesAndNodes of the bale.
This means that any custom data in a bale made by a mod is lost when saving the game with bales in a bale loader

- Single- or Multiplayer: Both
- Steps to reproduce:
Make a mod that adds properties to Bale objects by using overwrittenFunction on getSaveAttributesAndNodes (and on loadFromAttributesAndNodes).
This will work perfectly.
Pick up such changed bale using a BaleLoader and save the game.
All attributes are lost.

Example is with the Seasons mod, where the fermentation state of a bale is lost on bales in a bale loader.

Note, the same is true for the Bale on the BaleWrapper table, but that bale changes state.