L2jMobius 13.02.2021

Просто для запуска:

StartLS.bat
Код:
@echo off

set err=1
if exist log\java0.log.0 (
    move log\java0.log.0 "log\%date:~6,4%-%date:~3,2%-%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%_java.log"
)
if exist log\stdout.log (
    move log\stdout.log "log\%date:~6,4%-%date:~3,2%-%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%_stdout.log"
)
java -Djava.awt.headless=true %type% -jar ../libs/LoginServer.jar > log\stdout.log 2>&1
set err=%errorlevel%
if not %err%==0 (
    echo Error: LoginServer exited with error code %err%
    pause
)


StartGS.bat
Код:
@echo off

if exist log\java0.log.0 (
    move log\java0.log.0 "log\%date:~6,4%-%date:~3,2%-%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%_java.log"
)
if exist log\stdout.log (
    move log\stdout.log "log\%date:~6,4%-%date:~3,2%-%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%_stdout.log"
)
java -Djava.awt.headless=true %type% -jar ../libs/GameServer.jar > log\stdout.log 2>&1
if not errorlevel 2 (
    echo Error: GameServer exited with error code %errorlevel%
    pause
)


Цикличный перезапуск:
StartLS.bat

Код:
@echo off

start "" LoginServerTask.bat


StartGS.bat
Код:
@echo off

start "" GameServerTask.bat

LoginServerTask.bat


Код:
@echo off

:loop
if exist log\java0.log.0 (
    move log\java0.log.0 "log\%date:~6,4%-%date:~3,2%-%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%_java.log"
)
if exist log\stdout.log (
    move log\stdout.log "log\%date:~6,4%-%date:~3,2%-%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%_stdout.log"
)
java -Djava.awt.headless=true %type% -jar ../libs/LoginServer.jar > log\stdout.log 2>&1
if not errorlevel 2 (
    goto end
)
timeout /t 10 /nobreak >nul
goto loop

:end

GameServerTask.bat

Код:
@echo off

:loop
if exist log\java0.log.0 (
    move log\java0.log.0 "log\%date:~6,4%-%date:~3,2%-%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%_java.log"
)
if exist log\stdout.log (
    move log\stdout.log "log\%date:~6,4%-%date:~3,2%-%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%_stdout.log"
)
java -Djava.awt.headless=true %type% -jar ../libs/GameServer.jar > log\stdout.log 2>&1
if not errorlevel 2 (
    goto end
)
timeout /t 10 /nobreak >nul
goto loop

:end
 

Ссылка осталась у кого?
 
Просто для запуска:

StartLS.bat
Код:
@echo off

set err=1
if exist log\java0.log.0 (
    move log\java0.log.0 "log\%date:~6,4%-%date:~3,2%-%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%_java.log"
)
if exist log\stdout.log (
    move log\stdout.log "log\%date:~6,4%-%date:~3,2%-%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%_stdout.log"
)
java -Djava.awt.headless=true %type% -jar ../libs/LoginServer.jar > log\stdout.log 2>&1
set err=%errorlevel%
if not %err%==0 (
    echo Error: LoginServer exited with error code %err%
    pause
)


StartGS.bat
Код:
@echo off

if exist log\java0.log.0 (
    move log\java0.log.0 "log\%date:~6,4%-%date:~3,2%-%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%_java.log"
)
if exist log\stdout.log (
    move log\stdout.log "log\%date:~6,4%-%date:~3,2%-%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%_stdout.log"
)
java -Djava.awt.headless=true %type% -jar ../libs/GameServer.jar > log\stdout.log 2>&1
if not errorlevel 2 (
    echo Error: GameServer exited with error code %errorlevel%
    pause
)


Цикличный перезапуск:
StartLS.bat

Код:
@echo off

start "" LoginServerTask.bat


StartGS.bat
Код:
@echo off

start "" GameServerTask.bat

LoginServerTask.bat

Код:
@echo off

