My statement you're quoting has two parts: "unless things are broken it doesn't explain why #1 the AI produces a shit ton of motorized and no tanks at all and #2 it is taking years to actually upgrade these divisions to tanks"Actually, given that I know how the code works; it does.
So, allow me clarify; does knowing how the code works somehow also explain that the AI sitting on a pile of motorized divisions for literally years and not upgrading these divisions to medium tank template, despite having research for medium tanks long completed, and despite the upgrade to medium tanks being supposedly the reason these divisions were made in the first place ... isn't severely broken behavior? Is that the way you intended the AI to act?
Note the game date. The US only just started to make medium tanks, literally 3 game months ago. I.e. in autumn 1943.
I can't help but be skeptical about the proposed solution because this behavior --coming from the default production script, after all-- at the moment affects practically every nation in the game, which is something specialized production script for the USSR, or even all majors, isn't going to fix. Exhibit A:It is possible it is not the only issue, but given that was the only major change to that system when SOV started going motorized crazy, it seems likely that both my guess about the error is correct enough that the proposed solution would improve the situation a lot.
Man, these Greeks sure love their trucks, don't they.
Also, if the error is caused by the AI thinking motorized division is a better candidate for a tank division than an actual tank division, how is a specialized template design script going to prevent this behavior any better than the generic one?
specialized template script: "this is how you make a tank division. this is how you make a motorized division"
game: "yes boss! *makes templates a told*"
production script: "make me 10 tank divisions, and 10 motorized divisions"
game: "yes boss! *produces 10 divisions with motorized template and another 10 divisions with motorized template*"
As such, I think a much better idea would be to ensure when the AI matches templates it starts with to concepts like 'tank division' the end results is a template that actually has some tanks in it, vs one that has none. Again, because it should be a no-brainer and because it's a game-wide behavior, not something limited to just single nation. And it saves you having to make these specialized template scripts as a bonus, too.