I was testing all day to figure out where the problem was, but I couldn't.
However, I made a discovery: if when the peer receives a series of messages, it has in its message receive event an Alert, only the first Alert is correctly displayed with the right Multiplayer.Message
, the other Alerts, are all read with the content of the last received Multiplayer.Message
.
If the Alert is removed, everything seems to work correctly.
Since my explanation is not very clear, I have modified the official C3 chat example to reproduce this problem. Just go to the Peer window, select the text field and press Enter. It will automatically send 10 messages to the host via a for loop.
File: dropbox.com/s/fo11q00fwsjihux/Multiplayer%20chat%20example%281%29.c3p
Sorry to tag you Ashley, but I think only you can give me a correct answer and help me.
Thanks in advance!
Edit:
I understand that if I insert some particular event (like "Alert" or "Wait" events) into the read event of the message sent by the host, the event fails to queue and read more than one message properly.
Is this normal or a bug? If this is normal, is it possible to understand why and how can I work around this problem? For example, if I want to insert a wait between the execution of multiple messages with the same tag, how can I do that?