Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Agent 21 committed Feb 16, 2015
0 parents commit 5c339c3
Show file tree
Hide file tree
Showing 436 changed files with 22,302 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .checkstyle
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<fileset-config file-format-version="1.0.0"/>
25 changes: 25 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="org/emulinker/kaillera/access/BasicAccessManager.java|org/emulinker/kaillera/model/impl/AutoFireScanner.java|org/emulinker/kaillera/controller/v086/action/CopyOfAdminCommandAction.java|org/emulinker/kaillera/model/impl/CopyOfKailleraGameImpl.java|org/emulinker/kaillera/access/CopyOfAccessManager.java|org/emulinker/kaillera/access/CopyOfAccessManager2.java" kind="src" path=""/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="C:/Users/kazon_000/Downloads/emulinker-kaillera-server-0.99.24-source/EmuLinker/lib/ant.jar"/>
<classpathentry kind="lib" path="C:/Users/kazon_000/Downloads/emulinker-kaillera-server-0.99.24-source/EmuLinker/lib/ant-launcher.jar"/>
<classpathentry kind="lib" path="C:/Users/kazon_000/Downloads/emulinker-kaillera-server-0.99.24-source/EmuLinker/lib/commons-codec-1.3.jar"/>
<classpathentry kind="lib" path="C:/Users/kazon_000/Downloads/emulinker-kaillera-server-0.99.24-source/EmuLinker/lib/commons-collections-3.1.jar"/>
<classpathentry kind="lib" path="C:/Users/kazon_000/Downloads/emulinker-kaillera-server-0.99.24-source/EmuLinker/lib/commons-configuration-1.1.jar"/>
<classpathentry kind="lib" path="C:/Users/kazon_000/Downloads/emulinker-kaillera-server-0.99.24-source/EmuLinker/lib/commons-el.jar"/>
<classpathentry kind="lib" path="C:/Users/kazon_000/Downloads/emulinker-kaillera-server-0.99.24-source/EmuLinker/lib/commons-httpclient-3.0-rc3.jar"/>
<classpathentry kind="lib" path="C:/Users/kazon_000/Downloads/emulinker-kaillera-server-0.99.24-source/EmuLinker/lib/commons-lang-2.1.jar"/>
<classpathentry kind="lib" path="C:/Users/kazon_000/Downloads/emulinker-kaillera-server-0.99.24-source/EmuLinker/lib/commons-logging.jar"/>
<classpathentry kind="lib" path="C:/Users/kazon_000/Downloads/emulinker-kaillera-server-0.99.24-source/EmuLinker/lib/commons-pool-1.2.jar"/>
<classpathentry kind="lib" path="C:/Users/kazon_000/Downloads/emulinker-kaillera-server-0.99.24-source/EmuLinker/lib/jasper-compiler.jar"/>
<classpathentry kind="lib" path="C:/Users/kazon_000/Downloads/emulinker-kaillera-server-0.99.24-source/EmuLinker/lib/jasper-runtime.jar"/>
<classpathentry kind="lib" path="C:/Users/kazon_000/Downloads/emulinker-kaillera-server-0.99.24-source/EmuLinker/lib/javax.servlet.jar"/>
<classpathentry kind="lib" path="C:/Users/kazon_000/Downloads/emulinker-kaillera-server-0.99.24-source/EmuLinker/lib/log4j-1.2.12.jar"/>
<classpathentry kind="lib" path="C:/Users/kazon_000/Downloads/emulinker-kaillera-server-0.99.24-source/EmuLinker/lib/nanocontainer-1.0-beta-3.jar"/>
<classpathentry kind="lib" path="C:/Users/kazon_000/Downloads/emulinker-kaillera-server-0.99.24-source/EmuLinker/lib/org.mortbay.jetty.jar"/>
<classpathentry kind="lib" path="C:/Users/kazon_000/Downloads/emulinker-kaillera-server-0.99.24-source/EmuLinker/lib/picocontainer-1.1.jar"/>
<classpathentry kind="lib" path="C:/Users/kazon_000/Downloads/emulinker-kaillera-server-0.99.24-source/EmuLinker/lib/xercesImpl.jar"/>
<classpathentry kind="lib" path="C:/Users/kazon_000/Downloads/emulinker-kaillera-server-0.99.24-source/EmuLinker/lib/xstream-1.1.2.jar"/>
<classpathentry kind="output" path=""/>
</classpath>
2 changes: 2 additions & 0 deletions .cvsignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build
.settings
17 changes: 17 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>EmuLinker X V.2</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
3 changes: 3 additions & 0 deletions .settings/org.eclipse.core.resources.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Mon Mar 06 21:33:16 EST 2006
eclipse.preferences.version=1
encoding//conf/language.properties.bak=8859_1
12 changes: 12 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#Sun Oct 02 20:49:44 EDT 2005
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.5
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.5
4 changes: 4 additions & 0 deletions .settings/org.eclipse.jdt.ui.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#Sat Jan 21 23:22:08 EST 2006
eclipse.preferences.version=1
internal.default.compliance=default
org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8"?><templates/>
35 changes: 35 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>

