Menu

#14 add a .bat file to .zip distribution

open
None
5
2005-03-28
2004-08-17
Anonymous
No

For the technically challenged, the jsettlers.zip file could
include a runjset.bat file that would execute all the
commands necessary, using relative addressing for jar
files, etc. This would be the "quick start" thing for folks
who don't want to run a SQL server or a networked
server.

(great job, by the way, on jsettlers)

For example, here's one I created for myself:

echo OFF
rem **************************************
rem ** File: settlers.bat
rem ** Author: Naomi Dushay nrd2@cornell.edu
rem ** Updated:
rem ** Created: 04/08/16
rem ** Desc: run java settlers
rem
*****************************************
echo ON
start /b java -jar JSettlersServer.jar 8880 10 dbUser
dbPass
start /b java -jar JSettlers.jar localhost 8880
start /b java -cp JSettlersServer.jar
soc.robot.SOCRobotClient localhost 8880 Shindy passwd
start /b java -cp JSettlersServer.jar
soc.robot.SOCRobotClient localhost 8880 Delilah passwd
start /b java -cp JSettlersServer.jar
soc.robot.SOCRobotClient localhost 8880 Scampers
passwd

Discussion

  • Marach

    Marach - 2004-09-08

    Logged In: YES
    user_id=1118075

    hehe, nice. I did similar thing myself when I first installed
    jSettlers.

     
  • Chad McHenry

    Chad McHenry - 2005-03-28
    • assigned_to: nobody --> mchenryc
     
  • Chad McHenry

    Chad McHenry - 2005-03-28

    Logged In: YES
    user_id=387451

    jsettlersd.bat and jsettlers.bat scripts have been added to
    $JSETTLERS/bin. You'll still need to start the robots
    yourself. For automatic bot starting, I'll be adding an
    ability to start bots automatically as specified in the
    server config file.

     

Log in to post a comment.