Jump to content
  • 0

Gs autostart


Question

8 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted

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...

  • 0
Posted

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

  • 0
Posted

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

  • 0
Posted

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..

Guest
This topic is now closed to further replies.


×
×
  • Create New...