RegisterGameServer.sh doesn't recieve any packets

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
strelock
Posts: 14
Joined: Sat Apr 09, 2011 12:37 pm

Re: RegisterGameServer.sh doesn't recieve any packets

Post 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. 
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: RegisterGameServer.sh doesn't recieve any packets

Post by jurchiks »

you're missing the GSRegister.properties in /languages/gsregister folder
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
strelock
Posts: 14
Joined: Sat Apr 09, 2011 12:37 pm

Re: RegisterGameServer.sh doesn't recieve any packets

Post 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: 
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: RegisterGameServer.sh doesn't recieve any packets

Post 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.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
strelock
Posts: 14
Joined: Sat Apr 09, 2011 12:37 pm

Re: RegisterGameServer.sh doesn't recieve any packets

Post 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:).
strelock
Posts: 14
Joined: Sat Apr 09, 2011 12:37 pm

Re: RegisterGameServer.sh doesn't recieve any packets

Post 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
User avatar
zippel
Posts: 123
Joined: Wed Feb 09, 2011 7:21 pm
Location: [RF] Krasnoyarsk
Contact:

Re: RegisterGameServer.sh doesn't recieve any packets

Post by zippel »

Why do you use telnet? 2011 in the yard ...
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: RegisterGameServer.sh doesn't recieve any packets

Post by jurchiks »

You have better ways of connecting to the server via console? Without logging in the game or using remote administration?
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Ovan
Posts: 1
Joined: Sun Jul 24, 2011 3:02 pm

Re: RegisterGameServer.sh doesn't recieve any packets

Post 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!
shenglu
Posts: 1
Joined: Mon Sep 26, 2011 5:26 am

Re: RegisterGameServer.sh doesn't recieve any packets

Post 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 ();".
yingxuy
Posts: 1
Joined: Wed Nov 30, 2011 12:15 am

Re: RegisterGameServer.sh doesn't recieve any packets

Post 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.
Post Reply