Bug in India Research AI script?

Moderator: Hubert Cater

Post Reply
Mercutio
Posts: 255
Joined: Mon Dec 25, 2006 11:49 pm

Bug in India Research AI script?

Post by Mercutio »

So it is end of 45 and I am finishing wiping out the Allies. Actually this is a few turns before as I wanted to see what the AI was doing. In the research I noticed India has level 4 tanks and going for level 5. What!?!?!? Especially since they have no, well, tanks.

Additionally they researched level 2 heavy bomber. No sense.

Ground attack they are at level 3. Not sure why that high

In the meantime they have 0 in
command and control
infantry warfare
aerial warfare
spying and intelligence

Looking a the script (not that I am an expert) it appears to be told to do this. This number before the [] is the weight? So it dutifully fills them out but never has the money (and or capacity) for any of the items not marked with = 25 [1]

Was this intended? They don't have tanks and not enough bombers to be worth it. The aerial warfare would seem more handy as would some on the ones I noted they skipped. For reference, here is the India 1939 script.

; Infantry Weapons
#RESEARCH_ID_0= 25 [1]
; Anti-Tank Weapons
#RESEARCH_ID_1= 0 [0]
; Heavy Tanks
#RESEARCH_ID_2= 25 [1]
; Advanced Aircraft
#RESEARCH_ID_3= 25 [1]
; Heavy Bombers
#RESEARCH_ID_4= 25 [1]
; Naval Weaponry
#RESEARCH_ID_5= 0 [0]
; Long Range Aircraft
#RESEARCH_ID_6= 25 [1]
; Advanced Subs
#RESEARCH_ID_7= 0 [0]
; Artillery Weapons
#RESEARCH_ID_8= 0 [0]
; Rocket Weapons
#RESEARCH_ID_9= 0 [0]
; Ground Attack Weapons
#RESEARCH_ID_10= 25 [1]
; Motorization
#RESEARCH_ID_11= 0 [0]
; Anti-Submarine Warfare
#RESEARCH_ID_12= 0 [0]
; Anti-Aircraft Defense
#RESEARCH_ID_13= 10 [1]
; Command and Control
#RESEARCH_ID_14= 0 [0]
; Infantry Warfare
#RESEARCH_ID_15= 0 [0]
; Armored Warfare
#RESEARCH_ID_16= 0 [0]
; Aerial Warfare
#RESEARCH_ID_17= 0 [0]
; Naval Warfare
#RESEARCH_ID_18= 0 [0]
; Amphibious Warfare
#RESEARCH_ID_19= 0 [0]
; Trench Warfare
#RESEARCH_ID_20= 0 [0]
; Shell Production
#RESEARCH_ID_21= 0 [0]
; Synthetic Oil
#RESEARCH_ID_22= 0 [0]
; Spying and Intelligence
#RESEARCH_ID_23= 10 [1]
; Logistics
#RESEARCH_ID_24= 0 [0]
; Production Technology
#RESEARCH_ID_25= 25 [1]
; Industrial Technology
#RESEARCH_ID_26= 25 [1]
User avatar
Tanaka
Posts: 5369
Joined: Tue Apr 08, 2003 3:42 am
Location: USA
Contact:

RE: Bug in India Research AI script?

Post by Tanaka »

ORIGINAL: Mercutio

So it is end of 45 and I am finishing wiping out the Allies. Actually this is a few turns before as I wanted to see what the AI was doing. In the research I noticed India has level 4 tanks and going for level 5. What!?!?!? Especially since they have no, well, tanks.

Additionally they researched level 2 heavy bomber. No sense.

Ground attack they are at level 3. Not sure why that high

In the meantime they have 0 in
command and control
infantry warfare
aerial warfare
spying and intelligence

Looking a the script (not that I am an expert) it appears to be told to do this. This number before the [] is the weight? So it dutifully fills them out but never has the money (and or capacity) for any of the items not marked with = 25 [1]

Was this intended? They don't have tanks and not enough bombers to be worth it. The aerial warfare would seem more handy as would some on the ones I noted they skipped. For reference, here is the India 1939 script.

