p2p to all sessions?

Posted by Ytsim
How (if possible) can I send p2p messages to all people in all sessions? I figured out world creation and so that works perfectly now. I send out admin messages to all people in chat with p2p in my games without sessions, but apparently they don't send throughout each one.

Replies (3)

Last message on 24 Dec 2017

Size43 (Administrator) on 24 Dec 2017, 15:57:59
You can send P2P messages to different sessions only if you know the playerIDs of the people in the other sessions. There is, however, no built-in way to access the playerIDs of people in different sessions.
Ytsim (Topicstarter) on 24 Dec 2017, 19:29:39
Are playerIDs dynamic? Like do they change when you log off/back on? If they don't, can't I store the playerID's in a gameini, and loop through the gameini and send out the p2p to then like that?
Size43 (Administrator) on 24 Dec 2017, 19:44:52
Yes, that'd be possible. Just keep in mind that the entire GameINI is downloaded when the game connects to the server.

I'm working on a small update that will enable broadcasting p2p messages to all players in the same session or across all sessions.