Page 2 of 2
Re: RegisterGameServer.sh doesn't recieve any packets
Posted: Mon Apr 11, 2011 12:13 pm
by strelock
I created default data base and create root's user without password on local machine. But when i stared RegisterGameServer.sh i have same trouble :
Code: Select all
./RegisterGameServer.sh FATAL: Failed to load default translation.
Re: RegisterGameServer.sh doesn't recieve any packets
Posted: Mon Apr 11, 2011 12:31 pm
by jurchiks
you're missing the GSRegister.properties in /languages/gsregister folder
Re: RegisterGameServer.sh doesn't recieve any packets
Posted: Mon Apr 11, 2011 3:05 pm
by strelock
No. I have it. Is it stuff?:
Code: Select all
language = EnglishtoolName = GS Registering Tool error = Errorreason = Reason:yes = Yesno = No fileMenu = FileexitItem = ExithelpMenu = HelpaboutItem = About btnRemove = RemovebtnRemoveAll = Remove AllbtnRegister = Register GameServerconfirmRemoveTitle = Confirm RemovalconfirmRemoveText = Are you sure you want to remove GameServer %d - %s?confirmRemoveAllText = Are you sure you want to remove ALL GameServers?gsListRetrieveError = There was an error while attempting to retrieve the list of currently registered GameServers. gsName = GameServer NamegsAction = Action registerGS = Register GameServerserverName = Server name:save = Savecancel = CancelsaveHexId = The hexid.txt file should be saved on GameServer's 'configs' folder to properly complete this process.hexidDest = Choose hexid file destination folder... purpose = Allows to register/remove GameServers from LoginServer.options = Options:fallbackOpt = If during the register operation the specified GameServer ID is in use, an attempt with the first available ID will be made.forceOpt = Forces GameServer register operation to overwrite a previous registration on the specified ID, if necessary.cmdOpt = Forces this application to run in console mode, even if GUI is supported.helpOpt = Shows this help message and exits.languageOpt = Attempts to use the language for the specified locale, on failure reverts to auto-detection.registerOpt1 = Registers a GameServer on ID <id> and saves the hexid.txt file on <hexid_dest_dir>.registerOpt2 = You can provide a negative value for <id> to register under the first available ID.registerOpt3 = Nothing is done if <id> is already in use, unless --force or --fallback is used.unregisterOpt = Removes the GameServer specified by <id>, use "all" to remove all currently registered GameServers.wrongUnregisterArg = wrong argument for GameServer removal, specify a numeric ID or "all" without quotes to remove all.noAction = No action to be taken.checkingIdInUse = Checking if GameServer ID %d is in use...removingGsId = Removing GameServer ID: %dforcingRegistration = Forcing registration on ID %d, an existing registration on this ID is being overwritten.fallingBack = Trying to register on the first available ID.registrationOk = GameServer successfully registered on LoginServer with ID %d.unregisterOk = GameServer ID: %d was successfully removed from LoginServer.unregisterAllOk = All GameServers were successfully removed.noFreeId = There was no free ID available to register.sqlErrorRegister = An SQL error occurred while trying to register the GameServer.ioErrorRegister = An error saving the hexid file occurred while trying to register the GameServer.errorRegister = An error occurred while trying to register the GameServer.errorUnregister = An error occurred while trying to remove the GameServer.sqlErrorUnregister = An SQL error occurred while trying to remove the GameServer.sqlErrorUnregisterAll = An SQL error occurred while trying to remove ALL GameServers.noServerNames = No available names for GameServer, verify servername.xml file exists in the LoginServer folder.noNameForId = No name for ID: %didIsNotFree = This ID is not available.noServerForId = No GameServer is registered on ID: %d cmdMenuRegister = Register GameServercmdMenuListNames = List GameServers Names and IDscmdMenuRemoveGS = Remove GameServercmdMenuRemoveAll = Remove ALL GameServerscmdMenuExit = ExityourChoice = Choice:invalidChoice = Invalid Choice: %sgsInUse = In UsegsFree = FreeenterDesiredId = Enter desired ID: credits = © 2008-2009 L2J Team. All rights reserved.language = Language: Englishicons = Icons by http://www.famfamfam.comtranslation = Translation: L2J TeambugReports = Bug Reports:
Re: RegisterGameServer.sh doesn't recieve any packets
Posted: Mon Apr 11, 2011 3:12 pm
by jurchiks
well, the error comes from here:
Code: Select all
try { locale = Locale.getDefault(); bundle = ResourceBundle.getBundle("gsregister.GSRegister", locale, LanguageControl.INSTANCE); } catch (Throwable t) { System.out.println("FATAL: Failed to load default translation."); System.exit(666); }
It might also be that your system locale is not english and it tries to find the other translations from datapack but can't find them (for some stupid reason translations of GSRegister.properties are in datapack, not core where they are supposed to be), but I'm not sure how this works.
Re: RegisterGameServer.sh doesn't recieve any packets
Posted: Mon Apr 11, 2011 3:14 pm
by strelock
I wrote, that I found the problem. It was in L2DatabaseFactory at the Constructor. When trying test connection, it failed:
Code: Select all
System.out.println("some text in L2DatabaseFactory() Constructor. 1"); System.out.println("some text in L2DatabaseFactory() Constructor, _source.getConnectionTesterClassName() :"+_source.getConnectionTesterClassName() ); /* Test the connection */ _source.getConnection().close(); System.out.println("some text in L2DatabaseFactory() Constructor. 2");
.
First and second "System.out" JVM printed well, but after it trying know "_source.getConnection()" - it throws exception. The L2Jproject use "import com.mchange.v2.c3p0.ComboPooledDataSource;", that I didn't looked before. So now i am reading about this package, that I'll fixed it....
if anyone looked this problem before, please write, how you fixed it, you could save many my time:).
Re: RegisterGameServer.sh doesn't recieve any packets
Posted: Tue Apr 12, 2011 8:52 am
by strelock
I resolve my problem!
The problem were not in L2JProject, it were in Debian system. This is very interesting thing. Debian can ping 127.0.0.1 or localhost, but if i tried using telnet localhost on 3306 port it were fail....So I created user for my static IP, and give him access to my data base and all start work fine

