https://metaplay.io logo
Configuration Information
# questions-and-feedback
d
is there a way to append configuration signature or version from runtime build in an error log or display it on screen so that it is visible in screenshot - that would be usefull for bug reporting and debugging as well as for our internal testing to avoid confusion
j
Hi, check out https://docs.metaplay.io/feature-cookbooks/unity-sdk-features/client-build-version.html how to inject CommitID into the build. Then you could display the commit id of the build with
MetaplaySDK.BuildVersion.CommitId
d
Thank you - that we already know - it is about the runtime configs and shared config as they can be changed on the fly from google sheets
so it would be beneficial to know which render version of the configuration was active in at the time of an issue...
j
Hmm. You can use
MetaplayClient.ConfigVersion
to get the hash of the current (client) gameconfig. To then map this value to the current game config in server, you need to compare this value to the "Client Facing Version" on LiveOps Dashboard in "Dashboard -> Sidebar -> Game Configs -> pick one -> View Config -> Client Facing Version" Runtime Options are server-only so client is not aware of them and cannot report their version.
d
Thank you will explore this