home *** CD-ROM | disk | FTP | other *** search
/ Power CD-ROM!! 10 / PCD10.ISO / cheat / editrpy / editrpy.txt < prev    next >
Text File  |  1994-11-20  |  17KB  |  380 lines

  1. This program (EDITRPY) is designed to perform various editing functions
  2. on INDYCAR replay files.  This preliminary version has limited function.
  3.  
  4. It can:
  5.  
  6. * Identify each of the laps in a replay file, giving the lap time
  7.   for each lap of each car, accurate to 1/1000 second.  (In all
  8.   cases that I have observed these times have differed from the
  9.   lap times reported by INDYCAR by no more than 1/1000 second.
  10.  
  11. * Copy a lap (for a single car) from a replay file and paste it to
  12.   another (possibly new) replay file.  A lap is the sequence of
  13.   1/15 second frames starting with the first frame after a finish
  14.   line crossing and ending with the last frame before the next finish
  15.   line crossing.
  16.  
  17. * Produce a file with speed and acceleration data for a lap.
  18.   This can be imported into a spreadsheet (or other program) and
  19.   used to produce graphs of speed and/or acceleration as a function
  20.   of position along the track or as a function of time.
  21.  
  22. What's new in version 1.4
  23.  
  24. - In order to calculate correct lap speeds Editrpy needs to know
  25.   which track a replay file is for.  Normally, Editrpy determines
  26.   the track from the name of the directory containing the replay
  27.   file.  If the directory containing the replay file doesn't have
  28.   a name which matches one of Indycar's tracks directories previous
  29.   versions of Editrpy would give erroneously low lap times.  In
  30.   this version if the directory name is not one of the Indycar
  31.   tracks directories then the program asks which track the replay
  32.   is for.  If none is specified then the laps are all marked
  33.   "partial".
  34.  
  35. What's new in version 1.3
  36.  
  37. - A bug which caused a "Floating Point Error" is fixed.  This
  38.   happened if the replay file you open has a lap with exactly
  39.   one record (i.e. it is one record long).  This can happen if
  40.   you had previously cut the replay file and happened to start
  41.   it one frame before the finish line.
  42.  
  43. - The track length constants have been updated to provide a
  44.   more accurate conversion of lap time to lap speed.
  45.  
  46. What's new in version 1.2
  47.  
  48. - This version gives the car number and driver name (from the
  49.   drivers.txt file within a carset).  The previous versions only
  50.   displayed the car's index into the drivers.txt array.
  51.  
  52. - This version includes the function to produce speed and
  53.   acceleration data for a lap.
  54.  
  55. - This version can indicate that a car was damaged.  This
  56.   may be useful to verify that damage was on.
  57.  
  58. What's new in version 1.1
  59.  
  60. - The previous version had a limitation that it couldn't work with
  61.   replay files which contained more than about 18 minutes of replay.
  62.   In version 1.1, this restriction is removed.  You should be able
  63.   to work with a replay file of any length and any number of cars.
  64.  
  65. - The previous version only displayed lap times for each lap.
  66.   Version 1.1 displays both lap times and speeds.
  67.  
  68. Some limitations:
  69.  
  70. * The program cannot cut and paste sequences of laps, only single laps.
  71.   For example, if you wanted to copy two consecutive laps from a file
  72.   and add them to another file, the best you could do would be to copy
  73.   them individually.  This would superimpose those laps (they would
  74.   appear as two different cars) rather than having them run consecutively.
  75.  
  76. * Any "dirt", "smoke" or crash sounds associated with a copied lap are
  77.   not copied.  This is because there is nothing in the replay file to
  78.   identify with which car these artifacts are to be associated.  At some
  79.   later date I plan to allow copying these from a file which has only one
  80.   car as then there is no question about the source.
  81.  
  82. * The program won't run unless you have a mouse and have the mouse
  83.   driver loaded.  I've seen that several people have had a problem trying
  84.   to run the PAINTKIT program because they didn't have mouse drivers
  85.   loaded.  I plan to improve the program to allow all functions to be
  86.   performed from the keyboard, but for now you will need a mouse.
  87.  
  88. * I've noticed that in some replay files generated while using modem play
  89.   cars seem to disappear (and sometimes reappear).  EDITRPY is not very
  90.   robust when it comes to these files and sometimes fails.  You may see
  91.   a line in the middle of the screen about an "assertion" error.  If that
  92.   happens, you should play the replay file within INDYCAR to see if it
  93.   exhibits any strange behavior.  If all seems well, and you can find a
  94.   way to get me the replay file, I'll try to see if I can find out what
  95.   is wrong.  For the most part, I would avoid using replay files created
  96.   in modem play.
  97.  
  98. * I used the Borland Turbovision file dialog box when selecting file
  99.   names.  I've found this code doesn't do "what you expect".  I haven't
  100.   had the time to write my own, so for now we have to live with it.  The
  101.   problem I have with it is that once you navigate to the directory that
  102.   you want, if you type in a file name without path, the file is not
  103.   created into the directory you are currently looking at, but rather
  104.   into the "current" directory.  To get the file into the directory you
  105.   are looking at, make sure that you keep the full path in the input line
  106.   where you are typing the file name.
  107.  
  108. --------------------------------------------------------------------------
  109. To install:
  110.  
  111. Place the program EDITRPY.EXE onto your hard disk.  A convenient place
  112. may be the indycar directory itself, but it doesn't really matter where.
  113.  
  114. Here is how to use the program:
  115.  
  116. Run the program
  117. for example:
  118.  
  119. C:> editrpy
  120.  
  121. The first time it is run the program will search your hard drive(s) looking
  122. for the INDYCAR directory.  It will find it whereever it is as long as its
  123. name is "INDYCAR".  For example on my system the directory is:
  124.  
  125. E:\GAMES\INDYCAR
  126.  
  127. When it is found, the program will create a file EDITRPY.INI in the same
  128. directory in which you placed EDITRPY.EXE.  This file will identify where
  129. your INDYCAR directory was found so it won't have to search again.  If the
  130. program can't find your indycar directory (maybe because you gave it a
  131. different name) then you can edit EDITRPY.INI and add a line identifying
  132. where to find your indycar directory.  For example if you had installed
  133. Indycar into C:\MYINDY then place the following line in EDITRPY.INI:
  134.  
  135. IndyCarDirectory=C:\MYINDY
  136.  
  137. The EDITRPY.INI file also contains other information which you can
  138. specify on the Preferences pulldown menus.
  139.  
  140. ----
  141.  
  142. After the program gets started there are five pull down menus at the top
  143. of the screen "File", "Edit", "Preferences","Window" and "Help".
  144. These are used as follows:
  145.  
  146. "File"  This pull-down menu has six functions "New", "Open", "Save",
  147.         "Save As", "Analyze Lap" and "Exit".
  148.  
  149.         "New" creates a new replay file (it won't be written to disk
  150.         until you select "Save As").
  151.  
  152.         "Open" brings up a file dialog box which allows you to select a
  153.         replay file to be read into a window.
  154.  
  155.         "Save" saves an open replay file (which has been modified by "Paste",
  156.         "Delete" or "Edit Car ID")
  157.  
  158.         "Save As" brings up a file dialog box which allows you to select
  159.         a new file name for an open replay file.  You must use "Save As"
  160.         to save files created with "New".
  161.  
  162.         "Analyze Lap" creates a file which contains speed and acceleration
  163.         information for the selected lap.  The format of the file is
  164.         determined by the preferences specified on the "Preferences"
  165.         pull down menu.
  166.  
  167.         "Exit" ends the program.
  168.  
  169. "Edit"  This pull-down menu has four functions "Delete", "Copy", "Paste" and
  170.         "Edit Car ID".
  171.  
  172.         "Delete" is not implemented yet, but will eventually
  173.         allow you to delete cars and/or laps from a file.  You can get the
  174.         equivalent by creating a new file and copying all of the laps you
  175.         wouldn't have deleted.
  176.  
  177.         "Copy" makes a copy of a selected lap.  To select a lap, click
  178.         on the line which shows the lap time.  "Copy" will copy the
  179.         currently selected lap to an internal clipboard.  If there are
  180.         multiple windows on the screen, more than one of them may have
  181.         a lap selected.  The lap that is copied is the selected lap in
  182.         the current window.  The current window is the window whose frame
  183.         is highlighted.
  184.  
  185.         "Paste" copies the lap which is currently in the internal clipboard
  186.         into the selected Car.  Cars are the lines in the windows which
  187.         are titled "Car nn" or "New".  Currently the program is limited to
  188.         copying laps into the "New" car.  As above, if there are multiple
  189.         windows, the car to which the lap is added is the selected car in
  190.         the current window.  The current window is the window whose frame
  191.         is highlighted.
  192.  
  193.         "Edit Car ID" lets you change the car number associated with a
  194.         car in a replay file.  The car number is the position in the list
  195.         of cars found in the DRIVERS.TXT file in your ..\CARS\CARS93
  196.         directory.  00 is the first car, 01 is the second car, etc.
  197.         You can set each car in the replay to whatever value you want,
  198.         even making multiple cars have the same value.  This value is
  199.         used by Indycar's replay code to decide which graphic to use
  200.         for each car.
  201.  
  202. "Preferences"  This pull-down menu has two functions, "Lap Analysis" and
  203.         "CarSets".
  204.  
  205.         "Lap Analysis" allows you to set preferences for
  206.         the format of the output of the Analyze Lap function.
  207.  
  208.         "CarSets" lets you select which car set you want the car number
  209.         and driver names to come from.
  210.  
  211.         Preferences selected here are remembered in the EDITRPY.INI file.
  212.  
  213. "Window" This pull-down menu has three functions, "Next", "Zoom" and "Tile".
  214.  
  215.         "Next" sequences through the windows.  (There really isn't too much
  216.         use for this unless you have so many files open you can't find
  217.         the windows)
  218.  
  219.         "Zoom" maximizes (or minimizes) the current window.
  220.  
  221.         "Tile" causes all of the windows to be rearranged so they are all
  222.         visible with no overlaps.
  223.  
  224. "Help"  This pull-down menu currently has only an "About" selection.
  225.         Someday I plan to add some help too, but that may be a while.
  226.  
  227.         "About" only tells you who I am.  It also lets you know the
  228.         version of the EDITRPY program.
  229.  
  230.  
  231. --------------------------------------------------------------------------
  232.  
  233. Notes:
  234.  
  235. You can move the windows around by clicking on the title bar and dragging
  236. the window.  You can resize the windows by clicking on the lower right
  237. corner and dragging.  Each window you create will start in the upper left
  238. corner of the screen so you will almost surely have to drag them around
  239. to see them.
  240.  
  241. The windows have scroll bars in case you have so many laps in a window that
  242. they can't all fit on the screen (or if you have so many windows that you've
  243. had to resize them smaller).
  244.  
  245. You will notice that some laps (usually the first and last) will have the
  246. word "partial" next to them.  This means that these laps are not complete
  247. laps.  They may start at the start of the file and go to the first finish
  248. line crossing or start at the last finish line crossing and go to the end
  249. of the file.
  250.  
  251. Some laps will have the word "damage" next to them.  This means that the
  252. car has had damage in that lap (or some previous lap).  Damage may consist
  253. of flat tires or tires that fly off the car.  Unfortunately, if you make
  254. it into the pit and fix the problem (change a flat tire), the replay file
  255. continues to indicate the flat so all subsequent laps will also indicate
  256. damage.
  257.  
  258. ------------------------------------------------------------------------------
  259.  
  260. Examples of use:
  261.  
  262. Suppose you've just produced a replay of your latest practice session
  263. and want to cut out a single "hot" lap.
  264.  
  265. 1. Use the "File/Open" menu item to select the track and replay file
  266.    that you just produced.  This will bring up a window with a line
  267.    for each lap showing the lap times.
  268. 2. Click on the lap you want (it will become highlighted)
  269. 3. Use the "Edit/Copy" menu item to copy the lap to the internal clipboard.
  270. 4. Use the "File/New" menu item to create a new replay file.  This will
  271.    bring up a window with a single line in it, New
  272. 5. Click on the word New in the window just created in step 4 to select the
  273.    "new" car.
  274. 6. Use the "Edit/Paste" menu item to copy the lap from the internal
  275.    clipboard to the new car.  The window will now contain a car with that
  276.    one lap and another New car will appear.
  277. 7. Use the "File/Save As" menu item to save the new replay file to disk.
  278.  
  279. You now have a replay file with just the single "hot" lap
  280.  
  281. ------
  282.  
  283. Suppose you have several "hot" laps and you want to compare them to see
  284. why one is faster than another.
  285.  
  286. 1. Use the "File/Open" menu item to select the file(s) which contain the
  287.    laps you want to compare.  If both laps are in the same file, you only
  288.    need to open a single window.  If the two laps are in different files,
  289.    you will need to open a window for each file.
  290. 2. Use the "File/New" menu item to create a new replay file.
  291. 3. Click on one of the laps
  292. 4. Use the "Edit/Copy" menu item to copy the selected lap to the internal
  293.    clipboard.
  294. 5. Click on the New car in the .Untitled file created in step 2
  295. 6. Use the "Edit/Paste" menu item to copy the lap from the internal
  296.    clipboard to the New car in the new file
  297. 7. Repeat steps 3-6 for each of the laps you want
  298. 8. To change the car IDs click on the Car to be changed and use
  299.    the "Edit/Edit Car ID" menu item
  300. 9. Use the "File/Save As" menu item to save the new replay file to disk.
  301.  
  302. -----------
  303.  
  304. Suppose you have an "archive" replay file which contains your best laps.
  305. (This file could have been created using the procedure above)  You just
  306. run another "hot" lap and want to add it to the archive.
  307.  
  308. 1. Use the "File/Open" menu item to select the track and replay file
  309.    that you just produced.  This will bring up a window with a line
  310.    for each lap showing the lap times.
  311. 2. Click on the lap you want (it will become highlighted)
  312. 3. Use the "Edit/Copy" menu item to copy the lap to the internal clipboard.
  313. 4. Use the "File/Open" menu item to open the "archive" replay file
  314. 5. Click on the "New" car in the "archive" replay file
  315. 6. Use the "Edit/Paste" menu item to copy the lap from the internal
  316.    clipboard to the "archive" replay file
  317. 7. Use the "File/Save" menu item to save the "archive" replay file to disk.
  318.  
  319. -----------
  320.  
  321. Suppose you have a replay file of a race and it is huge because you spent
  322. a lot of time in the dirt.  (Dirt and smoke can easily be more than half
  323. of a replay file).  You can use EDITRPY to remove the dirt and smoke,
  324. leaving the rest of the information.  This can substantially reduce the
  325. size of a replay file.
  326.  
  327. 1. Use the "File/Open" menu item to select the track and replay file
  328.    that you want to modify.
  329. 2. Use the "File/Save As" menu item to save the replay file under a new
  330.    name.  This will save the original file minus the dirt, smoke and
  331.    crash sounds under the new name.
  332.  
  333. -----------
  334.  
  335. Suppose you have a replay file of a lap for which you want to produce a
  336. graph of speed vs. track position.  You can use EDITRPY to produce a
  337. comma delimited data file which can then be loaded into a spreadsheet
  338. program to produce graphs or perform other analysis.
  339.  
  340. 1. Use the "Lap Analysis" selection of the "Preferences" menu to select
  341.    the data and format you wish.
  342.  
  343.    Select the type of data you want produced.  These are:
  344.   - Time
  345.   - Distance
  346.   - Speed
  347.   - Acceleration
  348.    Each of the selected items are output at each ten foot interval along
  349.    the track.  For example, if you want to produce a speed vs. position
  350.    graph, you might select "Distance" and "Speed" then use a spreadsheet
  351.    to produce an X-Y graph.
  352.  
  353.    Select the format of the output.  There are currently two choices,
  354.    "Printable Report" and "Delimited".  Normally, you would choose the
  355.    "Delimited" format.  The "DIF" format is not implemented yet.
  356.  
  357.    Select the units.  These can be "English", "Metric" or "Mixed"
  358.  
  359. 2. Use the "File/Open" menu item to select the track and replay file
  360.    that contains the lap you wish to analyze.
  361.  
  362. 3. Click on the lap you wish to analyze.
  363.  
  364. 4. Use the "File/Analyze Lap" menu to create an output file with the
  365.    lap analysis data.
  366.  
  367. -----------
  368.  
  369.  
  370. Good luck.  As is usually the case, there are no warranties.  You use this
  371. program at your own risk.  As far as I know there are no bugs and the
  372. program does what I've described, but ...
  373.  
  374. If you have any problems, let me know at:
  375.  
  376. Compuserve      76104,1250
  377. America Online  MikeCorr
  378. Internet        mikecorr@aol.com
  379.  
  380.