Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map ID, Version or Workshop id from demo #162

Closed
IOExceptional opened this issue Aug 10, 2020 · 3 comments
Closed

Map ID, Version or Workshop id from demo #162

IOExceptional opened this issue Aug 10, 2020 · 3 comments

Comments

@IOExceptional
Copy link

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

@IOExceptional
Copy link
Author

Just noticed #158 asked a very similar thing, doesn't look like the default maps have this capability

@saul
Copy link
Owner

saul commented Aug 10, 2020

The official game client keeps a mapping of historic map CRC -> workshop ID. For example, if a demo was recorded in de_inferno with CRC 12345678, it knows that it can download it from the workshop with ID 87654321. 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#L20172

Unfortunately I don't know have a way to extract this hardcoded list from the game client.

@IOExceptional
Copy link
Author

That's incredibly helpful, thanks very much!

@saul saul reopened this Feb 28, 2021
@saul saul closed this as completed Feb 28, 2021
Repository owner locked and limited conversation to collaborators Feb 28, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants