Page 1 of 2

Error with pets

Posted: Wed Jul 27, 2011 2:08 am
by kean
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:
L2JDP Revision Number:
Hi, when I summon a pet like wolf or strider I get this error:
ADVERTENCIA: Could not restore pet data for owner: L2PcInstance:Admin[268483355] - null
java.lang.NullPointerException
at com.l2jserver.gameserver.datatables.PetDataTable.getPetMinLevel(PetDataTable.java:228)
at com.l2jserver.gameserver.model.actor.instance.L2PetInstance.<init>(L2PetInstance.java:278)
at com.l2jserver.gameserver.model.actor.instance.L2PetInstance.<init>(L2PetInstance.java:260)
at com.l2jserver.gameserver.model.actor.instance.L2PetInstance.restore(L2PetInstance.java:799)
at com.l2jserver.gameserver.model.actor.instance.L2PetInstance.spawnPet(L2PetInstance.java:240)
at handlers.itemhandlers.SummonItems$PetSummonFinalizer.run(SummonItems.java:234)
at com.l2jserver.gameserver.ThreadPoolManager$RunnableWrapper.run(ThreadPoolManager.java:86)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
How I can fix it? thnaks

Re: Error with pets

Posted: Fri Jul 29, 2011 12:41 pm
by xalis
You're attempting to create your own pet isn't it?

Maybe a good idea to check the xml stats of your pet.

Re: Error with pets

Posted: Fri Jul 29, 2011 7:54 pm
by kean
No, I get this problem with all pets :/ I'll see the xml

Re: Error with pets

Posted: Sat Jul 30, 2011 8:59 pm
by burrito
did you properly install the new columns to the pet table? The ones needed to save and restore buffs.

Re: Error with pets

Posted: Mon Aug 01, 2011 1:03 pm
by kean
burrito wrote:did you properly install the new columns to the pet table? The ones needed to save and restore buffs.
what do u mean exactly?

Re: Error with pets

Posted: Fri Aug 05, 2011 2:14 pm
by gremlin
any solution to this problem? :S

Re: Error with pets

Posted: Fri Aug 05, 2011 10:48 pm
by katian
the solution to the problem is you have to put in data file and pet.xsd pet.xml
----------------
la solucion al problema es que tienes que poner en data el archivo pet.xml y pet.xsd

edit: distribution of files is prohibited on forums, if these files can be downloaded from nightly or svn

Re: Error with pets

Posted: Sat Aug 06, 2011 11:01 am
by gremlin
Are made ​​and are the same, but still not out except pet class skill , I look at the tables pet and anything, all is ok but no summon
------------
Estan puestos y estan iguales, pero sigue sin salir ningun pet excepto los de class skill, mire las tablas y cualquier cosa relacionada, toda esta bien pero no summonean

Re: Error with pets

Posted: Sun Aug 07, 2011 2:55 pm
by lasarus
how did u reproduce?

Re: Error with pets

Posted: Sat Aug 13, 2011 3:21 pm
by kean
Nothing...?

Re: Error with pets

Posted: Mon Aug 15, 2011 1:20 pm
by kean
I found it:
2011.08.15 03:33:09,416 WARNING 1 com.l2jserver.gameserver.model.actor.instance.L2PetInstance Not found PetData.xml
2011.08.15 03:33:09,417 INFO 1 com.l2jserver.gameserver.model.actor.instance.L2PetInstance PetDataTable: Loaded 0 Pets.
and I have the petdata.xml and its good :/

Re: Error with pets

Posted: Mon Aug 15, 2011 9:20 pm
by MELERIX
probably you have it in a wrong place (wrong folder)

Re: Error with pets

Posted: Thu Aug 18, 2011 4:54 pm
by kean
I checked it but its ok, I have 600 players on and I need fix this error, in my pc work but on the dedicated not, is strange.

Re: Error with pets

Posted: Thu Aug 18, 2011 8:28 pm
by lucan
In a recent revision changeset, the file PetData.xml and PetData.xsd has been moved from folder \data to \data\stats\npc try verify this.
Probably this is the error, it would be interesting to tell you revision you are using, it's required to create the topic and would help to know what is wrong.

Re: Error with pets

Posted: Thu Aug 18, 2011 11:53 pm
by kean
Is the last rev of freya, I think the problem can be on the db but I deleted the tables of pet and reupload and nothing,
I tested with diferent rev but nothing... on my pc work but on the dedicated nthing :_/