.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > The Camo Workshop > WinSPWW2
Notices


Reply
 
Thread Tools Display Modes
  #11  
Old February 3rd, 2012, 11:59 AM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,956
Thanks: 465
Thanked 1,897 Times in 1,235 Posts
Mobhack is on a distinguished road
Default Re: AI purchase routine problem

Well, I tried a battle with that core as an experiment.

Any time the German off-map arty fired it was slapped with so many batteries sitting idle. And plotting about 3 pages of 25 pounder on a mortar position soon dealt with that !.

In WW2, such a large core really could only be made up of arty units, but MBT has 550 point MBT, and 650 point attack helos..

It did however expose a weakness in the arithmetic. Unfortunately the code can't be fixed to deal with that, so now when a core is too large to defend, then the core will not be allowed to defend. If the core also is too large to delay, then it will not be allowed to delay or defend either.

For now - if a core grows to a value over 26000 points, its best to abort that campaign. Otherwise, the AI forces will be too weak especially in the assault.

Attacker needs 2.5 times the amount, and 2.5 times 26K is 65K, which just fits an unsigned integer.

Of course - the AI will then buy a regular buy with infantry etc, so probably will not use up the full 65K allocated, but we had that discussion a year or so back. the AI cannot be told to go out and fleet buy king tigers or legions of expensive arty to soak up all its points, it has a 500 unit limit same as the player. It already tends to go for high value stuff if it has lots of spare points (e.g buy a mech coy instead of foot, tigers instead of line tanks etc). But it will still buy cheap recce, inf-at and foot to round out the numbers.

I may look into adding an "upgrade" routine to the AI, so if it has thousands of spare points left over then it (say) upgrades the morale and experience levels of the already bought troops until they reach the total value assigned.

Andy
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 11:38 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.