Page 1 of 1

Ground supply bug - Landsverk II

Posted: Sat Aug 06, 2016 9:22 am
by Mojko
I have found a very serious bug. In the Finnish campaign (Someri scenario). Landsverk II unit becomes available in this scenario. It's AA / AT gun. The problem is that it has 4 supply when in AA mode and 3 supply in 3 AT mode. Interesting feature of this misconfiguration is the ability to permanently change total ground supply.

If you want to permanently gain 1 supply do this:

- deploy in AA mode
- switch to AT mode
- undeploy unit

You can add arbitrary amount of supply.

If you want to permanently lose 1 supply do this:

- deploy in AT mode
- switch to AA mode
- undeploy unit

You can lose arbitrary amount of supply.

Cool bug, no?

Image

Game version: 2.6.7c / Steam

Re: Ground supply bug - Landsverk II

Posted: Thu Aug 11, 2016 4:02 pm
by Uhu
Of course it's not our job to repair, but it can be easily fix in the units.csv file. I'm already modifiing it, changing the lot of unhistorical availability data.
If you open it with for example Notepad plus, there are the line for the AT mode of the Landsverk II:
Landsverk_AntiII_AT;3087;finland,;land;anti_tank;Landsverk_AntiII_AT 0 0,;Landsverk_AntiII_AT;;;alhalftrack;rotalhtracks;at_37mm_02_case;;;;track;8/5/1942;;;80;3;;4;1;1;;100;;4;;;;;;;;;anti_air:Landsverk_AntiII_AA,;;;mechanical;mechanical;13-9;7-10;;;;;;10;8;10;10;10;;;rmPurchase,slowRepair,lightTreaded,
The highlighted number has to changed to 4.
Mojko wrote:I have found a very serious bug. In the Finnish campaign (Someri scenario). Landsverk II unit becomes available in this scenario. It's AA / AT gun. The problem is that it has 4 supply when in AA mode and 3 supply in 3 AT mode. Interesting feature of this misconfiguration is the ability to permanently change total ground supply.

If you want to permanently gain 1 supply do this:

- deploy in AA mode
- switch to AT mode
- undeploy unit

You can add arbitrary amount of supply.

If you want to permanently lose 1 supply do this:

- deploy in AT mode
- switch to AA mode
- undeploy unit

You can lose arbitrary amount of supply.

Cool bug, no?

Image

Game version: 2.6.7c / Steam

Re: Ground supply bug - Landsverk II

Posted: Fri Aug 12, 2016 11:38 am
by Erik2
If you use a spreadsheet to open the units.csv file you get the benefit of label headers, it is easier to spot bugs and editing is somewhat safer.

I use OpenOffice since my Office 365-Excel won't open the file properly formatted.

Re: Ground supply bug - Landsverk II

Posted: Fri Aug 12, 2016 5:35 pm
by Uhu
I used it too, but it saves somehow bad, because after that, the game cannot read the file. So I just look the data in it.
Erik wrote:If you use a spreadsheet to open the units.csv file you get the benefit of label headers, it is easier to spot bugs and editing is somewhat safer.

I use OpenOffice since my Office 365-Excel won't open the file properly formatted.

Re: Ground supply bug - Landsverk II

Posted: Fri Aug 12, 2016 6:43 pm
by Erik2
You made sure you saved the file using the exact same filename?
I have not had any problem with saving, but I haven't tested this since v2.48.

Re: Ground supply bug - Landsverk II

Posted: Fri Aug 12, 2016 6:52 pm
by Uhu
It seems to working now. I'm not familiar, not used many times Open Office, so experience with it's using has to be gathered. :)
Erik wrote:You made sure you saved the file using the exact same filename?
I have not had any problem with saving, but I haven't tested this since v2.48.