unit type entity flag to ignore belts
Posted: Fri Oct 06, 2017 12:03 am
Currently the AI pathfinding works great unless there's a belt. Then it's awful. Biters units can't figure out how to get across a belt if their life depended on it. Some of us have made mods that allow some sort of control over units. (example: https://mods.factorio.com/mods/withers/Followers)
These mods work wonderfully, until you try to get the unit to navigate it's way across a belt. Then unit gets lost and confused. The unit would rather try to travel all the way down the length of the belt, even if it's a mile away, then just move .5 tiles to get across the belt.
I've asked in a previous request to give "simple pathfinding" to fix this. But alas, that request as gone unanswered. So here's another request. Just give us a flag to assign unit-type entities to be immune to belts.
I know someone has already written code for this. How do I know? Because the following is in the base game's equipment.lua file:
So all I'm really asking is for a flag that we can to assign to unit type entities that does the same thing as this equipment. Thanks in advance for your kind attention and response to this request.
These mods work wonderfully, until you try to get the unit to navigate it's way across a belt. Then unit gets lost and confused. The unit would rather try to travel all the way down the length of the belt, even if it's a mile away, then just move .5 tiles to get across the belt.
I've asked in a previous request to give "simple pathfinding" to fix this. But alas, that request as gone unanswered. So here's another request. Just give us a flag to assign unit-type entities to be immune to belts.
I know someone has already written code for this. How do I know? Because the following is in the base game's equipment.lua file:
belt immunity
Although this equipment is not craftable, if you mod it in to the game, it makes the player immune to belts. So all I'm really asking is for a flag that we can to assign to unit type entities that does the same thing as this equipment. Thanks in advance for your kind attention and response to this request.