Server sends multicast twice error
This forum deleted my original question due to timeout or something... so, i´m tired to write all again...
Issue: Multicast event is received twice on CLIENTS only.
Evidence: 1) I see this image which shows instances, it is repeated sometimes with same name, should it be like this?
2) On multicast event, I added a "IsLocallyControlled", still executes twice, so i´m sure it is same instance.
3) On multicast event, I added "runOnce", and it runs just once, so i´m sure IS the same instance receiving twice.
4) Server method calling this multicast, it is happening just once, based on logs I can see is not executed multiple times.
5) If I click on "PlayerFreeFor3" (the second repeated instance) it selects the first one, it´s like it knows is the same instance, is not a different one, but in the map, If I run "get actors of class", I don´t see repeated instances.
Any ideas why may I be seeing this duplication on unreal? it´s driving me mad...
asked Mar 25 '19 at 03:32 PM in Using UE4
HOOOOOOOOOOLY SH111111111111111T, after 3 days checking this issue, I finally cracked it... it´s an error in unreal editor!!!
I thought for a moment... When you have an event, you also have a method tied to it, aka Delegate, and you can have more than one delegate for the same method, if it´s registered twice, it will happen/execute twice.
I don`t know HOW! but somehow something crashed on my blueprint, that caused a confusion inside blueprint, and this particular event was "listened" twice... perhaps a binary problem inside blueprint, merge error, dkw...
I solved it by deleting this Multicast method, and created a new one with same parameters, and I made a call replacing one for the other... Is the same friking method, but I created it just now, fresh...
and What it executes, I unpinned old code and pinned new / fresh method... MAGIC:
IT WORKS... NOW IT´S CALLED JUST ONCE! :@
I can rest in peace... Probably in C++ I would be able to see this, but here behind the blueprint,... it was PURE LUCK.,
answered Mar 25 '19 at 11:27 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here