How to save hundreds of peculiar variables, such as a barrel's contents on the other side of the world (similar to Skyrim/Oblivian save data)

Know this is an old question, buuut- you could probably get away with using xml or some kind of spreadsheet for the starting inventory. Then your save-game would only need to store if said content’s changed since starting the game. That’s pretty much how it’s done in the particular games you’ve mentioned.