.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
  #1  
Old May 2nd, 2014, 02:44 AM

gorgias96 gorgias96 is offline
Private
 
Join Date: Nov 2011
Posts: 9
Thanks: 1
Thanked 1 Time in 1 Post
gorgias96 is on a distinguished road
Default I noticed a weird thing...

Well, when i play the long campaign with any country, in some battles the cost of AI units is the half.

No every battle, only some ones of them.

I looked for the reason for that. And i found that when the IA buy first place "general support artillery" (50% cost) EVERY unit (infantry or armour) it buys after that costs the half too!!!

So the IA buys a lot of cheaper and deploy the double of units.

Anybody did notice this too? Great bug maybe?

I am 100% secure this is true. I have seen it, one and another time...

Sorry for my poor english...
Reply With Quote
The Following User Says Thank You to gorgias96 For This Useful Post:
  #2  
Old May 2nd, 2014, 06:57 AM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,957
Thanks: 465
Thanked 1,899 Times in 1,237 Posts
Mobhack is on a distinguished road
Default Re: I noticed a weird thing...

Something to be investigated, it seems. (Its probably not turning the flag off after the arty buy?).

BTW - which nation, and battle type and date would be helpful to know.

Andy
Reply With Quote
  #3  
Old May 2nd, 2014, 08:46 AM
DRG's Avatar

DRG DRG is offline
Shrapnel Fanatic
 
Join Date: Mar 2005
Location: GWN
Posts: 12,495
Thanks: 3,966
Thanked 5,704 Times in 2,815 Posts
DRG will become famous soon enough
Default Re: I noticed a weird thing...

If you could set a battle up that shows this and post it here that would help a lot ...........even the information on what nation is likely to do this more than others would be helpful

Don
Reply With Quote
  #4  
Old May 2nd, 2014, 09:44 AM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,957
Thanks: 465
Thanked 1,899 Times in 1,237 Posts
Mobhack is on a distinguished road
Default Re: I noticed a weird thing...

Yes - I'd like to know which side was the AI in this case.

In WW2 each nation has its own purchasing routine hard-coded, so it looks likely I messed up one (muggins forgot to switch off the variable in the arty buy section?).

Knowing who it was thus saves me poring through umpteen individual purchase routines...

Andy

NB - I'll assume that you did not have the AI points multiplier changed from the default 100%. IIRC - that uses full points value and not a ratio of the AI cost. So it shouldn't matter here.
Reply With Quote
  #5  
Old May 2nd, 2014, 10:21 AM

gorgias96 gorgias96 is offline
Private
 
Join Date: Nov 2011
Posts: 9
Thanks: 1
Thanked 1 Time in 1 Post
gorgias96 is on a distinguished road
Default Re: I noticed a weird thing...

Here i uploaded a savegame and i "traslated" it to scenario mode so u can use the editor and to see i mean.

The problem is with US army but i have seen it before with indians in Burma and with URSS and a lot of other countries.

Thx.
Attached Files
File Type: zip save&scen.zip (1.02 MB, 164 views)
Reply With Quote
  #6  
Old May 2nd, 2014, 10:48 AM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,957
Thanks: 465
Thanked 1,899 Times in 1,237 Posts
Mobhack is on a distinguished road
Default Re: I noticed a weird thing...

Ok - I will have a look at that whenever I can find some time.

Andy
Reply With Quote
  #7  
Old May 26th, 2014, 08:08 AM

gorgias96 gorgias96 is offline
Private
 
Join Date: Nov 2011
Posts: 9
Thanks: 1
Thanked 1 Time in 1 Post
gorgias96 is on a distinguished road
Default Re: I noticed a weird thing...

Hi again.

I have seen this "bug" in winSPMBT too.

If the AI buys G/S artillery is first time, every unit bought after that, only cost half.

Thx.

EDIT.- Every nation, every time, some battles.
Reply With Quote
  #8  
Old May 30th, 2014, 01:46 PM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,957
Thanks: 465
Thanked 1,899 Times in 1,237 Posts
Mobhack is on a distinguished road
Default Re: I noticed a weird thing...

I have tried this in both MBT and WW2 (using your opponent pair of USA v Japan in 2/42 for the latter).

In over 100 test purchases, this problem has not appeared at all. This was using the battle generator of course, I tried assaults, advances and meeting engagements for variety.

It's definitely borked, as the USA has on-map mortars etc in General Support (only off-map arty can be so).

However, the campaign save is useless for debugging since it's at a point after the AI purchase - do you have a save prior to the game purchase?. (but there is no difference in the AI buy routines between a campaign and a generated battle - me scratching head here! )

Andy
Reply With Quote
  #9  
Old May 30th, 2014, 02:14 PM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,957
Thanks: 465
Thanked 1,899 Times in 1,237 Posts
Mobhack is on a distinguished road
Default Re: I noticed a weird thing...

Aha! - I got the little insect!

Your last purchase was a general support battery.

That left a global flag set - which then carried over to the AI purchase routines which misbehaved. Code was not clearing that properly between players (?). I'll squash that bug for the next release.

Meanwhile - the workaround is to ensure that the artillery mode is set to under command at the end of your purchasing, should you have bought D/S or G/S mode arty yourself.

NB (edit) - further testing, and it will only apply to auto-bought AI forces - there is protection in setting the artillery type variables in the purchase screen, so if you do this a human player (or the AI if you are buying for it) will only get the HQ at reduced cost, as the initialisation of the purchase screen ensures the globals are set correctly. The HQ is computer-bought before then autonagically though.

Last edited by Mobhack; May 30th, 2014 at 02:27 PM..
Reply With Quote
The Following User Says Thank You to Mobhack For This Useful Post:
  #10  
Old June 9th, 2014, 09:29 AM

gorgias96 gorgias96 is offline
Private
 
Join Date: Nov 2011
Posts: 9
Thanks: 1
Thanked 1 Time in 1 Post
gorgias96 is on a distinguished road
Default Re: I noticed a weird thing...

OK thx A LOT man.....
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 03:39 AM.


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