Page 1 of 1

Decision AI=3 no longer working in PBEM

Posted: Sat Feb 17, 2024 4:32 pm
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]
}

Re: Decision AI=3 no longer working in PBEM

Posted: Sun Feb 18, 2024 2:45 am
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).

Re: Decision AI=3 no longer working in PBEM

Posted: Sun Feb 18, 2024 10:37 am
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

Re: Decision AI=3 no longer working in PBEM

Posted: Sun Feb 18, 2024 11:49 am
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

Re: Decision AI=3 no longer working in PBEM

Posted: Sun Feb 18, 2024 12:18 pm
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.

Re: Decision AI=3 no longer working in PBEM

Posted: Mon Feb 19, 2024 8:42 pm
by Hubert Cater
Thanks for helping to sort that one out El_Condoro!