@o4kapuk I tried using segment 1 and it instantly worked. Thank you very much!
HerrKai
@HerrKai
Posts made by HerrKai
-
RE: Unable to read other players segments using the RawMemory component
-
RE: Unable to read other players segments using the RawMemory component
@o4kapuk Thank you for dealing with this so quickly! Will try
-
RE: Unable to read other players segments using the RawMemory component
I tried out reading my own segments, as well as checking via the ingame gui (Memory>Segments) and the data is there, yes.
-
RE: Unable to read other players segments using the RawMemory component
Hey, thanks for your reply. I am actually executing this code on all shards at the same time.
Edit: If you do play around with it at some point and figure it out, feel free to reach out to me, cause I'd really like to know what the problem is. Either on this forum, slack or even via ingame message, whatever works for you.
-
Unable to read other players segments using the RawMemory component
My friend and I tried to set up a simple way of communication with the RawMemory component. When that didn't work I asked #help on slack and everyone was giving me similar code snippets (which all didn't work and were pretty similar to what we had done). I have been experimenting with this for a while now, but the feature just seems to be broken. I have posted one of the many code snippets down below. Any ideas/advise?
(sender side)
RawMemory.segments[0] = JSON.stringify({ "hello": "world" }); RawMemory.setPublicSegments([0]); RawMemory.setDefaultPublicSegment(0);
(receiver side)
if (RawMemory.foreignSegment != undefined) { console.log(RawMemory.foreignSegment); } else { console.log("No segment"); RawMemory.setActiveForeignSegment("HerrKai", 0); }