PenUltima Online

It is currently Fri Aug 29, 2008 4:45 pm

All times are UTC - 8 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: dblclickother attachment [096 2005-12-08 (and newer?)]
PostPosted: Wed May 24, 2006 12:58 pm 
Offline
User avatar

Joined: Sun Feb 05, 2006 1:34 pm
Posts: 58
Location: Italy
I've posted 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... ;) (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 :P

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


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 24, 2006 4:44 pm 
Offline

Joined: Sat Feb 04, 2006 5:49 pm
Posts: 744
Location: Chicago, IL USA
I still get that in my spellcasting scripts sometimes.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 25, 2006 1:16 am 
Offline

Joined: Sun Feb 05, 2006 4:35 pm
Posts: 160
Location: Poland
CWO wrote:
I still get that in my spellcasting scripts sometimes.


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

_________________
Shutdown();


Top
 Profile  
 
 Post subject: Re: dblclickother attachment [096 2005-12-08 (and newer?)]
PostPosted: Fri May 26, 2006 1:06 am 
Offline
POL Core Developer

Joined: Mon Jan 30, 2006 9:28 am
Posts: 292
Location: Germany, Bavaria
Developer Silver wrote:
If it's already fixed, sorry and forgot this post :P

found and fixed in Pol096 final (next release)

Shinigami


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

Joined: Mon Jan 30, 2006 9:28 am
Posts: 292
Location: Germany, Bavaria
CWO wrote:
I still get that in my spellcasting scripts sometimes.

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

Shinigami


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 27, 2006 5:25 pm 
Offline

Joined: Sat Feb 04, 2006 5:49 pm
Posts: 744
Location: Chicago, IL USA
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.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 28, 2006 1:38 am 
Offline
POL Core Developer

Joined: Mon Jan 30, 2006 9:28 am
Posts: 292
Location: Germany, Bavaria
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 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