SphereCommunity
Error befor save - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Error befor save (/Thread-Error-befor-save)



Error befor save - Doberman - 10-13-2016 07:07 AM

Hi!
After saving appears errors.
What is it?
Code:
ERROR:GC: 2 unplaced object deleted
ERROR:UID=04006e1f1, id=0eed 'gold coin', Invalid code=3202 (Object not placed in the world)
ERROR:'Feeblemind' Bad Link to 093911
ERROR:UID=04006d73e, id=04324 'Feeblemind', Invalid code=2205 (Mislinked item)
GC: 95017 Objects accounted for

ERROR:'Curse' Bad Link to 06cee8
ERROR:UID=04006d994, id=04655 'Curse', Invalid code=2205 (Mislinked item)
GC: 95011 Objects accounted for

Sphere 56d


RE: Error befor save - Coruja - 10-13-2016 02:50 PM

there's nothing to worry, the "object not placed in world" means that an object got created but without get placed somewhere. So the object virtually "doesn't exist" and the server will remove it on worldsave. Usually its caused by scripts where you use SERV.NEWITEM but don't equip this created item on an char, don't bounce it to an container and don't place it on ground, so the object is created but still not placed on world

and the "mislinked item" error on spell memories usually occur when an NPC cast some spell that will add some effect on the target (eg: feeblemind, curse, bless, poison, etc) and later this NPC die. So the spell memory still equipped on the target but the caster NPC doesn't exist anymore, resulting the "mislinked item", where this memory will be removed on worldsave


RE: Error befor save - Doberman - 10-13-2016 04:11 PM

I"m understand, thank you.


RE: Error befor save - darksun84 - 10-14-2016 01:56 AM

(10-13-2016 02:50 PM)Coruja Wrote:  there's nothing to worry, the "object not placed in world" means that an object got created but without get placed somewhere. So the object virtually "doesn't exist" and the server will remove it on worldsave. Usually its caused by scripts where you use SERV.NEWITEM but don't equip this created item on an char, don't bounce it to an container and don't place it on ground, so the object is created but still not placed on world

and the "mislinked item" error on spell memories usually occur when an NPC cast some spell that will add some effect on the target (eg: feeblemind, curse, bless, poison, etc) and later this NPC die. So the spell memory still equipped on the target but the caster NPC doesn't exist anymore, resulting the "mislinked item", where this memory will be removed on worldsave

When an item is removed in that way (by worldsave), does the item still fire triggers like @Unequip, @Destroy and so on?


RE: Error befor save - Coruja - 10-14-2016 07:14 AM

I never tested this, but maybe you can simulate this error to check if it call triggers before remove the item

Code:
[FUNCTION lol]
SERV.NEWITEM i_gold
NEW.EVENTS +e_test
SERV.SAVE

[EVENTS e_test]
ON=@Destroy
SERV.LOG Calling trigger @Destroy



RE: Error befor save - darksun84 - 10-19-2016 09:53 PM

Seems like is not fired, but i don't think it should be an issue.