remove opponent info from ScriptData in GetChallengeResponse etc
R
Rich Joslin
started a topic
about 6 years ago
I'm storing the entire state of the game in ScriptData, but that includes data for all players, which not all players should see (card hands, draw piles, etc). How do I filter an element out of the challenge.ScriptData on its way back to the client without removing it from the actual challenge?
Best Answer
C
Customer Support
said
about 6 years ago
Hi Rich,
Yes that is correct, the setPrivateData call in SparkChallenge is perfect for this, if you need any further assistance just let me know.
Rich Joslin
I'm storing the entire state of the game in ScriptData, but that includes data for all players, which not all players should see (card hands, draw piles, etc). How do I filter an element out of the challenge.ScriptData on its way back to the client without removing it from the actual challenge?
Hi Rich,
Yes that is correct, the setPrivateData call in SparkChallenge is perfect for this, if you need any further assistance just let me know.
Thanks,
Liam
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstRich Joslin
Welp, I just discovered setPrivateData. I guess I should have been storing that stuff in the challenge's privateData to begin with. :-P
Customer Support
Hi Rich,
Yes that is correct, the setPrivateData call in SparkChallenge is perfect for this, if you need any further assistance just let me know.
Thanks,
Liam
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics