HWID database changes #33534
PJB3005
announced in
Code announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A new HWID system has been merged into SS14 and will be in the next stable build. See #33532 for more information about what the improvements are and what it means for admins.
The new system has warranted changes to the database layer. For starters, all of the internal code now passes around
TypedHwid
andImmutableTypedHwid
instead of rawbyte[]
values. Furthermore, more HWID values can now be matched at once (as the auth server can report more than one HWID value for a player).If your downstream code touches any of the database APIs surrounding HWIDs, they'll likely have compilation errors that will need to be solved.
Database schema changes
The database schema has been augmented to store the type of HWID along with the actual value. This is done in SQL with a new
hwid_type
column. In the EF Core model this is done with an owned entity to nicely group it together on the C# side.The database schema only adds these new columns, so existing code touching the database will not throw errors. However if this code is not updated to take account of the
hwid_type
s, it might get very confused. This should not be an issue for the main game itself, but if you have any external logic or custom SQL touching the database it's going to need to be updated.Beta Was this translation helpful? Give feedback.
All reactions