This commit is contained in:
mobius
2015-01-01 20:02:50 +00:00
parent eeae660458
commit a6a3718849
17894 changed files with 2818932 additions and 0 deletions

11
trunk/dist/login/LoginServer_loop.sh vendored Normal file
View File

@@ -0,0 +1,11 @@
#!/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"
java -Xms128m -Xmx256m -jar l2jlogin.jar > log/stdout.log 2>&1
err=$?
sleep 10;
done

View File

@@ -0,0 +1,5 @@
@echo off
title L2J - Register Game Server
color 17
java -Djava.util.logging.config.file=console.cfg -cp ./../libs/*;l2jlogin.jar com.l2jserver.tools.gsregistering.BaseGameServerRegister -c
pause

BIN
trunk/dist/login/RegisterGameServer.exe vendored Normal file

Binary file not shown.

View File

@@ -0,0 +1,2 @@
#!/bin/sh
java -Djava.util.logging.config.file=console.cfg -cp ./../libs/*:l2jlogin.jar com.l2jserver.tools.gsregistering.GameServerRegister -c

7
trunk/dist/login/banned_ip.cfg vendored Normal file
View File

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

View File

@@ -0,0 +1,65 @@
# ---------------------------------------------------------------------------
# Email 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.
# ---------------------------------------------------------------------------
# Server Information
# ---------------------------------------------------------------------------
# Server Name
# Default: Unconfigured L2J Server
ServerInfoName = Unconfigured L2J Server
# Contact Address
# Default: info@unconfl2j.com
ServerInfoAddress = info@myl2jserver.com
# ---------------------------------------------------------------------------
# E-mail System Settings
# ---------------------------------------------------------------------------
# Enable Email System
# Default: False
EmailSystemEnabled = False
# Select Query for Email Addresses
# Default: SELECT value FROM account_data WHERE account_name=? AND var='email_addr'
EmailDBSelectQuery = SELECT value FROM account_data WHERE account_name=? AND var='email_addr'
# Email Address Field
# Default: value
EmailDBField = value
# Mail Server Host
# Default: smtp.gmail.com
SmtpServerHost = smtp.gmail.com
# Mail Server Port
# Default: 465
SmtpServerPort = 465
# Auth SMTP
# Default: True
SmtpAuthRequired = True
# Mail Socket Factory
# Default: javax.net.ssl.SSLSocketFactory
SmtpFactory = javax.net.ssl.SSLSocketFactory
# Mail Factory Callback
# Default: False
SmtpFactoryCallback = False
# Mail Server Auth - Username
# Default: exampleuser
SmtpUsername = user@gmail.com
# Mail Server Auth - Password
# Default: examplepass
SmtpPassword = password
# Mail Address
# Default: None
EmailSystemAddress = noreply@myl2jserver.com

View File

@@ -0,0 +1,132 @@
# ---------------------------------------------------------------------------
# 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
# ---------------------------------------------------------------------------
# Enables automatic port mapping for login server.
# If you have a router login server will request for port forwarding.
# Default: True
EnableUPnP = True
# 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: 127.0.0.1
LoginHostname = 127.0.0.1
# The port on which login will listen for GameServers
# Default: 9014
LoginPort = 9014
# ---------------------------------------------------------------------------
# Security
# ---------------------------------------------------------------------------
# How many times you can provide an invalid account/pass before the IP gets banned.
# Default: 5
LoginTryBeforeBan = 5
# Time you won't be able to login back again after LoginTryBeforeBan tries to login.
# Default: 900 (15 minutes)
LoginBlockAfterBan = 900
# If set to True any GameServer can register on your login's free slots
# Default: True
AcceptNewGameServer = True
# 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
# Connection close time.
# Default: 60000
ConnectionCloseTime = 60000
# ---------------------------------------------------------------------------
# Misc.
# ---------------------------------------------------------------------------
# If False, the license (after the login) will not be shown.
# Default: True
ShowLicence = True
# Default: True
AutoCreateAccounts = True
# Datapack root directory.
# Defaults to current directory from which the server is started.
DatapackRoot = .
# ---------------------------------------------------------------------------
# Developer Settings
# ---------------------------------------------------------------------------
# Default: False
Debug = False
# ---------------------------------------------------------------------------
# Restart LS every 24 hours?
# ---------------------------------------------------------------------------
# Enable disable scheduled login restart.
# Default: False
LoginRestartSchedule = False
# Time in hours.
# Default: 24
LoginRestartTime = 24

24
trunk/dist/login/config/MMO.properties vendored Normal file
View File

@@ -0,0 +1,24 @@
#---------------------------------------------------------------
# MMO
#---------------------------------------------------------------
# Sleep time for all Selectors
# After he finished his job the Selector waits the given time in milliseconds
# Lower values will speed up the loop and the Ping is smaller
SleepTime = 20
# Every loop it send a maximum of the given packages to each connection
# Lower values will speed up the loop and the Ping is smaller but cause less output
MaxSendPerPass = 12
# Every loop it read a maximum of the given packages from each connection
# Lower values will speed up the loop and the Ping is smaller but cause less input
MaxReadPerPass = 12
# Each unfinished read/write need a TEMP storage Buffer
# on large player amount we need more Buffers
# if there are not enough buffers new ones are generated but not stored for future usage
HelperBufferCount = 20
# Setting this to True will lower your ping, at the cost of an increase in bandwidth consumption.
TcpNoDelay = False

View File

@@ -0,0 +1,28 @@
# ---------------------------------------------------------------------------
# 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 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
ListOfHosts = 127.0.0.1,localhost

7
trunk/dist/login/console.cfg vendored Normal file
View File

@@ -0,0 +1,7 @@
# Default global logging level.
# This specifies which kinds of events are logged across
# all loggers. For any given facility this global level
# can be overriden by a facility specific level
# Note that the ConsoleHandler also has a separate level
# setting to limit messages printed to the console.
.level=OFF

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="MailList.xsd">
<mail id="SATempBan" file="html/SecAuthTempBan.htm" subject="Your account has been temporarily suspended" />
</list>

16
trunk/dist/login/data/mail/MailList.xsd vendored Normal file
View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
<element name="list">
<complexType>
<sequence minOccurs="1" maxOccurs="1">
<element name="mail" minOccurs="1" maxOccurs="1">
<complexType>
<attribute name="file" type="token" use="required" />
<attribute name="id" type="token" use="required" />
<attribute name="subject" type="normalizedString" use="required" />
</complexType>
</element>
</sequence>
</complexType>
</element>
</schema>

View File

@@ -0,0 +1,15 @@
Greetings,<br>
<br>
We have temporally suspended your account:<br>
<br>
Account Name: %accountname%<br>
Reason: Typed wrong character password %var1% times in row from ip %var0%.<br>
Consequences: Your account has been temporaly suspended for %var2% minutes.<br>
<br>
If you've lost your your character password, you can recover them by <a href="%var3%">clicking here</a>.<br>
<br>
If you have any question, <a href="mailto:%servermail%">click here</a> to send an email to the administrator.<br>
Regards,<br>
%servername% Game Master Team<br>
<br>
<p align="center">Powered By: <a href="http://www.l2jserver.com/">L2J Server</a></p>

130
trunk/dist/login/data/servername.xml vendored Normal file
View File

@@ -0,0 +1,130 @@
<?xml version="1.0" encoding="UTF-8"?>
<servers_list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="servername.xsd">
<server id="1" name="Bartz" />
<server id="2" name="Sieghardt" />
<server id="3" name="Kain" />
<server id="4" name="Lionna" />
<server id="5" name="Erica" />
<server id="6" name="Gustin" />
<server id="7" name="Devianne" />
<server id="8" name="Hindemith" />
<server id="9" name="Teon (EURO)" />
<server id="10" name="Franz (EURO)" />
<server id="11" name="Luna (EURO)" />
<server id="12" name="Sayha" />
<server id="13" name="Aria" />
<server id="14" name="Phoenix" />
<server id="15" name="Chronos" />
<server id="16" name="Naia (EURO)" />
<server id="17" name="Elhwynna" />
<server id="18" name="Ellikia" />
<server id="19" name="Shikken" />
<server id="20" name="Scryde" />
<server id="21" name="Frikios" />
<server id="22" name="Ophylia" />
<server id="23" name="Shakdun" />
<server id="24" name="Tarziph" />
<server id="25" name="Aria" />
<server id="26" name="Esenn" />
<server id="27" name="Elcardia" />
<server id="28" name="Yiana" />
<server id="29" name="Seresin" />
<server id="30" name="Tarkai" />
<server id="31" name="Khadia" />
<server id="32" name="Roien" />
<server id="33" name="Kallint (Non-PvP)" />
<server id="34" name="Baium" />
<server id="35" name="Kamael" />
<server id="36" name="Beleth" />
<server id="37" name="Anakim" />
<server id="38" name="Lilith" />
<server id="39" name="Thifiel" />
<server id="40" name="Lithra" />
<server id="41" name="Lockirin" />
<server id="42" name="Kakai" />
<server id="43" name="Cadmus" />
<server id="44" name="Athebaldt" />
<server id="45" name="Blackbird" />
<server id="46" name="Ramsheart" />
<server id="47" name="Esthus" />
<server id="48" name="Vasper" />
<server id="49" name="Lancer" />
<server id="50" name="Ashton" />
<server id="51" name="Waytrel" />
<server id="52" name="Waltner" />
<server id="53" name="Tahnford" />
<server id="54" name="Hunter" />
<server id="55" name="Dewell" />
<server id="56" name="Rodemaye" />
<server id="57" name="Ken Rauhel" />
<server id="58" name="Ken Abigail" />
<server id="59" name="Ken Orwen" />
<server id="60" name="Van Holter" />
<server id="61" name="Desperion" />
<server id="62" name="Einhovant" />
<server id="63" name="Shunaiman" />
<server id="64" name="Faris" />
<server id="65" name="Tor" />
<server id="66" name="Carneiar" />
<server id="67" name="Dwyllios" />
<server id="68" name="Baium" />
<server id="69" name="Hallate" />
<server id="70" name="Zaken" />
<server id="71" name="Core" />
<server id="72" name="72" />
<server id="73" name="73" />
<server id="74" name="74" />
<server id="75" name="75" />
<server id="76" name="76" />
<server id="77" name="77" />
<server id="78" name="78" />
<server id="79" name="79" />
<server id="80" name="80" />
<server id="81" name="81" />
<server id="82" name="82" />
<server id="83" name="83" />
<server id="84" name="84" />
<server id="85" name="85" />
<server id="86" name="86" />
<server id="87" name="87" />
<server id="88" name="88" />
<server id="89" name="89" />
<server id="90" name="90" />
<server id="91" name="91" />
<server id="92" name="92" />
<server id="93" name="93" />
<server id="94" name="94" />
<server id="95" name="95" />
<server id="96" name="96" />
<server id="97" name="97" />
<server id="98" name="98" />
<server id="99" name="99" />
<server id="100" name="100" />
<server id="101" name="101" />
<server id="102" name="102" />
<server id="103" name="103" />
<server id="104" name="104" />
<server id="105" name="105" />
<server id="106" name="106" />
<server id="107" name="107" />
<server id="108" name="108" />
<server id="109" name="109" />
<server id="110" name="110" />
<server id="111" name="111" />
<server id="112" name="112" />
<server id="113" name="113" />
<server id="114" name="114" />
<server id="115" name="115" />
<server id="116" name="116" />
<server id="117" name="117" />
<server id="118" name="118" />
<server id="119" name="119" />
<server id="120" name="120" />
<server id="121" name="121" />
<server id="122" name="122" />
<server id="123" name="123" />
<server id="124" name="124" />
<server id="125" name="125" />
<server id="126" name="126" />
<server id="127" name="???" />
</servers_list>

22
trunk/dist/login/data/servername.xsd vendored Normal file
View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="servers_list">
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="1">
<xs:element name="server" minOccurs="127" maxOccurs="127">
<xs:complexType>
<xs:attribute name="id" use="required">
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="1" />
<xs:maxInclusive value="127" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="name" type="xs:normalizedString" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

162
trunk/dist/login/log.cfg vendored Normal file
View File

@@ -0,0 +1,162 @@
############################################################
# Global properties
############################################################
# "handlers" specifies a comma separated list of log Handler
# classes. These handlers will be installed during VM startup.
# Note that these classes must be on the system classpath.
# By default we only configure a ConsoleHandler, which will only
# show messages at the INFO and above levels.
#handlers= java.util.logging.ConsoleHandler
# To also add the FileHandler, use the following line instead.
handlers = java.util.logging.FileHandler,\
java.util.logging.ConsoleHandler,\
com.l2jserver.log.handler.ErrorLogHandler
chat.handlers = com.l2jserver.log.handler.ChatLogHandler
chat.useParentHandlers = false
gmaudit.handlers = com.l2jserver.log.handler.GMAuditLogHandler
gmaudit.useParentHandlers = false
item.handlers = com.l2jserver.log.handler.ItemLogHandler
item.useParentHandlers = false
audit.handlers = com.l2jserver.log.handler.AuditLogHandler
audit.useParentHandlers = false
enchant.handlers = com.l2jserver.log.handler.EnchantItemLogHandler,\
com.l2jserver.log.handler.EnchantSkillLogHandler
enchant.useParentHandlers = false
olympiad.handlers = com.l2jserver.log.handler.OlympiadLogHandler
olympiad.useParentHandlers = false
damage.handlers = com.l2jserver.log.handler.AllDamageLogHandler,\
com.l2jserver.log.handler.PDamageLogHandler,\
com.l2jserver.log.handler.MDamageLogHandler
damage.useParentHandlers = false
accounting.handlers = com.l2jserver.log.handler.AccountingLogHandler
accounting.useParentHandlers = false
# Default global logging level.
# This specifies which kinds of events are logged across
# all loggers. For any given facility this global level
# can be overriden by a facility specific level
# Note that the ConsoleHandler also has a separate level
# setting to limit messages printed to the console.
.level= CONFIG
############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################
# default file output is in user's home directory.
java.util.logging.FileHandler.pattern = log/java%g.log
java.util.logging.FileHandler.count = 20
java.util.logging.FileHandler.limit = 0
java.util.logging.FileHandler.formatter = com.l2jserver.log.formatter.FileLogFormatter
java.util.logging.FileHandler.level = CONFIG
# Limit the message that are printed on the console to INFO and above.
java.util.logging.ConsoleHandler.level = FINER
java.util.logging.ConsoleHandler.formatter = com.l2jserver.log.formatter.ConsoleLogFormatter
# log errors (exceptions)
com.l2jserver.log.handler.ErrorLogHandler.pattern = log/error%g.log
com.l2jserver.log.handler.ErrorLogHandler.count = 20
com.l2jserver.log.handler.ErrorLogHandler.limit = 0
com.l2jserver.log.handler.ErrorLogHandler.formatter = java.util.logging.SimpleFormatter
com.l2jserver.log.handler.ErrorLogHandler.filter = com.l2jserver.log.filter.ErrorFilter
com.l2jserver.log.handler.ErrorLogHandler.level = CONFIG
# log chats
com.l2jserver.log.handler.ChatLogHandler.pattern = log/chat.log
com.l2jserver.log.handler.ChatLogHandler.formatter = com.l2jserver.log.formatter.ChatLogFormatter
com.l2jserver.log.handler.ChatLogHandler.filter = com.l2jserver.log.filter.ChatFilter
com.l2jserver.log.handler.ChatLogHandler.append = true
com.l2jserver.log.handler.ChatLogHandler.level = INFO
# log GM Audit
com.l2jserver.log.handler.GMAuditLogHandler.pattern = log/gmaudit.log
com.l2jserver.log.handler.GMAuditLogHandler.formatter = com.l2jserver.log.formatter.GMAuditFormatter
com.l2jserver.log.handler.GMAuditLogHandler.filter = com.l2jserver.log.filter.GMAuditFilter
com.l2jserver.log.handler.GMAuditLogHandler.append = true
com.l2jserver.log.handler.GMAuditLogHandler.level = INFO
# log items
com.l2jserver.log.handler.ItemLogHandler.pattern = log/item.log
com.l2jserver.log.handler.ItemLogHandler.formatter = com.l2jserver.log.formatter.ItemLogFormatter
com.l2jserver.log.handler.ItemLogHandler.filter = com.l2jserver.log.filter.ItemFilter
com.l2jserver.log.handler.ItemLogHandler.append = true
com.l2jserver.log.handler.ItemLogHandler.level = INFO
# audit
com.l2jserver.log.handler.AuditLogHandler.pattern = log/audit.log
com.l2jserver.log.handler.AuditLogHandler.formatter = com.l2jserver.log.formatter.AuditFormatter
com.l2jserver.log.handler.AuditLogHandler.filter = com.l2jserver.log.filter.AuditFilter
com.l2jserver.log.handler.AuditLogHandler.append = true
com.l2jserver.log.handler.AuditLogHandler.level = INFO
# enchant item log
com.l2jserver.log.handler.EnchantItemLogHandler.pattern = log/enchantitem.log
com.l2jserver.log.handler.EnchantItemLogHandler.formatter = com.l2jserver.log.formatter.EnchantFormatter
com.l2jserver.log.handler.EnchantItemLogHandler.filter = com.l2jserver.log.filter.EnchantItemFilter
com.l2jserver.log.handler.EnchantItemLogHandler.append = true
com.l2jserver.log.handler.EnchantItemLogHandler.level = INFO
# enchant skill log
com.l2jserver.log.handler.EnchantSkillLogHandler.pattern = log/enchantskill.log
com.l2jserver.log.handler.EnchantSkillLogHandler.formatter = com.l2jserver.log.formatter.EnchantFormatter
com.l2jserver.log.handler.EnchantSkillLogHandler.filter = com.l2jserver.log.filter.EnchantSkillFilter
com.l2jserver.log.handler.EnchantSkillLogHandler.append = true
com.l2jserver.log.handler.EnchantSkillLogHandler.level = INFO
# olympiad log
com.l2jserver.log.handler.OlympiadLogHandler.pattern = log/olympiad.csv
com.l2jserver.log.handler.OlympiadLogHandler.formatter = com.l2jserver.log.formatter.OlympiadFormatter
com.l2jserver.log.handler.OlympiadLogHandler.append = true
com.l2jserver.log.handler.OlympiadLogHandler.level = INFO
# damage logs
com.l2jserver.log.handler.AllDamageLogHandler.pattern = log/game/_all.txt
com.l2jserver.log.handler.AllDamageLogHandler.formatter = com.l2jserver.log.formatter.DamageFormatter
com.l2jserver.log.handler.AllDamageLogHandler.append = true
com.l2jserver.log.handler.AllDamageLogHandler.level = INFO
com.l2jserver.log.handler.PDamageLogHandler.pattern = log/game/damage_pdam.txt
com.l2jserver.log.handler.PDamageLogHandler.formatter = com.l2jserver.log.formatter.DamageFormatter
com.l2jserver.log.handler.PDamageLogHandler.filter = com.l2jserver.log.filter.PDamageFilter
com.l2jserver.log.handler.PDamageLogHandler.append = true
com.l2jserver.log.handler.PDamageLogHandler.level = INFO
com.l2jserver.log.handler.MDamageLogHandler.pattern = log/game/damage_mdam.txt
com.l2jserver.log.handler.MDamageLogHandler.formatter = com.l2jserver.log.formatter.DamageFormatter
com.l2jserver.log.handler.MDamageLogHandler.filter = com.l2jserver.log.filter.MDamageFilter
com.l2jserver.log.handler.MDamageLogHandler.append = true
com.l2jserver.log.handler.MDamageLogHandler.level = INFO
# accounting
com.l2jserver.log.handler.AccountingLogHandler.pattern = log/accounting.log
com.l2jserver.log.handler.AccountingLogHandler.formatter = com.l2jserver.log.formatter.AccountingFormatter
com.l2jserver.log.handler.AccountingLogHandler.append = true
com.l2jserver.log.handler.AccountingLogHandler.level = CONFIG
############################################################
# Facility specific properties.
# Provides extra control for each logger.
############################################################
# For example, set the com.xyz.foo logger to only log SEVERE
# messages:
com.l2jserver.gameserver.level = CONFIG
com.l2jserver.loginserver.level = CONFIG
#com.l2jserver.gameserver.Connection.level = CONFIG
com.l2jserver.gameserver.network.serverpackets.level = FINER
com.l2jserver.gameserver.network.clientpackets.level = FINER
com.l2jserver.gameserver.model.actor.L2Character.level = FINER
com.l2jserver.gameserver.engines.DocumentEngine.level = INFO
# Alt Privileges Administration
AltPrivilegesAdmin.pattern = log/admin-commands.log
AltPrivilegesAdmin.formatter = com.l2jserver.log.formatter.FileLogFormatter
AltPrivilegesAdmin.append = true
AltPrivilegesAdmin.level = CONFIG
# c3p0 Logging
com.mchange.v2.level = WARNING

29
trunk/dist/login/startLoginServer.bat vendored Normal file
View File

@@ -0,0 +1,29 @@
@echo off
title Login Server Console
:start
echo Starting L2J Login Server.
echo.
java -Xms128m -Xmx256m -jar l2jlogin.jar
if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end
:restart
echo.
echo Admin Restarted Login Server.
echo.
goto start
:error
echo.
echo Login Server terminated abnormally!
echo.
:end
echo.
echo Login Server Terminated.
echo.
pause

3
trunk/dist/login/startLoginServer.sh vendored Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
./LoginServer_loop.sh &

View File

@@ -0,0 +1,22 @@
@echo off
title L2J - SQL Account Manager
color 17
java -Djava.util.logging.config.file=console.cfg -cp ./../libs/*;l2jlogin.jar com.l2jserver.tools.accountmanager.SQLAccountManager
if %errorlevel% == 0 (
echo.
echo Execution successful
echo.
) else (
echo.
echo An error has occurred 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

View File

@@ -0,0 +1,2 @@
#!/bin/sh
java -Djava.util.logging.config.file=console.cfg -cp ./../libs/*:l2jlogin.jar com.l2jserver.tools.accountmanager.SQLAccountManager