:loop
if exist log\java0.log.0 (
    move log\java0.log.0 "log\%date:~6,4%-%date:~3,2%-%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%_java.log"
)
if exist log\stdout.log (
    move log\stdout.log "log\%date:~6,4%-%date:~3,2%-%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%_stdout.log"
)
java -Djava.awt.headless=true %type% -jar ../libs/LoginServer.jar > log\stdout.log 2>&1
if not errorlevel 2 (
    goto end
)
timeout /t 10 /nobreak >nul
goto loop

:end

GameServerTask.bat

Код:
@echo off

:loop
if exist log\java0.log.0 (
    move log\java0.log.0 "log\%date:~6,4%-%date:~3,2%-%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%_java.log"
)
if exist log\stdout.log (
    move log\stdout.log "log\%date:~6,4%-%date:~3,2%-%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%_stdout.log"
)
java -Djava.awt.headless=true %type% -jar ../libs/GameServer.jar > log\stdout.log 2>&1
if not errorlevel 2 (
    goto end
)
timeout /t 10 /nobreak >nul
goto loop

:end
Спасибо за идею, хоть и не подошли твои батники, сделал свои работает как швейцарские часы.

Решение короче простое, я хз кто как запускал этот мобиус может быть это на 10ки не работает а все на 11 или винда битая я не знаю даже, но суть простая делаешь 2 простых батника под логин и гейм сервер и работает все как надо!

StartLoginServer.bat
Код:
@echo off
@color 0A
:start
TITLE L2jMobius LoginServer
echo %DATE% %TIME% Login server is running !!! > login_is_running.tmp
echo Starting L2jMobius Login Server.
echo.

SET java_opts=%java_opts% -Xms32m
SET java_opts=%java_opts% -Xmx64m


SET java_settings=%java_settings% -Dfile.encoding=UTF-8
SET java_settings=%java_settings% -Djava.net.preferIPv4Stack=true

java -server %java_settings% %java_opts% -cp config;./lib/*;LoginServer.jar org.l2jmobius.loginserver.LoginServer
if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end
:restart
echo.
echo L2jMobius: Administrator restarting.
echo.
goto start
:error
echo.
echo L2jMobius: Server terminated abnormally.
echo.
:end
echo.
echo L2jMobius: Server terminated.
echo.
del login_is_running.tmp
pause


StartGameServer.bat
Код:
@echo off
@color 0A
title L2jMobius GameServer
:start
echo %DATE% %TIME% Game server is running !!! > gameserver_is_running.tmp
echo Starting L2jMobius Game Server.
echo.

SET java_opts=%java_opts% -Xms2048m
SET java_opts=%java_opts% -Xmx4096m

SET java_settings=%java_settings% -Dfile.encoding=UTF-8
SET java_settings=%java_settings% -Djava.net.preferIPv4Stack=true

java -server %java_settings% %java_opts% -cp config;./lib/*;GameServer.jar org.l2jmobius.gameserver.GameServer

if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end
:restart
echo.
echo L2jMobius: Administrator Restarting.
echo.
goto start
:error
echo.
echo L2jMobius: Server terminated abnormally.
echo.
:end
echo.
echo L2jMobius: Server terminated.
echo.
del gameserver_is_running.tmp
pause

java -server %java_settings% %java_opts% -cp config;./lib/*;GameServer.jar org.l2jmobius.gameserver.GameServer

Пути только смените, так как я либы разделил, в вашем случае путь ../libs/GameServer.jar

Вдруг кому понадобиться не может же быть что у меня у одного через vbs не стартует вообще никак.

Работает как с GUI модом так и без.
 
Мобиус на основе l2j или lostworld?
 
ОРбновите ссылку?
 
А кто подскажет, над чем сейчас конкретно работает Мобиус? Чего ждать в свежих релизах?
 
this is old packet . you can get new update on discord mobius he give free data source latest version
 
Назад
Сверху Снизу