; Infantry Weapons
#RESEARCH_ID_0= 25 [1]
; Anti-Tank Weapons
#RESEARCH_ID_1= 0 [0]
; Heavy Tanks
#RESEARCH_ID_2= 25 [1]
; Advanced Aircraft
#RESEARCH_ID_3= 25 [1]
; Heavy Bombers
#RESEARCH_ID_4= 25 [1]
; Naval Weaponry
#RESEARCH_ID_5= 0 [0]
; Long Range Aircraft
#RESEARCH_ID_6= 25 [1]
; Advanced Subs
#RESEARCH_ID_7= 0 [0]
; Artillery Weapons
#RESEARCH_ID_8= 0 [0]
; Rocket Weapons
#RESEARCH_ID_9= 0 [0]
; Ground Attack Weapons
#RESEARCH_ID_10= 25 [1]
; Motorization
#RESEARCH_ID_11= 0 [0]
; Anti-Submarine Warfare
#RESEARCH_ID_12= 0 [0]
; Anti-Aircraft Defense
#RESEARCH_ID_13= 10 [1]
; Command and Control
#RESEARCH_ID_14= 0 [0]
; Infantry Warfare
#RESEARCH_ID_15= 0 [0]
; Armored Warfare
#RESEARCH_ID_16= 0 [0]
; Aerial Warfare
#RESEARCH_ID_17= 0 [0]
; Naval Warfare
#RESEARCH_ID_18= 0 [0]
; Amphibious Warfare
#RESEARCH_ID_19= 0 [0]
; Trench Warfare
#RESEARCH_ID_20= 0 [0]
; Shell Production
#RESEARCH_ID_21= 0 [0]
; Synthetic Oil
#RESEARCH_ID_22= 0 [0]
; Spying and Intelligence
#RESEARCH_ID_23= 10 [1]
; Logistics
#RESEARCH_ID_24= 0 [0]
; Production Technology
#RESEARCH_ID_25= 25 [1]
; Industrial Technology
#RESEARCH_ID_26= 25 [1]

I wonder if similar issues apply to other countries. Seems like a very simple way to improve the AI.
Image

Check out my mod for Strategic Command American Civil War!

https://forums.matrixgames.com/viewtopic.php?t=413785
User avatar
Hubert Cater
Posts: 6101
Joined: Mon Jul 22, 2013 11:42 am
Contact:

RE: Bug in India Research AI script?

Post by Hubert Cater »

Thanks and I've made some adjustments so that ideally they will research Command and Control, Infantry Warfare and Aerial Warfare for the next release. I've also removed the Heavy Bombers research possibility and slightly reduced the Heavy Tanks research as they can receive a Tank in game and can purchase a Tank as well.

As it is a bit random, the first number represents the random chance it will invest in that category, the second the number of chits, when it has available MPP, it could have some higher results than others from game to game which in most cases is good for variety. In some cases if their Tanks don't last long in game it might seem as an excessive effort to reach level 4 or 5, but this is again due to the randomness and the desire for some variety in the scripts.
User avatar
Hubert Cater
Posts: 6101
Joined: Mon Jul 22, 2013 11:42 am
Contact:

RE: Bug in India Research AI script?

Post by Hubert Cater »

Ground attack research applies to Tactical Bombers, so off hand I'm ok with their investments and returns there as well as they do have the possibility of Tactical Bombers in game as well.
Mercutio
Posts: 255
Joined: Mon Dec 25, 2006 11:49 pm

RE: Bug in India Research AI script?

Post by Mercutio »

I don't think investing in level 3 ground attack over industrial or production is a good call though.
User avatar
Hubert Cater
Posts: 6101
Joined: Mon Jul 22, 2013 11:42 am
Contact:

RE: Bug in India Research AI script?

Post by Hubert Cater »

I don't disagree and it is just as mentioned not a prioritization, just a bit of randomness from game to game. There are ways around it to prioritize the AI research effects for nations, it just requires extra scripts and a bit of sleight of hand further manipulation on my end.
Post Reply

Return to “Strategic Command WWII: World at War”