User avatar
James D Burns
Posts: 561
Joined: Mon Sep 25, 2006 12:28 am
Location: Salida, CA

AI not playing decisions

Tue Oct 21, 2014 12:14 pm

It’s August 1915 or so in my WE game (version 1.01 RC8) and I noticed I had not seen any AI political decisions being played all game. But as more and more countries started joining my side and none were joined the CP, I finally went in and looked and sure enough no political decisions are being played on the CP side. In fact I don’t think the AI has used any decisions at all for the entire game.

The problem may have something to do with their income. As you can see from the money rollover, they are losing 675 due to events and strategic decisions, yet I can find no evidence of what those were in the message logs. This may be a similar situation to what we saw in CW2 where a conscription reinforcement event was getting charged every single turn forever.

Also look at the rail pool, the AI may be crippling itself by keeping too much stuff on trains.

There is a broken reinforcement event in the CP log this turn that is red text. The pop-up is a blank page and unless its about the artillery unit in the city (it looks as if it was built via production) there are no units placed on map as the text implies there should be.

Jim
[ATTACH]31889[/ATTACH]
Attachments
3 - The Great War.rar
(1.64 MiB) Downloaded 238 times
AI.jpg

User avatar
James D Burns
Posts: 561
Joined: Mon Sep 25, 2006 12:28 am
Location: Salida, CA

Tue Oct 21, 2014 6:47 pm

I started a CP game and have confirmed it. After playing into October 14, the WE has played no decisions at all, so its the AI not using decisions that is the issue, not a bug with incomes.

Jim

Altaris
Posts: 1551
Joined: Wed Dec 07, 2011 8:20 pm

Thu Oct 23, 2014 3:38 am

I have done testing tonight, and I'm not running into any issues with the latest RC 8 version. There were some problems in the original release where AI wouldn't always play RGDs, but I'm not seeing any issue now.

If you still believe this to be an issue, can you post a save?

User avatar
James D Burns
Posts: 561
Joined: Mon Sep 25, 2006 12:28 am
Location: Salida, CA

Thu Oct 23, 2014 1:10 pm

Save is already up, look at bottom of the first post.

Jim

Altaris
Posts: 1551
Joined: Wed Dec 07, 2011 8:20 pm

Fri Oct 24, 2014 2:42 am

Got it, missed the link last night. When I run the turn, the AI is playing decisions as expected. Can you look in your EAW folder, under Events, and see if you have the file "WW1_AI_OffMapActions.sct"? If this file is missing for some reason, the AI won't be playing the decisions correctly. If this file is in place, can you check the "3 - The Great War.sct" file (just open with NotePad) under Events and see if there is a line which reads "WW1_AI_OffMapActions.sct" in this file? If not, there's a problem with the include file.

User avatar
James D Burns
Posts: 561
Joined: Mon Sep 25, 2006 12:28 am
Location: Salida, CA

Fri Oct 24, 2014 4:05 am

Sorry Altaris I deleted the save after posting it here, so I no longer have the save game folder other than what is in post one above. I searched my PC for (3 - The Great War.sct) but got no matches so I assume it was in the folder I deleted or its not in my game.

Edit: As a test I started a new game let it run a turn and then searched my PC for (2 - The Guns of August.sct). Nothing came up on the search, so its not getting created in my games.

My events folder does have WW1_AI_OffMapActions.sct in it, so the issue is with the .sct file associated with the save not getting created for some reason.

Looking through my game I do note I do not have a modpath.ini file in the root. I may have deleted this back when I first installed the game to try and get the save file created in the root the way we did for CW2. But I'm not sure I did this I may simply be crossing over info from the two games. Just thought I'd mention it since I don't see the file.

Jim

Uffizi
Civilian
Posts: 1
Joined: Fri Oct 24, 2014 8:55 pm

Fri Oct 24, 2014 9:08 pm

I have the same problem, the AI is not playing decisions. I've tried to do a clean install and then adding the patch to see if it made a difference, unfortunately it didn't. I've tested it in lieutenant and colonel difficulty while playing the Central Powers. There is a typing error in file WW1_AI_OffMapActions at the very end of the file in one of the StartEvent = evt_AIReplacements... where AIReplacements is spelled AIRemplacements, but I fixed that and it didn't make a difference. Also I get the following errors a lot in the main.log

TAgeLabel.LabelAddAdvTextBlock Unfinished control code in text The decision has been added @0 turn(s) ago and last until canceled.
Attachments
2 - The Guns of August.rar
(751.36 KiB) Downloaded 207 times

User avatar
Jim-NC
Posts: 2981
Joined: Wed Feb 25, 2009 4:21 pm
Location: Near Region 209, North Carolina

Sat Oct 25, 2014 9:34 pm

Welcome to the forums Uffizi. :wavey:
Remember - The beatings will continue until morale improves.
[SIGPIC][/SIGPIC]

