Hunters on Border protect ignore passive animals

flabbert

Warlord
Joined
Aug 30, 2013
Messages
156
I have turned off Animals stay out, and planned to use a couple of hunters to eliminate animals within my borders. But even hunters seem to ignore them. And basically just walk around them. This will get somewhat cumbersome in late game when i have to manually deal with these little pests myself


Not exactly a groundbreaking bug, but i guess something to be aware of
 
Border protect works well normally so i thought they would work for clearing animals like this, maybe the hunters dont see them as a threat, even though it feels workers are giving them a wide berth when automated.
 
Border protect works well normally so i thought they would work for clearing animals like this, maybe the hunters dont see them as a threat, even though it feels workers are giving them a wide berth when automated.
It's not that they don't see them as a threat, it's that when they evaluate to attack, the old assumption that an animal to hunt could never show up inside your borders is still being used as an evaluation filter so as to try to minimize the amount of plots that get evaluated for such a potential decision so as to save on processing time. It's probably an easy fix to just disable that filter and let them evaluate all potential plots within view for animals.
 
Border protect works well normally so i thought they would work for clearing animals like this, maybe the hunters dont see them as a threat, even though it feels workers are giving them a wide berth when automated.
Looking at the code, it seems it might be the opposite issue to what I was thinking. Border Patrol keeps units from going too far away from the border to attack. Is that the issue here? There's also a 'minimum' odds... I'm wondering if that's the inverse of what it should be set at - MAXIMUM odds rather than minimum.
 
Ah... I think I found it. Odds OVER 99 get ignored with current coding. It used to be a range of odds from 1-99 but some changes have made it possible to have 0 and 100%. The AI did not realize this. I think this is the issue but if it's what I said above, it's a matter of how far away the unit is and if its inside or outside the border. If you find, after my next commit, that there is a point where you can show the problem specifically (which is hard to do with automation), then sure, share the save. I might be stuck inside a box of thinking but the code looks like it should be working well as it is. Perhaps it is not though.
 
Ah... I think I found it. Odds OVER 99 get ignored with current coding. It used to be a range of odds from 1-99 but some changes have made it possible to have 0 and 100%. The AI did not realize this. I think this is the issue but if it's what I said above, it's a matter of how far away the unit is and if its inside or outside the border. If you find, after my next commit, that there is a point where you can show the problem specifically (which is hard to do with automation), then sure, share the save. I might be stuck inside a box of thinking but the code looks like it should be working well as it is. Perhaps it is not though.
Check automate hunt for this too, I have caught hunters, rangers, etc never killing animals of less than one strength Many many times ( pigeons, ducks, lizards, macaws, etc ) on size matters. Usually critters that can almost always give a combat promotion.
 
Check automate hunt for this too, I have caught hunters, rangers, etc never killing animals of less than one strength Many many times ( pigeons, ducks, lizards, macaws, etc ) on size matters. Usually critters that can almost always give a combat promotion.
I think I was deep enough into a common use function that it may work for other hunt routines as well.
 
I feel that my hunters are still not taking easy kills that are close to them, ill upload a savegame tonight that has a ton of animals inside my borders that can be tested on.


also when i say hunters, i mean all hunter units.
 
I feel that my hunters are still not taking easy kills that are close to them, ill upload a savegame tonight that has a ton of animals inside my borders that can be tested on.


also when i say hunters, i mean all hunter units.
Your game was already started before these changes. In some instances it takes a new game for the changes to show up. Not sure if this is one or not. But since it is a BUG function.....
 
Your game was already started before these changes. In some instances it takes a new game for the changes to show up. Not sure if this is one or not. But since it is a BUG function.....

Ok, can start a new game then, wanted to have a crack at a higher difficulty anyway.
 
I feel that my hunters are still not taking easy kills that are close to them, ill upload a savegame tonight that has a ton of animals inside my borders that can be tested on.


also when i say hunters, i mean all hunter units.
Quite possible. I'd be willing to look at a save for this.
 
Here is the game, it seems that lizards and pigeons in particular are avoided by any and all border patrol units. or maybe they just spawn too fast, i am unsure. its good for testing either way
 

Attachments

I am curious if the hunters prefer units "further away in vicinity" before the ones close, which makes them walk around the close units a lot more, as if its trying to maximise use of movement.
 
I am curious if the hunters prefer units "further away in vicinity" before the ones close, which makes them walk around the close units a lot more, as if its trying to maximise use of movement.
no... they probably actually prefer closer in first. I'm sure that I just haven't caught all the spots that are blinded by the assumption of the old maximum/minimum odds.
 
Back
Top Bottom