Does the issue occur in the editor or during gameplay?
It happens during gameplay
If it's a gameplay issue, please specify which movement system and camera type you're using (free movement vs. grid movement, third-person vs. first-person) or N/A if not applicable:
grid movement, third-person
Briefly describe the issue you're experiencing:
shift-click to transfer items from inventory to a container does not work after switching the player using the change_player() function.
From container to inventory it works. The reverse seems not to.
If you go back to the original player shift-click works again as expected.
Switching back to the other player again and the problem recurs.
The behavior is the same with both an NPC and a group member.
Are there any errors in the in-game debug console or external console window?
When the container is opened the console shows:
ERROR: Nonexistent signal: tool_slot_item_changed
At: core\object.cpp:1510
ERROR: In Object of type 'Spatial': Attempt to connect nonexistent signal 'tool_slot_item_changed' to method 'Node2D.handle_entity_tool_slot_changed'
At: core\object.cpp:1460
Provide the steps necessary to reproduce the issue:
- create a project with 2 characters, a container and some items
- put the container on the map, populate it with some items
- you can either put an NPC on the map or populate the party
- start the game
- change the player to the NPC or the party member
- interact with che container: shift-click will work only from inventory to the container.
I provide a bare bone project. To reproduce the issue:
- start the game
- from console type "change_player(party.member["justin"])"
- interact with the chest
Provide a download link to the bare bones project (strongly recommended if it's an in-game issue, since this helps significantly when attempting to reproduce it; the report will also be given more priority in this case):
Here is the link to the project
https://cdn.discordapp.com/attachments/1257067802909474918/1326505869889769586/container_bug.zip?ex=677fac5c&is=677e5adc&hm=9b49b9db8efedaf53f90fd9cc44a9c3cf3607e883295cf1c40fcd17bdc0345dc&