Lebatron -> RE: patch update (1/21/2008 7:29:00 PM)
|
I would like to see stacking limits too. Would it be hard to add? Only a programmer like Brian would know. But I do have an idea what I'd like to see it look like from a modder perspective. An example island from the region.txt file in its current form. REGION,253,Wake Island,PLAYER_UN,United States,TER_ROUGH MOVECOST,1 POP,0 FORT,0 CONNECT,252 SIDE,5 A possible method to give modders control over stacking limits. REGION,253,Wake Island,PLAYER_UN,United States,TER_ROUGH MOVECOST,1 POP,0 FORT,0 CONNECT,252 SIDE,5 UNIT,HEAVY AIR,a,b,c,d UNIT,TAC AIR,a,b,c,d UNIT,FIGHTER AIR,a,b,c,d UNIT,CARRIER AIR,a,b,c,d UNIT,MECHANIZED,a,b,c,d UNIT,INFANTRY,a,b,c,d UNIT,MILITIA,a,b,c,d UNIT,PARA,a,b,c,d UNIT,ARTILLERY,a,b,c,d UNIT,FLAK,a,b,c,d UNIT,SUPPLY,a,d a=number of units b=number of vets c=number of elite the a,b,c system is already in place. By adding the forth variable d, the modder can state a stacking limit here for each kind of unit. For instance, since Wake starts with no fighters, a modder could write the line UNIT,FIGHTER AIR,0,0,0,d where d would be the max number of fighters that could stack there. This method may be the easiest for Brain to add support for stacking limits. It also gives modders more exacting control over stacking limits than imposing some kind of island class structure. However the problem I see with this basic method is that if you set Wake to hold only 1 fighter what do you do about TB's or HB's. If you put a limit of 1 in their lines, then a player could stack more on the island when the intent was to only allow 1. Clearly creating a few new category lines to represent air or land limits would be more ideal, but would be more work for Brian. This is what I have in mind to address this shortcoming. REGION,253,Wake Island,PLAYER_UN,United States,TER_ROUGH MOVECOST,1 POP,0 FORT,0 AIR,a LAND,a CONNECT,252 SIDE,5 The new categories AIR and LAND would allow modders to limit stacking size in a generic way. 2 fighters, or 1 fighter 1 TB, etc but no more than 2 total if 2 was set as the variable. The first method would still be useful in conjunction with these extra lines. For instance the problem I stated above would not be an issue with supply so using the variable d could satisfy those who want to limit supply stacking on an island to say 20 like proposed. Another reason for using both methods is in some cases I may want to limit air to the kind that can use short runways. In other words allow a certain number of air excluding HB's from basing there. Not all islands in the Pacific could support HB's. Therefore in the line UNIT,HEAVY AIR,a,b,c,d one could make variable d=0 so that no HB's can stack there. Brian, if using this method forced you to go through the whole region.txt file to add the lines AIR and LAND to every region that would be a lot of extra work unless you could allow their absence to mean no limit. But if that's not possible, perhaps you could add extra variable support to the POP line. POP,0,2,2 This would mean 0 pop, 2 land unit stacking limit, 2 air unit stacking limit. But in the end I would rather have the separate lines AIR and LAND. If you need a volunteer to help go through the data files and add these extra lines I would be willing. I'm sure some others would gladly volunteer too.
|
|
|
|