Name: RoboStats
Description: Adds a command to provide detailed statistics of your logistics system(s).
License: MIT License (http://opensource.org/licenses/MIT)
Version: 1.0.2
Release: 2015-07-21
Tested-With-Factorio-Version: 0.12.17+
Category: Helper
Tags: Robots,Logistics,Commands
Download-Url: https://www.dropbox.com/s/t5vzltiuu8h6y ... _1.0.2.zip
Website:
License
License
The MIT License (MIT)
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
The MIT License (MIT)
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Long description
Long description
This is a mod I put together by request for DeamonEngineer on Twitch, who has over 140,000 bots in his "skynet" system -- a logistics-only megabase.
It adds a command to provide detailed statistics of your logistics system(s).
Type this at the console (~) to run the count:
/c remote.call('robostats','count')
The game will lag for a few seconds while the count runs (this takes longer the larger your map is), then it will respond with something like this:
This is a mod I put together by request for DeamonEngineer on Twitch, who has over 140,000 bots in his "skynet" system -- a logistics-only megabase.
It adds a command to provide detailed statistics of your logistics system(s).
Type this at the console (~) to run the count:
/c remote.call('robostats','count')
The game will lag for a few seconds while the count runs (this takes longer the larger your map is), then it will respond with something like this:
Code: Select all
--Robotics System Statistics-------------------------------------
Roboports: 47 built, 25 stored, 72 total
Logistics Bots: 266 flying, 762 stored, 1028 total
Construction Bots: 7 flying, 243 stored, 250 total
Total Bots: 1278
-----------------------------------------------------------------
Version history
Version history
1.0.2 (2015-07-21): Initial Release
1.0.2 (2015-07-21): Initial Release
Limitations
Limitations
To minimize the lag, the script scans only *likely* places for bots to be found. It counts all airborne robots, and then checks the inventories of the following entity types:
"container","smart-container","logistic-container","cargo-wagon","roboport","assembling-machine","car","player"
(Note that in terms of the game code, the tank is a kind of "car", and all four types of logistics chest are covered by logistic container -- so this list covers more than it might look like at first glance.)
Ultimately this means is that if you have bots stuffed some place weird, like the output of a furnace for example, they will not be counted.
The script also does not count any bot inventory items that have been left on the ground or on belts (also for performance reasons).
To minimize the lag, the script scans only *likely* places for bots to be found. It counts all airborne robots, and then checks the inventories of the following entity types:
"container","smart-container","logistic-container","cargo-wagon","roboport","assembling-machine","car","player"
(Note that in terms of the game code, the tank is a kind of "car", and all four types of logistics chest are covered by logistic container -- so this list covers more than it might look like at first glance.)
Ultimately this means is that if you have bots stuffed some place weird, like the output of a furnace for example, they will not be counted.
The script also does not count any bot inventory items that have been left on the ground or on belts (also for performance reasons).