[Release] edited starter.bat frm sinems

Newbie Spellweaver
Joined
Nov 14, 2008
Messages
20
Reaction score
0
Well i was bored so I edited the STARTER.bat from SineMS v3.0.3. Sorry if its useless but i was really bored because i cant solve a problem with my server, blah blah.(if you wana knw wtf is rong with my svr, click here) ok back to the topic. i made a newer version of STARTER.bat that makes a new "launch_XXX.bat" if you have a missing one. save is as a .bat for it to work.
EDIT: You can chng "MithMS" to you own ms name.
Code:
@echo off
rem This is taken from SineMS v3.0.3 and then edited. Thanks for using it!
set a=0
set servername=MithMS
title %servername%: Inactive
color 1b

rem ----------------------------WORLD----------------------------
:ifexistworld
if exist launch_world.bat goto :ifexistlogin

:missingworld
echo Error:
echo "launch_world.bat" is missing!
echo Writing "launch_world.bat"...
echo.@echo off >> launch_world.bat
echo.TITLE %servername% - Channel Server >> launch_world.bat
echo.COLOR 3b >> launch_world.bat
echo.set CLASSPATH=.;dist\odinms.jar;dist\mina-core.jar;dist\slf4j-api.jar;dist\slf4j-jdk14.jar;dist\mysql-connector-java-bin.jar >> launch_world.bat
echo.java -Xmx600m -Dnet.sf.odinms.recvops=recvops.properties -Dnet.sf.odinms.sendops=sendops.properties -Dnet.sf.odinms.wzpath=wz\ -Dnet.sf.odinms.listwz=true -Djavax.net.ssl.keyStore=world.keystore -Djavax.net.ssl.keyStorePassword=passwd -Djavax.net.ssl.trustStore=world.truststore -Djavax.net.ssl.trustStorePassword=passwd net.sf.odinms.net.world.WorldServer >> launch_world.bat 
echo.pause >> launch_world.bat

rem ----------------------------LOGIN----------------------------
:ifexistlogin
echo launch_world.bat found.
if exist launch_login.bat goto :ifexistchannel

:missinglogin
echo Error:
echo "launch_login.bat" is missing!
echo Writing "launch_login.bat"...
echo.@echo off >> launch_login.bat
echo.TITLE %servername% - Channel Server >> launch_login.bat
echo.COLOR 3b >> launch_login.bat
echo.set CLASSPATH=.;dist\odinms.jar;dist\mina-core.jar;dist\slf4j-api.jar;dist\slf4j-jdk14.jar;dist\mysql-connector-java-bin.jar >> launch_login.bat
echo.java -Xmx600m -Dnet.sf.odinms.recvops=recvops.properties -Dnet.sf.odinms.sendops=sendops.properties -Dnet.sf.odinms.wzpath=wz\ -Dnet.sf.odinms.login.config=login.properties -Dnet.sf.odinms.listwz=true -Djavax.net.ssl.keyStore=login.keystore -Djavax.net.ssl.keyStorePassword=passwd -Djavax.net.ssl.trustStore=login.truststore -Djavax.net.ssl.trustStorePassword=passwd net.sf.odinms.net.login.LoginServer >> launch_login.bat 
echo.pause >> launch_login.bat

rem ----------------------------CHANNEL----------------------------
:ifexistchannel
echo launch_login.bat found.
if exist launch_channel.bat goto :clear

:missingchannel
echo Error:
echo "launch_channel.bat" is missing!
echo Writing "launch_channel.bat"...
echo.@echo off >> launch_channel.bat
echo.TITLE %servername% - Channel Server >> launch_channel.bat
echo.COLOR 3b >> launch_channel.bat
echo.set CLASSPATH=.;dist\odinms.jar;dist\mina-core.jar;dist\slf4j-api.jar;dist\slf4j-jdk14.jar;dist\mysql-connector-java-bin.jar >> launch_channel.bat
echo.java -Xmx600m -Dnet.sf.odinms.recvops=recvops.properties -Dnet.sf.odinms.sendops=sendops.properties -Dnet.sf.odinms.wzpath=wz\ -Dnet.sf.odinms.channel.config=channel.properties -Dnet.sf.odinms.listwz=true -Djavax.net.ssl.keyStore=channel.keystore -Djavax.net.ssl.keyStorePassword=passwd -Djavax.net.ssl.trustStore=channel.truststore -Djavax.net.ssl.trustStorePassword=passwd net.sf.odinms.net.channel.ChannelServer >> launch_channel.bat
echo.pause >> launch_channel.bat

rem ----------------------------ALLOW----------------------------
:clear
cls
echo %servername% v0.4 Server Launcher
echo.
echo Type "activate" launch the server:
echo ---------
echo.

:command
set /p s="Enter the command: "
if "%s%"=="activate" goto :start
echo Incorrect command!
echo.
goto :command

rem ----------------------------START----------------------------
:start
if "%a%"=="1" (
echo %servername% is already active!
echo.
goto :command
)
color 4c
title %servername% - Activating 0/3
start /b launch_world.bat
title %servername% - Activating 1/3
ping localhost -w 100 >nul
start /b launch_login.bat
title %servername% - Activating 2/3
ping localhost -w 100 >nul
start /b launch_channel.bat
title %servername% - Activating 3/3
ping localhost -w 100 >nul
color 2a
title %servername% - Fully Active
set a=1
echo.
goto :command
 
dood if ur rooting 4 this one... i got a exe that has this function and
shutdown, restart, update, clear, switch, backup, restore, maplepcap, mbean, and update. and its ALL IN ONE FILE.
this is in my repack.
and the server dont need more file than, script folder, dist folder, starter.exe, login, channel, world.props (no channel/login/world bats!!),db. isn't that uber cool?
editted... made it u dont need 3 more files.
 
dood if ur rooting 4 this one... i got a exe that has this function and
shutdown, restart, update, clear, switch, backup, restore, maplepcap, mbean, and update. and its ALL IN ONE FILE.
this is in my repack.
and the server dont need more file than, script folder, dist folder, starter.exe, login, channel, world.props (no channel/login/world bats!!),db, logging, sendops, recvops. isn't that uber cool?

lol... thats a old release starters are simple and they arent really that important
 
Back