SteamID lib added#470
Conversation
|
How about https://github.com/xPaw/SteamID.php ? |
xPaw's library only supports |
|
I hope it works with CommunityIDs like 76561193872069853. Example output: https://steamid.io/lookup/76561193872069853 |
|
Would a new updater data be made to properly convert the admin steamids? ie. correcting the universe |
|
@rumblefrog yeah I will push some changes that forces admin Steam2 ids to begin with |
Bad-bad-bad. Maybe you should use Steam Account ID? In SourceMod API we have function for obtaining him, and Account ID is guaranteed integer and takes 4 bytes from memory. |
Perhaps, we should take all forms of Steam IDs, but handles it one way internally |
I still think Steam's 64bit IDs are the way to go. They would be a Also Steam64 is the only format accepted from most of Steam's WebAPI endpoints and since SourceBans++ is more and more relying on the Steam WebAPI for complex features it would be good to store the complete ID in the database (would mean less internal conversions / calculations). |
In TF2 sometimes SteamID64 not returned by this function. I don't know how it works, but to deny the existence of these bugs is meaningless. So i continue think about Steam Account ID. |
|
The namespace for the SQL Class seems to be wrong. In https://github.com/sbpp/sourcebans-pp/blob/v1.x/web/includes/SteamID/SteamID.php#L17 it try's to load SteamID\SQL |
Description
Added my 'new' SteamID conversion library to replace the existing SQL conversion functions.
Motivation and Context
The new lib supports
GMP,bcmathand as fallbackSQLfor Steamid conversionand with that could have a massive performance increase when using
GMPorbcmath.It also supports a better way to resolve steam's custom urls.
Features needed until merging
Turns out bcmath doesn't support logical operation (e.g AND, OR, XOR) and SQL would be a mess... so since we don't use the server steamid it will return 0 now if it cant find a suitable calculation method.
STEAM_0Testing needed until merging
Types of changes
Checklist: