Page 1 of 1
Convoys don't generates PP
Posted: Sun Jan 31, 2021 4:31 pm
by Kossatx
Hi, I have no idea why convoys, once arrive to a friendly port don't generate PP. I have changed some things from POTZBLITZ MOD, but I have no idea what I could have changed to do this

Any idea about this?
Re: Swedish-German convoy don't generates PP
Posted: Sun Jan 31, 2021 5:43 pm
by Robotron
In Potzblitz convoys don't generate 10 PP per convoy strength point but a random amount of between 1 to 10 PP per convoy strength point.
Each convoy will have a different random multiplier of between 0.1 and 1, meaning if you are unlucky, a full 10 strength point convoy can only generate 10 PP which might appear like you got nothing.
This was done for balancing reasons because Entente is receiving much more convoys which would all generate 100PP in the basic game while CP, if blockaded, only has 1 convoy.
As a result Entente is swimming in PP in the basic game.
To give CP a little help the randomizer for CP convoy's PP is rolled twice and the higher value is taken.
Entente convoy randomizer is also rolled twice and the lower value is taken.
If you are VERY unlucky (chance = 1%), and I think that happened in your example, both rolls for the CP convoy were at the lowest possible value.
Re: Convoys don't generates PP
Posted: Sun Jan 31, 2021 7:11 pm
by Kossatx
I think this is not the problem, I have tested it a few times and no one convoy generates PP, neither CP or allies. But, by the way, could you say me where is POTZBLITZ randomized covoy's PP written?
Re: Convoys don't generates PP
Posted: Sun Jan 31, 2021 7:35 pm
by Robotron
I just checked V11.21 and convoy PP generation worked fine. Also the multiplayers would have complained about the problem.
I guess, the bug must be caused by something you did then.
Which version of Potzblitz is your personal mod base on? The most recent V11.21 or an earlier one?
In V11.21 the part where the randomization takes place is in
Scripts/game/game_convoys.lua in line 126 which reads:
Code: Select all
faction:ConsumeProductionPoints(-(unit.hp * factor))
change that to
Code: Select all
faction:ConsumeProductionPoints(-unit.hp)
Re: Convoys don't generates PP
Posted: Sun Jan 31, 2021 8:45 pm
by Kossatx
Oh! Thanks a lot Robotron, problem solved. I did some mistakes editing these lines
