Page 1 of 1

30,000 supplies required - solved

Posted: Wed Sep 21, 2005 7:17 pm
by Captain Cruft
I have worked out what makes the West Coast ports require 30,000 supplies. It is not for once a hard-wired slot issue.

They are all BASEs attached to West Coast (slot 100) or Canada Command (slot 134).

Code: Select all

 if (loc.type == BASE && (loc.hq == WEST_COAST || loc.hq == CANADA_COMMAND)) {
     loc.supplies_required = 30000;
 }
 else {
     loc.supplies_required = mystical_formula(loc);
 }
 
Change the HQ or change them to AFs and the supplies required value goes back to normal.

RE: 30,000 supplies required - solved

Posted: Wed Sep 21, 2005 7:20 pm
by DuckofTindalos
Hmm, I know this is kinda long term, but don't you think you'll have to make the CONUS command(s) restricted? You'll have to have some, since you're using the WitP engine...

RE: 30,000 supplies required - solved

Posted: Wed Sep 21, 2005 7:24 pm
by Captain Cruft
ORIGINAL: Terminus

Hmm, I know this is kinda long term, but don't you think you'll have to make the CONUS command(s) restricted? You'll have to have some, since you're using the WitP engine...

Sorry I don't understand what you're on about there.

The 30,000 supplies required thing was being puzzled about by Lemurs! and others a while ago.

RE: 30,000 supplies required - solved

Posted: Wed Sep 21, 2005 7:32 pm
by DuckofTindalos
Hmm, I probably don't either... I interpreted your earlier post as saying that the 30,000 supplies minimum was because the bases were attached to restricted commands, and since you're modding under the WitP engine, you can't avoid having the restricted commands (the damned things).

Methinks I'm babbling. Been a long day at school...

RE: 30,000 supplies required - solved

Posted: Wed Sep 21, 2005 7:42 pm
by Bradley7735
Good Catch, Captain.

It looks like another undocumented feature.

RE: 30,000 supplies required - solved

Posted: Wed Sep 21, 2005 7:57 pm
by Captain Cruft
Yep. I guess the reason for it is so that loads of supplies automatically get sucked down to the ports from the United States.

I may find a use for the feature in my mod, not sure yet ...

Another thing I found was how to make bases require garrison units. Their HQ must be of Chinese nationality, nothing else. That has potential too.

RE: 30,000 supplies required - solved

Posted: Wed Sep 21, 2005 8:09 pm
by Bradley7735
Ok, so the supplies required is 30k+, but do you know if the base actually uses 30k+ supplies per month? I assumed my base was sucking up and USING 30k supplies per month.

RE: 30,000 supplies required - solved

Posted: Wed Sep 21, 2005 8:14 pm
by Captain Cruft
No, 30,000 is not being consumed in general. Of course if there are enough units there it's possible ...

I do not believe that the "supplies required" figure ever represents actual supply consumption. How can the actual number of future air missions be known for example? It is used in determining no. of planes launched in various mission types and for overland supply movements.

How exactly the number is derived is one of life's mysteries :)

RE: 30,000 supplies required - solved

Posted: Wed Sep 21, 2005 9:26 pm
by Bodhi
ORIGINAL: Captain Cruft

Code: Select all

 if (loc.type == BASE && (loc.hq == WEST_COAST || loc.hq == CANADA_COMMAND)) {
     loc.supplies_required = 30000;
 }
 else {
     loc.supplies_required = mystical_formula(loc);
 }
 

Could you post the rest of the WitP source while you're at it. Thanks. [:D]

RE: 30,000 supplies required - solved

Posted: Wed Sep 21, 2005 9:28 pm
by DuckofTindalos
Oh yeah... I mean, how many posts could that possibly take?[8|]

RE: 30,000 supplies required - solved

Posted: Wed Sep 21, 2005 9:33 pm
by Captain Cruft
ORIGINAL: Bodhi

ORIGINAL: Captain Cruft

Code: Select all

 if (loc.type == BASE && (loc.hq == WEST_COAST || loc.hq == CANADA_COMMAND)) {
     loc.supplies_required = 30000;
 }
 else {
     loc.supplies_required = mystical_formula(loc);
 }
 

Could you post the rest of the WitP source while you're at it. Thanks. [:D]

ROFL :) Did you spot the "deliberate" mistake BTW?

RE: 30,000 supplies required - solved

Posted: Thu Sep 22, 2005 2:46 am
by michaelm75au
... plus the LCUs at the base supply needs.[:D]

Michael