<project name="EmuLinker" default="build" basedir=".">

<path id="project.class.path">
<pathelement path="${java.class.path}/" />
<fileset dir="./lib">
<include name="**/*.jar" />
<include name="**/*.zip" />
</fileset>
<pathelement path="./conf" />
<pathelement path="./src" />
</path>

<target name="compile">
<delete>
<fileset dir="./build" includes="**/*.class" />
</delete>
<javac srcdir="./src" destdir="./build" includes="**/*.java" failonerror="true" debug="on">
<classpath refid="project.class.path" />
</javac>
<echo message="Compiling complete." />
</target>

<target name="build" depends="compile">
<delete file="build/emulinker.jar" />
<jar jarfile="build/emulinker.jar" update="false">
<fileset dir="./build">
<include name="**/*.class" />
</fileset>
</jar>
<echo message="Build Complete." />
</target>

</project>
3 changes: 3 additions & 0 deletions compile.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off

jar cf emulinker.jar *.class
81 changes: 81 additions & 0 deletions conf/access.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# This is the EmuLinker Kaillera Server user access and filter configuration.
# This file is constantly monitored for modifications, so any changes you make
# will get picked up immediately without restarting the server.

# Any line that starts with # is considered a comment and will not be processed.
# Lines are evaluated in order from top to bottom for the first match.
# Processing stops after finding the first match, so redundant ALLOW/DENY
# lines will have no effect.

# The ip address, game name, and emulator name filters are NOT case sensitive,
# and use a * character as a wildcard, and a | character as an OR, similar to
# DOS file name matching.
# Matching example:
# The following will match the name Moosehead:
# Moosehead moose* M* *head *oose* Moose*|Admin
# The following will NOT match the name Moosehead:
# Moose moose *asdf*

# USER PRIVILEGES
# ===============
# Syntax: user,<NORMAL|ELEVATED|ADMIN>,<ip address filter>,[login announcement]
# Examples:
# - Grant admin access to anyone on the local network with login announcement:
# user,ADMIN,192.168.*|10.0.0.*|127.0.0.1,Local Admin Logged In!
# - Silently grant admin access to a specific ip address:
# user,ADMIN,69.137.29.150,
# - Grant elevated access to a specific ip address with login announcement:
# user,ELEVATED,69.137.29.150,Welcome Moosehead!
# - Grant no special access but make a login announcement to users from Asia:
# user,NORMAL,2*,Welcome user from Asia!

user,ADMIN,dns:localhost,Server Owner Logged In!

# IP ADDRESS ACCESS
# =================
# Syntax: ipaddress,<ALLOW|DENY>,<ip address filter>
# Examples:
# - Allow only users on the private network:
# ipaddress,ALLOW,192.168.*|127.0.0.1|10.0.0.*
# ipaddress,DENY,*
# - Ban a specific ip address:
# ipaddress,DENY,69.137.29.150
# ipaddress,ALLOW,*
# - Ban all users from Asia
# ipaddress,DENY,2*
# ipaddress,ALLOW,*
# - Allow a specific user from Asia, ban the rest, allow everyone else
# ipaddress,ALLOW,200.201.202.203
# ipaddress,DENY,2*
# ipaddress,ALLOW,*

ipaddress,ALLOW,*

# GAME FILTERS
# ============
# Syntax: game,<ALLOW|DENY>,<game name filter>
# Examples:
# - Allow only 2 specific games:
# game,ALLOW,NBA Jam*
# game,ALLOW,NBA Maximum*
# game,DENY,*
# - Ban any game with a name containing Capcom and the Chat and Away games
# game,DENY,*Capcom*
# game,DENY,*Chat (not game)|*Away (leave messages)
# game,ALLOW,*

game,ALLOW,*

# EMULATOR FILTERS
# ================
# Syntax: emulator,<ALLOW|DENY>,<emulator name filter>
# Examples:
# - Allow only Kawaks users and nobody else:
# emulator,ALLOW,Kawaks*
# emulator,DENY,*
# - Allow any emulator except for Kawaks
# emulator,DENY,Kawaks*
# emulator,ALLOW,*

emulator,ALLOW,*

10 changes: 10 additions & 0 deletions conf/adminbot.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
server.address=65.98.71.21
server.port=27777
user.name=AdminBOT
client.type.name=AdminBOT v0.2
buffer.size=4096
reconnect.seconds=5
timeout.seconds=120
admin.http.port=8080
broadcast.messages.file=broadcast.txt
broadcast.seconds=300
3 changes: 3 additions & 0 deletions conf/commons-logging.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# You do not need to edit this file unless you want to use a logger other than Log4J

org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
17 changes: 17 additions & 0 deletions conf/components.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- This file defines the core components used in EmuLinker. You do not need to edit this file
unless you want to replace a component with a different implementation. -->

<container>
<component class='org.emulinker.util.EmuLinkerPropertiesConfig'/>
<component class='org.emulinker.util.EmuLinkerExecutor'/>
<component class='org.emulinker.kaillera.release.KailleraServerReleaseInfo'/>
<component class='org.emulinker.kaillera.access.AccessManager2'/>
<component class='org.emulinker.kaillera.controller.connectcontroller.ConnectController'/>
<component class='org.emulinker.kaillera.controller.v086.V086Controller'/>
<component class='org.emulinker.kaillera.model.impl.KailleraServerImpl'/>
<component class='org.emulinker.kaillera.model.impl.AutoFireDetectorFactoryImpl'/>
<component class='org.emulinker.kaillera.master.MasterListStatsCollector'/>
<component class='org.emulinker.kaillera.master.client.MasterListUpdaterImpl'/>
</container>
114 changes: 114 additions & 0 deletions conf/emulinker.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# This is the main EmuLinker Kaillera Server configuration file.
# This file is read on startup of the server, so you must restart the server
# to pickup any changes. Don't forget to edit access.cfg also.

# Any line that starts with # is considered a comment and will not be processed

# NETWORKING CONFIGURATION
# ========================
# This is the main port your server will listen on for new connections
controllers.connect.port=27888
# Buffer size for messages to the connect port.
# Should not need adjustment.
controllers.connect.bufferSize=1024
# This is the first port in the range of port your server will assign to
# individual users. Each user gets a private port while connected. The
# server will use ports between this number and this number + maxUsers + extraPorts.
controllers.v086.portRangeStart=27889
# The number of extra ports to allocate for admin and elevated users to join
# the server even when it's full.
controllers.v086.extraPorts=10
# Buffer size for all private port messages including game data packets.
# Should not need adjustment.
controllers.v086.bufferSize=2048
# Do not change; for future use only.
controllers.v086.clientTypes.clientType=0.83

# GAME PERFORMANCE CONFIGURATION
# ==============================
# Buffer size for the game data queue. Increasing this will not improve
# performance. Should be equal to at least the largest single game packet.
game.bufferSize=1024
# Maximum number of milliseconds to wait for other player's data before a
# timeout retry is generated.
game.timeoutMillis=1250
# Number of consecutive timeouts before a player is considered desynched.
game.desynchTimeouts=4

# AUTOFIRE DETECTION CONFIGURATION
# ================================
# Autofire detection is a cheat protection feature that will scan player's data
# during the game for button presses so fast they're humanly impossible, also
# known as turbo button or rapid fire. Most people consider this cheating.
# If the server detects autofire, it will print a message in the game and the
# emulinker.log file so all players know who's using autofire.
# Autofire detection sensitivity controls the threshold of how rapid a button
# press is considered true autofire. Sensitivity values [1-5], 0 to disable.
#
# game.defaultAutoFireSensitivity=0 : AUTOFIRE DETECTION DISABLED
#
# game.defaultAutoFireSensitivity=1 : MINIMUM SENSITIVITY; no chance of a false
# alert but may miss some autofire users
#
# game.defaultAutoFireSensitivity=5 : MAXIMUM SENSITIVITY; should alert on most
# autofire users but could produce false
# alerts for people with very fast fingers
#
game.defaultAutoFireSensitivity=0

# MASTER LIST CONFIGURATION
# =========================
# Server name to display in the master lists
masterList.serverName=New EmuLinker Server
# Location of the server to display in the master lists
masterList.serverLocation=Unknown
# Website of the server to display in the master lists
masterList.serverWebsite=http://www.emulinker.org
# Explicit connect address in cases where your server uses NAT. Leave this
# blank unless required by your firewall.
masterList.serverConnectAddress=
# Set to true to list your server on the original kaillera.com master.
masterList.touchKaillera=true
# Set to true to list your server on the emulinker.org/anti3d.com master
masterList.touchEmulinker=true
# Set both of the above to false to run a private server!

# GENERAL SERVER CHECKS AND CONTROL CONFIGURATION
# ===============================================
# Maximum user ping time allowed to login to your server, must be set > 0
server.maxPing=250
# Comma delimited list of allowed user connection types
# 1 = LAN, 2 = Excellent, 3 = Good, 4 = Average, 5 = Low, 6 = Bad
server.allowedConnectionTypes=1,2,3,4,5,6
# Max number of users allowed to connect at a time, 0 to disable
server.maxUsers=25
# Max number of games allowed on the server at a time, 0 to disable
server.maxGames=0
# Set to false to prevent users from playing single player
server.allowSinglePlayer=true
# Set to false to prevent users from logging in mutiple times using different names
server.allowMultipleConnections=true
# Seconds of no activity before a user is removed for a Ping Timeout
# Should not need adjustment
server.keepAliveTimeout=190
# Seconds of inactivity before a user is removed for a Idle Timeout
# 900 = 15 minutes of idling before being removed, 0 to disable
server.idleTimeout=900

# FLOOD CONTROL AND HACKER PREVENTION CONFIGURATION
# =================================================
# Minimum number of seconds between chat messages, 0 to disable
server.chatFloodTime=2
# Minimum number of seconds between created games, 0 to disable
server.createGameFloodTime=2
# Maximum user name length, 0 to disable
server.maxUserNameLength=45
# Maximum emulator (client) name length, 0 to disable
server.maxClientNameLength=100
# Maximum chat message length, 0 to disable
server.maxChatLength=150
# Maximum game (ROM) name length, 0 to disable
server.maxGameNameLength=100
# Maximum quit message length, 0 to disable
server.maxQuitMessageLength=75

Loading

0 comments on commit 5c339c3

Please sign in to comment.