Map ID, Version or Workshop id from demo #268
-
I've taken a look through some of the source here but not really seen it. Is it possible to get the map id/version or workshop id for a given map? With the default maps, they can be deleted from the game files and then opening a demo will redownload them so I'm presuming something might be baked into the demo to figure out what version of the map was played |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Just noticed #158 asked a very similar thing, doesn't look like the default maps have this capability |
Beta Was this translation helpful? Give feedback.
-
The official game client keeps a mapping of historic map CRC -> workshop ID. For example, if a demo was recorded in Unfortunately I don't know have a way to extract this hardcoded list from the game client. |
Beta Was this translation helpful? Give feedback.
-
That's incredibly helpful, thanks very much! |
Beta Was this translation helpful? Give feedback.
-
👋 all - this has been something I've been personally battling with for quite a while now but I've finally figured out a way - I thought this might still be useful to someone here. saiko-tech/csgo-centrifuge now enables getting the correct radar image for any map version. The core library + CLI to achieve this is open source and usage is explained in the repo README, but the easiest is to use the free public service. UsageURL Formats
Examples
|
Beta Was this translation helpful? Give feedback.
The official game client keeps a mapping of historic map CRC -> workshop ID. For example, if a demo was recorded in
de_inferno
with CRC12345678
, it knows that it can download it from the workshop with ID87654321
. This is based on a hardcoded list in the game client. This hardcoded list is referenced in the engine DLL here: https://github.com/SteamDatabase/GameTracking-CSGO/blob/master/bin/engine_client_strings.txt#L20172Unfortunately I don't know have a way to extract this hardcoded list from the game client.