Open TizWarp opened 3 days ago
The provided MRP is not complete, you need to make a complete project with the scene involved, please update your MRP to contain everything needed to run this code
However does it actually work when calling with just the type? Or with an untyped array? You don't seem to have enabled object encoding in your multiplayer, that means objects can't be sent regardless, but if you upload a proper MRP I can test this further
Tested versions
Reproducible in 4.3.stable
System information
Godot v4.3.stable unknown - Arch Linux #1 SMP PREEMPT_DYNAMIC Thu, 10 Oct 2024 20:11:06 +0000 - Wayland - Vulkan (Forward+) - dedicated AMD Radeon RX 7700S (RADV NAVI33) - AMD Ryzen 7 7840HS w/ Radeon 780M Graphics (16 Threads)
Issue description
I have a multiplayer game it requires clients to send some extra info, like usernames etc. I have a custom class that holds this info. I have created a typed array that hold all connected players. This info needs to be sent to the client instances and so I have an rpc like so :
I get the following error when executing this rpc
when inspecting the node that hold the player array it is empty
Steps to reproduce
Create new project. Setup basic Multiplayer functionality Open a server and a client instance.
Create Custom class and create a Typed array that is of that type
Create rpc function that attempts to sync the array:
Minimal reproduction project (MRP)
mrp.zip