Jump to content
  • 0

[Warning]: Unable to restore stack! Double continuation!


Petey Pablo

Question


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.03
  • Content Count:  569
  • Reputation:   11
  • Joined:  11/24/11
  • Last Seen:  

How to fix this?


[Warning]: Unable to restore stack! Double continuation!
[Debug]: Previous script (lost):
[Debug]: Source (NPC): BKTriggers (invisible/not on a map)
[Debug]: Current script:
[Debug]: Source (NPC): TimeoutCtrl (invisible/not on a map)

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

script.c

    else if(st->state != END && st->rid){
       //Resume later (st is already attached to player).
       if(st->bk_st) {
           ShowWarning("Unable to restore stack! Double continuation!\n");
           //Report BOTH scripts to see if that can help somehow.
           ShowDebug("Previous script (lost):\n");
           script_reportsrc(st->bk_st);
           ShowDebug("Current script:\n");
           script_reportsrc(st);

           script_free_state(st->bk_st);
           st->bk_st = NULL;
       }
   }

it just like OnPCDieEvent topic just now

when having multiple event labels trigger on same player,

that error message is "event queue full"

this one however can be reproduce by

prontera,154,183,5    script    asdas    100,{
   attachrid 2000000;
   mes "asdasdasd";
   next;
   mes "asdasdas";
   close;
}

dual-client from account_id 2000001 click on that npc

it keep sending dialog to account_id 2000000

post-8685-0-09926300-1352826243_thumb.jpg

[Warning]: Unable to restore stack! Double continuation!
[Debug]: Previous script (lost):
[Debug]: Source (NPC): asdas at prontera (154,183)
[Debug]: Current script:
[Debug]: Source (NPC): asdas at prontera (154,183)

in other words,

some of your GM in your server send npc:bk twice to your player to perform a bot-check

this error should be consider minor because it is an utility script ...

and I don't think this will harm your server at all

but if this error happens in an event script than its another story ...

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  01/21/13
  • Last Seen:  

[Warning]: Unable to restore stack! Double continuation!
[Debug]: Previous script (lost):
[Debug]: Source (NPC): botcheck(invisible/not on a map)
[Debug]: Current script:
[Debug]: Source (NPC): botcheck(invisible/not on a map)

i had same issue with my script

 

OnNPCKillEvent:
	sleep2 100;
	if (rand(100) != 1) {
		end;
	}
	mes "[botcheck]";
	mes "answer this";
	next; 

 

 

when someone uses an AOE skill and a lot of monsters killed this message always appears,
 
how to prevent it?
what use the var? or is there another way?

thanks

Edited by sonyinside
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

Try removing the 'sleep2' and see if it still happens.

If the [Warning] still happens, you could do something like:

  • script does the rand() check
  • if it's going to Bot Check them, first set a temporary char variable
    set @is_bot_check, 1;
  • add a check right after OnNPCKillEvent so if (@is_bot_check == 1), meaning they are in the middle of a both check, then the script won't try to check them again at the same time
  • at the end of your script, right before 'close'
    set @is_bot_check, 0;
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  2
  • Reputation:   0
  • Joined:  01/21/13
  • Last Seen:  

Brian thank for ur help, 
when i remove sleep2

then this mesage appear
 

[Warning]: npc_event: player's event queue is full, can't add event 'BotKiller::OnNPCKillEvent' !

 

but its work using sleep2 and temp char variable,
no warning appear :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...