Gxz Posted February 20, 2010 Share Posted February 20, 2010 Hello guys, there is a code when u edit gs.bat and when it goes down it starts again, anyone can tell me that code? Link to comment Share on other sites More sharing options...
0 down Posted February 20, 2010 Share Posted February 20, 2010 Well try to find out more at Shutdown.java System.exit(0) <-- shutdown System.exit(2) <-- restart Combine it :P Link to comment Share on other sites More sharing options...
0 Gxz Posted February 20, 2010 Author Share Posted February 20, 2010 Well try to find out more at Shutdown.java System.exit(0) <-- shutdown System.exit(2) <-- restart Combine it :P nop there was smt in startgameserver.bat that if gs goes down it starts again Link to comment Share on other sites More sharing options...
0 LifeOwner Posted February 20, 2010 Share Posted February 20, 2010 talk sure what you want for help you... you want code for the system? for the database? talk more info if you have.. Link to comment Share on other sites More sharing options...
0 Gxz Posted February 21, 2010 Author Share Posted February 21, 2010 talk sure what you want for help you... you want code for the system? for the database? talk more info if you have.. right click on your startgameserver.bat and click edit in there there is a code for that... Link to comment Share on other sites More sharing options...
0 `Rοmeο Posted February 21, 2010 Share Posted February 21, 2010 do you mean that ? Index: /trunk/L2J-Infinity_IL_GS/dist/LoginServer.bat =================================================================== --- /trunk/L2J-Infinity_IL_GS/dist/LoginServer.bat (revision 43) +++ /trunk/L2J-Infinity_IL_GS/dist/LoginServer.bat (revision 46) @@ -22,3 +22,10 @@ echo server terminated echo. +:question +set choix=q +set /p choix=Restart(r) or Quit(q) +if /i %choix%==r goto start +if /i %choix%==q goto exit +:exit +exit pause Index: /trunk/L2J-Infinity_IL_GS/dist/GameServer.bat =================================================================== --- /trunk/L2J-Infinity_IL_GS/dist/GameServer.bat (revision 43) +++ /trunk/L2J-Infinity_IL_GS/dist/GameServer.bat (revision 46) @@ -24,7 +24,10 @@ echo Server terminated abnormaly echo. -:end -echo. -echo server terminated -echo. +:question +set choix=q +set /p choix=Restart(r) or Quit(q) +if /i %choix%==r goto start +if /i %choix%==q goto exit +:exit +exit pause Link to comment Share on other sites More sharing options...
0 Gxz Posted February 21, 2010 Author Share Posted February 21, 2010 do you mean that ? Index: /trunk/L2J-Infinity_IL_GS/dist/LoginServer.bat =================================================================== --- /trunk/L2J-Infinity_IL_GS/dist/LoginServer.bat (revision 43) +++ /trunk/L2J-Infinity_IL_GS/dist/LoginServer.bat (revision 46) @@ -22,3 +22,10 @@ echo server terminated echo. +:question +set choix=q +set /p choix=Restart(r) or Quit(q) +if /i %choix%==r goto start +if /i %choix%==q goto exit +:exit +exit pause Index: /trunk/L2J-Infinity_IL_GS/dist/GameServer.bat =================================================================== --- /trunk/L2J-Infinity_IL_GS/dist/GameServer.bat (revision 43) +++ /trunk/L2J-Infinity_IL_GS/dist/GameServer.bat (revision 46) @@ -24,7 +24,10 @@ echo Server terminated abnormaly echo. -:end -echo. -echo server terminated -echo. +:question +set choix=q +set /p choix=Restart(r) or Quit(q) +if /i %choix%==r goto start +if /i %choix%==q goto exit +:exit +exit pause with this gs exit i want it when u shut the server down to start again Link to comment Share on other sites More sharing options...
0 `Rοmeο Posted February 21, 2010 Share Posted February 21, 2010 yes when you shut the server down it will ask you Restart or Quit ? Link to comment Share on other sites More sharing options...
0 Gxz Posted February 21, 2010 Author Share Posted February 21, 2010 yes when you shut the server down it will ask you Restart or Quit ? no man i mean when i shut down the server and it goes down i want it to start again automatically when it says "server terminated" to start again like restart.. Link to comment Share on other sites More sharing options...
Question
Gxz
Hello guys, there is a code when u edit gs.bat and when it goes down it starts again, anyone can tell me that code?
Link to comment
Share on other sites
8 answers to this question
Recommended Posts