Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[Guide] How to make a C4 server L2J 

Status
Not open for further replies.
Newbie Spellweaver
Joined
Apr 8, 2006
Messages
13
Reaction score
0
im having a problem with startGameServer. everytime i try to make it rune it gives me this error:

Starting L2J Game Server.

Loading Gameserver Configuration
java.lang.NumberFormatException: For input string: "10 "
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at net.sf.l2j.Config.load(Config.java:1188)
at net.sf.l2j.gameserver.GameServer.main(GameServer.java:576)
Exception in thread "main" java.lang.Error: Failed to Load ./config/altsettings.
properties File.
at net.sf.l2j.Config.load(Config.java:1214)
at net.sf.l2j.gameserver.GameServer.main(GameServer.java:576)

Server terminated abnormaly


server terminated

Press any key to continue . . .
 
Newbie Spellweaver
Joined
Jun 24, 2006
Messages
6
Reaction score
0
I am having problem to connect to my server... The server goes online, but even though the host is right the game doesn't seem to be connecting to my server... Cause it doesn't create user (auto-account) and I can't connect with the user I created by the manager (wrong user/password)...
My host is:
127.0.0.1 localhost
127.0.0.1 L2authd.lineage2.com
127.0.0.1 L2testauthd.lineage2.com

I tested with other server that connects through host and it worked...
It connected to my server before, but now it doesn't...
I thought it was restricted, like only gm or ip ban, but I closed the server and tried to connect and still it said worng user/pass...
 
Last edited:
Initiate Mage
Joined
Jul 1, 2006
Messages
4
Reaction score
0
hey.. i have 2 question i cant log into my server cuz it say pass and user dosnt work.. how do i create and the other qustion anyone have a gm list of commands? i need one :X
 
Newbie Spellweaver
Joined
Jan 31, 2006
Messages
10
Reaction score
0
Cutiebaby said:
hey.. i have 2 question i cant log into my server cuz it say pass and user dosnt work.. how do i create and the other qustion anyone have a gm list of commands? i need one :X
Check your IP in l2.ini or hosts or set AutoCreateAccounts=True in server.properties and just make a new account

gm commands
forum.ragezone.com/server-side-related-stuff/list-gms-command-138704.html


@shinalex;
No

@reziko
shut down server,delete altsettings.properties in /config/ dir @ gameserver folder and replace it with a new one from the pack u dled
watch out for empty space between words like
example: real:
AcceptNewGameserver = True
should not be:
AcceptNewGameserver=False
(just an example)

@nabiki
post the whole error and maybe someone could help u
@ambinasa
No
 
Newbie Spellweaver
Joined
Mar 28, 2006
Messages
11
Reaction score
0
what ports do I have to have open for people to be able to play?
 
Joined
May 5, 2006
Messages
769
Reaction score
0
Noxic said:
what ports do I have to have open for people to be able to play?

2106(TCP,UDP),7777(TCP,UDP)
And for website 80(TCP)

Reziko said:
im having a problem with startGameServer. everytime i try to make it rune it gives me this error:

Starting L2J Game Server.

Loading Gameserver Configuration
java.lang.NumberFormatException: For input string: "10 "
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at net.sf.l2j.Config.load(Config.java:1188)
at net.sf.l2j.gameserver.GameServer.main(GameServer.java:576)
Exception in thread "main" java.lang.Error: Failed to Load ./config/altsettings.
properties File.
at net.sf.l2j.Config.load(Config.java:1214)
at net.sf.l2j.gameserver.GameServer.main(GameServer.java:576)

Server terminated abnormaly


server terminated

Press any key to continue . . .


As i can see from the error you use L2emu
Download the allsettings.properties and put it in gameserver/config and let it overwrite the old one
 
Last edited:
Initiate Mage
Joined
Jan 8, 2005
Messages
3
Reaction score
0
Interesting

I followed directions, and login server seems to connect fine, server seems to connect fine, with the exception at the bottom, it tells me..

Damn! Registration Failed: Reason: wrong hexid

well.. I followed the directions a few times now on how to register a server, making the hexid file, renaming it, and placing it in the server /config file, but I still have the same error coming up..

any ideas of an easier way to solve this problem? Thanks guys : )

I found the solution to the problem on another board.. for those who may come across this and need it...

In loginserver.properties set
AcceptNewGameServer = True

this will create the servers hexid.txt automatically if you have not already made one.

thanks everyone for taking the time to read this : )
 
Last edited:
Initiate Mage
Joined
Jul 24, 2006
Messages
3
Reaction score
0
every time i try to start the login server i get this error message


Starting L2J Login Server.

