home *** CD-ROM | disk | FTP | other *** search
/ Game Killer / Game_Killer.bin / 094.FINDING.DAT < prev    next >
Text File  |  1991-04-26  |  3KB  |  99 lines

  1. 'FINDING.DAT
  2. '===========
  3. 'essentials as always
  4.  
  5. INPUT,  see03.sc1
  6. OUTPUT, test
  7. DIR
  8.  
  9.  
  10. 'We've already seen some examples of FIND in Coloring and Lighting
  11. 'discussions.  Recapping we've found all stuff of a particular
  12. 'color:
  13.  
  14. FIND, COLOR, 12       
  15.  
  16. 'and we've found ALL stuff in a particular group:
  17.  
  18. FIND, ALL   
  19.  
  20. 'but there are several other finds we might want to do.
  21.  
  22. 'Sometimes we might want to find all big stuff:
  23. 'Since the range of visibility is roughly related to size of
  24. 'an element; we can use
  25.  
  26. FIND, RANGE, 64
  27.  
  28. 'where all objects (in a particular class) having a range of
  29. 'at least 64 FS units (always in FS units) (see the report file
  30. 'generated to get a listing of the ranges for each element)
  31. 'will be found.
  32.  
  33. 'For buildings we can use the height as a find criterion:
  34.  
  35. FIND, HEIGHT, 200
  36.  
  37. 'This will find every element (buildings) 200 feet high or more
  38.  
  39. 'But the trickiest (and most powerful) find is to locate a
  40. 'single specific element.  It's actually very easy:
  41.  
  42. FIND, NUMBER, 3
  43. COLOR, 12, 15, 6
  44. ROAD
  45.  
  46. 'will find and color the third road in the scenery file.
  47. 'However; the tricky part is to know that you want the
  48. 'third one!  See the discussion below.
  49.  
  50. 'OK; that's enough for this lesson.
  51. SAVE
  52. END
  53.  
  54. Discussion:  There are several ways to determine what the number of
  55. the element is that you want to change.  Let's say there is a specific
  56. polygon that you would like to handle in a special way (give it distinct
  57. day, dusk and night coloring).
  58.  
  59. You can find it's number by having kept a record during entry (the
  60. first is #1, second #2 and so forth). This is an extremely good prac-
  61. tice but not available if you are using someone else's scenery (or if
  62. you are human).
  63.  
  64. Second method is to go into the edit mode of the ASD editor and deselect
  65. all groups except the one of interest (polygons, in this case) and hit
  66. the TAB key.  You will now be at polygon #1.  TAB again for #2 and so
  67. on.  This is good for small numbers of things but... well, you know.
  68.  
  69. The third method is to investigate the report file generated by SEE
  70. during any execution.
  71.  
  72. TIP: if you want a report only, you can use SEE's EZC mode along
  73. with a /R on the command line following the path and filename:
  74.  
  75.       SEE03 C:\FS4\SCENERY.SC1 /R<enter>
  76.  
  77. This will create a report named EZC.RPT
  78.  
  79. Look through the section listing the polygons and use the positions,
  80. ranges (normally proportional to size), and colors to identify the
  81. polygon you are interested in.
  82.  
  83. Best bet is to use all three methods.
  84.  
  85. The other thing to be aware of in working with element numbers is
  86. that when you edit out an element all the later elements' numbers
  87. are decreased by 1.
  88.  
  89. SEE will normally only alter something once.  Therefore if
  90. your first set of commands changes ALL the lines to have dusk and night
  91. colors, you are not going to be able to then change all the blue lines to
  92. taxiway lights (because as far as SEE's concerned there are no longer
  93. 'any (pure) blue lines to change.  So the moral of this story is that you
  94. must do the most specific changes first before doing the general ones.
  95.  
  96. Other commands use the principle of element number along with object type:
  97. export, delete, setrange, locate.
  98.  
  99.