TorchAPI.com is powered by Qonzer! Check them out for the ultimate game server hosting experience.
You must have higher access permissions to download this plugin.
OBSOLETE
The Conveyor Optimizer plugin attempts to reduce the overhead imposed by repeated failing pull requests "spamming" the conveyor network.
Such repeated pull requests happen if a functional block is looking for an item which is not available on the conveyor system.
There are many more such cases, but the above ones are the worst offenders.
The assumption is that if a pull request fails repeatedly, then it is likely to fail for an extended period. For example, if an assembler is out of some material for 5-10 seconds, then it will need to be produced by a refinery somewhere else on the conveyor network.
It would require the refinery to finish producing something else in its queue (in front of the missing material), or would require some ore being loaded from a player inventory or a newly connected ship (if ore is missing). Usually none of these happen quickly.
The plugin saves processing time by ignoring (muting) most conveyor requests, which would likely to fail anyway based on the above heuristics.
This plugin does not affect moving items between inventories by players, because they always succeed. Players can move only what's already there.
There would be room for more optimization, but that would require more complex logic.
Pull requests are handled separately based on their direction:
Pull requests in different directions are handled separately.
A pull request is said to fail if no items are pulled into the target inventory.
A pull request direction is muted if pull requests are ignored in that direction.
!help conveyor
Prints the list of available sub-commands.
!help conveyor COMMAND
Prints help on a specific sub-commands.
!conveyor on
!conveyor off
Enables or disables the plugin without having to restart the server.
!conveyor info
Prints the current configuration and whether the plugin is enabled.
!conveyor stat
Prints performance statistics.
!conveyor minmute FRAMES
!conveyor maxmute FRAMES
Defines the minimum and maximum time conveyor pull requests are muted (ignored) in a specific direction before letting the next request through.
A higher mute time results in more savings, but the muted block will potentially resume processing only later due to the delay in getting the first items from the conveyor network. It does not affect subsequent pulls, as long as they are successful.
Defaults are 60 and 300 frames (1 and 5 seconds) respectively.
minmute
frames.maxmute
frames.Remarks
Changes are remembered in the configuration file.
Methods patched:
MyConveyorSystem.PullItem
MyConveyorSystem.PullItems
Configuration file:
ConveyorOptimizer.cfg
in the Instance
folderStatistics:
Logging:
ConveyorOptimizer
to find all the log lines in the Torch log.