
WKMapLoader
Make White Knuckle maps in Blender (.glb) with the game's machines, bolts and doors, and chain them into runs. Maps: https://discord.gg/Ke8k7A9gZMWK Map Loader
Make your own White Knuckle maps in Blender and play them in the game.
Share and explore maps on Discord: https://discord.gg/Ke8k7A9gZM
- CUSTOM tab in the play menu, one card per map
- Climbing like the real game: top edges are grabbable, handholds anywhere
- Buttons, pads and zones that give items, set checkpoints, teleport, time runs and more. No code. Example: a box named
button; giveitem rebar 3 - The game's own machines: vending machines, shops, recycler, lockers, perk computers, working like in a run. Example: an empty named
placeprefab prop_vendingmachine - Choose what they sell:
itemstock,perkstock,cardreader. Example:placeprefab prop_vendingmachine; itemstock rebar:2, flare x2 - Real game pieces placed exactly at an object: red wall bolts, pitons, crates, the round silo door, a burning pool. Example: an empty against a wall named
placeprefab handhold_basic wall - Any item or creature on the floor, on load or from a trigger. Example:
placeentity item_rebar 3, orbutton; placeentity denizen_hopper - Floating text: Example: an empty named
title Climb up! - Trinkets and run bindings: Example:
start; givetrinket employee_id,pad; applybinding high_gravity - Death zones and fall zones: Example: a box under the map named
zone; resetsends fallers to their checkpoint;zone; killat a pit's bottom kills - Chain into runs: every map is a level named
map_<file name>. Example:loadlevels M1_Silos_Storage_06 map_mymap M1_Silos_Storage_01in the console - Textures at the game's scale (32 px = 1 m), plus
texture <m>andtexture fit. Example:texture 2repeats a wall's texture every 2 m - Plain colours: a material named
flat_+ any name uses its Base Color, no texture. Example:flat_cable - No rising mass, thin fog (
fog/ambienttags)
Playing: install a map pack, then Play → CUSTOM.
Make a map
- Model it in Blender (1 unit = 1 m).
- Tag objects (below). No tag = solid block with grabbable top edges.
- Add an empty named
spawn. - File → Export → glTF 2.0, format .glb, into
BepInEx/plugins/WKMapLoader/maps/. - Play it from CUSTOM. F8 reloads after each export.
maps/example.glb has one of every tag, in labelled rows (surfaces, places, triggers, items, movement, effects, text) plus a short timed course. Play it from CUSTOM and look at any object to see its tags, or import it into Blender to see how it's built.
Tags
Tags go in Blender and are part of the map. Console commands are typed in game and are only for you while testing.
Put tags in the object's name, separated by ;:
button; clear; giveitem rebar 3; msg Ready!
Or keep the name free: parent empties to the object and name the empties after the tags. Empties on their own are places (spawn, lights, points).
<value> = required, [value] = optional. Text can go in quotes: msg 'Floor 1/2; go'.
Surfaces
| Tag | Does | Example |
|---|---|---|
| (none) | Solid, top edges grabbable | A box named Floor: stand on it, hang from its edges |
smooth |
Solid, nothing grabbable | smooth on a slick wall you must jump past, not climb |
handhold |
Grabbable all over | handhold on a pipe you can grab anywhere along |
pass |
With handhold: grab it, walk through it |
handhold; pass on a ladder you climb but can walk through |
deco |
Visible, no collision | deco on grass, signs and lamps you shouldn't bump into |
invisible |
Solid, not drawn | invisible on a wall that stops players walking off the map |
enemywall |
Invisible glass: stops you and denizens, shots fly through | enemywall across an arena door: you and hoppers stay in, shots go out |
texture <m> |
Texture repeats every m metres (default: the game's size, 32 px per metre) | texture 2 on a brick wall that looked too stretched |
texture fit |
Texture stretched to fill each side once | texture fit on a poster: the whole picture once on each side |
Places & settings
| Tag | Does | Example |
|---|---|---|
spawn |
Start point, facing Blender's +Y | An empty named spawn at the start, its arrow pointing the way to go |
exit |
End point (optional) | An empty named exit at the top: where the next level starts in a loadlevels run |
point <name> |
Target for teleport |
point top on the summit, then button; teleport top at the bottom |
light [range] [hex] |
Invisible light here (default 12 m) | light 20 ffcc88 in a room for warm light 20 m round |
lamp [range] [hex] |
Light shining from a visible mesh | lamp 8 on a ceiling lamp mesh so the light comes from it |
note <name> |
Floor note, text from <map>_<name>.txt |
note intro on the floor, text in mymap_intro.txt: "Climb to the top" |
godmode |
Can't die in this map | An empty named godmode in a practice map: fall as much as you like |
fog <0-1> |
Fog strength (default 0.25) | fog 0 for a clear view, fog 1 for a dark spooky pit |
ambient <amount> |
Base light everywhere, no lamps needed | ambient 0.3 to see a whole map without placing lamps |
Triggers
| Tag | Runs its actions when you... | Example |
|---|---|---|
button |
Press the mesh | A lever named button; giveitem flare 2; msg Flares! |
pad |
Stand on top of it | A floor plate named pad; checkpoint; msg Saved |
zone |
Walk into it (invisible; add deco to show it) |
A box over the start line named zone; timer start |
start |
Start the map, or a reset back to spawn |
A button by the spawn named button; clear; giveitem rebar 3; start: everyone starts with only 3 rebar |
Actions
| Tag | Does | Example |
|---|---|---|
giveitem <item> [n] |
Straight into your inventory (like spawnitem). Part of the name is enough |
button; giveitem rebar 3 at a rebar station |
givetrinket <name> |
A trinket: the items and perks it gives at the start of a run | start; givetrinket employee_id: the map starts with the Employee ID's gear |
placeentity <name> [n] |
Puts an item, creature or prop in the level on this object's spot (on top of a mesh), to pick up like normal loot. Any spawnentity or spawnitem name. Without a trigger it's there when the map loads; with one, each press |
placeentity item_rebar 3 on a ledge as loot; button; placeentity denizen_hopper; msg Fight! spawns a hopper each press |
placeprefab <name> |
Puts one of the game's machines in the level, standing on the floor under this object, its front facing the way the object faces (Blender's front view, -Y). Vending machines sell for roaches, perk computers give perks. Names in the mapping guide. Add wall to hang it exactly at the object instead, turned the way the object is turned (a number after it scales it): the game's own wall bolt is placeprefab handhold_basic wall; also handhold_piton, crate_large, crate_small |
placeprefab prop_vendingmachine in a rest room; placeprefab handhold_basic wall on an empty against a wall gives a real red bolt |
keepitem <item> [n] |
Give it and keep it through clear |
start; keepitem buddy: the buddy stays through every clear |
takeitem <item> |
Stop keeping it, take it away | zone; takeitem buddy; msg Buddy stays here at the last stretch |
clear |
Empty the inventory (runs first) | pad; clear; giveitem hammer before a hammer-only section |
checkpoint |
Where reset brings you back to |
pad; checkpoint on each floor of a tower |
reset |
Back to the last checkpoint, else the spawn (runs start again); counts in {falls}. A fall zone: a box under the map |
A big box under the map named zone; reset: falling sends you back to the last checkpoint |
kill |
You die, like any death in a run. A death zone: a box at the bottom of a pit | A box at a pit's bottom named zone; kill: falling in ends the run |
teleport [point] |
To a point, spawn, or last checkpoint |
button; teleport top with a point top empty up the tower |
launch <m> |
Spring: throws you m metres up | A jump pad named pad; launch 10 |
msg <text> |
Big text on screen | zone; timer stop; msg Done in {timer} at the finish |
giveperk <name> [s] |
Perk, no time = until you leave. Each fire adds one more | pad; giveperk velocity 10: 10 s of speed for a long jump |
applybinding <name> [s] |
A run binding (high_gravity, weak_arms, hunted...), no time = until you leave. Never stacks |
zone; applybinding high_gravity; msg Heavy! for a hard section |
giveeffect <name> [s] |
Effect, no time = until you leave | button; giveeffect sticky_hands 10: 10 s to climb a smooth wall |
timer start/stop/reset |
Speedrun timer, stop saves best |
zone; timer start at the start line, zone; timer stop at the finish |
set <var> <value> |
Set a value | pad; set floor 2; msg Floor {floor} |
add <var> [n] |
Add to a counter | button; add presses; msg Pressed {presses} times |
map <name> |
Load another map | pad; map level_2 at the end of level 1 |
win |
Fireworks, then the win screen | button; win on the trophy at the top |
| Effect | Does |
|---|---|
refill |
Full stamina |
infi_stamina [s] |
Stamina stays full |
sticky_hands [s] |
Grab any surface |
temp_jump <n> |
n extra air jumps |
jump_boost [s] |
Higher jumps |
| game buff id | That game buff |
In msg text: {timer} {best} {falls} {map}, or any counter: button; add presses; msg Pressed {presses} times.
Labels
| Tag | Does | Example |
|---|---|---|
name <text> |
Bold name above it when you look at it | name Rebar Station on the rebar button |
description <text> |
Small line under the name (add several for more lines) | description Gives 3 rebars under that name |
sign <text> |
Text written on a flat mesh | sign Shooting Range on a flat board over the door |
title <text> |
Text floating at this object, always turned towards you | An empty named title Climb up! floating over the start |
Placed machines
On the same object as placeprefab (or empties inside it).
| Tag | Does | Example |
|---|---|---|
perkstock <names> |
With placeprefab on a perk computer: the perks it offers, comma-separated, in order. Up to 3 per page (the no-disk computer 2); the next names show after a reroll. Slots left over are the game's own picks |
placeprefab prop_upgradeconsole_main; perkstock rabbit_dna, pulse organ: a computer that always offers those two |
itemstock <names> |
With placeprefab on a vending machine: what its buttons sell, comma-separated, in order. Any item works (artifacts too); name:price sets the price in roaches, name x3 fills three buttons, none is an empty card. Items no machine sells get a pink piton picture, with their name on the card when you look at it. Buttons left over are the game's own picks |
placeprefab prop_vendingmachine; itemstock rebar:2, flare x2: rebar for 2 roaches, flares on two buttons |
cardreader off |
With placeprefab on a vending machine: no Employee ID card slot (placed machines have one otherwise) |
placeprefab prop_vendingmachine; cardreader off: no Employee ID discount slot |
Presets
Save a tag combo under a short name, then name objects after it. In the console use / between tags (the console uses ; itself):
setpreset rebarbtn button / clear / giveitem rebar 3 / start
An object named rebarbtn now gets all four tags. Saved in BepInEx/config/WKMapLoader.presets.txt. When sharing a map, put its presets in <map>_presets.txt next to it.
Console commands
| Command | Does |
|---|---|
maps |
List map files |
loadmap <name> |
Load a map now |
| F8 | Reload the current map |
F9 / mapspawn |
Back to spawn |
mapinfo |
What loaded, and unknown tags (typos) |
dumptextures |
Save game textures + _catalog.txt to texture_dump next to the DLL, to pick wk_ materials (type cheats first) |
presets |
List presets |
setpreset <name> <tag / tag> |
Make or change a preset |
removepreset <name> |
Delete a preset |
updatemaps |
Show the map update popup again (maps that use old tag names) |
Materials & sharing
- A material's Base Color tints the blockout texture. Name it
wk_<game material>to use a game texture. Textures tile at the game's own size (32 px per metre); Blender's UVs are ignored, usetexture <m>ortexture fitto change it. - Share a map as a Thunderstore package: a
mapsfolder with your.glb, plus optional<map>.png(card image),<map>_bg.png(background once the card is picked),<map>.txt(first linetitle: My Map) and<map>_presets.txt. AddLakisa-WKMapLoader-1.4.0as a dependency. - Map packs can add their own tags with a small plugin through
WKMapLoader.MapApi, like Gauntlet Knuckle.
Loader updates
When a tag gets a new name (1.4: give is now giveitem, perk giveperk, effect giveeffect, bind / unbind keepitem / takeitem), old maps keep working: the loader reads old names as the new ones. At the main menu, maps in your maps folder that still use old names get a popup: Update writes an updated copy in their place and moves the original to maps\old_versions\. Made the map yourself? Run update_map.py (in the maps folder) in your .blend so your next export has the new names too: see the mapping guide.
Notes
- Old
.objmaps still load, but.objsupport won't be updated any more. Use.glb. - Achievements and leaderboards are off in custom maps.
- Built for White Knuckle 0.61. Report issues and I'll update it.