Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

LastS

How convert UID to plain text?

Recommended Posts

Hello, i would like how can i get the user name linked to an UID in the database players.db

What kind of encryption are using? Is like Base64 but idk

Thanks!

Share this post


Link to post
Share on other sites

I don't think you can do it. You can turn it to plain text using 'format'.. and you can use the GUID to get the Steam UID .. this stuff is documented on the web and some of it on the BI technical forums, with examples and scripts .. but you cant "calculate" back from a UID to get a player name string.

Correct me if I'm wrong.

You can - maybe -  "hold" the player name when it is entered, while the corresponding UID is calculated - and then link the name with the UID in a table of your own, so you can look it up. But I don't notice anyone doing that ATM.

Edited by pilgrim*

Share this post


Link to post
Share on other sites

The players.db is a SQLite database file. Not sure how you can get the name with the UID. All I know is that there is no name stored in players.db, only the UID.

Share this post


Link to post
Share on other sites

I know that you can calculate the GUID, but the UID that it saves on the DB is not a GUID i think..Format is like Base64 encoded text

But yes, i have to get the UID and name and save it with a script

Share this post


Link to post
Share on other sites
1 minute ago, IMT said:

The players.db is a SQLite database file. Not sure how you can get the name with the UID. All I know is that there is no name stored in players.db, only the UID.

Yep, so, how can i know, for example, what is my user at the DB and delete it?

Share this post


Link to post
Share on other sites

It's either one of these three: GetId(), GetPlainId() and GetPlayerId(). So that would be:
- player.GetIdentity().GetId();
- player.GetIdentity().GetPlainId();
- player.GetIdentity().GetPlayerId();

GetId() is an unique player ID like hashed steamID
GetPlainId() is plaintext unique ID which can not be used in logs or database
GetPlayerId() is player id of a session and gets reused after player disconnects

I would say GetId() is the most likely one you would need.

Share this post


Link to post
Share on other sites
4 minutes ago, IMT said:

It's either one of these three: GetId(), GetPlainId() and GetPlayerId(). So that would be:
- player.GetIdentity().GetId();
- player.GetIdentity().GetPlainId();
- player.GetIdentity().GetPlayerId();

GetId() is an unique player ID like hashed steamID
GetPlainId() is plaintext unique ID which can not be used in logs or database
GetPlayerId() is player id of a session and gets reused after player disconnects

I would say GetId() is the most likely one you would need.

Thanks! I will check later this ;)

PD: Is there a wiki/docs where find all these references?

Share this post


Link to post
Share on other sites
Just now, LastS said:

Thanks! I will check later this ;)

PD: Is there a wiki/docs where find all these references?

Not at the moment. You need to dig through the code yourself to figure this stuff out. :)

  • Like 1

Share this post


Link to post
Share on other sites

×