You are viewing a potentially older version of this package. View all versions.
Lakisa-WKMapLoader-1.4.0 icon

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/Ke8k7A9gZM

Date uploaded a day ago
Version 1.4.0
Download link Lakisa-WKMapLoader-1.4.0.zip
Downloads 157
Dependency string Lakisa-WKMapLoader-1.4.0

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2305 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2305

README

WK 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, or button; 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; reset sends fallers to their checkpoint; zone; kill at 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_01 in the console
  • Textures at the game's scale (32 px = 1 m), plus texture <m> and texture fit. Example: texture 2 repeats 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 / ambient tags)

Playing: install a map pack, then Play → CUSTOM.

Make a map

  1. Model it in Blender (1 unit = 1 m).
  2. Tag objects (below). No tag = solid block with grabbable top edges.
  3. Add an empty named spawn.
  4. File → Export → glTF 2.0, format .glb, into BepInEx/plugins/WKMapLoader/maps/.
  5. 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, use texture <m> or texture fit to change it.
  • Share a map as a Thunderstore package: a maps folder with your .glb, plus optional <map>.png (card image), <map>_bg.png (background once the card is picked), <map>.txt (first line title: My Map) and <map>_presets.txt. Add Lakisa-WKMapLoader-1.4.0 as 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 .obj maps still load, but .obj support 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.

CHANGELOG

Changelog

1.4.0

Game machines and pieces

  • placeprefab <name>: put the game's real machines in your map: vending machines, shops, recycler, lockers, perk computers. They work like in a run. Names are in the mapping guide
  • placeprefab <name> wall: placed exactly at the object and turned like it, instead of standing on the floor. Works with: handhold_basic (red wall bolt), handhold_piton (piton), crate_large / crate_small, silo_door_frame_in / silo_door_frame_out / silo_door (the round Silos door), hazard_caustic_pool (burning pink pool). Add a number to scale it
  • perkstock, itemstock, cardreader: choose what a placed perk computer or vending machine offers, your own prices, and whether it has the Employee ID slot
  • placeentity <name> [n]: put any item, creature or prop in the map, on load or when a button, pad or zone fires

Map tags

  • title <text>: floating text in the world that always faces you
  • givetrinket <name>: gives a trinket's items and perks. applybinding <name>: turns on a run binding
  • zone; kill: a death zone
  • Materials named flat_ + any name show one plain colour, the material's Base Color in Blender, no texture

Runs

  • Every map gets its own level name, map_<file name>, so you can chain it with the game's levels from the console. The map's exit empty is where the next level starts
  • Like vanilla: if a run starts on a map and the spawn has no solid ground, an invisible platform is put under the player
  • Falling off no longer sends you back on its own. To bring players back, add a fall zone. Maps can now have drops and areas below the start

Textures

  • Textures use the game's own scale (32 px = 1 m), so they match vanilla levels. Small 32 px textures look the same as before; bigger ones come out larger
  • texture <m>: how many metres one copy of the texture covers. texture fit: one copy stretched over each side
  • Blender UVs are still ignored (textures are projected from the sides), so slanted faces stretch a little

Updating

  • Renamed: give → giveitem, perk → giveperk, effect → giveeffect, bind → keepitem, unbind → takeitem. Old maps still work
  • At the main menu, maps using old names get an updated copy (the original goes to maps\old_versions\). updatemaps shows it again
  • update_map.py in the maps folder updates your .blend
  • The CUSTOM tab's arrows now reach every map

Removed

  • Dev commands jumpstats, rebarcourse, boomcourse, boomreport, boomclear, mapmat, winseq
  • mapfog / mapambient: use the fog / ambient tags and press F8
  • .obj maps still load but get no new features

1.3.2

  • Share and explore maps on the WHUCKLE maps hub Discord: https://discord.gg/Ke8k7A9gZM
  • dumptextures always saves to texture_dump next to the DLL (type cheats first)
  • No gameplay changes

1.3.1

  • <map>_bg.png next to the map: background of the screen shown once its card is picked (else the card art)
  • The map's card title (title: line) shows in the game's mode text in play, instead of the internal mode name

