PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
POL 097 2006-09-16 Crash reproduced

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    PenUltima Online Forum Index -> Bug Reports 097
Display posts from previous:   

Author Message
VeNdOr



Joined: 07 Feb 2006
Posts: 52
Location: Rome, Italy

PostPosted: Mon Oct 02, 2006 4:18 pm    Post subject: POL 097 2006-09-16 Crash reproduced Reply with quote

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...

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Sat Oct 07, 2006 6:49 am    Post subject: Reply with quote

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.

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Sat Oct 07, 2006 8:06 am    Post subject: Reply with quote

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.

Post new topic   This topic is locked: you cannot edit posts or make replies.    PenUltima Online Forum Index -> Bug Reports 097 All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty