now ive spend several hours to find a possibility to remove a segment from a Players record.
Once the Segment is arranged to a Player is totaly fine. But how can i get rid of the Entry in the Records?.
- Tryed to find and remove the Entry over the runtime Collection doesnt work.
- Tryed to set the Segment with Null Variables also does not work. It Creates another Entry with Null Variables.
- Tryed to find the Segments in Script or private Data also not working.
It is clear that one Player can have more than one Segment setted up. But when Players need
to change the Segments in a later State to doesnt get effected from this Segment anymore, how is this
possible?.
Thanks
Andi
Best Answer
M
Maria Mercedes Martinez
said
over 4 years ago
oh I simply mean that from your top picture, you have -> segments in the player collection and the bottom picture, you have Segments. You have to make sure your, how we say "capitalizations" or "cases" are the same. So the S has to be the same, big or little. I hope this solves your problem. fingers crossed!
Hey Andreas, It looks like you capitalized Segments and it is not capitalized in Mongo. Try that first.
A
Andreas Grassl
said
over 4 years ago
sorry but dont know what you mean with capitalize in Mongo. How can i do that ? is there any documentation about this ? Thougt i create a segment, set it up to a player and the Segment is active for this player. That is so frustrating.
M
Maria Mercedes Martinez
said
over 4 years ago
Answer
oh I simply mean that from your top picture, you have -> segments in the player collection and the bottom picture, you have Segments. You have to make sure your, how we say "capitalizations" or "cases" are the same. So the S has to be the same, big or little. I hope this solves your problem. fingers crossed!
A
Andreas Grassl
said
over 4 years ago
Problem solved. Thanks Maria. It was also the wrong collection i have searched the Segments. Simply the "player" collection was the right one. And the tip with the capitalizations has helped.
Andreas Grassl
Hello,
now ive spend several hours to find a possibility to remove a segment from a Players record.
Once the Segment is arranged to a Player is totaly fine. But how can i get rid of the Entry in the Records?.
- Tryed to find and remove the Entry over the runtime Collection doesnt work.
- Tryed to set the Segment with Null Variables also does not work. It Creates another Entry with Null Variables.
- Tryed to find the Segments in Script or private Data also not working.
It is clear that one Player can have more than one Segment setted up. But when Players need
to change the Segments in a later State to doesnt get effected from this Segment anymore, how is this
possible?.
Thanks
Andi
oh I simply mean that from your top picture, you have -> segments in the player collection and the bottom picture, you have Segments. You have to make sure your, how we say "capitalizations" or "cases" are the same. So the S has to be the same, big or little. I hope this solves your problem. fingers crossed!
- Oldest First
- Popular
- Newest First
Sorted by PopularMaria Mercedes Martinez
Do you mean how to delete a field in the player collection in Mongo?
If so, you can try this answer: https://support.gamesparks.net/support/discussions/topics/1000078388
Andreas Grassl
Thanks Maria,
i guess i dont get right. It doesnt work hahaAnd be more specific, yes i mean the "Segments" field in the Player collection (mongo).
i have tryed the update $unset function from the link you provided me. Maybe not right ? i dont know.
It gets no Errors. The code does simply nothing.
Here is a link to MongoDB and the Code described looks similar to mine.
https://docs.mongodb.com/v3.0/reference/operator/update/unset/#up._S_unset
Thanks
Andi
Maria Mercedes Martinez
Hey Andreas, It looks like you capitalized Segments and it is not capitalized in Mongo. Try that first.
Andreas Grassl
How can i do that ? is there any documentation about this ?
Thougt i create a segment, set it up to a player and the Segment is active for this player.
That is so frustrating.
Maria Mercedes Martinez
oh I simply mean that from your top picture, you have -> segments in the player collection and the bottom picture, you have Segments. You have to make sure your, how we say "capitalizations" or "cases" are the same. So the S has to be the same, big or little. I hope this solves your problem. fingers crossed!
Andreas Grassl
It was also the wrong collection i have searched the Segments. Simply the "player" collection was the right one.
And the tip with the capitalizations has helped.
-
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 2486 topics