Bug 100

Summary: Inventory loading wrong (and breaks Hash)
Product: The Genesis Project Reporter: The Genesis Project <bugs>
Component: GeneralAssignee: cozyGalvinism <jean>
Status: UNCONFIRMED ---    
Severity: normal CC: jean
Priority: Normal Keywords: imported
Version: 0.5.0-7   
Hardware: PC   
OS: Windows   
Discord Author: Discord Author ID:

Description The Genesis Project 2022-04-30 17:45:12 CEST
When saving and loading my single-player session, a previously-non-empty inventory loads all items in the same slot. Modifying the inventory (dropping/picking something up) fixes most modus types, but hash-map specifically will make the first slot inaccessible. Additionally, when picking up a new item with hash-map, it will place it in the inventory but not delete it from the world; trying to remove it from the inventory causes it to disappear from the inventory (but not the world). Eating a consumable while it is in the inventory will cause it to disappear from both the inventory and the world. If the "first slot" contains an item that conflicts with a new item, the new items will not respond when you try to pick it up (does not eject, delete, nor add it to inventory) which makes certain items impossible to collect.
To recreate:
Create a new session using the hash-map (or other) modus. Pick up a few items, then save and load the game. The bug should start now, with all items taking up the same slot.
To verify hash-map has broken, picking up any new items should add it to the inventory without deleting it; you also cannot remove the first item.

Screenshots:


Player log:
https://gitlab.com/thegenesisproject/thegenesisproject/uploads/82577f4215edfd8286431c79eff1bb91/391_player.log

Originally reported by lomour#5498 (lomour)

Internal issue ID: 312