node-steamid-converter icon indicating copy to clipboard operation
node-steamid-converter copied to clipboard

Conversion bug

Open busheezy opened this issue 9 years ago • 3 comments

When converting 64 to string it always starts with "STEAM_0:1" instead of the possible "STEAM_1:1."

busheezy avatar Jan 05 '16 01:01 busheezy

My understanding is that this doesn't matter, both should be fine for conversion purposes. Could you produce an id that wouldn't convert? Unless I'm mistaken I don't think it's possible to figure it out from a 64 id regardless.

babofitos avatar Jan 05 '16 09:01 babofitos

Well it kind of matters but you're probably right that it isn't able to be figured out. I'm using another library that lets me easily generate the "new style" and the "old style." I'm having to check the database for both results.

Thanks for your time ,Ryan

https://gyazo.com/ee609e81f3ec0549abdf22f36c47da31

busheezy avatar Jan 05 '16 18:01 busheezy

Yeah honestly I should just drop the STEAM_0: part altogether when converting instead of making assumptions.

babofitos avatar Jan 05 '16 20:01 babofitos