Bug? AI overstrength his unit in extreme way

A forum to discuss custom scenarios, campaigns and modding in general.

Moderators: Slitherine Core, Panzer Corps Moderators, Panzer Corps Design

Post Reply
Uhu
Colonel - Fallschirmjäger
Colonel - Fallschirmjäger
Posts: 1457
Joined: Fri Nov 04, 2011 9:16 pm
Location: Hungary

Bug? AI overstrength his unit in extreme way

Post by Uhu »

Did you encounter such issues?
I place a unit, give him for example 3 stars, 350 xp. Set the current and max strength to 13.
And than in the game I encounter that the AI had overstrength it to 14-16. :shock: :shock:
What happened? And how? And why? :)

Another question is although not connected to this issue that why are getting my aux units medals? :roll:
Image
Image
nikivdd
Panzer Corps Map Designer
Panzer Corps Map Designer
Posts: 4917
Joined: Fri Jun 24, 2011 1:21 pm
Location: Belgium

Re: Bug? AI overstrength his unit in extreme way

Post by nikivdd »

Uhu wrote:Did you encounter such issues?
I place a unit, give him for example 3 stars, 350 xp. Set the current and max strength to 13.
And than in the game I encounter that the AI had overstrength it to 14-16. :shock: :shock:
What happened? And how? And why? :)

Another question is although not connected to this issue that why are getting my aux units medals? :roll:
That occurs on playing on a higher level of difficulty

Aux units also receive medals, and very likely, in those scenarios in which you can carry them over to the next scenario.
bebro
Slitherine
Slitherine
Posts: 4575
Joined: Sun Nov 19, 2006 12:50 pm

Re: Bug? AI overstrength his unit in extreme way

Post by bebro »

Uhu wrote:Did you encounter such issues?
I place a unit, give him for example 3 stars, 350 xp. Set the current and max strength to 13.
And than in the game I encounter that the AI had overstrength it to 14-16. :shock: :shock:
What happened? And how? And why? :)

Another question is although not connected to this issue that why are getting my aux units medals? :roll:
I remember a similar issue. Seems the number you enter as "maxstrength" becomes the 'regular' strength in-game. A 'normal' unit has str 10 plus max. 5 overstrength with 500 XP = str 15. A unit set to maxstr 12 can end up with str 17 because 12 + 5 overstr with XP. And so on...

In your example the Ai did probably overstrength the '13'er unit because you added 3 star XP values.

Not sure if this is intendet, but bottom line is that a maxstrength entry does *not* rule out overstrength additions due to experience beyond the set value.

Would be nice to have some "no overstrength" tag for this.


Dunno about the medals.
Uhu
Colonel - Fallschirmjäger
Colonel - Fallschirmjäger
Posts: 1457
Joined: Fri Nov 04, 2011 9:16 pm
Location: Hungary

Re: Bug? AI overstrength his unit in extreme way

Post by Uhu »

Thank you it's good to know. :)

nikivdd wrote:
Uhu wrote:Did you encounter such issues?
I place a unit, give him for example 3 stars, 350 xp. Set the current and max strength to 13.
And than in the game I encounter that the AI had overstrength it to 14-16. :shock: :shock:
What happened? And how? And why? :)

Another question is although not connected to this issue that why are getting my aux units medals? :roll:
That occurs on playing on a higher level of difficulty

Aux units also receive medals, and very likely, in those scenarios in which you can carry them over to the next scenario.
Image
Image
Uhu
Colonel - Fallschirmjäger
Colonel - Fallschirmjäger
Posts: 1457
Joined: Fri Nov 04, 2011 9:16 pm
Location: Hungary

Re: Bug? AI overstrength his unit in extreme way

Post by Uhu »

Quite interesting thanks for the answer! Than it is definitely a bug: because if you want represent for example some understrength unit with maximum 5 point than you set therefore maxstrength=5 but with 200 xp than the AI can overstrength it to 7...

It is also interesting that the AI makes this only occasionally: not all units will be overstrenght but just a few. Or maybe the other have other dutiers like to attack...? :)
bebro wrote:
Uhu wrote:Did you encounter such issues?
I place a unit, give him for example 3 stars, 350 xp. Set the current and max strength to 13.
And than in the game I encounter that the AI had overstrength it to 14-16. :shock: :shock:
What happened? And how? And why? :)

Another question is although not connected to this issue that why are getting my aux units medals? :roll:
I remember a similar issue. Seems the number you enter as "maxstrength" becomes the 'regular' strength in-game. A 'normal' unit has str 10 plus max. 5 overstrength with 500 XP = str 15. A unit set to maxstr 12 can end up with str 17 because 12 + 5 overstr with XP. And so on...

In your example the Ai did probably overstrength the '13'er unit because you added 3 star XP values.

Not sure if this is intendet, but bottom line is that a maxstrength entry does *not* rule out overstrength additions due to experience beyond the set value.

Would be nice to have some "no overstrength" tag for this.


Dunno about the medals.
Image
Image
Tarrak
Panzer Corps Moderator
Panzer Corps Moderator
Posts: 1183
Joined: Mon Jul 11, 2011 11:01 pm

Re: Bug? AI overstrength his unit in extreme way

Post by Tarrak »

Uhu wrote:Quite interesting thanks for the answer! Than it is definitely a bug: because if you want represent for example some understrength unit with maximum 5 point than you set therefore maxstrength=5 but with 200 xp than the AI can overstrength it to 7...

It is also interesting that the AI makes this only occasionally: not all units will be overstrenght but just a few. Or maybe the other have other dutiers like to attack...? :)
I don't think it's a bug. This sounds to me like logical behavior. Max strength parameter govern the max strength amount of a standard green unit. Every star of experience allows to overstrength a unit by 1. Any other behavior would be highly illogical and confusing imho.

I wonder the AI is using overstrengthing at all. I never witnessed it using it. Actually i always assumed the AI is incapable of overstrengthing units at all.
bebro
Slitherine
Slitherine
Posts: 4575
Joined: Sun Nov 19, 2006 12:50 pm

Re: Bug? AI overstrength his unit in extreme way

Post by bebro »

IMO it is logical indeed for the general use, but it has pros and cons. The "standard unit" would (and should) always be able to overstrength, even when the maxstr is different from 10 (example conscripts).

IIRC some modders want to limit the defacto max strenth a unit could field, incl overstr., for example to avoid historically rare (but often powerful) units appearing in numbers comparable to your usual bread and butter eqp.

IIRC AI using OV is common, depending on situation (AI prestige, wether there are unit slots to fill first etc). Also the AI seems to prefer to fight right away with units that have enemy contact, while I've often seen it doing OV with units that haven't.
Tarrak
Panzer Corps Moderator
Panzer Corps Moderator
Posts: 1183
Joined: Mon Jul 11, 2011 11:01 pm

Re: Bug? AI overstrength his unit in extreme way

Post by Tarrak »

bebro wrote:IIRC some modders want to limit the defacto max strenth a unit could field, incl overstr., for example to avoid historically rare (but often powerful) units appearing in numbers comparable to your usual bread and butter eqp.
Yes i see the problem you have but you have to admit it's rather a rare one and handling the max strength value the different way would be causing a problem in the normal case which appear a lot more often on top of being quite illogical.

In the case you are depicting i would just set the max strength of the unit in question to the value i want it to have minus the amount of experience it got modulo 100. Then set the current strength to to value you want it to have f.e. i want it to have max effective strength of 6 while having 320 experience so i set max strength to 3 (=6 - (320 mod 100)) and the effective strength to 6.

Of course this still got two problems: Firstly if the unit in question gather enough experience to reach next start it can get overstrengthed by 1 more point it's highly unlikely really for an AI unit to survive long enough to gain 100 experience and even if this probably wont be game breaking. Secondly and more significant the AI can't now reinforce the unit at once up to it's maximum value intended but tbh in case of rare units it may be not even that bad and can be interpreted as being more difficult to get replacements for such rare equipment.
IIRC AI using OV is common, depending on situation (AI prestige, wether there are unit slots to fill first etc). Also the AI seems to prefer to fight right away with units that have enemy contact, while I've often seen it doing OV with units that haven't.
I don't really remember witnessing it by if it's like you said then probably all the overstrengthening is happening outside my view range in the fog of war. That or i simply wasn't paying enough attention which is quite likely as well. :)
bebro
Slitherine
Slitherine
Posts: 4575
Joined: Sun Nov 19, 2006 12:50 pm

Re: Bug? AI overstrength his unit in extreme way

Post by bebro »

Yes i see the problem you have but you have to admit it's rather a rare one and handling the max strength value the different way would be causing a problem in the normal case which appear a lot more often on top of being quite illogical.
No disagreement here, yeah, it's no biggie. Didn't plan to turn it into a complaint ;) Just a bit background from the magical world of modding ;)
Uhu
Colonel - Fallschirmjäger
Colonel - Fallschirmjäger
Posts: 1457
Joined: Fri Nov 04, 2011 9:16 pm
Location: Hungary

Re: Bug? AI overstrength his unit in extreme way

Post by Uhu »

Thank guys I understand now mostly the causes for this.
Image
Image
Post Reply

Return to “Panzer Corps : Scenario Design”