New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Database corruption in darkrp_player #2466
Comments
Here's the database: https://mega.nz/#!Agt3HRiR!9X-2kIPB83Fztpa8dSgsgId6RWd6Nplwb6rJr_eZVxE |
nice, someone made a user-entered field uniqueid'd. That's like, databasing 101. EDIT: Just UNIQUE, sorry, or a primary key if you will. |
Where the fuck are you getting that? |
All you'd need to do is check if the steam name of a user not in the DB matches the rpname of someone who is. If so, add a (n of duplicate users) to the end of their name and voila... RP name. |
Would another (maybe not perfect) solution be to make the uid field the only unique field? |
Changing these things in databases is always a pain. |
As steam adds (number) at end of player nick when nick is not unique, i think DarkRP should do the same |
@roboderpy Or don't have the rpname field as unique? |
Description of the bug
As mentioned in #2459 there's an issue somewhere causing database corruption.
After a new database, it only took 4 days before the database corrupted again.
Fortunately Bo98 made it actually show the issue now in the error.
Before this occured the player accused someone else of using his name. I tried replicating this but was unable to find the exact cause.
As shown in the error, this is the issue, the rpname is not unique.
Here's the error:
How to make the bug happen
unknown
Lua errors
posted above
Why the developer of DarkRP is responsible for this issue
you're the only one using that table
The text was updated successfully, but these errors were encountered: