Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

32 bit ID inaccuracies #32

Closed
paralin opened this issue Apr 29, 2014 · 2 comments
Closed

32 bit ID inaccuracies #32

paralin opened this issue Apr 29, 2014 · 2 comments
Labels

Comments

@paralin
Copy link
Contributor

paralin commented Apr 29, 2014

The method I wrote into the latest version of the package for converting SteamID to 32 bit for Dota 2 might be incorrect. Here's what I'm currently using (kind of hacky)

@toSteamID32 = (id)->
     sids = (steamidconvert.convertToText id).split ":"
     id = parseInt sids[2]
     id*(2+parseInt(sids[1]))+1

This works with SteamTracks' backend. I think this solution might need to be integrated into this package.

@SwaroopH
Copy link

When I was dealing with this issue during the first twitpocalypse, one way was to store them as strings. This is also why twitter api gives a id_str property along with the ids. May be we can try doing the same?

@rjackson
Copy link
Member

rjackson commented May 4, 2015

Fixed by #66.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants