actual freya branch
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
err=1
|
||||
until [ $err == 0 ];
|
||||
do
|
||||
[ -f log/java0.log.0 ] && mv log/java0.log.0 "log/`date +%Y-%m-%d_%H-%M-%S`_java.log"
|
||||
[ -f log/stdout.log ] && mv log/stdout.log "log/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"
|
||||
nice -n -2 java -Xms128m -Xmx128m -cp ./../libs/*:l2jlogin.jar com.l2jserver.loginserver.L2LoginServer > log/stdout.log 2>&1
|
||||
err=$?
|
||||
# /etc/init.d/mysql restart
|
||||
sleep 10;
|
||||
done
|
||||
@@ -0,0 +1,5 @@
|
||||
@echo off
|
||||
color 17
|
||||
cls
|
||||
java -Djava.util.logging.config.file=console.cfg -cp ./../libs/*;l2jlogin.jar com.l2jserver.gsregistering.BaseGameServerRegister -c
|
||||
exit
|
||||
BIN
Binary file not shown.
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
java -Djava.util.logging.config.file=console.cfg -cp ./../libs/*:l2jlogin.jar com.l2jserver.gsregistering.GameServerRegister -c
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
# Subnets can be defined like 123.45.0.0
|
||||
# Comments after # are ignored
|
||||
# Expiration timestamp can be added after IP for when to disable the ban
|
||||
# Example:
|
||||
# 192.168.0.0 1237618800000 # Bans all address starting with 192.168 and will expire on 21 Mar 2009 07:00:00 GMT
|
||||
10.255.255.255
|
||||
10.254.254.254
|
||||
+110
@@ -0,0 +1,110 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# Login Server Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# This is the server configuration file. Here you can set up the connection information for your server.
|
||||
# This was written with the assumption that you are behind a router.
|
||||
# Dumbed Down Definitions...
|
||||
# LAN (LOCAL area network) - typically consists of computers connected to the same router as you.
|
||||
# WAN (WIDE area network) - typically consists of computers OUTSIDE of your router (ie. the internet).
|
||||
# x.x.x.x - Format of an IP address. Do not include the x'es into settings. Must be real numbers.
|
||||
# ---------------------------------------------------------------------------
|
||||
# Networking
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# Bind ip of the LoginServer, use * to bind on all available IPs
|
||||
# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u>
|
||||
# WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u>
|
||||
# Default: * (0.0.0.0)
|
||||
LoginserverHostname = *
|
||||
|
||||
# Default: 2106
|
||||
LoginserverPort = 2106
|
||||
|
||||
# The address on which login will listen for GameServers, use * to bind on all available IPs
|
||||
# WARNING: <u><b><font color="red">Please don't change default IPs here if you don't know what are you doing!</font></b></u>
|
||||
# WARNING: <u><b><font color="red">External/Internal IPs are now inside "ipconfig.xml" file.</font></b></u>
|
||||
# Default: * (0.0.0.0)
|
||||
LoginHostname = *
|
||||
|
||||
# The port on which login will listen for GameServers
|
||||
# Default: 9014
|
||||
LoginPort = 9014
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Security
|
||||
# ---------------------------------------------------------------------------
|
||||
# Default: True
|
||||
LogLoginController = True
|
||||
|
||||
# How many times you can provide an invalid account/pass before the IP gets banned.
|
||||
# Default: 10
|
||||
LoginTryBeforeBan = 10
|
||||
|
||||
# Time you won't be able to login back again after LoginTryBeforeBan tries to login.
|
||||
# Default: 600 (10 minutes)
|
||||
LoginBlockAfterBan = 600
|
||||
|
||||
# If set to True any GameServer can register on your login's free slots
|
||||
# Default: False
|
||||
AcceptNewGameServer = False
|
||||
|
||||
# Flood Protection. All values are in MILISECONDS.
|
||||
# Default: True
|
||||
EnableFloodProtection = True
|
||||
|
||||
# Default: 15
|
||||
FastConnectionLimit = 15
|
||||
|
||||
# Default: 700
|
||||
NormalConnectionTime = 700
|
||||
|
||||
# Default: 350
|
||||
FastConnectionTime = 350
|
||||
|
||||
# Default: 50
|
||||
MaxConnectionPerIP = 50
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Database
|
||||
# ---------------------------------------------------------------------------
|
||||
# Specify the appropriate driver and url for the database you're using.
|
||||
# Examples:
|
||||
# Driver = com.mysql.jdbc.Driver (default)
|
||||
# Driver = org.hsqldb.jdbcDriver
|
||||
# Driver = com.microsoft.sqlserver.jdbc.SQLServerDriver
|
||||
Driver = com.mysql.jdbc.Driver
|
||||
# Database URL
|
||||
# URL = jdbc:mysql://localhost/l2jls (default)
|
||||
# URL = jdbc:hsqldb:hsql://localhost/l2jls
|
||||
# URL = jdbc:sqlserver://localhost/database = l2jls/user = sa/password =
|
||||
URL = jdbc:mysql://localhost/l2jls
|
||||
# Database user info (default is "root" but it's not recommended)
|
||||
Login = root
|
||||
# Database connection password
|
||||
Password =
|
||||
|
||||
# Default: 10
|
||||
MaximumDbConnections = 10
|
||||
|
||||
# Default: 0
|
||||
MaximumDbIdleTime = 0
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Misc.
|
||||
# ---------------------------------------------------------------------------
|
||||
# If False, the license (after the login) will not be shown.
|
||||
# Default: True
|
||||
ShowLicence = True
|
||||
|
||||
# Default: True
|
||||
AutoCreateAccounts = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Developer Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# Default: False
|
||||
Debug = False
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
# ---------------------------------------------------------------------------
|
||||
# Telnet Settings
|
||||
# ---------------------------------------------------------------------------
|
||||
# The defaults are set to be retail-like. If you modify any of these settings your server will deviate from being retail-like.
|
||||
# Warning:
|
||||
# Please take extreme caution when changing anything. Also please understand what you are changing before you do so on a live server.
|
||||
# ---------------------------------------------------------------------------
|
||||
# Allows text based monitoring and administration of L2J GS/LS
|
||||
# by using a telnet client. Communication protocol is insecure
|
||||
# and you should use SSL tunnels, VPN, etc. if you plan to connect
|
||||
# over non-trusted channels.
|
||||
# Default: False
|
||||
EnableTelnet = False
|
||||
|
||||
# This is the port L2J should listen to for incoming telnet
|
||||
# requests.
|
||||
# Default: 12345
|
||||
StatusPort = 12345
|
||||
|
||||
# If the following is not set, a random password is generated on server startup.
|
||||
# Usage: StatusPW = somePass
|
||||
StatusPW =
|
||||
|
||||
# This list can contain IPs or Hosts of clients you wish to allow. Hostnames must be resolvable to an IP.
|
||||
# Example: 0.0.0.0,host,0.0.0.1,host2,host3,host4,0.0.0.3
|
||||
# Default: 127.0.0.1,localhost,::1
|
||||
ListOfHosts = 127.0.0.1,localhost,::1
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
@echo off
|
||||
title Login Server Console
|
||||
:start
|
||||
echo Starting L2J Login Server.
|
||||
echo.
|
||||
java -Xms128m -Xmx128m -cp ./../libs/*;l2jlogin.jar com.l2jserver.loginserver.L2LoginServer
|
||||
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
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
./LoginServer_loop.sh &
|
||||
@@ -0,0 +1,23 @@
|
||||
@echo off
|
||||
cls
|
||||
title L2J - SQL Account Manager
|
||||
color 17
|
||||
java -Djava.util.logging.config.file=console.cfg -cp ./../libs/*;l2jlogin.jar com.l2jserver.accountmanager.SQLAccountManager 2> NUL
|
||||
if %errorlevel% == 0 (
|
||||
echo.
|
||||
echo Execution succesful
|
||||
echo.
|
||||
) else (
|
||||
echo.
|
||||
echo An error has ocurred while running the L2J Account Manager!
|
||||
echo.
|
||||
echo Possible reasons for this to happen:
|
||||
echo.
|
||||
echo - Missing .jar files or ../libs directory.
|
||||
echo - MySQL server not running or incorrect MySQL settings:
|
||||
echo check ./config/loginserver.properties
|
||||
echo - Wrong data types or values out of range were provided:
|
||||
echo specify correct values for each required field
|
||||
echo.
|
||||
)
|
||||
pause
|
||||
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
java -Djava.util.logging.config.file=console.cfg -cp ./../libs/*:l2jlogin.jar com.l2jserver.accountmanager.SQLAccountManager
|
||||
Reference in New Issue
Block a user