Convoys don't generates PP

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

Moderators: Slitherine Core, The Lordz

Post Reply
Kossatx
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 241
Joined: Wed Nov 27, 2013 3:27 pm

Convoys don't generates PP

Post 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?
Robotron
Brigadier-General - Elite Grenadier
Brigadier-General - Elite Grenadier
Posts: 2151
Joined: Tue Nov 23, 2010 3:35 pm

Re: Swedish-German convoy don't generates PP

Post 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.
Image
Slitherine's Commander the Great War - Director's Cut: POTZBLITZ mod!
FIND IT HERE: http://www.slitherine.com/forum/viewtopic.php?f=218&t=77884&p=662610#p662610
Kossatx
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 241
Joined: Wed Nov 27, 2013 3:27 pm

Re: Convoys don't generates PP

Post 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?
Robotron
Brigadier-General - Elite Grenadier
Brigadier-General - Elite Grenadier
Posts: 2151
Joined: Tue Nov 23, 2010 3:35 pm

Re: Convoys don't generates PP

Post 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)
Image
Slitherine's Commander the Great War - Director's Cut: POTZBLITZ mod!
FIND IT HERE: http://www.slitherine.com/forum/viewtopic.php?f=218&t=77884&p=662610#p662610
Kossatx
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 241
Joined: Wed Nov 27, 2013 3:27 pm

Re: Convoys don't generates PP

Post by Kossatx »

Oh! Thanks a lot Robotron, problem solved. I did some mistakes editing these lines :wink:
Post Reply

Return to “Commander the Great War : Mods & Scenario Design”