Error with pets

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
kean
Posts: 22
Joined: Fri Jun 10, 2011 7:38 pm

Error with pets

Post 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
xalis
Posts: 17
Joined: Tue Jan 29, 2008 12:00 am
Location: Toulouse (France)

Re: Error with pets

Post 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.
kean
Posts: 22
Joined: Fri Jun 10, 2011 7:38 pm

Re: Error with pets

Post by kean »

No, I get this problem with all pets :/ I'll see the xml
burrito
Posts: 276
Joined: Wed Apr 15, 2009 6:41 am

Re: Error with pets

Post by burrito »

did you properly install the new columns to the pet table? The ones needed to save and restore buffs.
kean
Posts: 22
Joined: Fri Jun 10, 2011 7:38 pm

Re: Error with pets

Post 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?
gremlin
Posts: 5
Joined: Mon Sep 13, 2010 10:23 pm

Re: Error with pets

Post by gremlin »

any solution to this problem? :S
User avatar
katian
Posts: 19
Joined: Thu Jan 27, 2011 10:20 pm

Re: Error with pets

Post 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
Para sobrevivir, nos aferramos a todo aquello que conocemos y entendemos.
Y damos por buena esa realidad.
Pero el entendimiento y la sabiduría son cosas ambiguas.
La realidad podría ser una ilusión.
¿No es esa otra forma de verlo?
gremlin
Posts: 5
Joined: Mon Sep 13, 2010 10:23 pm

Re: Error with pets

Post 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
lasarus
Posts: 12
Joined: Sun Aug 07, 2011 2:18 pm

Re: Error with pets

Post by lasarus »

how did u reproduce?
kean
Posts: 22
Joined: Fri Jun 10, 2011 7:38 pm

Re: Error with pets

Post by kean »

Nothing...?
kean
Posts: 22
Joined: Fri Jun 10, 2011 7:38 pm

Re: Error with pets

Post 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 :/
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: Error with pets

Post by MELERIX »

probably you have it in a wrong place (wrong folder)
kean
Posts: 22
Joined: Fri Jun 10, 2011 7:38 pm

Re: Error with pets

Post 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.
User avatar
lucan
Posts: 590
Joined: Wed Mar 16, 2011 10:39 pm
Location: Brazil

Re: Error with pets

Post 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.
kean
Posts: 22
Joined: Fri Jun 10, 2011 7:38 pm

Re: Error with pets

Post 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 :_/
Locked