A fast and simple factory monitor script, for all your industrialist needs!
Inspired on the idea of BartaRS's Factory Monitoring Expanded script.
Download a pre-compiler JSON file from the "Releases" tab, copy its contents and install it by right-clicking a Programming Board, selecting "Advanced" and then "Paste Lua configuration from clipboard".
After installing into a Programming Board, link it to your factory's Core Unit and then to each of your screens, from first to last.
After activating the Programming Board, you will see some information on your Lua chat:
- The current range (first and last industry codes) that are currently visible;
- List of industry with missing schematics;
- List of industry with missing inputs or outputs;
- List of industry that might be "stuck" after a game update;
You will also be presented with a list of commands that can be typed into the Lua chat.
After this brief status check, the script starts to fetch and update status automatically.
You will notice that your screens will be updated with a list of codes on the left and statuses on the right. The codes are not related to your industry's element ids, those are internal codes used to track each industry unit.
The code's color indicates the industry unit's tier (Basic, Uncommon, Advanced or Rare) and the status color is related to each status, with dimmer colors being used for running/maintaining/pending statuses which usually mean everything's fine, while bright colors being used for anything that needs your attention, such as warnings, errors or single-batches that are completed.
There's a few commands available that can be used with the Industry Monitor, you can input them into the Lua chat. For cases where you are accessing your monitor with a Detection Zone or in VR, you can still input commands into the Lua chat, but the output will be displayed in the screens, which can be cleared with the clear
command.
The full list of commands can also be accessed in-game by typing help
.
Syntax: find 1234
where 1234 is the industry code
Sytax: find_id 1234
where 1234 is the element id
Locates an industry unit and sets an waypoint to it.
Sytax: info 1234
where 1234 is the industry code
Sytax: info_id 1234
where 1234 is the element id
Returns details about an Industry Unit such as the Element ID, Type, Name, batch type and status.
Syntax: trace 1234
where 1234 is the industry code
Tries to automatically debug an error status, by checking the whole production chain and telling what might be wrong.
Maybe some Refiner is missing ingredients or some Smelter got stuck? This should allow you to figure it out.
Syntax: error_check
Runs the same error check that's displayed when you activate the script directly.
Syntax: about
Displays the same information when you activate the script, such as current range start and end.
You can customize what information gets displayed by right-clicking the Programming Board, going to "Advanced" and then selecting "Edit Lua parameters", from there, you should be able to select which types and tiers of industry are going to be displayed, along with a few extra options:
- Show Industry Name will show the custom element names for any elements you have renamed;
- Refresh Interval allows you to set how many seconds between each screen refresh;
- Range Start sets where the displayed range of industry should start, in case you want to set-up a wall with more than a single row of screens;
If you find this script useful and want to support its development, feel free to make a donation to the Wolfe Labs in-game organization, any amounts are much appreciated!
Special thanks to the following players and organizations, for testing the script on their factories, supporting the development, and giving out feedback on how it could be improved:
- Kolden
- Fridaywitch/Kosmos
- Tobitege