Let me start off with the error I get:
Error Blueprint Runtime Error:
Accessed None trying to read property CallFunc_Array_Get_Item
from function: ‘FillSetsPannel’
from node: SetText (Text Box)
in graph: FillSetsPannel
in object: Collection
with description: Accessed None trying to read property CallFunc_Array_Get_Item
What should happen: (@dedicated server + 2 players PIE)
On the UI I cast to the player controller to call an event named “create new set”. It creates a new object of type Set and adds it to an array of Sets. The event is set to “run on server” The array is on rep notify.
In the rep notify function of Sets] I call the event dispatcher “sets did change”.
On the UI the dispatcher is bound (at first time creation) to an event wich calls a function “refresh sets pannel”.
The function fires - but when I want to loop over the Sets] and access its member variable “name” - a string with some default value - I get the above error after the PIE ends. Eventhough theres a default value getting the string out of the set does not return the string…
Ive set everything to replicate on the Set and the Sets] on the player controller aswell with the said notify…
There are sets in the array but the members of the set wont be initialized on the client it seems…
Can you help me?
Edit: btw the server knows the correct value of the name property of the set. and i already tried to put a delay before updating the sets in case of some replication delay, but it still didnt work