On this page
- 1. Open the manager and keep a backup
- 2. Choose the section for your task
- 3. Work with initialization canvases
- 4. Walkthrough: give Fire two starting fires
- 5. Walkthrough: make Walkers predictable
- 6. Add inputs and connect them to the model
- 7. Configure displays without losing the wiring
- 8. Preview, validate, save, and relaunch
Using the Project Manager
Manual contents | Project configuration reference | Fire tutorial | Walkers tutorial
The Project Manager is the form-based editor for the app's Project configuration in Designer and Studio. Use it to set up the world, initial patches and turtles, input controls, and displays without editing the Project object by hand.
It edits the same Project as the code editor, not a separate configuration. Main, Patch, and Turtle still supply the rules: adding a slider does not make a rule read it, and adding a chart does not publish any results. This chapter concentrates on the patch-and-agent models used in this guide. For individual settings and runtime behavior, use the Project configuration reference.
1. Open the manager and keep a backup
Start with an app loaded in Designer or Studio. Download a backup before experimenting with a model you want to keep.
- In the code editor, double-click the Project tab to open the manager over the editor. It starts from the current Project text, including unsaved editor changes.
- Alternatively, choose Open Project Manager on the app's index page. This opens the saved Project for the current app.
Use the tabs or Project Sections sidebar to navigate. Labels with a dotted underline have tooltip descriptions: hover over the label or use Tab to focus it to show the tooltip. Moving onto the tooltip keeps it visible for reading. Press Escape to dismiss it. For example, try Cell → Boundary or Agent → Start. An asterisk marks a required field. For optional fields, a placeholder can show the default without storing an explicit value; clearing a field can remove that setting. For a select field with a default, the first option is marked with a dagger (†), explained at the bottom of the form. Selecting it removes an optional setting so the default applies; required settings keep the selected value.
| Toolbar command | What it does |
|---|---|
| Save | Stores the Project in the current app; Ctrl/Cmd-S also saves |
| Validate | Checks the configuration and reports issues in the status bar |
| Launch | Saves the Project, checks scripts and saves the other editor fields through the editor, then launches the app |
| Reload | Re-reads the Project from the editor or current app, asking before discarding unsaved manager edits |
| Close | Returns to the editor or index page; offers Cancel, Discard, or Save & Close if edits are unsaved |
| Help | Opens the Project settings help |
Launch keeps the manager open. If you opened it from the index page, Launch first loads the editor underneath it; Close then returns to that editor. Allow pop-ups if the browser blocks the launched simulation.
Save is not a disk backup. Download the app to keep a portable copy. Saving rewrites the Project object: comments inside that object are not preserved, although surrounding text and settings without form fields are retained.
2. Choose the section for your task
| Section | Typical tasks |
|---|---|
| Project | Set title, window dimensions, Visit Mode, DT, maximum time, simulation speed, and maximum target frame rate (FPS) |
| Cell | Set grid dimensions, cell size, topology, boundaries, palette, starting patch colors, initialization mode, and live paint controls |
| Agent | Set population count, movement and boundary policies, appearance defaults, and starting turtles |
| Inputs | Add or edit sliders, toggles, and other controls; regenerate Main's input getters |
| Spys | Configure individual value readouts |
| Displays | Configure charts, tables, and text displays |
| Model | Edit an optional model program for app types that use one |
| Preview | Read the Project source that would be saved |
Here Cell means patch and Agent means turtle. The forms use the configuration names; model code generally uses patches and turtles.
For Cell → Initialization, choose a fixed Model/Paint mode or bind a toggle and map its left/right positions. Paint Value and Paint Radius each accept a fixed number or a slider selected by its input code. Enable Mouse Initial? for gestures. These optional bindings enable live painting without restarting simulation time; omitting them retains legacy initial-grid editing. Models with custom cell state also need the paint hook.
Cell → Cell Tooltip accepts a function-expression string such as
patch => patch.state. It shows live patch data on hover, independently of
Mouse Initial?; see cell hover tooltips.
After adding, renaming, or removing inputs, choose Regenerate Main Getters
in the Inputs section. It saves the current Project settings and updates Main
with a getter for each input code, across all rows. For example, code SPD
generates get SPD() {return this.getParam("SPD");}. Existing simple input
getters are replaced, including obsolete ones; other Main code is preserved.
Empty or omitted Inputs removes the simple input getters. Custom members that
conflict with input codes are reported instead of overwritten. NuML's model
program getter is preserved.
When opened over the editor, this uses and saves the current Main, including
unsaved edits. Download the app afterward to keep a disk copy.
Omit from project removes a section's settings from the Project; it does not merely hide the panel. Leave Agent omitted for the patch-only Fire model. The optional Model section offers Add Model when absent. Ordinary patch/turtle rules belong in their code tabs, not in this section.
Choose a Visit Mode consistent with your code: C visits cells, A visits agents, and A_C or C_A visits both in the indicated order. Selecting C does not itself activate patches; Fire's Patch setup still needs its registration. See execution and lifecycle.
3. Work with initialization canvases
The Cell and Agent sections have an Initialization Canvas checkbox in the section header. Use it to show or hide the canvas, without removing the section or changing its data. The canvas and Start field stay in sync. The canvas configures the initial world; it is not a running simulation.
| Gesture or button | Effect |
|---|---|
| Click a cell | Cycle that patch to the next color in the cell palette |
| Drag across cells | Cycle colors along the stroke |
| Shift-click an empty agent position | Add a turtle |
| Shift-click an existing turtle position | Cycle its agent palette color; cycling back past the last color removes it |
| Alt+Shift-click a turtle position | Remove the turtle there |
| Shift+mouse wheel | Zoom the canvas |
| Space+drag | Pan the canvas; click the canvas first to give it keyboard focus |
| Reset Zoom | Restore the view's zoom and pan, not the starting population |
| Expand | Open a larger canvas window; close it or choose Return to Project Manager to bring it back |
| Canvas Cancel | Restore that section's Start value from the last load or Save |
Repeated clicks cycle colors; there is no need to select a paint color first. The palette order therefore matters. Canvas Cancel restores Start, not every form setting. Save establishes a new baseline for that button.
For exact coordinates or extended turtle records, edit Start directly.
Cell starts are numeric arrays; agent starts can be a keyword such as
random or an array of turtle records. See the
patch starts and
agent settings in the configuration reference.
When Agent Start is random, the canvas shows a representative sample,
not the actual future random population. Editing agents on that canvas
replaces the keyword with an explicit list. Restore random if you want
random initialization again.
4. Walkthrough: give Fire two starting fires
Use the complete Fire tutorial model, including its Main and Patch code. This is the form-based version of its two-fires experiment.
- Open the Project Manager and select Cell. Check Row Dimension and Col Dimension are both 21, Boundary is Fixed / Edge, and the palette is green, orange, dark, in that order.
- Set Start to
[]and leave the field to apply the edit. The canvas should show a green world without the original center fire. - Show Initialization Canvas. Click each of two separated cells once: each changes from green to orange. Avoid dragging if you want only two seeds. The Start field records their coordinates and color indices.
- To reproduce the tutorial's exact positions, replace Start with
[7, 10, 1, 13, 10, 1]. These are two(x, y, colorIndex)triples. The canvas should now show precisely those two orange patches. - Choose Validate, resolve any errors, then Launch.
- At time zero, expect two burning patches and a burning count of 2. Step the simulation and watch the fronts grow toward each other. Reset should restore both original seeds.
To undo the canvas experiment before saving, use canvas Cancel.
To return to the original single-fire lesson after saving, set Start to
[10, 10, 1] and relaunch.
5. Walkthrough: make Walkers predictable
The Walkers one-turtle check uses an exact starting position, zero turn, and speed 0.5. Begin with that tutorial's complete model, not just its Project.
- Open Agent. In Start, enter
[[0, 14.5, 10, 0, 0.6, 0, 0.5, 0]]and leave the field. This is one turtle at(14.5, 10), facing east. The explicit start list determines the initial population, even if Count still says 40. - Use the initialization canvas to inspect its location. For this exact check, keep the full record in Start rather than replacing it with a mouse-created turtle: the fractional position, speed, and heading matter.
- In Cell, enable Show Cell Boundaries? to make movement easier to see. This is separate from the manager's Initialization Canvas checkbox.
- Select Inputs, find Maximum turn (degrees), and choose its edit pencil. Set Default to 0 and choose Save in the item dialog.
- Edit Speed in the same way, keeping its Default at 0.5. These defaults become the inputs' starting values; the running model's sliders are separate controls.
- Choose Validate, then Launch. Check x is 14.5 at time zero, 15 after one Step, and 15.5 after two. The right-half count should be 0, then 1, then 1.
Follow the tutorial's additional
speed and Reset checks.
To return to the full population, restore Agent Start to random, TURN's
Default to 15, and SPD's Default to 0.5, then relaunch.
6. Add inputs and connect them to the model
In Inputs, clear Omit from project if necessary, then choose Add Input. Select the input type and fill in its fields. For a slider:
- Legend is the visible label.
- Code is the identifier used by model code and configuration bindings.
- Min, Max, Step, and Default define its range and starting value.
- Value Type distinguishes integer and floating-point values.
Choose Save in the item dialog to accept that item; the toolbar's Save stores the whole Project. The edit pencil reopens an item; its Delete button removes it. Drag input items to rearrange them.
Preserve codes used by the tutorials, such as SPD and TURN. Renaming a legend is not the same as renaming its code. A new slider needs code to read it, or a supported configuration binding; it does not automatically change turtle behavior.
For supported fields such as Agent Count and default Speed, select Input rather than Fixed to bind an existing slider. Create the input first. A population-count binding is an initialization setting, not a promise of live resizing.
Cell and Agent Boundary also offer Fixed or Input. With Input, choose a toggle and map Left (0) and Right (1) to the desired modes. Cell supports Wrap/Edge; Agent supports Wrap/Bounce/Stop. See the boundary binding example for the runtime behavior and constraints.
7. Configure displays without losing the wiring
In Displays, choose Add Display, or use an existing display's edit pencil. Select a type and set its fields. For a line chart:
- Code must match the name Main uses when publishing values.
- Site selects a display slot in the app layout.
- Dom is the horizontal range; Ran is the vertical range.
- Legend supplies series labels, and Palette supplies their colors.
For example, Fire's chart has Code BURNING, Site display_01, Dom
0, 25, Ran 0, 100, and one legend entry, Burning patches.
Main publishes the count using this.show("BURNING", burning).
Keep that code/site pairing unless you also change the corresponding wiring.
List fields such as Dom and Ran accept comma-separated entries; Start uses
an array with brackets.
Changing the chart range does not change the model, and defining a display does not create its data. Use the Main output recipes and Project output settings when adding series or display slots.
8. Preview, validate, save, and relaunch
Preview shows the generated Project source. The toolbar's Raw view shows the same read-only source instead of the dashboard. Neither is a second code editor: return to Dashboard for forms, or close the manager and edit the Project tab for settings without a form.
Choose Validate before launching. Follow the field path in the status message to locate the problem. Item dialogs also report missing or invalid values and duplicate codes when you try to save an item. If the toolbar Save offers to save despite validation issues, cancel and investigate rather than treating that override as a repair.
Validation checks configuration structure, not scientific correctness or every connection to your code. It cannot prove a rule reads an input, publishes the right series, or conserves a quantity.
| Change | Next action |
|---|---|
| Edit manager fields or model source | Validate the Project, save, and relaunch |
| Change a live slider in the running simulation | Follow the model's input policy; it may act immediately or on the next tick |
| Restore the running world's saved initial state | Use the simulation's Reset |
| Discard unsaved manager changes | Use Reload and confirm the discard |
Reset in an already launched simulation does not load new manager edits. After relaunching, check time zero, one Step, and Reset twice. Use the tutorial observations and checking and troubleshooting chapter as your evidence, then download the updated app when you want to retain a disk copy.