Page 1 of 1

Lower Popcap win conditions for AI/Comp stomp players

Posted: 12 Nov 2017, 18:49
by Michael_Z_Freeman
Hi. The performance of the AI has always been a long standing problem with Blitzkreig on larger maps due to BK having so many functions and addon's. It took me ages to work out that to get an acceptable performance I needed to choose "Win Condition: Annihilate with 150 Popcap" so that performance does not not go through the floor later in the game when both human and AI players have built up numbers of units.

So it would be cool to have the same option of 150 popcap for Victory points as well. There could also be a lower popcap of say 100 so that the AI becomes usable on larger 8x8 maps and/or to make frame rate even higher for 4x4 maps.

Re: Lower Popcap win conditions for AI/Comp stomp players

Posted: 12 Nov 2017, 21:49
by kwok
I am practicing/learning lua. So I did this for you just for fun :
https://drive.google.com/open?id=1k9Cfj ... 2ayYii3Z_J

There are two files there.
Put the blitzkrieg module file into C:\Program Files (x86)\Steam\steamapps\common\Company of Heroes Relaunch (replace the existing)
Put the Kwok Test SGA into C:\Program Files (x86)\Steam\steamapps\common\Company of Heroes Relaunch\Blitzkrieg\Archives

There are 2 added modes, one for 2500 VP and 4000VP. Both are adjusted to 150 popcap.
Let me know if it works and have fun!

Re: Lower Popcap win conditions for AI/Comp stomp players

Posted: 13 Nov 2017, 20:36
by Michael_Z_Freeman
kwok wrote:I am practicing/learning lua. So I did this for you just for fun :
https://drive.google.com/open?id=1k9Cfj ... 2ayYii3Z_J

There are two files there.
Put the blitzkrieg module file into C:\Program Files (x86)\Steam\steamapps\common\Company of Heroes Relaunch (replace the existing)
Put the Kwok Test SGA into C:\Program Files (x86)\Steam\steamapps\common\Company of Heroes Relaunch\Blitzkrieg\Archives

There are 2 added modes, one for 2500 VP and 4000VP. Both are adjusted to 150 popcap.
Let me know if it works and have fun!


Thanks ! I'll check this out.

I just finished a very long game on Martainville (4) with Annihilation set to 150 popcap, me and 3 other AI players. Frame rate was acceptable, certainly good enough to be playable. I did not do a benchmark but I don't think it ever fell below 40 fps.

Re: Lower Popcap win conditions for AI/Comp stomp players

Posted: 14 Nov 2017, 16:44
by Michael_Z_Freeman
kwok wrote:I am practicing/learning lua. So I did this for you just for fun :
Let me know if it works and have fun!


Yes it works ! Plus you inspired me to extract the SGA with Corsix's Mod Studio as I've dabbled in doing simple map fixes before for maps that crash when AI saved games are loaded ( http://companyofheroes.michaelzfreeman.org/ ).

So I should be able to edit in the Popcap and VP levels that I need. Makes me wonder how easy it would be to write a little util app to make custom changes to the SCAR file and then re-compress into the SGA.

Still think extra options should be added to the main mod for those who don't either have the skills, time or both to edit SCAR files :mrgreen:

Re: Lower Popcap win conditions for AI/Comp stomp players

Posted: 15 Nov 2017, 00:45
by kwok
I’ll coop the project with you, or if you’re interested in trying to break through coh2 with me and make a new mod, it’d be great to have an extra debugger/script writer. You can check out my mod at this link: viewtopic.php?f=12&t=2342

Re: Lower Popcap win conditions for AI/Comp stomp players

Posted: 07 Dec 2017, 00:35
by Snazz
Nice work Kwok.

Can you please make 500 & 1000 VP modes as well?

I'd probably be able to with some instructions (I've forgotten how to mod Blitzkrieg in Corsix) but I figure it'd be quicker for you.

Re: Lower Popcap win conditions for AI/Comp stomp players

Posted: 13 Dec 2017, 18:28
by kwok
Sorry I’ve been away and really busy to make changes. I can probably start doing some help in maybe 2 weeks after the holidays.