godot-escoria / escoria-issues

Central Escoria issue tracker
3 stars 0 forks source link

Combined Item Causes Issues after Moving between Rooms #280

Closed BHSDuncan closed 2 years ago

BHSDuncan commented 2 years ago

Please make sure you talk to the community before creating an issue.

Describe the bug From a user on Discord:

I was playing while running the game from the editor.
I picked the pen and the form up, combined them, moved to the next room, talked with the character there. 
My plan then was to give the filled form to the guy, but whenever I would hover with the mouse over the form, the debugger would stop on line 250 of game.gd
  var target_obj = escoria.object_manager.get_object(
      inventory_item_global_id
    ).node

and I would get the following console output:
ESC 2022-06-05T00:09:04 (I)    Inventory item focused r5_filled_sheet     []
ESC 2022-06-05T00:09:04 (T)    ESCObjectManager.has(): No room specified. Defaulting to current room.     
ESC 2022-06-05T00:09:04 (W)    Warnings in file ESCObjectManager:get_object()
Object with global id r5_filled_sheet in room instance (room6, 54328) not found
Then, I tried stepping back to the previous room, and:
ESC 2022-06-05T00:10:28 (E)    Errors in file ESCObjectManager:register_object()
Object with global id r5_pipe in room (room5, 78916) already registered

To Reproduce Steps to reproduce the behavior: See above.

Expected behavior No errors, crashes, etc.

Versions