Closed LoneGazebo closed 4 years ago
I'll play around with this today.
@LoneGazebo Made a couple comments on your first commit, still looking through the dealAI changes and the second commit. Won't have that much to offer though, I can't test things while on vacation or read the code well either.
Am glad to see DealAI getting some much-needed cleanup though. :)
It was so bad.
@LoneGazebo Agreed.
I made comments on a couple of individual lines, as you know.
Additional observations:
I recall a problem where the AI would say a deal was impossible even when there were valid deals it was willing to accept. Has that been resolved? It looks like it'll loop a few times to make checks now.
Demand/help request logic could use revision, it's a total mess from what I remember, especially demand logic.
Issues with vassalage specifically:
It's not added in DoAddItemsToUs/Them, nor is revoking it.
AI has no function to inform the human player when they're willing to become a voluntary vassal (and I think vassal willingness logic in the diplo AI itself could use revision IMO, but I can't work on that right now). Many players on the forums have expressed a desire to be informed of when the AI is willing to become a vassal.
Same goes for revoking vassalage - and perhaps the AI should be making offers to vassalize other players, or for the other player to revoke their vassals.
Probably a fair amount of work to implement, but vassals are arguably a core part of the mod now and I think the players would appreciate it.
I saw your posts, I responded to most/all.
Vassals: That's a bigger todo- voluntary vassalage is tricky, it can be really swingy.
Alright, vassalage stuff is integrated. I'll test.
Awesome!
Peace deals in the trade screen are working better. I once got a completely empty trade proposal.
@Iamblichos really? interesting.
Do you know what the trade context was, possibly?
I thinking he was trying to buy a luxury. Is this in the logs?
Should be in logs
Next time I get it, I'll check the logs. Should be fairly reproducible again.
Happy to see voluntary vassalage be included. :)
And the code is a LOT easier to read now.
Yeah, happy with the changes overall. The renewal system is a wee bit of kludge but it works.
https://github.com/LoneGazebo/Community-Patch-DLL/commit/21e1ab112e954e3fdd903969036b09effdfb27c7
This version has a lot of changes to DealAI - I sanitized the terrible code as best I could, and cleaned up a lot of the logic and redundant code. I'd appreciate some extra eyes and tests on this version.