BUG?? All inventory items are added

Started by Andrea1992, Sun 07/03/2021 04:04:14

Previous topic - Next topic

Andrea1992

Hello and many thanks for your help  :grin:

Has anyone experienced a bug where the player suddenly receives every item in the game in their inventory? (Absolutely every item) I'm confident there's no code in my game that performs this function deliberately. Fortunately I was recording my screen while testing so I was able to go back and retrace my exact gameplay steps however I haven't been able to recreate the problem. Its not at all obvious to me how this could've occurred. Would greatly appreciate hearing from anyone who has experienced this.

Crimson Wizard

There's a test function in the engine that gives you all available items.
https://adventuregamestudio.github.io/ags-manual/Globalfunctions_General.html#debug
It only works if game was built in Debug mode.

Some of the game templates call this function on Ctrl+S. This is one common way this may have happened.

SMF spam blocked by CleanTalk