Petey Pablo Posted November 13, 2012 Posted November 13, 2012 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) Quote
AnnieRuru Posted November 13, 2012 Posted November 13, 2012 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 [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 ... 1 Quote
sonyinside Posted March 8, 2013 Posted March 8, 2013 (edited) [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 March 8, 2013 by sonyinside Quote
Brian Posted March 8, 2013 Posted March 8, 2013 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 variableset @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; 1 Quote
sonyinside Posted March 10, 2013 Posted March 10, 2013 Brian thank for ur help, when i remove sleep2then 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 Quote
Question
Petey Pablo
How to fix this?
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.