Carter Kolwey
2017-03-10 088eea1e3ba42fd13510861025e1c9fc989799a0
refs
author Carter Kolwey <cheapiephp@gmail.com>
Friday, March 10, 2017 08:19 +0100
committer Carter Kolwey <cheapiephp@gmail.com>
Friday, March 10, 2017 08:35 +0100
commit088eea1e3ba42fd13510861025e1c9fc989799a0
tree 10cf951655dd5a55787b4a90049e88e97ee3f06a tree | zip | gz
parent b4659d9356d0c303ae750f153081481e9cd89536 view | diff
Fixes for network calculation issues
This fixes several issues:
* More than one switching station could become active on large networks
- Switching stations now semi-permanently become disabled if another is present
- Power monitors have been added to replace the function of "slave" switching stations, to discourage overuse of switching stations
* Networks did not reliably "split" when cutting a cable
- I "may" have caused this issue, but I believe it is solved by this
* Machines did not run without a player near the switching station
- Active switching stations now forceload themselves, and free the forceloaded block if disabled, dug, or disconnected
- Machines are only loaded to run them (as before), so only one mapblock (or two if the bottom edge of the switching station is a mapblock boundary) is loaded
- Cables are still only loaded during a full network recalculation
1 files added
3 files modified
126 ■■■■ changed files
technic/machines/init.lua 1 ●●●● diff | view | raw | blame | history
technic/machines/power_monitor.lua 61 ●●●●● diff | view | raw | blame | history
technic/machines/register/cables.lua 9 ●●●● diff | view | raw | blame | history
technic/machines/switching_station.lua 55 ●●●● diff | view | raw | blame | history