PenUltima Online

It is currently Wed Aug 20, 2008 10:10 am

All times are UTC - 4 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 
Author Message
 Post subject: AOS Tooltip crash [all core versions]
PostPosted: Wed May 24, 2006 5:28 pm 
Offline
User avatar

Joined: Sun Feb 05, 2006 5:34 pm
Posts: 58
Location: Italy
With every core version I've tested, our tooltip hook crashes POL... I can't figure exactly where is the problem, but I've saved some crash dumps (generated with 2005-05-09b core) to attach here...

If someone remember, I've posted this problem on yahoo group on past December... and it still torment our dreams! :(

We love tooltips, but we can't use them on our shard! :(
Someone can help us?

P.S.: anyone here has a full working tooltip hook?

_________________
Developer Silver
Faerun's Legends scripter
http://www.faerunslegends.it/


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 24, 2006 5:54 pm 
Offline
POL Developer
User avatar

Joined: Mon Feb 13, 2006 1:50 am
Posts: 830
Location: Indiana, USA
What is it you are using your tooltip hook for? Tooltips are functional now (including notoriety) in the core.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 24, 2006 6:01 pm 
Offline
POL Core Developer

Joined: Mon Jan 30, 2006 1:28 pm
Posts: 292
Location: Germany, Bavaria
please test with latest core... there is a PacketHook bugfix. maybe it will fix your problem?

Shinigami


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 25, 2006 4:47 am 
Offline
User avatar

Joined: Sun Feb 05, 2006 5:34 pm
Posts: 58
Location: Italy
MuadDib wrote:
What is it you are using your tooltip hook for? Tooltips are functional now (including notoriety) in the core.

We hook tooltip packet to obtain a detailed description of objects... see linked screenshot ;) [sorry but it's in italian]

Image


Shinigami wrote:
please test with latest core... there is a PacketHook bugfix. maybe it will fix your problem?

Shinigami

Tested with latest core... no good result... same crash as usual.
Here's a fresh new dump. :)

_________________
Developer Silver
Faerun's Legends scripter
http://www.faerunslegends.it/


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 25, 2006 7:52 am 
Offline
POL Core Developer

Joined: Mon Jan 30, 2006 1:28 pm
Posts: 292
Location: Germany, Bavaria
can u attach the uopacket.cfg too? will help a lot... thx

Shinigami


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 25, 2006 8:32 am 
Offline
User avatar

Joined: Sun Feb 05, 2006 5:34 pm
Posts: 58
Location: Italy
Shinigami wrote:
can u attach the uopacket.cfg too? will help a lot... thx

Shinigami


Sure :)
It's the same uopacket.cfg posted on yahoo groups:


Code:
Packet 0xD6
{
   Length      variable
   SendFunction   pacchetto_tooltip:tooltip_hook
}

_________________
Developer Silver
Faerun's Legends scripter
http://www.faerunslegends.it/


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 26, 2006 7:27 am 
Offline
POL Core Developer

Joined: Mon Jan 30, 2006 1:28 pm
Posts: 292
Location: Germany, Bavaria
as u posted somewhere, it will not crash everytime... so, it would help a lot if u could syslog the packet u'll send via hook so we can take a look... my own tests with your code doesn't crash.

Shinigami


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 26, 2006 12:38 pm 
Offline
Distro Developer
User avatar

Joined: Fri Feb 10, 2006 12:08 pm
Posts: 305
Location: Myrtle Beach, South Carolina
I had the same problems you fellas had. If you SetUnicodeString nullterminator to 0 it'll crash the server.

Anyway, I've been working on it for a week and finally got it all working.

It's just a basic starter.

http://forums.polserver.com/viewtopic.p ... highlight=

(yes I posted this in two topics, just want to make sure you guys get it and figure out the problem.)


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 29, 2006 12:21 pm 
Offline
User avatar

Joined: Sun Feb 05, 2006 5:34 pm
Posts: 58
Location: Italy
Ok we're merging our script with the one posted by Unreal, and in the first tests it seems to work well.. we'll up the result to the live shard to do a better stress-test and we'll report here... 8)
Modifications made are about managing of SetUnicodeString(), setting strings size and minor adjustment of packet indexes.

If it will work, the problem were 90% in SetUnicodeString() :?

The strange thing is: how's possibile that a malformed packet show perfectly on client, but crashes POL? :?:


@Shini: what syslog do you need? A print of packet before and after our hook? (the old, crashing script)

_________________
Developer Silver
Faerun's Legends scripter
http://www.faerunslegends.it/


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 29, 2006 12:56 pm 
Offline
POL Core Developer

Joined: Mon Jan 30, 2006 1:28 pm
Posts: 292
Location: Germany, Bavaria
Unreal wrote:
If you SetUnicodeString nullterminator to 0 it'll crash the server.

can u post a working... erm crashing... example? I tried it but no crash...

Shinigami


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 18, 2006 7:30 am 
Offline
POL Core Developer

Joined: Mon Jan 30, 2006 1:28 pm
Posts: 292
Location: Germany, Bavaria
Developer Silver wrote:
The strange thing is: how's possibile that a malformed packet show perfectly on client, but crashes POL? :?:

I should remember which Postings are interessting... that's why I HATE webforums... and would use NewsServer (nntp) if available - because u can decide what u've read...

anyway... the packet looks fine, yes... but something in internal packet-build structure will destruct stuff... ok, it's fixed in past 20060916 releases (pol096.4 & pol097)

Shinigami


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 

All times are UTC - 4 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl