It is currently Mon Dec 01, 2008 9:56 am

All times are UTC - 8 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: POL 097 2006-09-16 Crash reproduced
PostPosted: Mon Oct 02, 2006 12:18 pm 
Offline

Joined: Tue Feb 07, 2006 10:36 am
Posts: 52
Location: Rome, Italy
with this script as text command:

use uo;
use os;

program test(who)
var item:=CreateItemInBackpack(who,"blackstaff");
Reserveitem(item);
EquipItem(who,item);
sleep(3);
DestroyItem(item);

endprogram

if ,after equipped the black staff, i pick&hold it on the hand (pol should not permit me doing this one) then (on destroy) server crash, with this sentence:

remove_item_from_world: item 0x40024995 at 0,0 does not exist in world zone
Assertion Failed: itr != zone.items.end(), .\uworld.cpp, line 40
Forcing stack backtrace.
Unhandled Exception! Minidump started...


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 07, 2006 2:49 am 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 843
Location: Bowling Green, KY
Actually, you can stop them picking it up in the script.

Using ReserveItem will keep them from being able to pick it up, etc.

Far as the crash, yes, some redundant check needs to be done to prevent it in the gotten item state.

_________________
POL Developer - The Penguin Scripter


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 07, 2006 4:06 am 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 843
Location: Bowling Green, KY
For 096.4 and next 097 beta.

Quote:
Fixed : Crash involving UO::DestroyItem being called on an item being held
by a player. Now returns an error same as if item is in use and not
reserved to that character.
Note : ALWAYS remember, to keep bugs happening in your scripts that involve
players picking up/moving items to keep them from being removed from
containers or ground by scripts, or from being destroyed, ALWAYS use
ReserveItem() to lock that item. If an item is reserved, you cannot
pick it up, etc.

_________________
POL Developer - The Penguin Scripter


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

All times are UTC - 8 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