Welcome
Holocron is a level editor for Jedi Knight: Dark Forces II and Mysteries of the Sith. It's built on the OpenJKDF2 engine, so the level you edit is the level the game runs.
You shape rooms in a 3D view and in flat 2D views, dress them with textures, place enemies and items, light them, and add COG scripts for doors, elevators and events. Press F5 at any time to drop into the game exactly where your camera is, then press F5 again to come straight back to the editor.
Holocron is a program of its own. Keep playing the game with whichever OpenJKDF2 build you like, and open Holocron when you want to make levels.
What you'll need
- A Jedi Knight install with its
EpisodeandResourcefolders, from the original disc, Steam or GOG. - For Mysteries of the Sith levels, a Mysteries of the Sith install. Holocron works with either game.
- A computer that runs OpenJKDF2: Linux, Windows or a Mac, with a graphics card that supports OpenGL 3.3.
Installing
Holocron lives in your Jedi Knight folder, next to the game.
On Windows
- Unzip the
holocron-…-win64.zipfile (for exampleholocron-0.1.0-win64.zip). - Copy
holocron.exeandOpenAL32.dllinto your Jedi Knight folder, the one that containsEpisodeandResource. If OpenJKDF2 is already there, it has the DLL already. - Double-click
holocron.exe.
On Linux
- Copy the
holocronprogram into your Jedi Knight folder. - Run it. No options are needed.
On a Mac
- Unzip the
holocron-…-macos-arm64.zipfile. - Copy
Holocron.appinto your Jedi Knight folder, the one that containsEpisodeandResource. - The first time, right-click
Holocron.appand choose Open, then Open again: macOS asks before running an app that isn't from the App Store. After that, double-click it as usual.
On a Mac, Cmd does everything this manual gives to Ctrl: Cmd+Z undoes, Cmd-click adds or removes one from the selection, and so on.
Holocron opens straight into the editor, on the level you last opened or saved. The first time, or if that file has been moved or deleted, it starts you on a new level, as File › New does.
Mysteries of the Sith
To make Mysteries of the Sith levels, copy Holocron into your Mysteries of the Sith folder instead, the one with JKM.GOO in its Episode folder, and run it there. Holocron sees which game it's in, and the title bar says Mysteries of the Sith.
Everything in this manual works the same in both games. Mysteries of the Sith names its GOB files .goo, and Holocron follows: it opens .goo files, and packages your levels as .goo so the game lists them.
Files Holocron keeps
Holocron never changes the game's own files. It keeps these few of its own in the Jedi Knight folder:
holocron_settings.ini- your preferences, open views, last level and window size.
holocron_layout.ini- where you've put the panels.
holocron_work- a working copy of the level the engine runs while you edit. You can delete it any time Holocron isn't running.
holocron_crash.log- on Windows, only if Holocron crashes: where it crashed, to send with a bug report.
Holocron always runs in a window, even if the game is set to full screen, and puts that setting back the way it found it.
The Holocron Window
Everything happens in one window: views on the left, panels on the right.
- Menu bar: File, Edit, Build, View, Play, Camera and Help.
- Modes: what you're working on (sectors, surfaces, vertices, things or lights), plus the grid size.
- 2D view: a flat plan from the top, front or side.
- 3D view: the level as the game draws it.
- Panels: the Inspector, Textures, Templates and COGs.
- Level panel: the level's name, counts, palette and header.
- Status line: what just happened, and hints.
Views and panels
Every view and panel can be moved: drag its tab to dock it somewhere else, or out into a window of its own, even onto another screen (a panel dragged outside the main window becomes a window of its own; Edit › Preferences › Panels can be dragged out of the window turns that off if windows misbehave on your desktop). The 3D view itself shows the level only inside the main window. Right-click anywhere in a 2D view (or on its tab) to switch it between top, front and side, or choose Duplicate to add another 2D view. Each view shows its axes in its bottom left corner, and while a tool is on (draw, cleave, place, rotate) a coloured frame round every view names it, so you know what the next click will do. View › Things and View › Lights hide things and lights in every view, to see the bare geometry; thing mode and light mode show them regardless. View › Grid on surfaces draws the grid faintly on the faces of the room you're in and the rooms through its openings, at the current grid size (coarser where it would be too dense to read, every eighth line brighter), so you can size a room or line up a texture against the grid without leaving the 3D view; it's remembered. The View menu brings back anything you've closed, and View › Reset layout puts every panel back where it started.
If the text is too small, open Edit › Preferences and drag Text size: when you let go, the text and the panels grow together, from 75% to 250%, and Holocron remembers it. This comes on top of your screen's own scale, which Holocron follows by itself, so a high-resolution screen set to 150% in the system already starts larger; together they stop at 300%. Normal puts it back.
While you edit, the 3D view leaves out the game's supersampling, ambient occlusion and bloom, which can make a graphics card work many times harder. Tick View › Full-quality 3D view to see the level with them. Playtests always use the game's own display settings.
The five modes
Press a number key to choose what clicks and drags work on. The mode is shown in the menu bar. Your selection comes along where it can: a selected sector's surfaces are selected in surface mode and its corners in vertex mode, a surface's corners in vertex mode, and a surface's sector in sector mode. Any tool you had on is put away.
- Sector
- a room, or a piece of one: a closed, convex shape the player can be in.
- Surface
- one face of a sector: a wall, floor or ceiling. A surface between two sectors that you can see and walk through is an opening (the game calls it an adjoin).
- Vertex
- a corner. Surfaces share their corners. In vertex mode every corner shows as a small dot (blue in the 3D view, white in the 2D views), so there's something to click; selected ones are red. Holocron's own edits leave no stray corners behind; a level from another editor can have vertices no surface uses, which Problems counts and Build › Remove unused vertices takes out.
- Thing
- anything placed in the level: the player start, enemies, items, doors and elevators.
- Light
- a light source that Holocron's lighting uses to shade the walls.
Getting Around
Fly through the 3D view like a spectator, and pan the 2D views like a map.
In the 3D view
- Look around
- hold the right mouse button and move the mouse.
- Fly
- while holding the right button, use W A S D to move and E Q to go up and down. Shift goes faster, Ctrl slower, and the mouse wheel sets the speed, as does Camera › Fly speed.
- Move forward and back
- turn the mouse wheel. In Edit › Preferences you can make the wheel move towards the cursor instead of straight ahead.
- Frame the selection
- press F.
- Go to the player
- Camera › Jump to player puts the camera where the player starts.
- Wireframe
- press Z (View › Wireframe) to see only the level's edges, through every wall: grey for walls, blue for openings between sectors, green circles for things nearby (View › Things hides them here as everywhere); a legend at the bottom of the view says so. Further edges are fainter. Press Z again for the textured view.
- Field of view
- the 3D view uses the game's field of view at first. For your own, untick Camera › Use the game's field of view and drag the Field of view slider below it, from 30 to 150 degrees across the view (Ctrl+click it to type a number). The 3D view changes as you drag, and Holocron remembers it. Ticking the box again goes back to the game's.
In a 2D view
- Zoom
- turn the mouse wheel. It zooms about the cursor.
- Pan
- drag with the right or middle mouse button.
- Move the 3D camera there
- Alt double-click a spot.
- Top, front or side
- the buttons at the top of the view switch which way it looks, keeping the same place in the middle. So do Shift+T, Shift+F and Shift+S with the mouse over the view, and a right-click anywhere in it.
- Facing a surface
- for walls at odd angles. Select a surface and press the Surface button (or Shift+A with the mouse over the view): the view turns to look at that surface flat on, from inside its room, and the grid lies in the surface's plane, starting at its first corner. Moves, cleaves and box selects then work along that plane, so you can cut a doorway into a slanted wall or line things up along it as easily as along a straight one. The readout shows the full x, y, z under the cursor. The view follows the selection: select another surface and it turns to that one and centres on it, at the same zoom, so you can work your way round a room wall by wall. Top, Front or Side goes back.
- The axes
- the bottom left corner of every view shows which way x (red), y (green) and z (blue) go; an axis pointing straight at you is a dot (slanted when the view faces a surface).
- Fit
- zooms out to show the whole level.
- To camera
- centres the view on the 3D camera.
- Slice
- shows only what's near the 3D camera's height (in the top view) or depth (in the front and side views): drag it to the distance, or back to off to see everything. Useful when floors are stacked above one another.
Going to a sector by number
Messages and the Problems panel often name a sector by its number.
- Press Ctrl+G, or choose Edit › Go to sector.
- Type the sector's number.
- Press Enter.
Holocron selects the sector, puts the 3D camera inside it, and frames the 2D views on it.
Selecting
Point, click, and click again for what's behind.
- Select
- click it. What the click would pick is outlined in yellow as you point, in every view at once, so pointing at a room in the top view shows you which one it is in the 3D view; what's selected is red, in the 3D view and the 2D views alike (a selected sector's openings are blue).
- A wall and the walls joined to it
- in surface mode, double-click the wall. Its sector's other walls that touch it edge to edge are added, the clicked one first, so texture alignment copied to them starts from it. Floors and ceilings are left out.
- Add to the selection
- Shift-click.
- Add or remove one
- Ctrl-click.
- The next one behind
- click the same spot again. Each click picks the next thing under the cursor, so you can reach a thing inside a crate or a sector behind a wall. (In surface mode, leave a moment between the clicks: a quick double-click selects joined walls, below.)
- Box select
- in a 2D view with nothing selected, drag from empty space.
- Select all, or none
- Ctrl+A, or Esc.
- Everything with a texture, a flag, a template...
- Ctrl+F opens the Find panel, below.
Finding by settings
The Find panel (Ctrl+F, or Edit › Find and replace) looks through the sectors, surfaces or things of the current mode for the ones that match what you fill in, and counts them as you type. Leave a field blank to let anything through.
- Surfaces: part of a texture's name (or
nonefor surfaces with no texture; Selected takes the selected surface's), flags that must be set and flags that must be clear, face flags, the geometry and lighting modes, and walls only or openings only. - Sectors: flags set and clear, part of an ambient sound's name, the colormap.
- Things: part of a template's name, part of a thing's name, the template's type (
actor,item,weapon,cog...), and flags set and clear.
Select makes the matches the selection; Add adds them to it. From there everything that works on a selection works on them all: the Inspector, the Textures panel, Delete, R. Tick Only in the selection to search just what's selected, to narrow a selection down.
Under Change what matches, two changes apply straight to everything found, each as one undo step: Replace puts a texture on every matching surface (Active picks the Textures panel's), and Set or Clear turns one flag on or off for them all, leaving their other flags as they are. So to swap one texture for another throughout a level: type the old texture's name, pick the new one, Replace. To make every floor icy: set Floor under Flags set, choose Icy under Flag, Set.
Selecting an opening
In surface mode, clicks go through openings to the wall behind, so walls are easy to pick through doorways. To pick the opening itself, hold Alt: it's outlined as you point at it. Alt-click selects the side facing you. Alt-click again for its other side, which belongs to the sector beyond.
A selected opening is red when you look at it from its own sector and blue from the other side.
Moving and Shaping
Drag anything to move it. Holocron keeps it on the grid (unless you turn snapping off) and keeps every sector a shape the game can use.
Every change shows in the 3D view at once. Moves, textures, flags and light go straight into the game's copy of the level; changes to the level's shape (cuts, new rooms, deletions, new things) rebuild it, which takes a moment on a big level, and the status line says so.
- Move
- drag. In the 3D view the drag has to start on something selected (a selected thing behind another one still counts): a press anywhere else only selects what's there, so a slip of the mouse while clicking a wall can't drag it. In a 2D view, with something selected a drag from anywhere moves it; with nothing selected, pressing on something grabs it. A drag doesn't start until the mouse has moved a few pixels.
- Along one axis
- hold Shift while you drag. The move sticks to x or y, whichever way you've moved furthest, and a coloured line shows the axis: x red, y green, z blue. Let go of Shift to move freely again.
- Up and down
- hold Alt while dragging in the 3D view.
- Nudge
- the arrow keys, Page Up and Page Down move the selection one grid step.
- Grid size
- [ and ], or the grid menu in the menu bar. It's remembered for next time.
- Snap to grid
- G, or the snap box next to the grid size, turns it off and on. Off, drags, drawn sectors and placed things go exactly where the mouse puts them; nudges still move one grid step.
- Grid origin
- the grid goes through the world's zero unless you say otherwise. For geometry that isn't on it (an imported level, a room built at an odd offset), select one of its vertices (or a thing or a light) and press Alt+G: the grid lines in the 2D views, the grid drawn on surfaces in the 3D view and snapping all go from that point, and the grid label in the status bar gets a
*. Alt+Shift+G puts the origin back at zero; opening another level does too. The grid menu in the status bar has both, and shows the origin. - Back onto the grid
- a drag moves a selection by whole grid steps, so corners that are off the grid stay off it. To put them on it, select them and press Shift+G (Build › Snap selection to grid): each goes to its nearest grid point at the current grid size. It snaps only along the axes of the view you last clicked in: in a top view x and y (heights stay as they are), in a front view x and z, in a side view y and z, and in the 3D view all three. In sector or surface mode, all the selection's corners do; selected things go to the grid across but keep their height, and lights go to it too. If a sector would end up concave, or two corners of a wall would meet (with a grid bigger than the room, say), nothing moves and the status bar says why: try a smaller grid.
Dragging a surface moves its corners, so it resizes its sector. Dragging a vertex reshapes every surface that shares it.
A face that's reshaped (some of its corners moving, others staying) keeps its texture at the same size: Holocron lays the texture out again, pinned where the face didn't move, so raising a ceiling makes the walls show more of their texture rather than a stretched one. A face moved whole takes its texture with it. To have textures stretch with the faces instead, as they do in JED, untick Build › Textures keep their size when moving; Holocron remembers the choice.
While you drag, every sector the drag changes shows its size as it goes, in the 3D view and in each 2D view: a box around the sector with its width, depth and height on it (x red, y green, z blue). A 2D view puts the two sizes it shows along the box's bottom and left side, and the third over its top right corner. With more than four sectors changing, one box goes around them all.
Sectors have to be convex
Every Jedi Knight sector must be convex: no dents, no L shapes, and no floor that bulges up into the room. The game relies on it to know which sector the player is in and where the floor is.
Holocron won't let a move fold a sector in. The move stops at the last good shape, and the console says which sector and surface would have folded. A face that's slightly uneven is allowed.
To make a pit, a ledge or an L-shaped room, build it from several sectors joined by openings. If you have a level with concave sectors from another editor, choose Build › Split concave sectors into convex ones. It rebuilds them as convex pieces that look and play the same.
Building Rooms
Draw a room, push walls out into new rooms, cut rooms apart, and join them back up.
Drawing a sector
- Press B for the draw tool.
- Drag a rectangle on a floor in the 3D view, or anywhere in a 2D view.
- Let go. Holocron builds a box room as tall as Build › Sector height, and joins it to rooms it touches, cutting their walls to fit where the faces don't match (see Auto-adjoin).
In the 3D view the room stands on the floor you dragged on (or hangs from a ceiling). In a 2D view its floor is at the height of the floor under the 3D camera, so move the camera into the room you want it level with first; the 3D view shows the box as you drag. New rooms take the active texture, the one picked in the Textures panel; to use set textures instead, choose them under Build › Textures for new sectors (floor, ceiling and walls separately, each set from the active texture). Holocron remembers them.
Drawing a polygon sector
For a round room, a tower or a pit, press N for the polygon tool (Build › Draw polygon sector) and drag from the room's middle to one of its corners, on a floor in the 3D view or in the top 2D view. Set the number of corners with Build › Sides (3 to 24, the most the game allows a face), or, while the tool is on, with the box in the menu bar, the keys 3 to 9 (0 for 10), or - and =, even in the middle of a drag. The polygon is as tall as Build › Sector height, a corner lands where you let go, and it joins rooms it touches like a drawn box. Stack polygons scaled smaller and smaller for a dome, as in the Domes by Hand tutorial, with far less cleaving.
Drawing a curved corridor
For a corridor that bends, press Shift+N (Build › Draw curved corridor) and, in the top 2D view, click the points the corridor should pass through: its start, the bends, its end. A smooth curve runs through them, and the corridor's edges show in the 2D view and the 3D view as you go. Press Enter to build it: one convex sector per straight piece, Build › Corridor width across and Build › Sector height tall, joined to each other in a row and to any room its ends meet. Backspace takes the last point back, Esc stops. Build › Curve segments sets how many pieces each span between two points is cut into: more is rounder, with more sectors. If a bend is too tight for the width, a piece would fold over itself, so Holocron says which point it's near and builds nothing: widen the bend or narrow the corridor. The floor is at the height of the floor under the 3D camera, as for a drawn box.
Extruding
Extruding pushes a surface out into a new room behind it, like pulling a corridor out of a wall.
- In surface mode, select one or more walls.
- Press X and type how deep the new room should be, or press Grid size to use the grid. Enter extrudes. Each surface becomes a new sector, joined to the room by an opening.
The depth you type is remembered for next time, and is the same as Build › Extrude depth. If you'd rather X extruded straight away by that depth, untick Ask each time in the prompt, or Build › Ask for the extrude depth.
To extrude several surfaces side by side as one room instead, press Shift+X, or tick As one sector in the prompt. Each surface becomes its own opening into the new room.
The opening remembers the wall it replaced. Delete the new room (or unadjoin the opening) and the wall comes back with its texture, alignment and light exactly as they were.
Carving a block
A solid block in a level (a pillar, a crate built into the floor, a beam under the ceiling) isn't an object: it's space no room covers. Sectors can't overlap in Jedi Knight, so a pillar in a room means the room cut into pieces round it. Carve block does that in one go:
- Press Shift+B for the carve tool (Build › Carve block).
- Drag a box, just as for drawing a sector: on a floor in the 3D view (it stands on the floor; from a ceiling it hangs down), or in the top 2D view, where it starts at the floor under the camera and is as tall as Build › Sector height.
- Let go. The rooms the box crosses are cut along its sides, the pieces inside it are removed, and the faces left round the hole become walls with the active texture, selected so you can texture them.
A box from floor to ceiling makes a pillar; a shorter one a block on the floor, a beam under the ceiling or a floating block. A box across two rooms carves both. Things inside the block step out through its nearest side. The pieces round the hole stay joined to each other and to the rooms around, so the level plays as before, just with the block in it. Undo takes it back in one step.
For a round pillar, a column or a hexagonal crate, press N while the carve tool is on (Build › Carve polygon block). Now you drag from the block's middle to one of its corners, as for a polygon sector, and a regular polygon with Build › Sides corners is carved out instead of a box. The number of sides shows in the menu bar while the tool is on, with - and + buttons; the keys 3 to 9 (0 for 10) set it and - and = step it, even in the middle of a drag, so you can watch the outline change before you let go. The rooms are cut along each side, so a pillar with many sides leaves many pieces round it: eight is plenty for most columns. N again, or Esc, stops the tool.
Raising a floor
To make a step, select a floor in surface mode and choose Build › Raise floor..., then enter the height (the grid size to start with). The room is cut level at that height and the part below removed, and the new floor keeps the old one's texture and alignment. To raise only part of a room, cleave it first (C) and raise one piece's floor. A floor that's an opening into the room below can't be raised this way.
Hollowing out a block
The reverse: H (Build › Hollow out block) turns a solid block back into a room. In surface mode, select the block's walls as you see them from the rooms around it (Shift-click to add each one), then press H. A new sector fills the block, with an opening onto every wall you selected; sides you didn't select, such as a pillar's top and bottom, become floor and ceiling. The walls don't need matching corners. If they don't enclose a convex space, Holocron says so and changes nothing: cleave an L-shaped block in two first, then hollow out each piece.
To see it work, try it on a block you've just carved:
- In a room, press Shift+B and drag a box on the floor, about half the room's height tall. You get a crate, and its five faces come selected in surface mode (the four sides and the top).
- Press H. The crate becomes a small room of its own, open on every face you had selected, so from the room you look straight into it; its underside, which you didn't select, is its floor.
- For a hollow crate with a single doorway, wall the other openings back up: in surface mode select them and press Shift+J. Each becomes a wall again on both sides, with its texture back.
The same works on a pillar built in another editor: fly round it and Shift-click its sides from the room, then press H. Selecting the sides is the fiddly part when the pillar is thin, so for a block you're about to build it's quicker to cleave the room round where it will go and leave the middle piece as the room inside.
Cleaving
Cleaving cuts along a straight line. Press K for the cleave tool, then:
- In the 3D view, point at a surface and click. Tab switches between a level cut and an upright one.
- For a cut at any other angle, drag a line on the surface instead: the cut follows the line, straight through the surface, so a sloped line up a wall makes a ramp or a slanted ceiling, and a diagonal across a floor cuts the room cornerwise. Hold Shift to keep the line to 15-degree steps (level, 45 degrees, upright). The line and the cut show as you drag; Esc lets go without cutting.
- In a 2D view, drag a line across the sectors to cut. The 3D view shows the cut as you drag.
In the 2D views a selected sector shows a cut across its floor in a darker red than its outline, so floor cuts and ceiling cuts tell apart where they overlap in the top view.
In sector mode the tool cuts whole sectors in two, with an opening between the halves. In surface mode it cuts just the surfaces, which is handy for a trim band or a frame around a doorway.
Every face beside a cut gets a corner where the cut meets it, so no cracks open between faces. The game allows 24 corners on a face, so a wall along a ramp you cut into many steps would soon have too many: when a face reaches 25, Holocron splits it in two along a diagonal (the texture carries on across the pieces) and says so in the console.
Joining and merging
- Auto-adjoin
- J joins sectors whose faces meet, so you can see and walk between them. The faces needn't match: where a face lies inside a bigger one, or the two overlap, Holocron cuts them to fit first. Two faces of one outline join as they are, even when one has extra corners along a straight edge (a level cut by hand has these, and JED's four-decimal rounding may leave them a hair off the line): the other side gets the corners too. The bigger face becomes the shared part and strips round it, each a flat convex face with the texture carrying on across them, and the shared part becomes the opening. So a small room against a tall wall, a narrower hallway section, or a dome's ring on the ring below just joins. A pair that would leave a strip thinner than 0.002 is left alone, and the console says so. An opening that the game draws as a wall (its geometry mode was set after it was joined; Problems lists these as "Opening drawn as a wall") is reopened by selecting it and pressing J. Shift+J unjoins: in surface mode the selected openings; in sector mode the openings between the selected sectors, or every opening of a single selected sector. The openings become walls with the selected texture, and the sectors come apart for good: corners the two shared (where a wall was cut to frame the opening) are split, so dragging one sector away in sector mode leaves the other's shape alone.
- Merge sectors
- select two or more joined sectors and press M. They become one, keeping the settings of the one you selected first. Together they must still be convex.
- Merge surfaces
- in surface mode, select surfaces lying flat side by side and press M. They become one, with the first one's texture.
- Merge vertices
- in vertex mode, select two or more corners and press M. They become one, where the first one you selected is: merge two ceiling corners of a box and it becomes a wedge. A wall left with no area closes up, and a wall the merge would bend is cut into two triangles, so the room stays flat-walled and convex. If the result would still be concave, flattened or open, nothing changes and the console says why.
- Delete vertices
- in vertex mode, select corners and press Delete. A corner in the middle of a straight edge just goes. A real corner is cut off: new walls close the cut, like slicing the corner off a box, and the room stays convex. Corners of other sectors at the same spot go too, so openings stay matched; an opening that was a triangle with that corner closes up. If a room would end up flattened, open or concave, nothing changes and the status bar says why.
- Delete
- Del removes the selected sectors, things or lights. A deleted sector's neighbours get their walls back as they were before the openings were made; an opening that never was a wall (the cut face of a cleave) becomes a plain wall of the current texture.
Copying, Turning, Resizing
Reuse a room you've built, here or in another level.
Copy and paste
- In sector mode, select the sectors and press Ctrl+C.
- Point where you want them in a 2D view, or face that way in the 3D view, and press Ctrl+V.
- Drag the copy into place. Where it meets a room flush, press J to join them.
Ctrl+D puts a copy right beside the selection. Copies keep their textures, lighting and openings between them. Things inside come along only if you choose Edit › Paste sectors with things.
The clipboard stays when you open another level, so you can copy a room from one level and paste it into another.
Rotating and scaling
- Quarter turns
- in sector mode, R turns the selected sectors 90° clockwise as seen from above, and Shift+R counterclockwise.
- Any angle
- Build › Rotate sectors by takes any angle about any axis.
- Scale
- Build › Scale sectors by resizes by one factor, or by a different one per axis (for example 1 × 1 × 2 for twice as tall). Textures keep their size unless you tick Stretch textures with them.
Things and lights inside move with the room. A selection joined to rooms you didn't select is detached first, so its neighbours keep their shape; where it still meets them afterwards it is joined again, the neighbours' faces cut to fit. To narrow a hallway section, scale it on the two axes across it only (say 0.75 × 0.75 × 1 for a hallway running along z, or 1 × 0.75 × 0.75 along x): its ends stay where they were and join the sections either side again through the smaller openings.
Textures
Pick a texture from the Textures panel, then line it up with the keyboard.
Putting a texture on a surface
- In surface mode, select the surfaces.
- In the Textures panel, click a texture. Type in the filter box to narrow the list, and use the slider to make the thumbnails bigger.
The textures on the selected surfaces have a blue outline in the Textures panel, and the panel scrolls to them when you select. The red one is the texture new walls get.
The panel starts with the level's own textures. Tick All to see every texture in the game. That includes loose .mat files as well as the ones in GOBs: put your own textures in a mat folder in the game folder, in Resource, or in the mod's folder, and they show up in the list within a few seconds, even while Holocron is running. Package as GOB takes them along. A loose file with the same name as one of the game's textures replaces it, in the 3D view, in playtests, and in the package.
Lining it up
- Move it
- Ctrl plus an arrow key moves the texture the way the arrow points, as you see it, 4 texels a press. Hold the key to keep going.
- Stretch it
- Ctrl+Shift plus an arrow key: right and up make it wider and taller, left and down narrower and shorter, 5% a press.
- Step sizes
- Set how far each press moves or stretches the texture in the surface Inspector, under Texture alignment: Move (texels) and Stretch (%). Use small steps for fine lining up. Holocron remembers them.
- Fit it
- In the surface Inspector, under Texture alignment, Fit stretches the texture so one copy exactly covers each selected surface, like a picture in a frame. Fit width and Fit height fit it one way only and leave the other as it is.
- Copy alignment
- Ctrl middle-click a surface to copy how its texture is laid. Then middle-click other surfaces to paste it, and the texture carries on across them without a seam. Ctrl+Shift+C and Ctrl+Shift+V copy from the selected surface and paste onto the selected ones.
- The other buttons
- also under Texture alignment: U-, U+, V- and V+ move the texture across or up and down by the move step; Rotate 90 turns it a quarter turn; Flip U and Flip V mirror it; Scale x2 makes it twice as big and Scale /2 half as big; Reset (or R) lays it out afresh, as on a new wall.
- Replace it everywhere
- Ctrl+F: type the texture's name, pick the new one under Change what matches, and Replace. See Finding by settings.
- Flags
- the Inspector shows surface, face, sector and thing flags as hex numbers. Type or paste a hex value with or without the
0x(0x404or404), or a decimal number with adin front (d1028), and press Enter; the ... button lists the flags by name to tick instead.
Palettes
Most Jedi Knight textures use the level's palette, and each game level has its own. A texture made for another level shows the wrong colours in yours, so the Textures panel marks it with an orange corner. When you use one, Holocron asks what to do:
- Make a full-colour copy
- a copy with its own colours, which looks right in any level. Holocron saves and packages it with your level.
- Switch the level's palette
- suits a level built mostly from one other level's textures.
- Use it as it is
- keep the texture with the level's colours.
To make any texture independent of the palette, right-click it in the Textures panel and convert it to full colour (16-bit). As in this level keeps the colours it has with the level's palette. In its own colours uses the palette it was made for, as its thumbnail shows it; Holocron offers it when that's another palette. The copy takes the texture's place on every wall that uses it, and Ctrl+Z puts the original back.
You can change the level's palette at any time in the Level panel, and set a standing answer in Edit › Preferences. The Level panel lists the game's palettes and loose .cmp files in a misc/cmp folder (in the game folder, in Resource, or in the mod's folder), so your own palette can be the level's. Package as GOB takes it along.
Things and Templates
Everything you place in a level starts as a template: a stormtrooper, a health pack, a door.
Placing things
- Drag a template from the Templates panel into the 3D or a 2D view. Holocron switches to thing mode and selects it.
- Or select a template, press T, and click where it goes.
Templates show a 3D preview. Point at one to turn it, and drag to turn it yourself.
Your own models
A model (.3do) from your computer places like any other thing:
- Drag the
.3dofrom your file manager into the 3D view. It lands on the floor where you drop it. - Or use Model from file... in the Templates panel (or Build › Place model from file...), then click where it goes.
Holocron copies the model into your level with its textures, looking for them beside the model or in a mat folder next to it. Textures it can't find there come from the game when the game has them; the status bar names any it can't find at all. A texture with the same name as one of the game's, but different pixels, gets a new name, so the game's own texture stays as it was everywhere else.
The model gets a template of its own, named after the file, which stays in the Templates panel for more copies. It starts solid: the player bumps into it and can stand on it. Untick Solid in the Inspector to make it walk-through (this changes every copy). Package as GOB includes the model and its textures, and saving a level in a mod's jkl folder copies them into the mod's 3do folder.
Turning things
In thing mode, press R for the rotate tool. Three rings appear around the selected things:
- Blue
- turns them around the upright axis (yaw).
- Red
- tilts the nose up and down (pitch).
- Green
- rolls them.
Drag a ring to turn. The angle shows by the pointer. It goes in 1° steps; hold Ctrl for 15° steps or Shift for fine ones. Esc while dragging puts it back. Turning several things together swings them round their middle.
Thing settings
Select a thing to see its settings in the Inspector: its template, name, position and facing, and its Thing flags as checkboxes, such as Can be stood on, Invisible, or Not on Easy. A thing uses its template's flags until you change one; Use the template's puts them back.
Elevators and Doors
A moving thing travels between stops called frames. You set the stops; a COG script moves it.
Setting up an elevator
- Place an elevator template where its lowest stop is, and select it.
- In the Inspector, under Frames, click Add frame 0 where the thing is.
- Type how far the next stop is, for example
0 0 1for one unit up, and click Add frame. - Add a COG to move it, for example
00_std_elev.cog(see COG Scripts).
The selected thing's frames are drawn in the 3D and 2D views, numbered and joined in order. Drag or type a frame's position and rotation to adjust it, or click At the thing to move a frame to where the thing is now.
Doors and elevators usually have these flags ticked: Part of the level, Can be stood on and Moved by a COG.
Lights and Sound
Light the walls with light sources, and give rooms their own sound.
Lights
- Press 5 for light mode, then T, and click to place a light.
- Set its brightness, range and colour in the Inspector. Untick Shadows there to make it a fill light, which shines through walls to lift a dark area without a lamp in it. Falloff lets one light fade its own way: Options follows the lighting options below, Smooth fades evenly, Tight makes a tight pool as JED does.
- Select the sectors to relight and press Shift+L.
Lighting uses only the lights you place. Relighting a whole level from the game replaces the lighting it came with, so relight the sectors you change instead. L switches full-bright viewing on and off.
Moving a light, or changing its brightness, range or colour, relights the rooms it reaches as you go, so you see the result while you drag. To turn that off, untick Relight as lights change in Build › Lighting options.
The rest of Build › Lighting options (all of them are remembered for next time):
- Base light
- light added everywhere, so no wall is completely dark. Off (0) to start.
- Angle falloff
- how much darker a wall is when light skims across it rather than hitting it head on. At 0 the angle doesn't matter; at 1 a wall the light only grazes stays nearly dark.
- Smooth falloff, Tight pools
- how light fades with distance. Smooth fades evenly from the light out to its range. Tight pools (as JED) fades fast, a bright pool by the light and dark well before the range: the falloff JED and SED use, so a level lit there keeps much of its look. Lights need to be brighter for it.
- Like JED, Holocron's defaults
- Like JED sets tight pools, no angle falloff, sharp shadows and no bounced light, for levels lit in JED or SED. Holocron's defaults puts the options back.
- Shadows
- untick it and light passes through walls. For one light only, untick Shadows on the light itself, in the Inspector. Through openings only (as JED) decides shadow the way JED and SED do: a light reaches every room joined to its own through openings, within its range, whatever walls stand between.
- Soft shadows
- gives lights a size, so shadow edges fade instead of stopping sharply. Larger is softer; set it to off for sharp shadows.
- Bounced light
- lets lit walls light the walls around them, so light spills round corners and into the next room. It's how much of their light they pass on; set it to off for direct light only.
- Glowing surfaces
- walls whose Lighting mode is Fully lit in the Inspector (lamps, screens, lava; skies don't count) shine on the walls around them, in their texture's colour. It's how brightly; set it to off to light from placed lights alone.
- Set sector ambient
- lighting also sets each room's ambient light (see Sector settings below) from its walls. Untick it to leave every room's ambient light as it is.
- Walls needing more corners
- The game blends light from a wall's corners, so a pool of light in the middle of a big floor, or a shadow across a wall, is lost. After lighting, the status bar says how many walls this happens on. Build › Select walls needing more corners selects them, and Build › Cut walls to show their light fixes them: it cuts each wall where the light changes, such as through the middle of a pool of light or along a shadow, on the grid, then relights. Textures stay as they were. Each cut adds surfaces to the level, so cut only where the light matters. Ctrl+Z undoes it, and merging the pieces (M) puts a wall back in one piece, for example after moving its light.
Mysteries of the Sith keeps a light's colour: a red light makes the walls red. Jedi Knight draws light as brightness only, so in a Jedi Knight level a coloured light lights the walls grey, as bright as its colour.
Sector settings
In sector mode, the Inspector shows the sector's light, tint, colormap and flags.
- Ambient light
- how brightly the things in the room (enemies, items, your weapon) are lit; it doesn't light the walls. The darker it is, the less enemies notice the player. With Auto ticked, as it starts, lighting (Shift+L) sets it to match the walls. Untick Auto to set it yourself, for a hiding spot darker than it looks, say; lighting then leaves it. Tick it again to go back to the walls' light.
- Sound
- a sound that plays in the room, such as wind or machinery. Pick one of the game's sounds from the list: type part of a name to narrow it, and right-click a sound to hear it. Play plays the chosen one.
- Your own sound
- Browse picks a
.wavfile from your computer: plain 8- or 16-bit audio. Holocron copies it into your level under a name the game can use, and packages it with the level.
COG Scripts
COG scripts make things happen: doors that open, elevators that move, switches and secrets.
Adding a COG
- In the COGs panel, click Add COG.
- Find the script. The list has the level's own scripts, the game's, and the scripts in the other GOB files in your
Episodefolder (.goofiles in Mysteries of the Sith). Hold Ctrl over one to read it; the mouse wheel scrolls the preview. - Click it, then fill in its settings below the list: the things, sectors and surfaces it works on.
Double-click a COG in the list to read its script.
Writing your own
Write COG scripts in any text editor, such as VS Code, and keep them wherever you like.
- Link a .cog file
- uses a script from your computer.
- New .cog file
- starts a new script, with the basic outline written for you.
The level stays linked to the file. Each time you save it in your editor, Holocron reloads the level with the new version within a second. A linked script named like one of the game's replaces it in this level only.
To stop using a file, select its COG and click Unlink, or right-click it in the Add COG list. Deleting the last COG that uses a linked script unlinks it too.
If you move or rename a linked file, the level keeps working with the last version Holocron saw. Link the file again at its new place.
Playtesting
Play the level as you build it, without saving first.
- From the camera
- F5 starts playing where the 3D camera is.
- From the player start
- Shift+F5.
- Back to the editor
- F5 again. The level goes back to how it was before you played. A message in the game reminds you when play starts.
- The game's menus
- If you leave play through the Escape menu's Abort, you land in the game's main menu; F5 there comes back to the editor too. A multiplayer game started from those menus is left alone: Holocron stays out of it until you leave it.
Every playtest starts fresh, as a new game does: with fists, the Bryar pistol and a full battery for the field light. In Mysteries of the Sith you get that game's own fists and Bryar. Whatever you picked up last time is gone.
Levels with a cutscene, such as a boss's entrance, play it each time. To skip it while you test, untick Camera › Play cutscenes. The cutscene's effects still happen; you just don't watch it. The same setting skips the video some Mysteries of the Sith levels open with.
Music is always off while you edit. To hear the level's music while you play it, tick Play level music during playtests in Edit › Preferences.
Saving and Packaging
Save your level as a .jkl file while you work, then package it as a GOB to play and share.
Opening levels
File › Open (Ctrl+O) opens a .jkl file, or a .gob (.goo in Mysteries of the Sith): a mod you downloaded, or one of the game's own. A GOB lists its levels; pick one, and Holocron opens it with the GOB's own textures, scripts and models. The GOB itself is never changed.
A level that names textures or a colormap Holocron can't find (a level copied away from its mod, say) still opens. The game's plain texture and colormap stand in for the missing ones, the status bar says how many are missing, and Problems names each one; clicking an entry selects the first surface that uses the texture. The level keeps the original names when you save it. To see it as meant, put the level's .mat files in its mod folder's mat folder and the .cmp in misc\cmp, and open it again. Open a level from inside a .gob and its textures come along.
Holocron opens levels, not JED projects: a .jed file is JED's own working file, and Holocron says so and leaves it. Open the .jkl JED saved from it (File › Save JKL in JED) instead.
File › New level (Ctrl+N) starts a level with one room and a player start. The room is textured with the game's plain dflt.mat and the level's palette is dflt.cmp, whatever level was open before; its sounds, models, templates and the like are copied from that level, so weapons and items work as usual.
Every level needs a player start (a walkplayer thing): the game can't open one without it. If you delete it, or open a level that has none, Holocron adds one back when the level next loads, at the camera or in the first room with space, and the status bar says so. Move it to where the player should begin.
Saving
Ctrl+S saves, and Ctrl+Shift+S saves under a new name; the level takes that name. Closing Holocron with unsaved changes, by the window's close button, Alt+F4 or File › Quit (Ctrl+Q), asks first: save, discard and quit, or cancel. Opening or starting a new level with unsaved changes asks the same way. If you save into a mod folder (a jkl folder inside your mod), Holocron also copies your full-colour textures, sounds and linked scripts into the mod's folders.
Checking for problems
The Problems panel (Build › Check for problems) lists what's wrong with the level, and checks it again after every change. Errors are things that break the game, such as a concave sector or an opening whose two sides don't match. Warnings are worth a look but may be what you meant; untick Warnings to hide them. Click a problem to select what it's about and frame it in the views. Another error is a face with two corners at one place (an edge of no length): the game's collision misreads such a face, so it stops neither the player nor shots. Holocron's own operations never leave one, and a level opened with them (from another editor, or an older Holocron) is repaired as it opens, with a note; save to keep that. A face of no area, with all its corners on one line (what JED's checker calls "surface must be invalid"), is removed the same way, and by any building operation. An edge that one face has in one piece and its neighbours in several, as hand-cut levels often have, is not a hole: Problems leaves it alone. A real hole, a sector with a side missing (a face deleted in JED, say), is reported as "Not closed", with where it is; Build › Fill holes puts a wall there, with the selected texture (with sectors selected, just those; a hole that isn't flat, where two missing faces met at an angle, is left, and the status line says so). Then J joins the new wall to the room beyond it if there is one. A face with more than 24 corners is one error the game can't get past at all (it refuses the whole level), so Holocron never hands it one: the status line says which face (Not rebuilt after a change, Playtest stopped before a playtest) and the Problems panel opens; Ctrl+Z takes the change back. One warning looks at the things' models: a .3do whose RADIUS line says less than its shape reaches makes the game hide the thing whenever its middle leaves the view, so Holocron names the model and both numbers; fix the line in the .3do.
Packaging as a GOB
- Choose File › Package as GOB (Ctrl+P).
- Fill in the Episode title, the Level file name, and the Level name players see in the list.
- Choose the type: Single player, Multiplayer or Capture the flag.
- Choose the game: Jedi Knight makes a
.gobfile, Mysteries of the Sith a.goo. It starts on the game you're editing in. - Click Save .gob (or Save .goo), and save it into that game's
Episodefolder.
The GOB gets everything your level uses that the game doesn't have: your textures, sounds, models and scripts.
If a GOB with that name is already there, Holocron asks what to do with it:
- Update
- puts this level and its files into the GOB and keeps everything else in it, so you can build an episode a level at a time. A new level is added to the end of the episode; packaging a level that's already in it again replaces it there. The episode keeps its title and type.
- Replace
- makes a new GOB with only this level and its files.
Either way, the old GOB stays as it was if the new one can't be written.
Make levels for a game in that game's install. A level built in Jedi Knight uses Jedi Knight's textures and scripts, which Mysteries of the Sith may not have, so Holocron warns you if you package it for the other game.
Holocron won't package over the game's own GOB files, such as JK1.GOB or Mysteries of the Sith's JKM.GOO, so a typo can't break your install. A multiplayer level needs a player start for each player.
Controls Reference
Every shortcut in one place. Press F1 in Holocron to see them in the editor too.
Views and camera
| Keys | What they do |
|---|---|
| Right mouse button | Hold to look around and fly (3D view) |
| W A S D E Q | Fly forward, left, back, right, up, down (while holding the right button) |
| Mouse wheel | Move forward and back (3D); zoom (2D) |
| F | Frame the selection |
| Ctrl+G | Go to a sector by number |
| Alt double-click | Move the 3D camera there (2D view) |
| Shift+T, Shift+F, Shift+S | Top, front or side (with the mouse over a 2D view) |
| Shift+A | Face the selected surface flat on (with the mouse over a 2D view) |
| Shift+N | Curved corridor tool: click points in the top view, Enter builds, Backspace takes a point back |
| Right-click | The view's menu: top, front, side, duplicate (2D view) |
| L | Full-bright on or off |
| Z | Wireframe on or off (3D view) |
Selecting and moving
| Keys | What they do |
|---|---|
| 1 to 5 | Sector, surface, vertex, thing, light mode |
| Click, click again | Select; the next one behind |
| Shift-click, Ctrl-click | Add to the selection; add or remove one |
| Alt-click | Select an opening (surface mode) |
| Double-click | Select a wall and the walls joined to it (surface mode) |
| Ctrl+A, Esc | Select all; select none |
| Ctrl+F | Find by texture, flags, template...; replace a texture or set a flag on all found |
| Drag | Move the selection |
| Drag with Shift | Move along one axis |
| Drag with Alt | Move up and down (3D view) |
| Arrow keys, Page Up, Page Down | Nudge one grid step |
| [ ] | Smaller or bigger grid |
| G | Snap to grid on or off |
| Shift+G | Snap the selection to the grid |
| Alt+G | Grid origin at the selected vertex (Alt+Shift+G: back at zero) |
Building
| Keys | What they do |
|---|---|
| B | Draw a sector |
| Shift+B | Carve a block out of the rooms |
| N | Draw a polygon sector (Build › Sides corners): drag from its middle to a corner. In the carve tool: carve a polygon block instead |
| 3–9, 0, -, = | In the polygon tools: set the sides (0 for 10), step them down or up |
| K | Cleave tool (Tab: level or upright cut; drag a line on a surface for any angle, Shift: 15-degree steps) |
| X, Shift+X | Extrude; extrude as one sector |
| H | Hollow out the solid block the selected walls enclose |
| J, Shift+J | Join touching sectors; unjoin openings or sectors |
| M | Merge selected sectors, surfaces or vertices |
| R, Shift+R | Turn sectors 90° clockwise or counterclockwise |
| Ctrl+C, Ctrl+V | Copy and paste sectors |
| Ctrl+D | Duplicate (sectors go beside the selection) |
| Del | Delete |
Textures, things and lights
| Keys | What they do |
|---|---|
| Ctrl + arrows | Move the texture (surface mode) |
| Ctrl+Shift + arrows | Stretch the texture (surface mode) |
| R | Reset the texture alignment (surface mode) |
| Ctrl middle-click, middle-click | Copy a texture's alignment; paste it |
| Ctrl+Shift+C, Ctrl+Shift+V | Copy the selected surface's texture alignment; paste it onto the selected surfaces |
| T | Place things, or lights in light mode |
| R | Rotate tool (thing mode): Ctrl 15° steps, Shift fine, Esc cancels |
| Shift+L | Calculate lighting in the selected sectors |
Files and playing
| Keys | What they do |
|---|---|
| Ctrl+N, Ctrl+O | New level; open |
| Ctrl+S, Ctrl+Shift+S | Save; save as |
| Ctrl+Q | Quit (asks first if the level has unsaved changes, as closing the window does) |
| Ctrl+P | Package as GOB |
| Ctrl+Z, Ctrl+Y | Undo; redo |
| Ctrl+R | Rebuild the level in the 3D view |
| F5, Shift+F5 | Play from the camera; from the player start |
| F5 while playing | Back to the editor |
| F1 | Show the controls |
Troubleshooting
What to try when something doesn't look or play right.
The player falls, floats or gets stuck near an opening
A sector there is concave. Open the Problems panel to find it, then choose Build › Split concave sectors into convex ones.
A texture shows the wrong colours
It was made for another level's palette, and has an orange corner in the Textures panel. Click it again and choose Make a full-colour copy, or change the level's palette in the Level panel.
A move won't go where I drag it
That move would make a sector concave. The console says which sector and surface. Move a different corner, or build that shape from more than one sector.
My COG script doesn't seem to change
Check the status line after you save the file in your editor: it says when Holocron reloads the level. If the console says the linked file isn't there, it was moved or renamed; link it again.
The level doesn't show up in the game
Make sure the GOB is in the game's Episode folder, and that you chose the right type when packaging: single-player episodes are listed with the game's own, and multiplayer and capture-the-flag ones under Multiplayer › Host. Mysteries of the Sith lists only .goo files, and Jedi Knight only .gob files, so package for the game you'll play it in.
Holocron opened Jedi Knight in my Mysteries of the Sith folder
Holocron looks for JKM.GOO in the Episode folder or JKMRES.GOO in Resource. If Jedi Knight's own JK1.GOB or Res2.gob is in the same folder, it takes it for Jedi Knight. Keep the two games in separate folders, or start Holocron with the -motsCompat option to force Mysteries of the Sith.
Holocron feels slow
Choose View › Performance. It shows how many frames a second Holocron draws, and how long each part of a frame takes: the game drawing the level, Holocron's panels, and the graphics card. Right-click it to copy the numbers, to send with a bug report. If you've turned on View › Draw every sector, even from inside, turn it off: from inside the level, Holocron then draws only what you can see, like the game.
The 3D view doesn't match the level
Choose File › Rebuild level (Ctrl+R). The game rebuilds the level from what you've made, as it does after a change to its shape.
Holocron crashed
On Windows, Holocron writes holocron_crash.log in the Jedi Knight folder, saying where it crashed. Send it with your bug report, along with what you were doing.
I deleted something by mistake
Ctrl+Z undoes it, and Ctrl+Y redoes. Holocron remembers your last 64 steps while the level is open.