SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
05-23-06, 10:10 PM | #1 |
Watch
Join Date: Mar 2005
Posts: 28
Downloads: 0
Uploads: 0
|
UDF Question
Functionally, is this:
[SENSOR2] Type = RADAR #if between(19420201,date,19420831) System = RadarUS_SC1 #endif #if between(19420901,date,19460101) System = RadarUS_SC2 #endif the same as this: #if between(19420201,date,19420831) [SENSOR2] Type = RADAR System = RadarUS_SC1 #endif #if between(19420901,date,19460101) [SENSOR2] Type = RADAR System = RadarUS_SC2 #endif ?
__________________
Darkfold (formerly Captain Beefheart) |
05-25-06, 03:07 PM | #2 |
Pacific Aces Dev Team
|
Yes. Since the lack of, say, a sensor 2 before a sensor 3, will be ignored by the game, the effect is the same (It will jump to the next number in order)
__________________
One day I will return to sea ... |
05-27-06, 10:34 PM | #3 |
Watch
Join Date: Mar 2005
Posts: 28
Downloads: 0
Uploads: 0
|
Good. I see arranging Sensors and Weapons with two or three consecutive date ranges - i.e., one type of RADAR replacing another - using the first method as being better because it takes up less room (smaller file), and is easier to understand because it's easier to deal mentally with one Sensor or Weapon at a time and easier to see the date ranges.
I'm going through all the UDFs and making them all consistent. Anal-retentive? Who, me? Nope, just an old technical writer who likes everything to look the same. All right, maybe I'm just a little bit anal-retentive.
__________________
Darkfold (formerly Captain Beefheart) |
|
|