home *** CD-ROM | disk | FTP | other *** search
/ Media Share 13 / mediashare_13.zip / mediashare_13 / ZIPPED / GAMES / PLANMAP2.ZIP / SIM.BAT < prev    next >
DOS Batch File  |  1994-01-03  |  2KB  |  62 lines

  1. @ECHO OFF
  2. REM PlanMap II Multi-ship battle simulation batch file.
  3. REM A.M. van den Bos, January 1994. Version 2.02.
  4.  
  5. IF EXIST PLANETS.EXE GOTO LABEL1
  6. ECHO Error: The default directory must be your VGA Planets directory.
  7. PAUSE
  8. GOTO EXIT
  9.  
  10. :LABEL1
  11. IF EXIST sim\base\GEN.HST GOTO LABEL2
  12. ECHO                        PlanMap II Battle Simulation
  13. ECHO:
  14. ECHO This batch file must be runned from MS Windows and requires MS DOS 6.
  15. ECHO Simulation directories SIM and SIM\BASE will be created.
  16. ECHO MASTER.EXE will be runned to setup the SIM\BASE directory.
  17. ECHO Select 'wandering tribes' and the default races.
  18. PAUSE
  19. MD SIM
  20. MD SIM\BASE
  21. ECHO y | DEL SIM\BASE >NUL
  22. MASTER SIM\BASE
  23. GOTO LABEL2
  24.  
  25. :REPEAT
  26. ECHO y | DEL SIM >NUL
  27. XCopy SIM\BASE SIM >NUL
  28. Copy  SIM\BASE\SHIP.TMP SIM\SHIP.HST >NUL
  29. ECHO:
  30. GOTO LABEL3
  31.  
  32. :LABEL2
  33. ECHO y | DEL SIM >NUL
  34. CLS
  35. XCOPY SIM\BASE SIM >NUL
  36. ECHO                        PlanMap II Battle Simulation
  37. ECHO:
  38. ECHO Press Alt-TAB to switch to MS Windows. Run PlanMap, set the HOST-directory to
  39. ECHO SIM and enter the PlanMap HOST-mode. Select and save the desired ships and
  40. ECHO return to this bath file (Alt-TAB). Be aware of the friendly codes, IDs and
  41. ECHO race advantages. Be sure about the HOST version and the HOST options.
  42. ECHO Remove ships that don't participate in the battle.
  43. ECHO:
  44. PAUSE
  45. ECHO:
  46. Copy SIM\SHIP.HST SIM\BASE\SHIP.TMP >NUL
  47.  
  48. :LABEL3
  49. ECHO Running HOST.EXE .......
  50. HOST SIM >NUL
  51. ECHO Unpacking result files .......
  52. UNPACK  SIM >NUL
  53. PLANETS SIM
  54. CLS
  55.  
  56. CHOICE /C:RYN "Another simulation (Y/N) or repeat simulation (R) "
  57. IF ERRORLEVEL 3 GOTO EXIT
  58. IF ERRORLEVEL 2 GOTO LABEL2
  59. IF ERRORLEVEL 1 GOTO REPEAT
  60.  
  61. :EXIT
  62.