Altaris
Posts: 1551
Joined: Wed Dec 07, 2011 8:20 pm

Sun Oct 26, 2014 8:14 pm

Very strange, I can't replicate the issue with RC8 so I'm not sure what the exact issue might be. Could you zip up and send me the contents of the Events directory under your EAW folder?

User avatar
James D Burns
Posts: 561
Joined: Mon Sep 25, 2006 12:28 am
Location: Salida, CA

Mon Oct 27, 2014 7:23 am

Altaris wrote:Could you zip up and send me the contents of the Events directory under your EAW folder?


No problem, here's my events folder.

I think the issue is the .sct file associated with a new game isn’t getting created for some reason. So without that it isn’t pointing the AI to the events folder to look at the different scripted events and behaviors. So whatever process creates the .sct file associated with a new game needs to be looked at. It’s possible you guys fixed it in beta and it didn’t get ported into the RC so your version works because the issue is fixed in beta testers versions.

Jim
Attachments
Events.rar
(270.67 KiB) Downloaded 201 times

User avatar
H Gilmer3
AGEod Grognard
Posts: 822
Joined: Sat Jul 23, 2011 2:57 am
Location: United States of America

Tue Oct 28, 2014 3:03 am

I believe this is happening for me as well. I'm playing Western Entente, and I am making diplomatic progress with Bulgaria AND Romania. Doesn't seem like I should be doing so well with Bulgaria.
To End All Wars AAR in the War Room. Join us as we laugh, we cry, we drink beer, and we joke on how badly I play......

http://www.ageod-forum.com/showthread.php?36936-To-End-All-Wars-AAR-Western-Entente-against-the-AI-of-Central-Powers!

Altaris
Posts: 1551
Joined: Wed Dec 07, 2011 8:20 pm

Fri Oct 31, 2014 1:49 am

Okay, with RC8 I can replicate this bug, but I don't understand why it's occurring. The script logs show the below results for Print State Funds for ENT_FRA. As you can see, all the criteria passes, but it fails on "some criteria not met to play regional decision". However, if I load up as a player this is not an issue, the RGD can be played on F7_FRA area. I think this has to be something in the EXE changes, as this was not occurring with the exact same script syntax previously. Pocus, can you investigate? Just take Ebbingford's save and run a turn with the AI on, then search for any of the evt_AIOffMapAction_PrintMoney_XXX_YYY events (XXX being the main faction CEN/ENT/EN1, and YYY being the subfaction FRA/GER/etc). I took a look at the RGD definitions and I don't see anything off there. Have there possibly been any changes to the way AI handles RGD's which may be causing a conflict?

Line 127677: SelectFaction, selected: Western Entente
Line 127680: Started processing event: evt_AIOffMapAction_PrintMoney_ENT_FRA
Line 127680: Event already referenced, current occurences 0 Max allowed: 999 <<Active>>
Line 127684: CheckAILevel: Checking AI Level of faction Western Entente at least equal to 1 True
Line 127686: SelectFaction, selected: Rebels
Line 127687: SelectRegion, 3135 France selected (simple mode)
Line 127688: EvalLoyalty: France for Rebels Test done: 0 < 80 : True
Line 127690: SelectFaction, selected: Western Entente
Line 127691: EvalVP: Western Entente VP: 139 against 100 - Operator: > Result: True
Line 127692: EvalEngagementPts: Western Entente EngagementPts: 30 against 5 - Operator: > Result: True
Line 127693: EvalMorale: Western Entente Morale: 97 against 25 - Operator: > Result: True
Line 127695: EvalRgnOwned: Checking 3135 France is owned True
Line 127697: SelectFaction, selected: Rebels
Line 127699: SelectFaction, selected: Western Entente
Line 127700: SelectRegion, 3135 France selected (simple mode)
Line 127701: EvalRgnDecisionAct: Western Entente Print State Funds in region 3135 France NOT there Result: True
Line 127703: Entering triggered actions for event evt_AIOffMapAction_PrintMoney_ENT_FRA
Line 127705: SelectFaction, selected: Rebels
Line 127707: SelectFaction, selected: Western Entente
Line 127708: SelectRegion, 3135 France selected (simple mode)
Line 127709: [WARNING] AddRgnDecisionAct, the decision can't be added, some conditions are not met Print State Funds
Line 127711: Finished processing event: evt_AIOffMapAction_PrintMoney_ENT_FRA

User avatar
Pocus
Posts: 25673
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Fri Oct 31, 2014 10:47 am

It seems that the issue appeared when I changed the code so that all RGD impact the interface for their cost... But it impacted hosting for the AI only... This is fixed now and a new RC is under way!
Image


Hofstadter's Law: "It always takes longer than you expect, even when you take into account Hofstadter's law."

Return to “Help improve EAW”

Who is online

Users browsing this forum: No registered users and 7 guests