Getting Started¶
This page walks through a simple train-based cargo loop.
1. Open The Cargo Network Window¶
In Unity, open:
Tools > Pixit Games > Cargo Network Pro > Cargo Network Window
Use this window to place node prefabs, create routes from selected nodes, and build rail, sea, or air route visuals.
2. Place Nodes¶
Start with three placed node prefabs:
MinePrefabFactoryPrefabCityPrefab
For rail routes, place nodes on a 4-meter grid.
Tip
For best rail generation results, place all rail nodes on a 4m grid. X and Z positions should be multiples of 4.
3. Configure A Mine¶
Use a mine when a node should produce one basic resource without stages.
Recommended setup:
Operation Mode:ProductionInitial Request: emptyStages: emptyStarting Productions: one production rule, such asOre
4. Configure A Factory¶
Use a factory when a node should unlock production after receiving cargo.
Example:
Initial Request:Ore x20- Stage:
Small Factory - Stage request: optional next inputs, such as
Wood x20 - Stage production unlock:
Tools
When the initial request is completed, the factory enters the first stage and unlocks its configured production rules.
5. Configure A Town¶
Use a town when it should start as a requesting node and grow later.
Example:
- Leave
Starting Productionsempty. - Set
Initial RequesttoWood x50. - Add a stage called
Small Town. - Add new requests to the stage, such as
Tools. - Add productions to unlock, such as
Furniture.
6. Create A Route¶
- Select the placed nodes in route order.
- Open the Cargo Network window.
- Go to the
RailRoad Cargo Routetab. - Assign rail prefabs if needed.
- Press
Create Route From Selected Nodes. - Select the route and build smart rail visuals.
7. Add A Vehicle¶
Add CargoTransportAgent to a train object and assign the route.
Key fields:
Route: the route to followMove Speed: vehicle speedStop Work Time: how long the vehicle waits at each stopInventory Capacity: total cargo capacityCargo Visual Mode: how loaded cargo visuals are displayed
For instant turnaround at endpoints, set Stop Work Time to 0.