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
dblclickother attachment [096 2005-12-08 (and newer?)]

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 096
Display posts from previous:   

Author Message
Developer Silver



Joined: 05 Feb 2006
Posts: 58
Location: Italy

PostPosted: Wed May 24, 2006 4:58 pm    Post subject: dblclickother attachment [096 2005-12-08 (and newer?)] Reply with quote

I've this bug on yahoo group 5 months ago, but I've never seen a bugfix in core-changes, so I think it's still here... Wink (I don't use dblclickother anymore)

Quote:

Yesterday I've added the dblclickother script on the live shard, but
something is wrong... now POL crashes very often (1 hour max between
crashes), without dump, printing this lines in console:

- - - - -
Character::start_script hiccup
Trying to start script scripts/misc/dblclickother.ecl
Script [something] is already running
Assertion Failed: !start_attached || (script_ex == NULL),
.\chrituse.cpp, line 30
Aborting due to assertion failure.

- - - - -

[something] is every time a different script...


We use latest core, and the code in dblclickother is very simple:
- - - - -
if(clicked.graphic in {400, 401, 605, 606})
OpenPaperdoll( who, clicked );
endif

- - - - -


Any idea?


It may be something related to other script attached to char...

If it's already fixed, sorry and forgot this post Razz

Author Message
CWO



Joined: 04 Feb 2006
Posts: 699
Location: Chicago, IL USA

PostPosted: Wed May 24, 2006 8:44 pm    Post subject: Reply with quote

I still get that in my spellcasting scripts sometimes.

Author Message
qrak



Joined: 05 Feb 2006
Posts: 160
Location: Poland

PostPosted: Thu May 25, 2006 5:16 am    Post subject: Reply with quote

CWO wrote:
I still get that in my spellcasting scripts sometimes.


Yes. Function StartSpellEffect crashes POL sometimes. Very old problem.

Author Message
Shinigami
POL Core Developer


Joined: 30 Jan 2006
Posts: 292
Location: Germany, Bavaria

PostPosted: Fri May 26, 2006 5:06 am    Post subject: Re: dblclickother attachment [096 2005-12-08 (and newer?)] Reply with quote

Developer Silver wrote:
If it's already fixed, sorry and forgot this post Razz

found and fixed in Pol096 final (next release)

Shinigami

Author Message
Shinigami
POL Core Developer


Joined: 30 Jan 2006
Posts: 292
Location: Germany, Bavaria

PostPosted: Fri May 26, 2006 5:06 am    Post subject: Reply with quote

CWO wrote:
I still get that in my spellcasting scripts sometimes.

can u give more info (like sample code or log or something)?

Shinigami

Author Message
CWO



Joined: 04 Feb 2006
Posts: 699
Location: Chicago, IL USA

PostPosted: Sat May 27, 2006 9:25 pm    Post subject: Reply with quote

Code:

[03/19 19:26:13] Client#35: Leaving queued mode (13361 bytes xmitted)
[03/19 19:27:00] sysload=0 (0) cputime=890625
[03/19 19:27:01] [pkg/systems/NuNPCSpawnr/nunpcspawnr.ecl]: NPCSpawner: 22 active runes
[03/19 19:27:19] Character::start_script hiccup
Trying to start script pkg/skills/spells/spellBook/castSpell.ecl
Script pkg/skills/spells/manaVamp.ecl is already running
Assertion Failed: !start_attached || (script_ex == NULL), .\chrituse.cpp, line 30
Aborting due to assertion failure.


log from a while back.... Nothing out of the usual except of course the assertion failure...


CastSpell.src This is called when a char uses a spell from the spellbook.
Code:

use uo;

program castSpell(who, spell_id)
   var script := Start_Script("spellStarter", {who, spell_id});
   if ( script.errortext )
      SendSysMessage(who, "Error - Could not start spell starter ->"+script.errortext);
      return 0;
   endif
   
   return 1;
endprogram


ManaVamp.src is kinda hard to post because theres a ton of included code in it. I could try if you really need it.

Author Message
Shinigami
POL Core Developer


Joined: 30 Jan 2006
Posts: 292
Location: Germany, Bavaria

PostPosted: Sun May 28, 2006 5:38 am    Post subject: Reply with quote

CWO wrote:
Code:

Trying to start script pkg/skills/spells/spellBook/castSpell.ecl
Script pkg/skills/spells/manaVamp.ecl is already running
Assertion Failed: !start_attached || (script_ex == NULL), .\chrituse.cpp, line 30

in this case we've a conflict... only one script per time can be attached to a player but u try to attach more than one... (attaching is needed to check how is responsible for damage etc.). so u've to block something like that in your scripts (btw: how can one mage cast 2 spells @ same time?)

add something like
Code:
  If (!GetObjProperty(who, "#CastSpell"))
    SetObjProperty(who, "#CastSpell", 1);
   
    // ...

    EraseObjProperty(who, "#CastSpell");
  Else
    SendSysMessage(who, "Casting two Spells at same Time? *wondering*");
  EndIf

to your CastSpell.src

Shinigami

Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 096 All times are GMT - 4 Hours
Page 1 of 1

 




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