loading login config
MLog clients using java 1.4+ standard logging.
Initializing c3p0-0.9.0 [built 08-??????-2005 15:47:30 +0400; debug? false; trac
e: 5]
Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@85af80 [ conn
ectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@dc84
0f [ acquireIncrement -> 5, acquireRetryAttempts -> 0, acquireRetryDelay -> 500,
autoCommitOnClose -> true, automaticTestTable -> connection_test_table, breakAf
terAcquireFailure -> false, checkoutTimeout -> 0, connectionTesterClassName -> c
om.mchange.v2.c3p0.impl.DefaultConnectionTester, factoryClassLocation -> null, f
orceIgnoreUnresolvedTransactions -> false, identityToken -> dc840f, idleConnecti
onTestPeriod -> 60, initialPoolSize -> 3, maxIdleTime -> 0, maxPoolSize -> 10, m
axStatements -> 0, maxStatementsPerConnection -> 100, minPoolSize -> 1, nestedDa
taSource -> com.mchange.v2.c3p0.DriverManagerDataSource@e4f972 [ description ->
null, driverClass -> null, factoryClassLocation -> null, identityToken -> e4f972
, jdbcUrl -> jdbc:mysql://localhost/l2jdb, properties -> {user=******, password=
******** ], preferredTestQuery -> null, propertyCycle -> 300, testConnectionOnChe
ckin -> true, testConnectionOnCheckout -> false, usesTraditionalReflectiveProxie
s -> false ], factoryClassLocation -> null, identityToken -> 85af80, numHelperTh
reads -> 3 ]
Exception in thread "main" java.sql.SQLException: Access denied for user 'root'@
'localhost' (using password: YES)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2921)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:770)
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3656)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1175)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2544)
at com.mysql.jdbc.Connection.<init>(Connection.java:1474)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:264)
at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManag
erDataSource.java:78)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnecti
on(WrapperConnectionPoolDataSource.java:75)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPoolManager.initializeAu
tomaticTestTable(C3P0PooledConnectionPoolManager.java:497)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPoolManager.createPooled
ConnectionPool(C3P0PooledConnectionPoolManager.java:421)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPoolManager.getPool(C3P0
PooledConnectionPoolManager.java:342)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPoolManager.getPool(C3P0
PooledConnectionPoolManager.java:360)
at com.mchange.v2.c3p0.PoolBackedDataSource.getConnection(PoolBackedData
Source.java:94)
at net.sf.l2j.L2DatabaseFactory.<init>(L2DatabaseFactory.java:110)
at net.sf.l2j.L2DatabaseFactory.getInstance(L2DatabaseFactory.java:181)
at net.sf.l2j.loginserver.LoginServer.main(LoginServer.java:77)

Server terminated abnormaly


server terminated

Press any key to continue . . .


can anyone please help me plllllleleeeeeeaaaaasssseee.
 
Initiate Mage
Joined
Jan 8, 2005
Messages
3
Reaction score
0
Kerce said:
I followed directions, and login server seems to connect fine, server seems to connect fine, with the exception at the bottom, it tells me..

Damn! Registration Failed: Reason: wrong hexid

well.. I followed the directions a few times now on how to register a server, making the hexid file, renaming it, and placing it in the server /config file, but I still have the same error coming up..

any ideas of an easier way to solve this problem? Thanks guys : )

I found the solution to the problem on another board.. for those who may come across this and need it...

In loginserver.properties set
AcceptNewGameServer = True

this will create the servers hexid.txt automatically if you have not already made one.

thanks everyone for taking the time to read this : )


You know.. it doesn't take a rocket scientist to understand why the Devs are a little short with people. This post was 2 replies up from yours.. come on guys, read the forums before ya post..
 
Initiate Mage
Joined
Jan 8, 2005
Messages
3
Reaction score
0
The post above it although everyone should spend more time reading the forums and using the search feature.. alot of good stuff here to learn if you just take the time to do it..
 
Initiate Mage
Joined
Jul 24, 2006
Messages
3
Reaction score
0
someone please read my prior post and help me it's like 3 posts up please i need help
 
Newbie Spellweaver
Joined
Aug 11, 2005
Messages
5
Reaction score
0
i got an error , plz check my server game propriets see what is wrong


# Bind ip of the gameserver, use * to bind on all available IPs
GameserverHostname=201.58.20.230
GameserverPort=7777

# This is transmitted to the clients connecting from an external network, so it has to be a public IP or resolvable hostname
# If this ip is resolvable by Login just leave *
ExternalHostname=201.58.20.230

# This is transmitted to the client from the same network, so it has to be a local IP or resolvable hostname
# If this ip is resolvable by Login just leave *
InternalHostname=201.58.20.230

# Bind ip of the loginserver, use * to bind on all available IPs
LoginserverHostname=201.58.20.230
LoginserverPort=2106
LoginTryBeforeBan=20

# The Loginserver host and port
LoginPort=9014
LoginHost=201.58.20.230

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

# Database info
Driver=com.mysql.jdbc.Driver
#Driver=org.hsqldb.jdbcDriver
#Driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
URL=jdbc:mysql://localhost/l2jdb
#URL=jdbc:hsqldb:hsql://localhost/l2jdb
#URL=jdbc:sqlserver://localhost/database=l2jdb/user=sa/password=
Login=root
Password=xxxxx
MaximumDbConnections=50

# Datapack root directory, defaults to current directory from which the server is started
# DatapackRoot = C:\leonardo\jogos\L2Freedom Medium Rate Server

# 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=.*

# Maximum number of chars per account - 0 = illimited - default = 7
CharMaxNumber = 7

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


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

# Safe Reboot
# This will prevent some exploit during restart/shutdown process
SafeReboot = True
 
S

stayrakas

Guest
PLS answer me!!I did what you said but i cant create acount.i have turned it on but still not working.I open the startSQLAccountManager i put a username and a pasword.After that it says sth about access lvl. what is it?i put any number and after sometime it gets an eror.


PLS HELP
 
Newbie Spellweaver
Joined
Aug 4, 2006
Messages
8
Reaction score
0
I was following your steps and I came to a brick wall... no c:\server\etc...
I tried running the game to see if it would make it, but to no luck. Help would be greatly appreciated.

Thanks much,
Masamunect
 
Newbie Spellweaver
Joined
Mar 21, 2006
Messages
67
Reaction score
0
MY client does not Login on the server is that A version problem?
EVERYTHING SEEMS TO BE SET OK
I DWNLED C4 CLIENT, AND SERVER PACK IS C4
 
Newbie Spellweaver
Joined
Mar 21, 2006
Messages
67
Reaction score
0
I got this error when trying to login
I think this got smt to do with cLIENT VERSION!!!
trol4ever - [Guide] How to make a C4 server - RaGEZONE Forums

HELP PLZ !!!!!
 

Attachments

You must be registered for see attachments list
Status
Not open for further replies.
Back
Top