Probelm with handler loading

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
delthazor
Posts: 10
Joined: Fri Apr 02, 2010 4:01 pm

Probelm with handler loading

Post by delthazor »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:4912M
L2JDP Revision Number:8362

Hi all!
I need some help, and I could not find any topic that would fit to my case, so here's my story:

Some time ago, I downloaded an L2J server with eclipse, built it, done all the stuff it needs to run. It was working perfect, I tested it for weeks, and it was all good. Than one of my friends got an opportunity to make a live server, and he choose me to install it for him. I took my 100% working test server, copied it to his VPS, configured it well, and it worked well.
Then my friend came, thougt that he can make an even better config, and I have no idea what he had done (and I think neither does he), but since that quests are don't working, fishing is not working, and a lots od other stuff is not working at all. Since I'm not familiar with linux ssh consoles, I decided to download all his data, copy his database and tried to figure out how to get things work again.
First I obviusly tried to run the gameserver and look for the error messages which were coming as execpted. I got about a million error message for each and every handler that exist, like theese:

Code: Select all

QuestEventType cannot be resolved to a variableQuestEventType cannot be resolved to a variableQuestEventType cannot be resolved to a variableQuestEventType cannot be resolved to a variable
(QuesstEventType can change to any XYZ depending on what the server is actually want to load)

and theese:

Code: Select all

----------1. ERROR in \PlainsOfLizardman.java (at line 34)        public class PlainsOfLizardman extends L2AttackableAIScript                                               ^^^^^^^^^^^^^^^^^^^^L2AttackableAIScript cannot be resolved to a type----------2. ERROR in \PlainsOfLizardman.java (at line 54)        registerMobs(_MOBS, QuestEventType.ON_ATTACK);                            ^^^^^^^^^^^^^^QuestEventType cannot be resolved to a variable----------3. ERROR in \PlainsOfLizardman.java (at line 63)        public String onAdvEvent (String event, L2Npc npc, L2PcInstance player)                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^The method onAdvEvent(String, L2Npc, L2PcInstance) of type PlainsOfLizardman must override or implement a supertype method----------4. ERROR in \PlainsOfLizardman.java (at line 98)        return super.onAdvEvent(event,npc,player);               ^^^^^L2AttackableAIScript cannot be resolved to a type
(names, like PlainsOfLizardman, are changing respectively)

Since that I've frunk about 3 gallons of coffe, tore almost all of my hair off, but couldn't find the solution. Tried to overwrite the files with my test server's data (which is still working perfectly), copy my old database, reinstall the whole database, and now I enden up at a state, where basically all of my friends files were deleted, my working test server's files were copied everywhere, I have a whole new database, and a few dozen of broken items around me, and the gameserver is still laughing at me and does not show any sign of cooperation.
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Probelm with handler loading

Post by jurchiks »

It would be best making a fresh install, god knows WTF is wrong with the files (although it might just be that he's deleted scripts.cfg in /game/data/ folder).
If you really want to know though, you can always compile freshly downloaded revisions and compare the files/folders (WinMerge for windows as an example), but I don't think you'll need that.
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.
User avatar
Stake
Posts: 383
Joined: Sun Mar 23, 2008 9:33 pm
Location: Hungary
Contact:

Re: Probelm with handler loading

Post by Stake »

If you have original handler scripts, then he probably messed up the core, mostly Quest and handler class interfaces.
Image
Image
User avatar
delthazor
Posts: 10
Joined: Fri Apr 02, 2010 4:01 pm

Re: Probelm with handler loading

Post by delthazor »

I cannot find java7 for linux on the official website. Am I an idiot or it really doesen't exist?

And what will happen, if I download a newer server, compile it with java7 and then I upload it to the server, where java6u29 is installed?

Do I have any chance it will work? (I guess not, but maybe...)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Probelm with handler loading

Post by jurchiks »

http://www.oracle.com/technetwork/java/ ... 13651.html
...
And here's a good setup guide.
http://www.webupd8.org/2011/09/how-to-i ... dk-in.html
This worked for me.
If you're using a different linux distro then you'll have to search on your own.
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.
User avatar
delthazor
Posts: 10
Joined: Fri Apr 02, 2010 4:01 pm

Re: Probelm with handler loading

Post by delthazor »

Thanks for the links, I tried to install it, but there was a "little" problem... I have no permisson to use the sudo command in the remote server.

With the chmod command I could bring life to the self extracting jre binary (downloaded from: http://www.java.com/en/download/manual.jsp), but sadly there's no self-extracting binary version of java7, yet.

So most likely I will go and check the changelog, find the latest server reviision that can be compiled with java6 (I think its somewhere around 4765), and then search for the appropriate datapack version.

I will get it work soon enough...
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better.
User avatar
delthazor
Posts: 10
Joined: Fri Apr 02, 2010 4:01 pm

Re: Probelm with handler loading

Post by delthazor »

Sorry, to bother you here again...

The new installation actually solved my problems :)
Now the server verison is:4767
and dp: 8255

It works pretty well, but there is a need for a few customization which I could not bear with!

First, I want to change the messege color, when spoil status is successfully activated. It cannot be seen among the other messages like damage and etc. I could swear that I saw a tpoic a couple of month ago that was about something like this, but I just can't find it now.

Second, the server now allows the player to learn skills of any kind. I experienced difficulties with dwavern skills like crystalize, when the cancraft property in the characters table is not set to 1 to that char. I tried to set the default value to one, but still when a character is created it is still 0. Which file I have to modify to have it 1 as default?


And the third (this is the less important). I had an idea to make the Character's max level higher, for example100 instead of the current 86. I thought that if I insert lines into gameserver\java\com\l2jserver\gameserver\model\base\experience.java like this

Code: Select all

 25314000000L, //level 86      32212040000L, //level 87    <<--- Insert lines from here      40489040000L, //level 88      50421040000L, //level 89      63424000000L, //level 90      79026500000L, //level 91      97751000000L, //level 92      121156000000L, //level 93      149242000000L, //level 94      182946000000L, //level 95      225006000000L, //level 96      275479000000L, //level 97      336050000000L, //level 98      408732000000L, //level 99      495950000000L 
And of course I changed the max_level variable to 100;

The only major problem that I met with during the tests, that skill enchant stops working above theoriginally reachable levels. I guess thats because skill enchant is only defined until lv 86. Is there any way to get this work? For example if there's some getPClevel() function, can it be simply rewritten, to get the players actual lvel if its lower than 86 and give back 86 constantly as player level, if the actual level is greater then (or equal to) 86?
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better.
Post Reply