Skip to content

The app, screen by screen

NWN Bake keeps a module open while you work. The bar at the top has a link for each screen, the module's name, the Theme (System, Light or Dark, kept between runs) and Jobs.

Module

Open a .mod, a module folder, a nasher project or one area file; recent modules are listed. The screen shows the module's haks in load order (one that isn't found in red), its talk table, and its areas with their size, tileset and kind.

Atlas

Every area's picture in a grid, drawn in the background into the app's cache. A second opening draws only what changed, so a large module opens quickly. Sort and filter by name, tileset, size or kind; an area that failed shows its error in place.

Area

One area from the four corners and from the top, zoomable (wheel, drag, double click to fit). Change the look: scale, light, shadows, the roof cut, exposure, the sun and the shadow length. The game point under the pointer is shown, and a click copies X, Y, Z for a script or a waypoint. Doors and area transitions are marked and listed, each a link to the area it leads to.

Changes

Two versions of a module side by side: two .mod files, two commits of a nasher project, or one module before and after a hak rebuild. It lists the areas that differ, each with a slider between the old and new picture and close-ups with every changed spot ringed.

3D

The area in 3D: orbit it, or walk at eye height on its walkable floor. Placeables and doors go on and off, and a cut hides what is above a height (on for interiors). A click on a placeable or a door names its resref, tag, model and position; a door links to the area it leads to.

Characters

A .bic or .utc in 3D: change a part or a colour and see it at once, play its animations, and save portraits and turntables. Equipped items that aren't found, or that the game would take off, are listed with the reason.

Scene

Placeables, models, creatures, items and described characters on a ground plane: drag to move, the wheel to turn, Shift and the wheel to scale. Set the camera and the picture's size, add lines and axis markers, and draw it. Templates lay out a lineup, two models side by side, an item sheet or a chess board; a batch draws the scene once for each file of a folder or row of a CSV. The scene saves as the JSON that nwn-bake scene reads, so a script draws the same picture.

Assets

Every placeables.2da row with a model, with its size, footprint, light and particles, filtered and searched, each with its picture. A row's textures, a PLT texture as its layers, and "Add to scene". The item icons and the PLT palettes.

Publish

Writes a folder of static pages: the atlas, and a page per area with its views and its transitions as links. It opens from the folder itself and from any static host.

Jobs

Every screen's work goes through one queue: a bar per job, the areas that failed with their errors and a retry, and cancel. Set the threads and the memory the caches keep. Each job shows the nwn-bake command that does the same, to copy into a script or CI.

In a browser

NWN Bake in the browser is the same page, with nwn-bake built for WebAssembly in place of the desktop engine. Pick the game folder (and your user folder, for haks), then a module. The pictures it draws are kept in the browser's storage for this site, and the Module screen has a button to clear them. Publish saves a zip to download, or writes to a folder you pick where the browser allows it.

It runs on one thread, so a large module takes longer than in the app. These need the desktop app:

  • Characters, and the pictures in Scene and Assets: they are drawn on the GPU, which the WebAssembly build has not got. Scene still edits and saves the scene's JSON, and Assets still lists the rows.
  • Changes: comparing two versions needs git and two modules open at once.