Показать сообщение отдельно
Непрочитано 23.09.2016, 09:10   #7
Пользователь

Автор темы (Топик Стартер) Re: Всем здрасте. Помогите чем сможете

@echo off
title GameServer Console
:start
REM ----------- Set Class Paths and Calls setenv.bat -----------------
SET OLDCLASSPATH=%CLASSPATH%
call classpath.bat
REM ------------------------------------------------------------------

REM -------------------------------------
REM Параметры запуска сервера:
java -Dfile.encoding=UTF-8 -Xms512m -Xmx512m -Xincgc net.sf.l2j.gameserver.GameServer
REM
REM -------------------------------------
REM Если у вас крутая тачка, можно запускать так:
REM java -server -Dfile.encoding=UTF-8 -Xmx3550m -Xms3550m -Xmn2g -Xss128k -XX:ParallelGCThreads=20 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=31
REM или так:
REM java -server -Dfile.encoding=UTF-8 -Xmx3550m -Xms3550m -Xmn2g -Xss128k -XX:ParallelGCThreads=20 -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:SurvivorRatio=8 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=31 -XX:+AggressiveOpts
REM -------------------------------------

SET CLASSPATH=%OLDCLASSPATH%

if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end
:restart
echo.
echo Admin Restart ...
echo.
goto start
:error
echo.
echo Server terminated abnormaly
echo.
:end
echo.
echo server terminated
echo.
pause

Это мой батник что в нем не так?
и вот настройки сервера
# Bind ip of the gameserver
GameserverHostname = 127.0.0.1
GameserverPort = 7777

# This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname
ExternalHostname = 127.0.0.1

# This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname
InternalHostname = 127.0.0.1

# The Loginserver host and port; Внимание! Если у вас несколько серверов, то указывайте тут ВНЕШНИЙ IP
LoginPort = 9014
LoginHost = 127.0.0.1

# This is the server id that the gameserver will request (i.e. 1 is Bartz)
RequestServerID = 1
# If set to true, the login will give an other id to the server if the requested id is allready reserved
AcceptAlternateID = False

####
### Настройки базы данных
## Соединение
#хост
URL=jdbc:mysql://localhost/l2jdb?useUnicode=true&characterEncoding=UTF-8
# логин
Login = root
# пароль
Password = root
## Тонкая настройка (!!только если на 100% уверены, что делаете!!)
# Min no of connections the pool will (initially) create (per partition)
MinConnectionsPerPartition = 10
# Max no of connections the pool will ever create (per partition).
MaxConnectionsPerPartition = 30
# Sets number of partitions to use.
PartitionCount = 5
# Number of new connections to create in 1 batch whenever we need more connections.
AcquireIncrement = 5
# This sets the time (in minutes), for a connection to remain idle before sending a test query to the DB.
IdleConnectionTestPeriod = 10
# Maximum age of an unused connection before it is closed off. In minutes.
IdleMaxAge = 10
# Number of release-connection helper threads to create per partition.
ReleaseHelperThreads = 5
# After attempting to acquire a connection and failing, wait for this value before attempting to acquire a new connection again.
AcquireRetryDelay = 7000
# After attempting to acquire a connection and failing, try to connect these many times before giving up.
AcquireRetryAttempts = 5
# If set to true, the connection pool will remain empty until the first connection is obtained.
LazyInit = False
# If set to true, stores all activity on this connection to allow for replaying it again automatically if it fails. Makes the pool marginally slower.
TransactionRecoveryEnabled = False
# Queries taking longer than this limit to execute are logged.
QueryExecuteTimeLimit = 0
# Time to wait before a call to getConnection() times out and returns an error.
ConnectionTimeout = 0

# Define character name template
# Example to use only : CnameTemplate=[A-Z][a-z]{3,3}[A-Za-z0-9]*
# will allow names with first capital letter, next three small letters,
# and any (capital or not) letter or number, like ZbigN1eW
# Most rational to have CnameTemplate=[A-Z][a-z]*
# meaning names only of letters with first one capital, like Zbigniew
# Default .* - any namy of any symbols
CnameTemplate=[A-Za-z0-9\-]{3,16}
PetNameTemplate=[A-Za-z0-9\-]{3,16}

# Maximum number of chars per account - Default 7 (0 = unlimited [7 is the client limit])
CharMaxNumber = 7

# Define how many players are allowed to play simultaneously on your server.
MaximumOnlineUsers = 1500

# Minimum and maximum protocol revision that server allow to connect.
# You must keep MinProtocolRevision <= MaxProtocolRevision.
MinProtocolRevision = 735
MaxProtocolRevision = 775

#Авторестарт сервера в определенный час
AutoRestartHour = 5

#GUI для Windows
WindowsAdvancedConsole = False

#Ваш ключ от сборки;
SerialKey = 99878ad1bb6547a8819649cdfb2dcf75d5fd13ab
Antoniy вне форума Ответить с цитированием