1.3.0

  • ambient <amount> setting: base light over the whole map without lamps (console: mapambient to try values)
  • Several description tags on one object = several lines under its name
  • Example map rebuilt as a tag showcase: a row per tag group, a sign and label on every object, a timed course at the back
  • Fix: tagged handhold meshes whose name lacked the word "handhold" (e.g. a handhold; pass pole) were not grabbable
  • Fix: button and handhold meshes were walk-through; they are solid now (handhold; pass still lets you through)

1.2.0

  • map <name> action: load another map (hub maps with a doorway per level). A map whose .txt has a line hidden gets no menu card
  • sign <text>: writes the text on both faces of a flat mesh
  • launch <metres> action: a spring, throws you straight up that high (pad; launch 10)
  • enemywall: invisible glass that stops you and denizens but lets shots, flares and thrown things through

1.1.0

  • Maps are now .glb (Blender: File > Export > glTF 2.0). Old .obj maps still load
  • Tags: as many as you like per object, separated by ;, either in the object's name (button; give rebar 3; checkpoint) or on empties parented to it (keeps the name free). Rotation and scale now count
  • Presets: your own shortcut names for a set of tags (setpreset redpad pad / checkpoint, then name an object redpad). Console: presets, setpreset, removepreset. In the console tags are split with /; quoted text (msg 'a/b') isn't split. Saved in BepInEx/config/WKMapLoader.presets.txt; a map can ship its own <map>_presets.txt
  • Triggers + actions instead of single-purpose names: button / pad / zone / start run any of give <item or trinket> [n], bind / unbind (kept through clear), clear, checkpoint, teleport [point], msg, perk <name> [s], effect refill / infi_stamina / sticky_hands / temp_jump / jump_boost / <buff>, timer start/stop/reset, set / add, win
  • Labels: name / description float above an object while you look at it
  • msg text shows live values: {timer}, {best}, {falls}, your own variables
  • Map settings as tags: godmode, fog <0-1>; places: point <name>, light [range] [colour], Blender lights
  • Plugin API (WKMapLoader.MapApi): map packs can add their own tags, actions and console commands
  • New console command mapinfo (what the last load found, unknown tags)
  • Removed from the loader: the glow-wall game, button stands, arrow keys and monitors (now in Laki's Play Room), and the measuring tools (jumpstats, rebarcourse, boomcourse, boomreport, boomclear, mapmat, winseq) are off unless Dev / DevTools = true in the BepInEx config

1.0.5

  • Card title from the map's .txt: first line title: <name> (otherwise the file name)

1.0.4

  • Glow-wall game: computer (tutorial board as monitor with a black screen and GAME / POWER-UPS tabs, crane arrow keys); single player or multiplayer (Comp: a wall each or one shared wall with a colour per player, Co-op: one wall, team score); btn lifespan, light-up interval, duration; the game's button stand starts a wall (3-2-1-GO, invisible wall drops; same light-up order for the same settings); floating power-ups (stamina, speed, air jumps, elastic limbs, grab anything); game-over stats
  • Glow maps: parts tagged _flat / _cyl only show on that map; _cyl parts spin around their lane's ..._cyl_body_laneN axis (one turn per 15 s)
  • prop:<GameMesh> objects: use the game's own meshes (board, buttons) in your map
  • handhold_pass: grabbable holds your body walks through
  • godmode marker object: no dying in that map
  • Button items can be several words: checkpoint_3_rebar_explosive gives 3 explosive rebars
  • Win sequence flying 30% slower (4.2x)
  • Blast logger (boomreport, boom_log.csv) and boomcourse, which sizes the Boom Course from your attempts with leeway

1.0.3

  • Fix: maps from map packs installed with the Thunderstore mod manager now show up in CUSTOM
  • Win sequence: much faster flying, winseq console command

1.0.2

  • New map parts: buddy button, save pads, floor notes, win sequence buttons (win / *win_seq*: title, noclip, 5x speed, flare machine gun, game win screen after 10 s)

1.0.1

  • Fixed broken arrow characters on the README page.

1.0.0

  • First release: .obj map loading, CUSTOM menu tab with map cards, ledges, handholds, lights, materials, checkpoints, fall reset, map fog control, rebar course generator.