Bug in India Research AI script? (Full Version)

All Forums >> [New Releases from Matrix Games] >> Strategic Command Series >> Strategic Command WWII: World at War



Message


Mercutio -> Bug in India Research AI script? (7/7/2019 9:11:49 AM)

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]




Tanaka -> RE: Bug in India Research AI script? (7/8/2019 3:33:51 AM)

quote:

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.




Hubert Cater -> RE: Bug in India Research AI script? (7/8/2019 3:18:28 PM)

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.




Hubert Cater -> RE: Bug in India Research AI script? (7/8/2019 3:19:16 PM)

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 -> RE: Bug in India Research AI script? (7/8/2019 5:29:05 PM)

I don't think investing in level 3 ground attack over industrial or production is a good call though.




Hubert Cater -> RE: Bug in India Research AI script? (7/8/2019 5:44:13 PM)

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.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
2.609375