@@ -27,19 +27,27 @@ install needed:
2727node scripts/fetch-map-meshes.mjs # default Valve pool (+ cs_office)
2828node scripts/fetch-map-meshes.mjs --all # every map in the pack
2929node scripts/fetch-map-meshes.mjs de_mirage # specific map(s)
30- MESH_MAX_MB=60 node scripts/fetch-map-meshes.mjs # allow bigger meshes at full detail
30+ MESH_MAX_MB=16 node scripts/fetch-map-meshes.mjs # smaller meshes (more decimation)
3131MESH_NO_DECIMATE=1 node scripts/fetch-map-meshes.mjs # skip oversized instead of shrinking
3232```
3333
34+ > ** ⚠ jsDelivr 20 MiB limit (read this).** The CDN refuses to serve any single
35+ > file over ~ 20 MiB — it returns ** 403, not 404** . A 403 means the 3D viewer
36+ > silently falls back to the flat radar * and* ` MeshAvailability ` lists the map as
37+ > "missing", even though the ` .tri ` is committed and tagged. That's why the cap
38+ > defaults to ** 18** (decimal MB on disk). Do ** not** raise ` MESH_MAX_MB ` past ~ 19
39+ > for anything you intend to publish. Verify a published tag with
40+ > ` curl -sI <cdn>/<map>.tri ` — expect ` 200 ` , never ` 403 ` .
41+
3442It downloads ` https://awpycs.com/<build>/tris.zip ` and writes the requested maps
3543to ` .cache/meshes/ ` . Add ` --publish ` to push + tag them to the CDN (see Hosting).
3644Bump ` AWPY_BUILD_ID ` when awpy ships data for a newer CS2 patch.
3745
38- ** Auto-decimation:** maps over ` MESH_MAX_MB ` (default 30) are * not * dropped — the
39- script snaps their vertices to a grid and dedups degenerate/duplicate triangles
40- until they fit, so big active-duty maps still come through (e.g. inferno
41- 97→ ~ 19 MB, train 55→ ~ 14 MB, ancient 35→ ~ 12 MB). This is the same idea as the
42- "weld + simplify" step below, just built in and pure-JS.
46+ ** Auto-decimation:** maps over ` MESH_MAX_MB ` (default 18, under the jsDelivr limit
47+ above) are * not * dropped — the script snaps their vertices to a grid and dedups
48+ degenerate/duplicate triangles until they fit, so big active-duty maps still come
49+ through (e.g. anubis 24→ ~ 12 MB, overpass 49→ ~ 9 MB, train 55→ ~ 13 MB). This is the
50+ same idea as the "weld + simplify" step below, just built in and pure-JS.
4351
4452Maps in the pack today: `de_ancient de_anubis de_basalt de_dust2 de_edin
4553de_inferno de_mirage de_nuke de_overpass de_palais de_train de_vertigo
0 commit comments