ralphtricky
Posts: 6685
Joined: 7/27/2003 From: Colorado Springs Status: offline
|
Try "Opart 3.exe" -p2 -noupdate test1.sce noupdate turns off most of the graphics updating. I think you can also put sitreplog and most other options on the command-line. It doesn't exit when done, which is a drawback to automating, but please let me know if it works otherwise. Ralph quote:
ORIGINAL: MarGol A feature that I think could be very useful in scenario validation and when verifying the behaviour of the TOAW engine is an ability to run TOAW from a command line without invoking a graphical window. Let me exemplify: >"Opart 3.exe" -nographics Test1.sce would run the scenario Test1 in Elmer vs. Elmer mode from beginning to end, producing whatever output files that are set in the ini file (sitrep logs, toaw_log.txt and/or screen dumps). >"Opart 3.exe" -nographics Test1.sal would resolve all planned attacks (if any) in the save file Test1.sal and quit, producing output as above. Given these features, it is simple to write a script that has the computer run any number of replications of a whole scenario or setup situation, and then performs whatever post-processing you want. For instance, someone more skilled in image processing than I would probably be able to produce images of average forward edge of battle advance from the screen dumps generated from repeated Elmer vs Elmer runs. If VP information were included in the sitrep log, it would be easy to produce statistics for victory points as a function of turn. As an example, I have written a crude script that (assuming that the above feature exists) would work in the following manner: > TOAWbatch Test1 1000 - resolves attacks planned in the save file Test1.sal (provided it exists) 1000 times
- stores the sitrep logs and toaw_log.txt in consecutively numbered directories, Run0 through Run999
- Collects information about force 1 losses of rifle squads from all runs
- Outputs, e.g.: "Mean losses of Rifle Squad for 1st Force: 345.7 +-21.34"
_____________________________
Ralph Trickey TOAW IV Programmer Blog: http://operationalwarfare.com --- My comments are my own, and do not represent the views of any other person or entity. Nothing that I say should be construed in any way as a promise of anything.
|