https://metaplay.io logo
Out of the box tool to modify values in the db
# questions-and-feedback
o
Have you considered adding a dashboard tool that would allow modifying values in the database, like changing the amount of coins a player has for example? There would be lots of uses for this for customer support, developer testing etc..
j
For player support tooling, we really recommend using [SynchronizedServerActions](https://docs.metaplay.io/game-logic/how-to-guides/updating-player-model-from-the-server.html#synchronized-serveraction) and adding them to the [Admin actions section on the player's page](https://docs.metaplay.io/liveops-dashboard/how-to-guides/customizing-the-liveops-dashboard-frontend.html#add-custom-components). This has the benefit of being similar to a PlayerAction, it's deterministic, allows you to do validation easily, allows the player to be online while modifications happen. Idler also has an example of doing this. Another option is to use [Player Mails ](https://docs.metaplay.io/feature-cookbooks/in-game-mail-and-broadcasts/implementing-in-game-mail.html) and [MetaRewards](https://docs.metaplay.io/game-logic/utilities/implementing-metarewards.html). Directly editing the database/serialized models is inherently risky, notably there's limited/lacking validation (this has to be user land because use cases are so varied). In my eyes this is a power-user tool that shouldn't be used day to day and ideally not in production. We have in the past discussed a tool for fixing up/batch editing player models and/or one-off code execution (i.e. upload from dashboard and execute), but it's currently not on the roadmap. I'll forward your suggestion to the team again.
o
thanks, yeah your points about making sure that there's validation etc. do make sense. thank you anyways, and thanks for the pointers to where we could add this ourselves
a
i made a bit fancy version for one of our entities, which shows the current data in the entity and then allows modifying it .. that's a server only entity so done with akka messaging but anyway