This guide covers creating, editing, scripting, packaging, and hosting custom Weapons, Vehicles, Reusable Map Stamps, Maps & Missions, Custom Grid Maps (.cwgrid.json), MapGen Asset Palettes, ColdFlux / Luau Scripts, and Asset Packs (.cwassetopack.json) in Project Cold Water and Sculpt Engine.
You can author almost everything visually inside the in-engine Asset Studio and Grid & Palette Studio, or write/tweak the JSON and Luau files directly.
See README.md for general controls and CLI flags, and ARCHITECTURE.md for internal engine details.
mods/weapons/)mods/vehicles/)mods/stamps/)mods/maps/).cwgrid.json) & Asset Palettes (mods/mapgen_palettes/)mods/scripts/, F9).cwassetopack.json (📦 Pack Builder)project_cold_water reads mods from ./mods/ by default (or the path passed to --project <dir>).sculpt (the engine-only binary built with --no-default-features --features client) uses isolated workspaces under ./sculpt_projects/<name>/ (--project sculpt_projects/default by default) with zero Cold Water starter assets preloaded.Both project roots share the exact same subfolder structure:
mods/ (or sculpt_projects/<name>/)
├── weapons/*.json # Custom CSG weapons + ballistics/audio stats
├── vehicles/*.json # Custom CSG vehicles + locomotion/turret/armor specs
├── maps/*.json # Custom CSG maps, missions & terrain/generator configs
├── stamps/*.json # Reusable CSG building/cover stamps
├── mapgen_palettes/*.json # Weighted asset tables per biome & slot for MapGen
├── grids/*.cwgrid.json # Painted 3x3..128x128 custom grid maps
├── scripts/
│ ├── *.luau # Persistent Luau gameplay / UI / modifier scripts
│ └── *.coldflux.json # Saved ColdFlux visual node-graph scripts
├── packs/*.cwassetopack.json # Multi-mod bundles (excludes heightmaps)
└── heightmaps/*.png # 8-bit / 16-bit grayscale terrain heightmaps
AssetBlueprint)Weapons, vehicles, maps, and map stamps share the top-level JSON wrapper AssetBlueprint (schema_version: 1):
{
"schema_version": 1,
"id": "my_custom_id",
"name": "Display Name",
"author": "Your Name",
"payload": {
"Weapon": { }
}
}
Valid payload tags are "Weapon", "Vehicle", "Map", and "MapStamp". IDs are normalized with lowercase alphanumeric + underscores (a-z, 0-9, _).
📁 Open Mod Folder in the Main Menu or Asset Studio toolbar to open your active mods root in Explorer.↻ Reload (Main Menu / Asset Studio) after hand-editing JSON or dropping packs/scripts on disk.weapons/, vehicles/, maps/, stamps/, mapgen_palettes/, grids/, and scripts/ take priority over assets of the same ID inside .cwassetopack.json packs.CsgNode)Every weapon, vehicle hull, vehicle turret, map stamp, and map structure is a sequence of CSG nodes:
op): "Union" (+), "Subtract" (-), "Intersect" (∩). Keep at least one solid "Union" base before "Subtract" cutters so negative space carves cleanly.shape):
{"Primitive": "Box"}{"Primitive": {"Cylinder": {"segments": 12}}}{"Primitive": {"Sphere": {"rings": 8, "sectors": 12}}}{"Primitive": {"Cone": {"segments": 12}}}{"Primitive": "Wedge"}{"Primitive": {"Torus": {"major_segs": 12, "minor_segs": 8}}}{"Primitive": {"AssetStamp": "Ak74m"}} — clones built-in geometry (Ak74m, Akm, Aks74u, Pkm, Svd, Rpg7v, Uaz469Body, Ural4320Body, Btr80Hull, Btr80Turret, VehicleWheel, SandbagWall, ConcreteBarrier, BunkerShell, PineTree){"Group": [ ...CsgNode... ]} — reusable nested group (used by Map Stamps).pos: [x, y, z], rot_deg: [rx, ry, rz], scale: [sx, sy, sz].| Input | Action |
|---|---|
LMB |
Pick CSG node, TURRET / MUZZLE / AXLE anchor, or SPAWN / OBJ / VEH marker and drag gizmo |
W / R / E |
Switch Gizmo: Move / Scale (or Objective Radius) / Rotate (or Vehicle Yaw) |
Hold Ctrl |
Grid / angle snapping during drag |
F |
Focus camera on selected part/marker |
RMB drag |
Orbit camera |
MMB drag or Shift + RMB |
Pan camera target |
Scroll |
Zoom (scales dynamically to map extent up to 2.6 km in Map mode) |
Ctrl+Z / Ctrl+Y |
Undo / Redo CSG & property edits |
MaterialId)Textures, PBR roughness/wetness, 3-band acoustic absorption/scattering, and ballistic resistance/ricochet are all driven by MaterialId:
MaterialId |
Surface Description | Typical Use |
|---|---|---|
"Concrete" |
Poured Soviet concrete | Bunkers, panelkas, barriers |
"BrickRubble" |
Cracked masonry brick | Old compounds, warehouses |
"WinterMud" |
Wet frozen dirt | Ground, berms, earthworks |
"WetAsphalt" |
Slick dark road tarmac | Highways, airstrips, intersections |
"MountainRock" |
Sharp Caucasus cliff granite | Cliffs, outcrops, boulders |
"WinterSnow" |
Packed snowdrift | Alpine peaks, drifts |
"SteelHulk" |
Painted heavy armor steel | Tanks, APC hulls, turrets, girders |
"Sandbag" |
Heavy woven canvas | Sandbag walls, revetments |
"WinterPine" |
Dark evergreen bark & needles | Conifers, timber logs |
"FloraCamo" |
VSR-98 green camouflage fabric | Gear, tarps |
"MilitiaCloth" |
Muted wool/cotton uniform cloth | Fabric wraps |
"Gunmetal" |
Blued machined receiver steel | Rifle receivers, barrels, rails |
"Vsr93Barvikha" |
Vertical-stripe camo fabric | Tarps, webbing |
"GorkaKhaki" |
Mountain suit khaki canvas | Canvas covers, pouches |
"M81Woodland" |
Four-color woodland camo | Pouches, gear |
"AfghankaOlive" |
Olive drab field canvas | Field packs, seat fabric |
"WinterOverwhite" |
Winter camo white cloth | Arctic wraps |
"WoolFleece" |
Dark knit fleece | Trim, grips |
"WoodFurniture" |
Laminated birch stock wood | AK stocks, crates, doors |
"BakelitePlum" |
Dark plum/orange phenolic polymer | Magazines, pistol grips |
"TireRubber" |
Molded off-road lugged rubber | Vehicle tires, mudflaps |
"ColdWater" |
Acoustic water surface (non-GPU solid) | River water reference only |
Each CsgNode can hold non-destructive modifiers: [...]:
Array:
mode: "Linear", "Radial", or "Grid".offset (world meters) and/or relative_offset, plus per-step step_rot_deg and step_scale.radial_radius across radial_arc_deg with optional radial_align.snap_to_terrain: true in Map mode to drape fence posts, dragon's teeth, or streetlights onto terrain height.RandomizeTransform:
seed) within pos_min..pos_max, rot_min_deg..rot_max_deg, scale_min..scale_max, optional uniform_scale, random skip_chance, and snap_to_terrain.Curve:
points OR references a shared MapNamedCurve via shared_curve_id."CatmullRom" or "Polyline", "FitCount" or "FixedSpacing", spacing_m, follow_tangent, forward_axis ("PosZ", "PosX", "NegZ", "NegX"), bank_pitch, lateral_offset, vertical_offset, snap_to_terrain, and align_to_slope.LuauScript / ColdFlux:
params).Engine Caps:
MAX_MODIFIER_INSTANCES = 128instances per node,MAX_BLUEPRINT_MODIFIER_INSTANCES = 512destructible expanded structures per map,MAX_CURVE_CONTROL_POINTS = 64.
mods/weapons/)🔫 Weapon.base_archetype ("Ak74m", "Akm", "Aks74u", "Pkm", "Svd", "Rpg7v") or click Starter for the suppressed carbine template.+Z points forward toward the muzzle; +Y is up).MUZZLE anchor selection (or click the 3D MUZZLE gizmo) to align tracer/flash spawn (muzzle_local).sight_height_y (ADS iron-sight alignment height in meters) and ads_fov_deg (zoomed FOV; enable has_pso1_scope: true for the 4× PSO-1 optic overlay).💾 Save JSON (writes mods/weapons/<id>.json) or 🚀 Save & Test in Valley to spawn immediately holding your weapon.WeaponBlueprint Field Referencebase_archetype: "Ak74m" | "Akm" | "Aks74u" | "Pkm" | "Svd" | "Rpg7v"damage: base torso damage (f32; Headshots deal 2.2×, Legs deal 0.75×)rpm: cyclic fire rate (60.0 / fire_interval)muzzle_velocity: projectile speed (m/s)drag_coeff: air resistance decay (~0.0008–0.0020)suppression_power: suppression spike inflicted on nearby targets per bulletmag_capacity / reserve_default / reload_secs: magazine size, starting spare rounds, and base reload timespread_rad: base angular dispersion in radiansrecoil_pitch / recoil_yaw / recoil_kick_z: per-shot climb, horizontal kick, and camera/viewmodel pushbackauto_capable: true enables [B] Full-Auto / Semi toggleis_rocket / blast_radius: enable explosive warheads + CSG cratering on impacttracer_every: 1 = every round has a visible tracer; 4 = every 4th roundsound: "Ak74mShot" | "AkmShot" | "SvdShot" | "PkmShot" | "RpgLaunch" | ...mods/weapons/vintorez_9x39.jsonmods/vehicles/)🚚 Vehicle.Hull (hull_nodes) and Turret (turret_nodes, rotated at turret_mount_local).locomotion):
"Wheeled": configure wheel_offsets ([x, z, can_steer] with AXLE 1..N 3D markers), wheel_radius, wheel_width, is_amphibious. Engine auto-generates 16-sided off-road TireRubber lugged wheels at runtime."Tracked": configure track_half_width, track_length, track_height, roadwheel_count, pivot_turn_rate (differential steering & neutral pivot turns)."Helicopter": configure rotor_mount_local, tail_rotor_mount_local, rotor_radius, lift_power, max_climb_rate."EmplacedTurret": stationary AA/AT tripod or gun emplacement (has_turret enabled).TURRET (turret_mount_local) and MUZZLE (turret_muzzle_local) visually in the viewport.turret_primary and optional turret_secondary):
kind): "HeavyMg14_5mm", "Autocannon30mm", "TwinAutocannon23mm", "TwinAutocannon30mm", "TankCannon125mm", "TowAtgmLauncher", "AtakaQuadAtgm", "RocketPodS8".barrel_count (1..6), barrel_fire_mode ("Alternating" | "Salvo"), barrel_layout ("Horizontal" | "QuadGrid" | "Rotary"), barrel_spacing, and guidance ("Unguided" | "SaclosWireGuided").seat_roles): mix of "Driver", "Gunner", and "Passenger" entries.💾 Save JSON to save to mods/vehicles/<id>.json. Your custom vehicle immediately appears in:
F7) -> Vehicles palette (with the Spawn with AI Crew toggle).🏔 Map / Heightmap) -> Vehicles panel dropdown (Mod).mods/stamps/)Use Map Stamps to build a building, guard tower, checkpoint, or barricade once and stamp it cleanly across any Map or MapGen Asset Palette.
🧱 Map Stamp.+ Union and carve enterable doorways & firing windows with - Subtract.
Y = 0 (at least 1.2 m wide and 2.1 m tall) so NavGrid carves walkable transitions cleanly through openings while solid walls block movement.Sit Base on Ground and Center XZ Pivot so the building rests cleanly at Y = 0.💾 Save JSON (or Save & Open in Map Editor) to save to mods/stamps/<id>.json.MapBlueprint (or spawned by a MapGenPalette), each MapStamp compiles automatically as an independent destructible structure supporting CSG craters and structural collapse (Pancaking, Cantilever V-Frame, A-Frame).mods/maps/)Switch Asset Studio to 🏔 Map / Heightmap to author playable maps and mission templates saved to mods/maps/<id>.json.
base_terrain)Four terrain modes are available directly inside the Terrain selector:
FlatSandbox: customizable half_extent (120..450 m) and GPU ground material.ClassicFoothills: builds on the built-in Foothill River Town valley terrain.HeightmapPng: loads 8-bit or 16-bit grayscale PNGs from mods/heightmaps/ (or <project>/heightmaps/), with half_extent, min_height, max_height, enable_water, and water_level. Click 🏔 Generate Demo Heightmap PNG to create a sample valley PNG immediately.Dynamic(MapGenConfig): exposes every procedural world generator directly in the Map Editor:
"RiverValleyTown", "SmallCity", "TwinBridgeCrossing", "DryCityOutskirts".Transition Blend).3072 m × 3072 m chunked combined-arms map.CustomGridSpec directly in the map! Pick any saved .cwgrid.json, adjust Cell Scale (32m / 64m / 128m), Auto Roads, Auto Bridges, Seed, Asset Palette, Urban Density, and Rubble Density, or click 🎨 Open Grid & Palette Designer to paint cells live and click 🗺 Apply Grid to Map Editor to push the painted grid right back into your map.+ Fed Spawn / + Mil Spawn, + Add Objective, or + Fed Vehicle / + Mil Vehicle.LMB (W Move, R scales Objective radius, E rotates Vehicle yaw), or use 🔍 to focus the camera.named_curves) to draw Catmull-Rom/Polyline roads or ridgelines and bind multiple Curve modifiers to follow the same path.mission_defaults) & Per-Unit OverridesInside the ⚙ Mission Default Behavior panel in the Map Editor, you can define how missions and AI behave by default whenever the map loads, switches in multiplayer, or resets (Reset):
friendly_faction): "Federal" or "Militia".federal_behavior / militia_behavior):"MoveToObjective" — march/advance tactically to objective"AssaultObjective" — aggressive assault on objective"HoldCover" — hold fortified cover at spawn point"SuppressObjective" — deliver suppressive fire onto objective sectorfederal_formation / militia_formation): "Wedge", "Line", "Column", "Spread"federal_roe / militia_roe): "WeaponsFree", "ReturnFireOnly", "HoldFire"default_vehicle_tactic: "Auto", {"Ground": "Move" | "AssistInfantry" | "ArmoredPush" | "SuppressPosition"}, or {"Heli": "Cas" | "Transport" | "Move"}vehicles_engage_objective: when true, crewed vehicles automatically receive an ai_target on the primary (or selected) objective at match startdefault_ai_skill: null (use user/server setting) or "Conscript" | "Regular" | "Spetsnaz"respawn_delay_secs: player respawn timer (0..30 s)auto_director_waves: automatically spawn reinforcement wavessandbox_all_weapons: allow all 6 weapons regardless of kit roleEvery individual Squad Spawn (mb.spawns[i]) and Vehicle (mb.vehicles[i]) can leave its behavior on Mission Default (inheriting faction/map defaults) or override its starting behavior, formation, ROE, objective engagement, and target objective index (target_objective_idx, 0-based).
mission_defaults + per-spawn / per-vehicle overrides inside MapBlueprint.cwgrid.json) & Asset Palettes (mods/mapgen_palettes/)Open Grid & Palette Studio via F6 -> 🗺 Grid & Palette Studio, F8 in tactical view, Sculpt Engine Hub, or 🗺 Grid & Palette Designer inside the Map Editor.
.cwgrid.json Maps3×3 up to 128×128 tiles.GridCellScope):
"Block32m" (32 m per cell — tight CQB towns)"District64m" (64 m per cell — standard districts & valleys)"Sector128m" (128 m per cell — up to 16.4 km × 16.4 km theater scale)ZoneType): "SovietCityCore", "SuburbanTown", "IndustrialOutskirts", "MilitaryOutpost", "RiverCrossing", "Forest", "OpenField", "FoothillRidge", "WaterLake".Brush (radius 1/2/4/8/16), Line / River (clean continuous river channels with auto bank-to-bank bridges), Flood Fill, and Eyedropper, plus 6 quick templates (Valley River, Twin Cities, Archipelago, Military Corridor, Random Biomes, Clear Field).<mods_or_project_root>/grids/<name>.cwgrid.json and can be launched from Grid Studio, Multiplayer Host, server_config.json ("grid:<name>"), or embedded inside a Map Editor map.MapGenPalette (mapgen_palettes/*.json)Each MapGenPalette maps (ZoneType, MapGenSlot) -> weighted asset entries:
MapGenSlot): "LargeBuilding", "MediumBuilding", "SmallBuilding", "Landmark", "CoverProp", "Bridge", "Vegetation".MapGenAssetRef):
{"MapStamp": "your_stamp_id"} — spawns one of your custom CSG stamps (mods/stamps/*.json){"BuiltIn": "<key>"} — procedural built-in preset (khrushchyovka, panelka, warehouse, brick_house, bunker, guard_tower, pine, sandbag, etc.)weight, footprint_radius, min_scale, max_scale, random_yaw, and destructible.Edit in Studio on any stamp or Convert -> CSG Stamp on any built-in preset to inspect/re-sculpt it in CSG Asset Studio.mods/scripts/, F9)Open the ColdFlux / Luau Scripting Studio with F9 (or ⚡ ColdFlux (F9) in Asset Studio).
.coldflux.json): Visual node graph compiled straight into sandboxed Luau source. Great for timers, triggers, variable checks, HUD buttons, explosions, lighting, and scenario scripting..luau): Write sandboxed Luau scripts directly. Set auto_load: true in saved .coldflux.json/.luau headers to load scripts automatically with the world, or attach scripts directly onto a blueprint's script_hooks array.on_tick(dt) every simulation tick inside strict VM caps (by role via ScriptBudget: e.g. max_instructions, max_memory_bytes, default 512 KB).cw.* API Quick Reference| Category | Functions |
|---|---|
| World & Queries | cw.time(), cw.ground_height(x, z) / cw.ground_height(vec3), cw.is_walkable(x, z), cw.raycast(origin, dir, max_dist), cw.find_entities_in_radius(center, radius), cw.get_soldier(id), cw.get_vehicle(id) |
| Variables | cw.get_var(key), cw.set_var(key, val) |
| Combat & FX | cw.play_sound(kind, pos, gain), cw.spawn_light(pos, r, g, b, intensity, radius), cw.spawn_explosion(pos, radius, damage, crater_radius), cw.spawn_vehicle(kind, faction, pos), cw.damage_entity(kind, id, amount), cw.call_artillery(pos), cw.broadcast_banner(text) |
UI Extensions (cw.ui.*) |
cw.ui.panel(id, title, surface, opts), cw.ui.window(id, title, w, h, screens), cw.ui.heading(panel, id, text), cw.ui.label(...), cw.ui.button(panel, id, label) (returns true on click), cw.ui.checkbox(...), cw.ui.slider(...), cw.ui.set_open(panel, bool), cw.ui.is_open(panel), cw.ui.clear(panel), cw.ui.remove(panel), cw.ui.toast(text, secs), cw.ui.context() |
Game Director (cw.gm.*) |
cw.gm.set_time_scale(scale), cw.gm.set_paused(bool), cw.gm.set_weather(sun_elev, clouds, wetness), cw.gm.heal_all(faction_or_nil) |
Asset Studio (cw.editor.*) |
cw.editor.add_primitive(kind, name, pos, size), cw.editor.set_selected_pos/rot/scale(vec3), cw.editor.duplicate_selected(), cw.editor.focus_selection(), cw.editor.set_status(text), cw.editor.add_map_spawn(name, faction, pos), cw.editor.add_map_objective(name, pos) |
mods/scripts/arty_button.luau).cwassetopack.json (📦 Pack Builder)Instead of sharing dozens of separate JSON files, open 📦 Pack Builder inside Asset Studio to bundle a full mod collection into a single ./mods/packs/<id>.cwassetopack.json:
.png files are intentionally excluded from packs (heightmaps/*.png must still be distributed separately if a map uses HeightmapPng).Export Pack: saves ./mods/packs/<id>.cwassetopack.json.Edit in Builder: opens an existing pack to add/remove items or change version/author metadata.Unpack to Loose: extracts every bundled asset, palette, .cwgrid.json, and script back into loose folders so they can be edited individually or override the pack.🌐 Multiplayer -> Host):
.cwgrid.json), or any Custom CSG Map (mods/maps/*.json).GM Password (PIN) (lets trusted players claim GameMaster live in F10) and Allow All GM (open sandbox, off by default).Owner / Admin players can switch maps live via F6 Map Gen or Grid & Palette Studio (ChangeMap reloads the world across all connected clients without dropping their session).server_config.json):
"map" to "foothills", "small_city", "twin_bridges", "dry_city", "theater_3km", "custom:<map_id>", or "grid:<grid_name>"."mods_dir", "admin_callsigns", "gm_password", and "allow_all_gm".When clients join a modded server (or when the host switches to a custom map live), the server compares FNV-1a manifests and transfers missing blueprints, palettes/grids embedded in MapBlueprint, and heightmap PNGs automatically into an in-memory session overlay (never overwriting the client's local ./mods/ folder):
MAX_TEMP_MOD_COUNT: 64 entriesMAX_TEMP_MOD_JSON_BYTES: 512 KB per blueprintMAX_TEMP_CSG_NODES: 512 CSG nodes per blueprintMAX_TEMP_HEIGHTMAP_BYTES: 2 MB per heightmap PNGNET_PROTOCOL_VERSION: 2If a blueprint fails validation or exceeds these limits during multiplayer sync, trim complex CSG node counts using Instanced Modifiers (Array / Curve instead of hundreds of raw manual CsgNodes) so the blueprint JSON stays compact and fast to transfer.