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

WKMapLoader

Make White Knuckle maps in Blender (.glb). Share/explore on Discord: https://discord.gg/Ke8k7A9gZM

Date uploaded 2 weeks ago
Version 1.3.2
Download link Lakisa-WKMapLoader-1.3.2.zip
Downloads 607
Dependency string Lakisa-WKMapLoader-1.3.2

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
  • No rising mass, thin fog, falling sends you back to your checkpoint

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; give 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 Floor
smooth Solid, nothing grabbable smooth
handhold Grabbable all over handhold
pass With handhold: grab it, walk through it handhold; pass
deco Visible, no collision deco
invisible Solid, not drawn invisible
enemywall Invisible glass: stops you and denizens, shots fly through enemywall

Places & settings

Tag Does Example
spawn Start point, facing Blender's +Y spawn
exit End point (optional) exit
point <name> Target for teleport point top
light [range] [hex] Invisible light here (default 12 m) light 20 ffcc88
lamp [range] [hex] Light shining from a visible mesh lamp 8
note <name> Floor note, text from <map>_<name>.txt note intro
godmode Can't die in this map godmode
fog <0-1> Fog strength (default 0.25) fog 0
ambient <amount> Base light everywhere, no lamps needed ambient 0.3

Triggers

Tag Runs its actions when you... Example
button Press the mesh button; give flare 2
pad Stand on top of it pad; checkpoint
zone Walk into it (invisible; add deco to show it) zone; timer start
start Start the map or fall back to spawn button; clear; give rebar 3; start

Actions

Tag Does Example
give <item> [n] Item or trinket, part of the name is enough give rebar 3
bind <item> [n] Give it and keep it through clear bind buddy
unbind <item> Stop keeping it, take it away unbind buddy
clear Empty the inventory (runs first) clear
checkpoint Respawn here after a fall pad; checkpoint
teleport [point] To a point, spawn, or last checkpoint teleport top
launch <m> Spring: throws you m metres up pad; launch 10
msg <text> Big text on screen msg Time {timer}
perk <name> [s] Perk, no time = until you leave perk velocity 10
effect <name> [s] Effect, no time = until you leave effect sticky_hands 10
timer start/stop/reset Speedrun timer, stop saves best zone; timer stop
set <var> <value> Set a value set floor 2
add <var> [n] Add to a counter add presses
map <name> Load another map pad; map level_2
win Fireworks, then the win screen button; win
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
description <text> Small line under the name (add several for more lines) description Gives 3 rebars
sign <text> Text written on a flat mesh sign Shooting Range

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 / give 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)
mapfog <0-1> Fog, for testing
mapambient <amount> Ambient light, for testing
dumptextures Save game textures, to pick wk_ materials
presets List presets
setpreset <name> <tag / tag> Make or change a preset
removepreset <name> Delete a preset

Materials & sharing

  • A material's Base Color tints the blockout texture. Name it wk_<game material> to use a game texture.
  • 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.3.1 as a dependency.
  • Map packs can add their own tags with a small plugin through WKMapLoader.MapApi, like Laki's Play Room.

Notes

  • Old .obj maps still load.
  • 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.