Therepower Posted February 7, 2021 Report Posted February 7, 2021 hey, i try to fetch CSGO in-game store prices via CMsgStoreGetUserData. message CMsgStoreGetUserData { optional fixed32 price_sheet_version = 1; optional int32 currency = 2; } message CMsgStoreGetUserDataResponse { optional int32 result = 1; optional int32 currency_deprecated = 2; optional string country_deprecated = 3; optional fixed32 price_sheet_version = 4; optional bytes price_sheet = 8; } When i receive the "CMsgStoreGetUserDataResponse" i can read result, price_sheet_version without problems but "price_sheet" itself is provided as bytes. When i try to read it i get some unreadable text. I also tried to parse it with binarykvparser which gives an error "KV type 48 encountered at offset 207" How could i read the data provided by price_sheet? thank you in advance Quote
Dr. McKay Posted February 9, 2021 Report Posted February 9, 2021 I have no idea what format price_sheet is encoded in. Quote
Therepower Posted February 9, 2021 Author Report Posted February 9, 2021 1 hour ago, Dr. McKay said: I have no idea what format price_sheet is encoded in. thanks for your response. any idea how i could find the encoding type? this is how it looks like: https://prnt.sc/ytol2e Quote
Dr. McKay Posted February 9, 2021 Report Posted February 9, 2021 I don't know. My best guess would be that it's either protobuf or binary KV, but that doesn't look like either. It could possibly be compressed. Quote
Valvoja Posted March 3, 2021 Report Posted March 3, 2021 I'm trying to do the same thing, I'm using python though. For me the price_sheet starts with b"LZMA\", so I'm guessing it's compressed with LZMA but I wasn't able to decompress it Quote
Dr. McKay Posted March 4, 2021 Report Posted March 4, 2021 That sounds like a reasonable assumption. Game content downloads are sometimes compressed with LZMA, so Valve using it somewhere else makes perfect sense. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.