Workplaces
For creators
A workplace is a scene that runs a business from a table. In a warehouse, trucks deliver pallets, you and your crew store them, and customers’ orders ship. The numbers run the business: cash, a star rating, stock and orders. The floor is where the work is done, by you with a forklift, by the people you hire, and by cartons riding a real conveyor. This page builds one, piece by piece.
Try one
Section titled “Try one”- Stand in the painted yard. The line across the top shows the cash, the day and time, and the rating.
- Within about ten seconds a truck delivers: a pallet stands on the inbound dock, and the screen says so.
- Walk to the desk and use the laptop (E). The office opens.
- Choose Crew, then Hire an operator. From now on the crew puts pallets away and ships orders without you.
- Choose Order stock, pick the goods and the pallets, and Place the order. A minute later they are on the inbound dock.
- Close the tab and come back later. The screen reports While you were away: the money, and what was received, put away and shipped.
▶ Watch the conveyor: cartons ride a loop of straights and curves, and queue against a stop on the spur.
What the player does
Section titled “What the player does”- On the floor: drive the forklift (Vehicle tools explains its forks), put delivered pallets away in storage, and take pallets to the outbound dock to fill orders. At a break-down bay, E breaks a full pallet into cartons, or packs cartons back onto an empty one.
- At the computer: the office shows Cash, Rating and In storage, with Order stock, Crew, Customer orders, The books and Open for business.
The player’s own work counts like a crew member’s.
How the business runs
Section titled “How the business runs”- Deliveries. A truck comes every so often and puts pallets on the inbound dock’s free slots. A full dock makes the truck wait. A delivered pallet put away in storage earns a fee.
- Orders. A customer wants pallets of some goods at the outbound dock by a time. On time, the order pays and the rating goes up a quarter star. Late, it pays less and the rating drops a quarter star. Never filled, it is lost and costs half a star. The rating runs from one to five stars.
- Costs. Rent and wages are paid at each day’s end, or hour by hour on the world clock. Electricity too, when the table has it.
- The crew. Operators move a pallet at a time: they ship first, else they put away.
- Stock you buy at the office is paid at once and arrives at the inbound dock after a while. It earns no put-away fee.
- Open for business off: no trucks, no customers.
- Time away. The business is saved every few seconds, in this browser, or in your MegaCity save when you are signed in. When you come back, the time you were away is run (up to eight hours by default), and the floor shows the result.
Build a workplace
Section titled “Build a workplace”- A forklift. The pallets are a vehicle tool’s loads, so the scene needs a vehicle with forks. See Vehicle tools.
- The pallets. Tag each pallet
load = palletandload.stowed = 1. Stowed pallets are the pool: out of play until a truck brings them. - Docks and racks. Give each one
rack.slots(where pallets sit) andlogistics.role:infor the inbound dock,outfor the outbound dock,storefor storage,stagefor a break-down bay. - The play area. A box mesh around the workplace, tagged
logistics.area = 1andcollision = none. It is never drawn. The business’s lines show only while the player stands inside it. - A computer inside the play area: it opens the office (devices and power).
- The table. A Text block named
data/logistics.json(data tables), and the scene tagslogistics.table = data/logistics.jsonandlogistics.name. - The lines on screen. HUD text objects that show the business’s values (below).
- Optional: break-down bays and cartons, a conveyor line with pickers, people to hire, the world clock and electricity.
Settings
Section titled “Settings”Scene tags:
| Tag | Values | What it does |
|---|---|---|
logistics.table |
data/logistics.json |
Runs the business from that table |
logistics.name |
text | The business’s name: the office’s title, its messages and the payslips |
logistics.line |
a belt’s name | The line the pickers feed. Default: the first belt |
logistics.hires |
a place’s address | Hires the people who live at that place and look for work. Without it, the crew has no names |
clock.world |
15 |
The sky and the people keep the world’s hours |
On objects:
| Tag | Values | What it does |
|---|---|---|
rack.slots |
id x y z;… |
Where pallets go: each slot’s name and its base in the rack’s own frame, y up |
logistics.role |
in · out · store (default) · stage |
What a rack is |
load + load.stowed |
pallet + 1 |
A pallet of the pool |
load.sku |
a goods id, or empty | Which goods a pallet shows |
cargo |
a goods id, on a child of a pallet | The look of the goods, shown while the pallet carries them |
cargo.carton · cargo.cartons |
x y z · x y z;… |
A carton’s size, and where each carton stands on the pallet, for breaking it down |
carton |
a goods id | The carton the bays lay out for those goods. Keep it out of sight, its origin at its middle |
smart + smart.use.by |
bay + module, on a stage rack |
A break-down bay |
logistics.area |
1 |
The play area |
logistics.entrance |
1 |
The staff entrance. Hired people walk in and out here |
The table
Section titled “The table”Times are seconds; money is dollars. Every field is optional.
| Field | What it holds | Default |
|---|---|---|
skus |
The goods: id, name, value (what a pallet pays shipped), weight (how often it comes), cost (its price at the office), cartons (a pallet breaks into this many) |
One kind: Goods, $100 |
day |
seconds (a day’s length off the world clock), open and close (the staff’s hours), rent (a day’s) |
300 · 8 · 18 · 300 |
start |
cash, rating (stars), crew |
1000 · 3 · 0 |
deliveries |
first, every, pallets (fewest and most a truck), fee (for each one put away) |
8 · 70 · [2, 3] · 15 |
orders |
first, every, max (open at once), qty (fewest and most pallets), due, late (the share paid late), expire; cases (the share in % wanting cartons once there are pickers) and caseQty |
30 · 45 · 3 · [1, 2] · 150 · 0.5 · 300 |
crew |
moveSeconds (a pallet move), wage (a day), hire (the fee), max |
20 · 40 · 500 · 4 |
pickers |
The same, for pickers | none |
line |
seconds (a carton’s ride), cap (cartons it holds), premium (a carton’s price, as a share of a pallet’s) |
none |
supply |
lead (how long bought stock takes), max (pallets an order) |
none: no Order stock |
offline |
capHours: the most time away that counts |
8 |
clock |
{ "world": 15 }: run on the world clock |
none |
power |
rate ($ a kWh) and loads in kW: base, shift, office, line |
none |
A small table:
{ "skus": [ { "id": "A", "name": "Paper", "value": 120, "weight": 3, "cost": 70, "cartons": 4 }, { "id": "B", "name": "Paint", "value": 180, "weight": 2, "cost": 105, "cartons": 4 } ], "start": { "cash": 2000, "rating": 3, "crew": 0 }, "deliveries": { "first": 8, "every": 90, "pallets": [1, 2], "fee": 15 }, "crew": { "moveSeconds": 20, "wage": 40, "hire": 500, "max": 2 }, "supply": { "lead": 60, "max": 4 }}The lines on screen
Section titled “The lines on screen”A HUD text object (Add Component ▸ HUD & Menus ▸ HUD Text) writes {name} as the business’s value (all tags). For example
{cash} · Day {day} {time} · {rating}. Lines at the same hud.at stack in a column, ordered by hud.order, and hud.when
shows a line only while its value is set. Outside the play area every value reads blank.
| Value | What it is |
|---|---|
cash · day · time · rating |
The money, the day, the time and the stars, as text |
orders · order1 … order3 |
The open orders, and each one’s line |
stock · dockIn |
What is in storage; pallets on the inbound dock |
message |
The latest message, and the time-away report after a return |
received · stored · shipped · late · expired |
The counts |
crew · crewText · hireCost · canHire |
The crew |
pickers · lineText · cartons |
The pickers, the line, the cartons waiting at the bays |
onWay |
Stock ordered and on its way |
shift · here · ready |
1 while the staff’s shift is on; 1 inside the play area; 1 once running |
Cartons and break-down bays
Section titled “Cartons and break-down bays”A bay is a stage rack with smart = bay. Using it breaks the full pallet in it into real cartons, laid where its goods stood, or
packs the cartons within 2.5 m back onto the empty pallet in it. Each kind of goods needs a carton object (carton = <goods id>),
which the bay copies. An empty pallet set on a dock goes back to the stack.
A conveyor line
Section titled “A conveyor line”A belt carries real cartons. A running belt carries them along, a stopped one holds them where they are, a curve turns them, and a queue presses against its stop.
| Tag | Values | What it does |
|---|---|---|
conveyor |
belt |
This object is a belt |
conveyor.path |
x y z;… |
The middle of the belt’s top, from where cartons go on to where they come off, in the belt’s own frame, y up. At least two points |
conveyor.width |
metres (0.6) | Between the rails |
conveyor.speed |
m/s (0.33) | The belt’s surface speed |
conveyor.grip |
a number (0.6) | How hard the belt pulls a carton to its speed |
conveyor.on |
0 |
The belt starts stopped |
conveyor.bed |
1, on the belt’s collision pieces |
The bed the belt drives through |
friction |
a number | A collider’s own friction. Give the bed and the rails 0 |
Pickers carry one carton at a time from a bay’s pile to the start of the line. Once the table has pickers and line, and the
scene has a belt, some orders want cartons instead of pallets, packed at the line’s end. The operators also bring stored pallets to the
bays for the pickers.
People to hire
Section titled “People to hire”With logistics.hires, the crew are real people: the residents of that place who are looking for work here
(people). In the office, Crew names the staff, Hire lists who is looking (each one’s job, pace and
fee) and Let someone go names them.
- A new hire walks in by the staff entrance in their own body, with their name over their head.
- An operator walks each move the business makes; someone let go walks out.
- A new hire gets a welcome text; at the end of a shift each texts the next a handover; each day a payslip goes to their home by post (devices and power).
- Signed in as the place’s owner, a hire is kept in the city’s records, so the person’s own day takes them to work. Anyone else’s hire is kept only in their browser.
The shift and the world clock
Section titled “The shift and the world clock”Put the table on the world clock ("clock": { "world": 15 }) and the scene too (clock.world = 15). The staff then work the table’s
open to close hours and go home after. Rent and wages are paid hour by hour (time of day).
Working together
Section titled “Working together”In a shared room (playing together), every screen runs one business. A delivery lands on every screen, and a
pallet one player sets in a rack is in that rack for everyone. Try it with two browsers on the same address, with
&multiuser=1&gdomain= and the same room word added to both.
Limits
Section titled “Limits”- It needs a forklift. Without a vehicle with forks, the business never starts.
- Pool pallets need
load.stowed = 1. A pallet without it is not part of the business. - No belt, no line. Without a belt, the table’s
pickersandlineare left out. - A belt needs a bed. Without collision pieces tagged
conveyor.bed, it carries nothing. Friction on a still bed or rail fights the belt: give themfriction = 0. - Without a play area, the whole scene is one. The lines show everywhere, and any computer opens the office.
- A computer outside the play area has no connection. Using it picks it up.
- A pallet on another player’s forks stays where it was on your screen until they set it down.
- Time away is capped, at eight hours by default, and only counts when you come back.
- Electricity is billed only on the world clock.