home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 13
/
mediashare_13.zip
/
mediashare_13
/
ZIPPED
/
GAMES
/
PLANMAP2.ZIP
/
MSIM.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-01-10
|
3KB
|
179 lines
@ECHO OFF
REM PlanMap II Multi-ship battle multi simulation batch file.
REM A.M. van den Bos, January 1994. Version 2.02.
IF EXIST PLANETS.EXE GOTO LABEL1
ECHO Error: The default directory must be your VGA Planets directory.
PAUSE
GOTO EXIT
:LABEL1
IF EXIST sim\base\GEN.HST GOTO LABEL2
ECHO PlanMap II Battle Simulation
ECHO:
ECHO This batch file must be runned from MS Windows and requires MS DOS 6.
ECHO Simulation directories SIM and SIM\BASE will be created.
ECHO MASTER.EXE will be runned to setup the SIM\BASE directory.
ECHO Select 'wandering tribes' and the default races.
PAUSE
MD SIM
MD SIM\BASE
ECHO y | DEL SIM\BASE >NUL
MASTER SIM\BASE
:LABEL2
ECHO y | DEL SIM >NUL
DEL MSIM.LOG >NUL
CLS
XCOPY SIM\BASE SIM >NUL
ECHO PlanMap II Battle Simulation
ECHO:
ECHO Press Alt-TAB to switch to MS Windows. Run PlanMap, set the HOST-directory to
ECHO SIM and enter the PlanMap HOST-mode. Select and save the desired ships and
ECHO return to this bath file (Alt-TAB). Be aware of the friendly codes, the IDs
ECHO and race advantages. Be sure about the HOST version and the HOST options.
ECHO Remove ships that don't participate.
ECHO:
PAUSE
ECHO:
ECHO Running 100 simulations, please wait.
REM Run 100 simulations
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
ECHO 10
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
ECHO 20
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
ECHO 30
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
ECHO 40
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
ECHO 50
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
ECHO 60
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
ECHO 70
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
ECHO 80
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
ECHO 90
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
CALL MSIM0
ECHO 100
ECHO Sorting MSIM.LOG ....
SORT <MSIM.LOG >MSIM.TMP
IF ERRORLEVEL 1 GOTO SORTERROR
DEL MSIM.LOG >NUL
REN MSIM.TMP MSIM.LOG >NUL
:SORTERROR
ECHO:
ECHO:
ECHO 100 simulations have been performed. Each line of file MSIM.BAT lists the
ECHO the remaining ships after the battle. Use DOS command FIND /C "IDn" MSIM.LOG
ECHO to display the chance that ship with ID number n survives.
ECHO:
PAUSE
:EXIT