Now, I am want resolve problem in Debian system. I will try fix problem with conflicts IP adress from localhost.

P.S.: sorry for my poor English, I am really upgrade it. xD
Re: RegisterGameServer.sh doesn't recieve any packets
Posted: Wed Apr 13, 2011 3:28 pm
by zippel
Why do you use telnet? 2011 in the yard ...
Re: RegisterGameServer.sh doesn't recieve any packets
Posted: Wed Apr 13, 2011 4:09 pm
by jurchiks
You have better ways of connecting to the server via console? Without logging in the game or using remote administration?
Re: RegisterGameServer.sh doesn't recieve any packets
Posted: Sun Jul 24, 2011 3:10 pm
by Ovan
I was have the same problem, and i
i know the answer for this problem!
look for port 3306 listening by:
netstat an
If it is not listenig look at your /etc/rc.d/rc.mysql
and comment SKIP="--skip-networking"
And sorry for bad english!
Re: RegisterGameServer.sh doesn't recieve any packets
Posted: Tue Sep 27, 2011 12:44 am
by shenglu
I have joined several of System.out.println (Config.DATABASE_LOGIN), look at all of the fine. All entries to read properly. Therefore, a row down, I looked at the interesting line: "GameServerTable.load ();".
Re: RegisterGameServer.sh doesn't recieve any packets
Posted: Wed Nov 30, 2011 5:51 am
by yingxuy
This is a very interesting thing. Debian can ping 127.0.0.1 or localhost, but if I try to use telnet localhost 3306 port, it is a failure.