• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GML My game does not want to load pickable items to inventory after exiting the game

  • Thread starter Deleted member 16767
  • Start date
D

Deleted member 16767

Guest
My game does not want to load pickable items to inventory after exiting the game. The inventory is saved, but player can not pick up items anymore. What do I do? I use the Minecraft Inventory from the market place.
 
D

Deleted member 16767

Guest
I put this in Game End in the inventory object

Code:
ini_open("inventory.ini");
ini_write_string("items","player",ds_grid_write(global.inventory));
ini_close();
If I remove it I can take up dropped items, but then the inventory won't save.
 
D

Deleted member 16767

Guest
Fixed. I had the code above in my Step event. Which shouldn't be there.
 

Yal

šŸ§ *penguin noises*
GMC Elder
Are you loading the inventory constantly, so when picking up something new, it's instantly overwritten with the savefile? You should only load the inventory once (when you load the game).
 
Top