30,000 supplies required - solved

Please post here for questions and discussion about scenario design and the game editor for WITP.

Moderators: wdolson, Don Bowen, mogami

Post Reply
User avatar
Captain Cruft
Posts: 3741
Joined: Wed Mar 17, 2004 12:49 pm
Location: England

30,000 supplies required - solved

Post 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.
User avatar
DuckofTindalos
Posts: 39781
Joined: Fri Apr 22, 2005 11:53 pm
Location: Denmark

RE: 30,000 supplies required - solved

Post 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...
We are all dreams of the Giant Space Butterfly.
User avatar
Captain Cruft
Posts: 3741
Joined: Wed Mar 17, 2004 12:49 pm
Location: England

RE: 30,000 supplies required - solved

Post 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.
User avatar
DuckofTindalos
Posts: 39781
Joined: Fri Apr 22, 2005 11:53 pm
Location: Denmark

RE: 30,000 supplies required - solved

Post 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...
We are all dreams of the Giant Space Butterfly.
User avatar
Bradley7735
Posts: 2073
Joined: Mon Jul 12, 2004 8:51 pm

RE: 30,000 supplies required - solved

Post by Bradley7735 »

Good Catch, Captain.

It looks like another undocumented feature.
The older I get, the better I was.
User avatar
Captain Cruft
Posts: 3741
Joined: Wed Mar 17, 2004 12:49 pm
Location: England

RE: 30,000 supplies required - solved

Post 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.
User avatar
Bradley7735
Posts: 2073
Joined: Mon Jul 12, 2004 8:51 pm

RE: 30,000 supplies required - solved

Post 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.
The older I get, the better I was.
User avatar
Captain Cruft
Posts: 3741
Joined: Wed Mar 17, 2004 12:49 pm
Location: England

RE: 30,000 supplies required - solved

Post 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 :)
User avatar
Bodhi
Posts: 1267
Joined: Tue Aug 26, 2003 1:36 am
Location: Japan

RE: 30,000 supplies required - solved

Post 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]
Bodhi
User avatar
DuckofTindalos
Posts: 39781
Joined: Fri Apr 22, 2005 11:53 pm
Location: Denmark

RE: 30,000 supplies required - solved

Post by DuckofTindalos »

Oh yeah... I mean, how many posts could that possibly take?[8|]
We are all dreams of the Giant Space Butterfly.
User avatar
Captain Cruft
Posts: 3741
Joined: Wed Mar 17, 2004 12:49 pm
Location: England

RE: 30,000 supplies required - solved

Post 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?
User avatar
michaelm75au
Posts: 12463
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

RE: 30,000 supplies required - solved

Post by michaelm75au »

... plus the LCUs at the base supply needs.[:D]

Michael
Michael
Post Reply

Return to “Scenario Design”