Skip to content

CS2 Map MCP 1.2

Choose a tag to compare

@Rmgs123 Rmgs123 released this 27 Oct 06:03
· 13 commits to main since this release

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_map nav_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_build takes bots and vis (null = auto). job_status shows 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's func_nav_markup NONAV 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 section nav.
  • Measured with the compiler and documented: the markup key is navProperty_NavGen, and a func_nav_markup counts 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_build warns 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_build template bus_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_check visual_paved_lip: steps of 1–4 units where paved surfaces of different meshes overlap or meet (thin dark lines across roads).
  • add_water_body water_style: "far": an opaque sea for distant bays and water seen from above (stock water is see-through there).
  • Shape terrain absolute: true: heights are world z (by default they are added to maxs.z).
  • add_model takes any stock path, such as player agents in characters/models/... and agents/models/...; a wrong folder lists the real paths. asset_search lists stock materials whose textures are missing in the game apart (broken_stock).
  • Clearer limits: map_edit over 2000 operations says how to split; add_pipes sides 6..32 in the error; the guide names the 2000-operation and 8192-face limits.
  • tools/mcp_call.py splits a map_edit over 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=1 runs the suite without starting the compiler or the game.