use fastdl.me to fix missing maps and maps that differ #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This helps with two situations.
Situation 1:
bhop_example.bsp
downloaded.bhop_example.bsp
.bhop_example.bsp
because the map differs.Solution
<SHA1_HASH>.bsp
from fastdl.me and continue connecting to the server using<SHA1_HASH>.bsp
instead of your local copy ofbhop_example.bsp
.bhop_example.bsp
is not overwritten)Situation 2:
bhop_example.bsp
downloaded.sv_downloadurl
) does not havebhop_example.bsp
on it.bhop_example.bsp
.Solution
<SHA1_HASH>.bsp
from fastdl.me and save it locally asbhop_example.bsp
.How?
The server sends you the "lump checksum" of its map when you join. This is an MD5 hash of most of the
.bsp
file's sections.I have some code that generates the "lump checksum" for every map on https://fastdl.me (in this repo https://github.com/srcwr/maps-cstrike-more). It makes a
.csv
file with rows that look likesha1,lump_md5_checksum
.We download that
lump_checksums.csv
periodically and then just find the "lump checksum" in it and download a corresponding map from fastdl.me with the SHA1 hash.Problems
.bsp
being corrupted or non-standard in some way.TODO
Update READMEMore testing(good enough)Look into usingoriginal_mapname.csv
also to force the mapname internally so soundscapes and cubemaps load.