Repository navigation
CS2 Map MCP 1.2
Bots on big maps no longer cost hours, and every problem AI models reported since 1.1 is fixed. Checked in CS2 on a copy of an 830 m terrain town: a nav of 69 000 areas is stopped after NAVGEN in 85 s instead of running for hours; limited to its streets it has 4 755 areas, the full build with bots takes 7.8 min and bots of both teams play; its Workshop release takes 20.5 min and uploads 190 MB instead of 871 MB.
- Bots on big maps. Builds estimate the nav before they start (areas and the time of the one-core bot data step;
check_mapnav_too_big) and stop right after NAVGEN when the nav is over the limit (20 000 areas,limits.nav_max_areas) instead of running for hours; light builds skip bots beforehand when the estimate is over it.map_buildtakesbotsandvis(null = auto).job_statusshows the build stage, the nav area count and the bot data estimate while it runs. set_play_area: the outline players reach; the nav only inside it, along route corridors (nav: "routes") and/or only on paved ground (paved: true), made with Valve'sfunc_nav_markupNONAV volumes.add_nav_markup: own NONAV or seed volumes. Checks treat what lies outside the play area as background for phantom floors. Clips of fences, railings and backdrops get a nav clip twin (player clips do not stop the nav). New guide sectionnav.- Measured with the compiler and documented: the markup key is
navProperty_NavGen, and afunc_nav_markupcounts only its first mesh, as one convex volume. - Release on big open maps: no VIS on worlds wider than ~310 m (hours, no gain); the nav is measured before the light bake and the release goes on without bots when it does not fit; the time limit follows the map; the light bake's work files (
_vrad3, hundreds of MB) stay out of the upload; PUBLISH.md states the upload size. map_buildwarns when a light bake will not fit in free RAM (a big map baked at 2048 px took 15 GB while CS2 still held another 16 GB).- New
model_buildtemplatebus_body: a hollow bus or van body (floor, walls with windows and doors, windshield, roof; every piece its own collision hull) with a step well at each door, so players walk in; the bus example of the vehicles guide uses it. visual_checkvisual_paved_lip: steps of 1–4 units where paved surfaces of different meshes overlap or meet (thin dark lines across roads).add_water_bodywater_style: "far": an opaque sea for distant bays and water seen from above (stock water is see-through there).- Shape
terrainabsolute: true: heights are world z (by default they are added tomaxs.z). add_modeltakes any stock path, such as player agents incharacters/models/...andagents/models/...; a wrong folder lists the real paths.asset_searchlists stock materials whose textures are missing in the game apart (broken_stock).- Clearer limits:
map_editover 2000 operations says how to split;add_pipessides 6..32 in the error; the guide names the 2000-operation and 8192-face limits. tools/mcp_call.pysplits amap_editover 2000 operations and waits for a build it started (the MCP SDK client ended the server's process tree, and the build with it, when the script exited).- Tests:
CS2MAP_OFFLINE=1runs the suite without starting the compiler or the game.