Decision AI=3 no longer working in PBEM

Post bug reports and ask for help with other issues here.
Post Reply
User avatar
Lothos
Posts: 1246
Joined: Tue May 23, 2006 8:22 pm

Decision AI=3 no longer working in PBEM

Post by Lothos »

I have a decision that was working fine prior to the patch but is now no longer working in multiplayer games (including hotseat)

If I change it to AI=0 then the decision will fire but as AI=3 it never fires Below is the decision.

I added the word "hello" to the message so I can see it fire. If I change it to AI=0 it then works just fine.

My understanding is with AI=3 is that it will only fire if the Axis are AI controlled or in Multiplayer games which was working before.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Norway
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

{
#NAME= DE 870 - Allies Raiding Norway Convoy On/Off
#POPUP=
#MESSAGE= hello
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 2
#AI= 3
#LEVEL= 0
#GV= 1[1,100]
#LINK= 0[0]
#COUNTRY_ID= 78
#TRIGGER= 100
#DISPLAY_ORDER= 0
#DECISION= 870
#MPP_UPDOWN= 0
#MPP_TURNS= 0
#MPP_TEXT=
#NOTES=
#NOTES_POSITION=
#AI_RESPONSE= 100
#AI_RESPONSE_POPUP=
#DATE= 1939/09/01
#TEXT_RGB= 0,0,0
#SHADOW_RGB= 0,0,0
; - Norway - Neutral
#ALIGNMENT_POSITION= 167,52 [0]
; - Mining Flag is off
#ALIGNMENT_POSITION= 1,248 [0]
#NATIONAL_MORALE_TRIGGER= 0 [0]
#VARIABLE_CONDITION= 5 [0] [0] [0]
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
}
El_Condoro
Posts: 597
Joined: Sat Aug 03, 2019 4:35 am

Re: Decision AI=3 no longer working in PBEM

Post by El_Condoro »

Devs will give a better answer but my guess is that because Norway (78) has to be neutral and AI= 3 only fires on the Allied MP turn, it won't do anything. What happens if you change #COUNTRY_ID to 112 (UK)? I have only seen major IDs used in the original decision.txt. Other thought is to change the #VARIABLE_CONDITION= 5 [0] [0] [0] to #VARIABLE_CONDITION= 112 [2] [100] [0], although what you have should be OK (Argentina is neutral).
ORB & CROWN Fantasy Warfare Mod for Strategic Command
Download for War in Europe or World at War - YouTube - Discord
User avatar
Lothos
Posts: 1246
Joined: Tue May 23, 2006 8:22 pm

Re: Decision AI=3 no longer working in PBEM

Post by Lothos »

El_Condoro wrote: Sun Feb 18, 2024 2:45 am Devs will give a better answer but my guess is that because Norway (78) has to be neutral and AI= 3 only fires on the Allied MP turn, it won't do anything. What happens if you change #COUNTRY_ID to 112 (UK)? I have only seen major IDs used in the original decision.txt. Other thought is to change the #VARIABLE_CONDITION= 5 [0] [0] [0] to #VARIABLE_CONDITION= 112 [2] [100] [0], although what you have should be OK (Argentina is neutral).
That's a good point, will try that later today
User avatar
Lothos
Posts: 1246
Joined: Tue May 23, 2006 8:22 pm

Re: Decision AI=3 no longer working in PBEM

Post by Lothos »

El_Condoro wrote: Sun Feb 18, 2024 2:45 am Devs will give a better answer but my guess is that because Norway (78) has to be neutral and AI= 3 only fires on the Allied MP turn, it won't do anything. What happens if you change #COUNTRY_ID to 112 (UK)? I have only seen major IDs used in the original decision.txt. Other thought is to change the #VARIABLE_CONDITION= 5 [0] [0] [0] to #VARIABLE_CONDITION= 112 [2] [100] [0], although what you have should be OK (Argentina is neutral).
Yup it was the fact that Norway was leaning Axis with the AI=3 command. I needed to change the main decision to the UK to force it to always fire on the Allied turn.

Argentina is not in the game I use the command below to dummy it out
#VARIABLE_CONDITION= 5 [0] [0] [0]

Thanks, sometimes you just need someone else to look at it to get the gears working :D
El_Condoro
Posts: 597
Joined: Sat Aug 03, 2019 4:35 am

Re: Decision AI=3 no longer working in PBEM

Post by El_Condoro »

Glad it worked for you. The number of times I have stared at a script and not been able to see why it doesn't work is too many, so I know your feeling well.
ORB & CROWN Fantasy Warfare Mod for Strategic Command
Download for War in Europe or World at War - YouTube - Discord
User avatar
Hubert Cater
Posts: 5986
Joined: Mon Jul 22, 2013 11:42 am
Contact:

Re: Decision AI=3 no longer working in PBEM

Post by Hubert Cater »

Thanks for helping to sort that one out El_Condoro!
Post Reply

Return to “Tech Support”