My game has multiple places. I teleport players across them. I am using MemoryStore to transfer data when players teleport.
Testing my code for this within Studio works. But, this testing is limited given the constraints of cross-place teleport not working in Studio. So I can test that “Place 1” can write to the store when started in Studio and then “Place 2” can read from the store when started. This works.
However, when I publish both places, the same write / read test fails - the write succeeds but the read fails. It returns nothing. As if there is nothing in the store.
I’m fully confused about why this would be. All reads and writes are wrapped in pcalls with error handling. Nothing is failing unexpectedly. The read in “Place 2” after teleporting, only in the published game just returns nothing.
Does anyone have any idea why this would be?
I’ve scoured the docs to see if there is some limitation or detail I’ve missed. I can’t see anything obvious. The only thing that I question is what the docs mean about a “live session” - MemoryStore is documented as:
data storage accessible from all servers in a live session
I don’t know exactly what a “live session” is. But given the MemoryStore data is supposed to live despite server shutdown, I don’t think this would apply i.e. if it works in Studio across places, I don’t see why it wouldn’t work in production.
Anyway, any help would be much appreciated ![]()