LoneGazebo / Community-Patch-DLL

Community Patch for Civilization V - Brave New World
Other
285 stars 157 forks source link

Barbarians aren't attacking in bad situations and they refuse to retreat #2179

Closed ultrafilter closed 8 years ago

ultrafilter commented 8 years ago

Bug Report Template

Mod Version (i.e Date - (4/23b)): July 15th (7-15)

  1. Mod List (if using standard CPP set, leave blank): R.E.D. Modpack (v 27) Faster Aircraft Animations (v 3)
  2. Type of error (i.e. crash, interface bug, AI quirk): Barbarians are not attacking military units. I placed a warrior next to two barbarians for a few turns and the barbarians did not move and neither did they attack. I also observed a barbarian standing in place for a few turns. It did not patrol around. However, they do seem to be capturing civilians. I left a worker next to a barbarian and it immediately captured it.

I couldn't test pillaging since the barbarians never moved from their spawn point except to capture civilians.

  1. Steps to reproduce: Put a military unit next to a barbarian.
  2. Additional information:

Supporting information:

Please note that you can attach .zip files to Issues by dragging-and-dropping them. If possible, zip up all supporting data and post that way.

  1. Log files: Database.log and Lua.log needed
  2. Minidump file (located in your Civ5.exe directory)
  3. Screenshots (if needed)
TechpriestEnginseer commented 8 years ago

Maybe it knows it can't win if the barbarian goes against your military unit, so it re-calculating its best chance of survival by fortifying?

ultrafilter commented 8 years ago

I tested it further. They'll attack if it's obvious they'll do better (say, four giant death robots vs a warrior, or four warriors vs a spearman), ignore if it's hopeless (warrior vs war elephant), attack if it's okay (warrior vs warrior). These make sense. But it also ignores if it's slightly bad (warrior vs spearman). They also attack a city while ignoring a hopeless fight but I assume that's not a bug.

So the problem isn't that they don't attack in those situations. It's that they stay still and do nothing if there's no other option (like taking a civilian or attacking a city).

LoneGazebo commented 8 years ago

They block tiles if they can. That's their purpose in life. This is all working as intended.

Edaka commented 8 years ago

Most of the time they end up blocking just the tiles right around their encampment, though. It's scary at first seeing an encampment with 2-3 barbarians hanging around, but then they just stand there until they get beaten up (unless, as @ultrafilter mentioned, they can get a favorable fight - then they do move around).

LoneGazebo commented 8 years ago

@ilteroi maybe we should make barbs ignore odds?

ilteroi commented 8 years ago

fixed