.bat file for running ns2

BJHBnade_spammerBJHBnade_spammer Join Date: 2005-02-25 Member: 42431Members
can someone write a bat file that can be used to run ns2 and that will keep it running if it crashes?

something with the command map ns2_dm2
so it runs right away with out having to select options

something with redundancy or just to run ns2

Comments

  • rsdrsd Join Date: 2003-02-11 Member: 13405Members
    edited April 2010
    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->@echo off
    cls
    echo Launching NS2 crash-free
    title NS2 Crash Spotter
    :ns2
    echo (%time%) NS2 started.
    start /wait NS2.exe /game ns2lua
    echo (%time%) WARNING: NS2 closed or crashed, restarting.
    goto ns2<!--c2--></div><!--ec2-->

    Put this into ns2.bat or whatever in your ns2 folder :)
Sign In or Register to comment.