Problem with convoy

Please post here for questions and discussion about modding for Strategic Command.
Post Reply
Kossatx
Posts: 97
Joined: Sun Aug 16, 2015 5:48 pm
Location: Spain

Problem with convoy

Post by Kossatx »

Hi, I have modded a convoy from Sweden to Germany with the 80% of Sweden's MPP production. Sweden has 25 MPP production, but as it isn't connected with a major power is limited to 12,5 (I hate this hard coded rule [:@]), so the 80% production should be 12,5 x 0,8 = 10, but the income is only 4MPP (in summer)... why?

Code: Select all

; Swedish supply convoys to Germany:
 {
 #NAME= Swedish Iron Ore Shipments To Germany
 #POPUP= 
 #IMAGE=
 #SOUND=
 #FLAG= 1
 #TYPE= 2
 #AI= 0
 #LEVEL= 0
 #GV= 1[1,100]
 #LINK= 0[0]
 #SENDER_ID= 103
 #RECIPIENT_ID= 45
 #SENDER_ID_TRIGGER= 0
 #RECIPIENT_ID_TRIGGER= 100
 #PERCENTAGE= 80
 #MAX_PERCENTAGE= 80
 #SPRING_REDUCTION= 90
 #SUMMER_REDUCTION= 100
 #FALL_REDUCTION= 90
 #WINTER_REDUCTION= 50
 #SOURCE_PORT= 147,16
 #DESTINATION_PORT= 142,26
 #WAYPOINT= 146,19
 }
User avatar
BillRunacre
Posts: 6890
Joined: Mon Jul 22, 2013 2:57 pm
Contact:

RE: Problem with convoy

Post by BillRunacre »

I'm not sure why that might be offhand, but what I generally do is decide on the number of MPPs I want Sweden to send, and then change the following two fields until they provide the right amount in a test:

#PERCENTAGE= 80
#MAX_PERCENTAGE= 80

One thing you can also do is to increase the economic value of Swedish resources. To do this go to Campaign -> Edit Country Data -> Edit Resource Data

Select Sweden and then adjust the MPP value of some of its resources.
Follow us on Twitter: https://twitter.com/FurySoftware

We're also on Facebook! https://www.facebook.com/FurySoftware/
Kossatx
Posts: 97
Joined: Sun Aug 16, 2015 5:48 pm
Location: Spain

RE: Problem with convoy

Post by Kossatx »

Thanks for your help BillRunacre [:)] I don't like differences in economic value of the resources between countries, because generate problems when a country invades other. I have found the problem with the convoy, the collection of MPP is each turn (two weeks) but I normalized in the editor this collection for a period of four weeks. So each turn Sweden generates 12,5 MPP, not 25. But with these numbers the collection should be of 5 MPP each turn... not 4. Now the difference is only 1 [8|]
User avatar
BillRunacre
Posts: 6890
Joined: Mon Jul 22, 2013 2:57 pm
Contact:

RE: Problem with convoy

Post by BillRunacre »

Ah, good to hear you got it sorted as I must admit it had me a bit confused too! [:)]
Follow us on Twitter: https://twitter.com/FurySoftware

We're also on Facebook! https://www.facebook.com/FurySoftware/
Kossatx
Posts: 97
Joined: Sun Aug 16, 2015 5:48 pm
Location: Spain

RE: Problem with convoy

Post by Kossatx »

Does the engine compute fractions of entire numbers? If it don't compute them, then the problem is solved: 12,5 will be 12... 12 x 0,8 = 9,6... 9/2 = 4,5... if the engine only computes entire numbers the result would be 4, the same result when I play the game.
Post Reply

Return to “Scenario Design and Modding”