LoneGazebo / Community-Patch-DLL

Community Patch for Civilization V - Brave New World
Other
286 stars 158 forks source link

City Management Bad AI #4232

Closed saamohod closed 6 years ago

saamohod commented 6 years ago

_1. Mod version (i.e Date - 4/23):_4-20 hotfix

_2. Mod list (if using Vox Populi only, leave blank):_FlagPromotions

3. Error description:

"Default focus" city management AI chooses certain poor tiles (circled red) over the much nicer tiles (circled blue). Apparently a bug in AI logic.

Savegame attached

inked20180421143500_1_li

QuickSave.zip

LoneGazebo commented 6 years ago

Did you recently have enemy units blockading tiles?

saamohod commented 6 years ago

IIRC I haven't been warring for a while neither any barbarians showed up in the vicinity.

deadstarre commented 6 years ago

city is about to grow, was it the same after getting to 8pop?

saamohod commented 6 years ago

Not exactly

inked20180421190528_1_li

saamohod commented 6 years ago

Another case from the same game. When on "Food Focus" it does the following:

inked20180421192552_1_li

inked20180421193112_1_li

"Gold focus" makes similar bad decisions as above screenshots.

savegame: wrong food focus.zip

LoneGazebo commented 6 years ago

Weird, I'm not seeing this at all. I'll look at the save, any other mods? If so, zip it and stick it here as well.

saamohod commented 6 years ago

These are the mods, all of which should be harmless and irrelevant and save-compatible.

20180422013914_1

ilteroi commented 6 years ago

another oddity - why not work the fish?

image

LoneGazebo commented 6 years ago

really wants culture for border growth? That's my guess.

raphaell-git commented 6 years ago

really wants culture for border growth? That's my guess.

But shouldn't the default focus value 6F+1P+2G more than 2F+4P?

LoneGazebo commented 6 years ago

same would apply for production, especially since the city is close to finishing the harbor.

Iamblichos commented 6 years ago

Doesn't seem like the tiles yet to be acquired by border growth would come close to outweigh working the improved fish.

raphaell-git commented 6 years ago

And border growth is still 59 turns away, even working those two culture tiles. It would have to be an insanely good tile to outweigh 59 turns working those two weak culture tiles.

LoneGazebo commented 6 years ago

see point about production.

ilteroi commented 6 years ago

6f1p beats 1c in almost any situation. that city has stagnated at pop 3 for a long time. this cannot be right.

LoneGazebo commented 6 years ago

Not saying it’s right, just saying that’s probably why it is doing that. Is your CP up to date? I altered the value defines quite a bit recently.

LoneGazebo commented 6 years ago

CP mod, not DLL*

saamohod commented 6 years ago

Not saying it’s right, just saying that’s probably why it is doing that. Is your CP up to date? I altered the value defines quite a bit recently.

The question is apparently not addressed to me, but I'd like to note that the bug is from a previous version( 4-20 IIRC). I haven't tested the latest fix on this matter.

ilteroi commented 6 years ago

well it's kinda hard to say, i think i'm on 4-20-2

LoneGazebo commented 6 years ago

@ilteroi just make sure your CP defines files are up to date- if they aren’t, the food will be valued way too low because I changed the food value scaler quite a bit.