Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 2.29 KB

README.md

File metadata and controls

31 lines (21 loc) · 2.29 KB

Level Editing

Everything placed in a Banjo-Kazooie map lives in one setup file per map (assets/setup), separate from the geometry you walk on (assets/level). Scenery, collectibles, enemies, cameras, lights, and the invisible markers that decide where the camera changes or which save flag a jiggy sets - all of that is the setup.

torch modding export writes each map's setup as YAML under <workdir>/src/assets/assets/setup/. The files are numbered, not named: a map's setup is its enum map_e number plus 0x71C (file_openMap), so Mumbo's Mountain, map 0x02, is ASSET_71E_UNNAMED.yaml. A finished setup edit ships like any other mod: stage the changed entry as alt/assets/setup/... and pack it into an .o2r.

What do you want to do?

Goal Page
Put scenery, a collectible or a light in the world Objects
Put an enemy, a character, a climbable pole in the world Actors
Add a warp, or send an existing one somewhere new Warps
Change the camera in one spot, fence an enemy in, fix a jiggy's save flag Areas
Aim a camera, or change how it follows Banjo Cameras
Make something travel a route on its own Paths
Make a platform float, sink or move Objects
Look up the file format, field by field Reference

Props and nodes

Everything in a setup is either a prop or a node.

A prop is something you can see: a piece of scenery, or a sprite such as a note or an egg. It has a position and not much else, and it does nothing.

A node is an invisible point with a category and an id. The category says what kind of thing it is - an actor spawn, a warp, a camera zone - and the id says which one. Nodes are where all the behavior lives. Almost everything on the list above is a node.

Before you move something

  • Collectibles read their save flag from the area they stand in, not from themselves. Move a jiggy out of its collectible ID zone and it starts setting a different flag, or none. See Areas.
  • A warp needs a matching entrance at the other end. Sending a warp to a map with no entry point for it drops Banjo somewhere else in that map, or into the void. See Warps.