Full Version : Client Crash with XMLQuestNPC
xmlspawner >>Troubleshooting >>Client Crash with XMLQuestNPC
<< Prev | Next >>
Galfaroth- 02-10-2006
When I add very long action: my had 7,5 pages, client crashes when I want to watch on it, (5.0.1b).
godfood- 02-10-2006
You need to elaborate, I have absolutely no idea what you said, or what your problem is.
ArteGordon- 02-10-2006
post the .npc file
Galfaroth- 02-10-2006
All right so the problem is that I made xmlquestnpc and gave him very, very long action(so when I watched it in book it had 7,5 pages). On 2D Client everytime I used .xmledit on him, the client crashed. On 3D Client .xmledit worked, but when I was opening this 7,5 long book it crashed too. Here is my part of this NPC file:

CODE
<SpeechEntry> <EntryNumber>30</EntryNumber> <ID>30</ID> <Keywords>zgoda</Keywords> <Action>SETONTRIGMOB/ATTACHMENT,xmlquestattachment,BaalTyon,dodelete/true;SETONTRIGMOB/ATTACHMENT,xmlquestattachment,BaalCadar,dodelete/true;SETONTRIGMOB/ATTACHMENT,xmlquestattachment,BaalKagan,dodelete/true;SETONTRIGMOB/ATTACHMENT,xmlquestattachment,BaalNamib,dodelete/true;SETONTRIGMOB/ATTACHMENT,xmlquestattachment,BaalOrun,dodelete/true;SETONTRIGMOB/ATTACHMENT,xmlquestattachment,BaalTondral,dodelete/true;SETONTRIGMOB,xmlquestattachment,BaalTyon,dodelete/true;GIVE/Sandals,2306;GIVE/KiltObozowy,2109,Kilt Nowicjusza;GIVE/BodySash;SETONTRIGMOB/Oboz/3;SETONTRIGMOB/Ranga/1;SETONTRIGMOB/ATTACHMENT,xmlquestattachment,MaZiele,dodelete/true;SETONTRIGMOB/ATTACHMENT,xmlquestattachment,GhorimHarlok,dodelete/true;SETONTRIGMOB/ATTACHMENT,xmlquestattachment,WprowadzenieSekta,dodelete/true;SETONTRIGMOB/Title/- nowicjusz;SETONTRIGMOB/ATTACHMENT,xmlquestattachment,TestZaufaniaSzkodnika,dodelete/true;SETONTRIGMOB/ATTACHMENT,xmlquestattachment,TestZaufania,dodelete/true;SETONTRIGMOB/ATTACHMENT,xmlquestattachment,ZlyDiego,dodelete/true;SETONTRIGMOB/ATTACHMENT,xmlquestattachment,MaList,dodelete/true;SETONTRIGMOB/ATTACHMENT,xmlquestattachment,DexterDiego,dodelete/true;SETONTRIGMOB/ATTACHMENT,xmlquestattachment,RaczkaDiego,dodelete/true;SETONTRIGMOB/ATTACHMENT,xmlquestattachment,SwistakDiego,dodelete/true;SETONTRIGMOB/ATTACHMENT,xmlquestattachment,ThorusDiego,dodelete/true;SETONTRIGMOB/ATTACHMENT,xmlquestattachment,ScattyDiego,dodelete/true;SETONTRIGMOB/ATTACH/xmlquestattachment,WObozie,21600</Action>
<DependsOn>20</DependsOn>
<Pause>1</Pause>
<PrePause>-1</PrePause>
<LockConversation>True</LockConversation>
<AllowNPCTrigger>False</AllowNPCTrigger>
<SpeechStyle>Regular</SpeechStyle>
<SpeechHue>-1</SpeechHue>
<Gump>GUMP,Cor Calom,4/Widze, ze wierzysz, ze Filiar niedlugo zawladnie naszymi umyslami. Oto Twoj stroj.</Gump>
</SpeechEntry>

ArteGordon- 02-11-2006
this seems to be a problem with label length in the xmledit gump. I have modified xmledit.cs to truncate those strings before displaying them in the gump.
The updated version is posted in the beta_308.zip attachment in the Upcoming Releases thread http://xmlspawner.15.forumer.com/index.php?showtopic=53
Also, you can shorten up that Action string by setting multiple properties with a single SETONTRIGMOB keyword, like

QUOTE
SETONTRIGMOB/ATTACHMENT,xmlquestattachment,BaalTyon,dodelete/true/ATTACHMENT,xmlquestattachment,BaalCadar,dodelete/true/ATTACHMENT,xmlquestattachment,BaalKagan,dodelete/true/ATTACHMENT,xmlquestattachment,BaalNamib,dodelete/true/ATTACHMENT,xmlquestattachment,BaalOrun,dodelete/true/ATTACHMENT,xmlquestattachment,BaalTondral,dodelete/true/ATTACHMENT,xmlquestattachment,BaalTyon,dodelete/true

instead of

QUOTE
SETONTRIGMOB/ATTACHMENT,xmlquestattachment,BaalTyon,dodelete/true;SETONTRIGMOB/ATTACHMENT,xmlquestattachment,BaalCadar,dodelete/true;SETONTRIGMOB/ATTACHMENT,xmlquestattachment,BaalKagan,dodelete/true;SETONTRIGMOB/ATTACHMENT,xmlquestattachment,BaalNamib,dodelete/true;SETONTRIGMOB/ATTACHMENT,xmlquestattachment,BaalOrun,dodelete/true;SETONTRIGMOB/ATTACHMENT,xmlquestattachment,BaalTondral,dodelete/true;SETONTRIGMOB,xmlquestattachment,BaalTyon,dodelete/true

I also spotted a few typos in there. Here is a modifed version of what you posted

QUOTE
<SpeechEntry> <EntryNumber>30</EntryNumber> <ID>30</ID> <Keywords>zgoda</Keywords> <Action>SETONTRIGMOB/ATTACHMENT,xmlquestattachment,BaalTyon,dodelete/true/ATTACHMENT,xmlquestattachment,BaalCadar,dodelete/true/ATTACHMENT,xmlquestattachment,BaalKagan,dodelete/true/ATTACHMENT,xmlquestattachment,BaalNamib,dodelete/true/ATTACHMENT,xmlquestattachment,BaalOrun,dodelete/true/ATTACHMENT,xmlquestattachment,BaalTondral,dodelete/true/ATTACHMENT,xmlquestattachment,BaalTyon,dodelete/true;GIVE/Sandals,2306;GIVE/KiltObozowy,2109,Kilt Nowicjusza;GIVE/BodySash;SETONTRIGMOB/Oboz/3/Ranga/1/ATTACHMENT,xmlquestattachment,MaZiele,dodelete/true/ATTACHMENT,xmlquestattachment,GhorimHarlok,dodelete/true/ATTACHMENT,xmlquestattachment,WprowadzenieSekta,dodelete/true/Title/- nowicjusz/ATTACHMENT,xmlquestattachment,TestZaufaniaSzkodnika,dodelete/true/ATTACHMENT,xmlquestattachment,TestZaufania,dodelete/true/ATTACHMENT,xmlquestattachment,ZlyDiego,dodelete/true/ATTACHMENT,xmlquestattachment,MaList,dodelete/true/ATTACHMENT,xmlquestattachment,DexterDiego,dodelete/true/ATTACHMENT,xmlquestattachment,RaczkaDiego,dodelete/true/ATTACHMENT,xmlquestattachment,SwistakDiego,dodelete/true/ATTACHMENT,xmlquestattachment,ThorusDiego,dodelete/true/ATTACHMENT,xmlquestattachment,ScattyDiego,dodelete/true/ATTACH/xmlquestattachment,WObozie,21600</Action>
<DependsOn>20</DependsOn>
<Pause>1</Pause>
<PrePause>-1</PrePause>
<LockConversation>True</LockConversation>
<AllowNPCTrigger>False</AllowNPCTrigger>
<SpeechStyle>Regular</SpeechStyle>
<SpeechHue>-1</SpeechHue>
<Gump>GUMP,Cor Calom,4/Widze, ze wierzysz, ze Filiar niedlugo zawladnie naszymi umyslami. Oto Twoj stroj.</Gump>
</SpeechEntry>