|
|
|
Notices |
Do you own this game? Write a review and let others know how you like it.
|
|
|
February 1st, 2012, 06:06 PM
|
Corporal
|
|
Join Date: Jan 2008
Location: Newcastle-upon-Tyne
Posts: 63
Thanks: 4
Thanked 7 Times in 7 Posts
|
|
AI purchase routine problem
I am playing the Long Campaign as Great Britain vs Germany.
The previous game (in 5/41) was a Defend scenario at Tobruk. When the game ended prematurely I checked the German unit list and was surprised to see very few units. There must have been a problem with the purchase routine for the AI.
The next battle (in 6/41) is also a Defend at Tobruk and the same has happened, AI purchases very few units.
I ran the routine again for the 6/41 battle. The battle type is a meeting engagement and the AI purchases what looks like a full complement of units. This might narrow the problem down to the scenario when AI has Assault.
Because of the number of games already played in this campaign my core has a lot of experience and a very high points value (about 25,000). This means that the AI value may be so high that it is running into some sort of maximum which it can't handle and the end result is a very small points allocation that doesn't buy many units.
T0 save files for both Defend games attached. I have a save file for the meeting engagement if required.
Note because I reuse save slots T0 for the earlier game is in 273 and T0 for the second game is in 235.
cheers,
Tim
|
February 1st, 2012, 06:21 PM
|
|
National Security Advisor
|
|
Join Date: Mar 2005
Location: Dundee
Posts: 5,956
Thanks: 465
Thanked 1,897 Times in 1,235 Posts
|
|
Re: AI purchase routine problem
Quote:
Originally Posted by _Tim_
I am playing the Long Campaign as Great Britain vs Germany.
The previous game (in 5/41) was a Defend scenario at Tobruk. When the game ended prematurely I checked the German unit list and was surprised to see very few units. There must have been a problem with the purchase routine for the AI.
The next battle (in 6/41) is also a Defend at Tobruk and the same has happened, AI purchases very few units.
I ran the routine again for the 6/41 battle. The battle type is a meeting engagement and the AI purchases what looks like a full complement of units. This might narrow the problem down to the scenario when AI has Assault.
Because of the number of games already played in this campaign my core has a lot of experience and a very high points value (about 25,000). This means that the AI value may be so high that it is running into some sort of maximum which it can't handle and the end result is a very small points allocation that doesn't buy many units.
T0 save files for both Defend games attached. I have a save file for the meeting engagement if required.
Note because I reuse save slots T0 for the earlier game is in 273 and T0 for the second game is in 235.
cheers,
Tim
|
MAX_DEFEND is about 26000 points - and a regular battle will limit you to that even if you enter maximum points in preferences.
It may well be that the campaign code is screwing up the total though, and it could well wrap round to a negative number or whatever. I'll check it out.
Andy
|
February 2nd, 2012, 01:29 PM
|
|
National Security Advisor
|
|
Join Date: Mar 2005
Location: Dundee
Posts: 5,956
Thanks: 465
Thanked 1,897 Times in 1,235 Posts
|
|
Re: AI purchase routine problem
Quote:
Originally Posted by _Tim_
I am playing the Long Campaign as Great Britain vs Germany.
T0 save files for both Defend games attached. I have a save file for the meeting engagement if required.
cheers,
Tim
|
You forgot the .CMT files - a save game consists of 2 files...
Please don't do that in future, its a pain having to manually make .CMTs to match
Andy
|
February 2nd, 2012, 01:55 PM
|
|
National Security Advisor
|
|
Join Date: Mar 2005
Location: Dundee
Posts: 5,956
Thanks: 465
Thanked 1,897 Times in 1,235 Posts
|
|
Re: AI purchase routine problem
I really need the last turn of the game before the current one. (The ones you have already have a German force bought, so cannot be used to debug the AI purchasing since its been done by that point.)
Andy
|
February 2nd, 2012, 02:43 PM
|
Corporal
|
|
Join Date: Jan 2008
Location: Newcastle-upon-Tyne
Posts: 63
Thanks: 4
Thanked 7 Times in 7 Posts
|
|
Re: AI purchase routine problem
Files for the preceding games as requested. CMT included, and apologies for my error yesterday.
Tim
|
February 2nd, 2012, 03:05 PM
|
|
National Security Advisor
|
|
Join Date: Mar 2005
Location: Dundee
Posts: 5,956
Thanks: 465
Thanked 1,897 Times in 1,235 Posts
|
|
Re: AI purchase routine problem
Quote:
Originally Posted by _Tim_
Files for the preceding games as requested. CMT included, and apologies for my error yesterday.
Tim
|
Those are not really required - I manually made some CMTs to fit.
I do require the previous end of game turn, so I can debug the purchase routine
(The AI had about 1 tank coy, 1 engineer platoon, 1 rifle coy, 1 battery of 75mm + misc support platoons. Obviously insufficient given your core of what must be 150 platoons of (+) arty.... )
Andy
|
February 2nd, 2012, 04:42 PM
|
Corporal
|
|
Join Date: Jan 2008
Location: Newcastle-upon-Tyne
Posts: 63
Thanks: 4
Thanked 7 Times in 7 Posts
|
|
Re: AI purchase routine problem
The files in the second zip are the previous end of game turns as instructed.
File 272 is T49 for the 4/41 game. This is the last save file I have for this game.
The 5/41 battle is Gbr defend vs Ger assault & the AI purchase is very small. If I have interpreted your instruction correctly the AI purchase routine that you want to check occurs after T49 of the 4/41 game.
The 6/41 battle is also Gbr defend vs Ger assault. This battle also has an incorrect AI purchase. That is why the last turn of the 5/41 is included, this is file 234.
I hope this clears up the confusion.
Tim
|
February 2nd, 2012, 05:45 PM
|
|
National Security Advisor
|
|
Join Date: Mar 2005
Location: Dundee
Posts: 5,956
Thanks: 465
Thanked 1,897 Times in 1,235 Posts
|
|
Re: AI purchase routine problem
The points value of the core is just over the maximum allowed for a defender in total.
The regular battle code seems to be handling that OK. However the campaign code is not, and the number generated rolls over the local integer value - thus making it a smaller amount than the defender of course.
Fixing that now. Will be fixed in the next release.
I would dump that campaign for now, and restart with something far less expensive & make sure the core does not get up there until the next release.
Andy
|
February 2nd, 2012, 08:46 PM
|
|
Captain
|
|
Join Date: Oct 2008
Posts: 898
Thanks: 45
Thanked 60 Times in 54 Posts
|
|
Re: AI purchase routine problem
You are maxing the game out to beyond it's limits,not many do this,but you have.
Sell off a major amount of your huge Uber core and sandbag the points godforbid! to get within something the current AI can deal with
Last edited by gila; February 2nd, 2012 at 09:02 PM..
|
February 2nd, 2012, 11:51 PM
|
|
Captain
|
|
Join Date: Oct 2008
Posts: 898
Thanks: 45
Thanked 60 Times in 54 Posts
|
|
Re: AI purchase routine problem
When playing a very long campaign,you need to consider your force value.
If it gets too large some battles will be a train wreck for the AI as far fairness ie: too many elite units,spending every point just because you can seems over kill against the pathetic AI IMO.
Rant over
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|