Bug 100 - Inventory loading wrong (and breaks Hash)
Summary: Inventory loading wrong (and breaks Hash)
Status: UNCONFIRMED
Alias: None
Product: The Genesis Project
Classification: Unclassified
Component: General (show other bugs)
Version: 0.5.0-7
Hardware: PC Windows
: Normal normal
Assignee: cozyGalvinism
URL:
Keywords: imported
Depends on:
Blocks:
 
Reported: 2022-04-30 17:45 CEST by The Genesis Project
Modified: 2022-04-30 17:45 CEST (History)
1 user (show)

See Also:
Discord Author:
Discord Author ID:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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