Jump to content
  • 0
Sign in to follow this  
Luffy

[ERROR] timer_do_delete error

Question

[Error]: timer_do_delete error : function mismatch [269]008F3970(npc_timerevent) != 00AFFF10(unit_walk_toxy_timer)

 

i got this error. i dunno why. 

[Error]: UnknownStatusChange [271]
[Error]: UnknownStatusChange [271]
[Error]: UnknownStatusChange [271]
[Error]: UnknownStatusChange [271]
[Error]: UnknownStatusChange [271]
[Error]: UnknownStatusChange [271]
[Error]: UnknownStatusChange [271]
[Error]: UnknownStatusChange [271]
[Error]: UnknownStatusChange [271]
[Error]: UnknownStatusChange [271]
[Error]: UnknownStatusChange [271]
[Error]: UnknownStatusChange [271]

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

not sure what wrong with timer. you changed code or add any plugins?

 

About status effect, look like you have outdated at least constants.conf.

 

Try test for same issues on clean hercules.

 

Share this post


Link to post
Share on other sites
  • 0
3 hours ago, Luffy said:

[Error]: timer_do_delete error : function mismatch [269]008F3970(npc_timerevent) != 00AFFF10(unit_walk_toxy_timer)

 

i got this error. i dunno why. 

[Error]: UnknownStatusChange [271]
[Error]: UnknownStatusChange [271]
[Error]: UnknownStatusChange [271]
[Error]: UnknownStatusChange [271]
[Error]: UnknownStatusChange [271]
[Error]: UnknownStatusChange [271]
[Error]: UnknownStatusChange [271]
[Error]: UnknownStatusChange [271]
[Error]: UnknownStatusChange [271]
[Error]: UnknownStatusChange [271]
[Error]: UnknownStatusChange [271]
[Error]: UnknownStatusChange [271]

HI Bro, you can fix this by adding in db/sc_config.conf

SC_KSPROTECTED: {

    Flags: {

        NoClearanceReset: true

        Buff: true

    }

    Icon: "SI_ANGEL_PROTECT"

}

 

Share this post


Link to post
Share on other sites
  • 0

Hey bro, okay lemme try.
is this already patch on latest revision? i think i updated mine like last 2 weeks ago .

Share this post


Link to post
Share on other sites
  • 0

Hi.

 

@4144

The failed assertion for deleting unit_walk_toxy_timer timers was reported to me several times since https://github.com/HerculesWS/Hercules/pull/2546 was merged.
 

  • https://herc.ws/board/topic/18060-mob-bug/#comment-94997
     
  • From Discord:
    Quote

    Fiction 18.03.2020

    I don't know if this is a bug, but some mobs spam the map-server with an error
    https://prnt.sc/rin813

     

  • From PM:
    Quote
    
    [Error]: timer_do_delete error : function mismatch [179](nil)(unknown timer function) != 0x5609b422dfc0(unit_walk_toxy_timer)
    [Error]: --- failed assertion --------------------------------------------
    [Error]: timer.c:398: '0' in function `timer_do_delete'
    [Error]: ./map-server(+0x24a8ef) [0x5609b42448ef]
    [Error]: ./map-server(+0x2560dc) [0x5609b42500dc]
    [Error]: ./map-server(+0x23bbfa) [0x5609b4235bfa]
    [Error]: ./map-server(+0x23847a) [0x5609b423247a]
    [Error]: ./map-server(+0x2392c9) [0x5609b42332c9]
    [Error]: ./map-server(+0xf7cd2) [0x5609b40f1cd2]
    [Error]: ./map-server(+0xf4e4e) [0x5609b40eee4e]
    [Error]: ./map-server(+0xfac26) [0x5609b40f4c26]
    [Error]: ./map-server(+0xf4528) [0x5609b40ee528]
    [Error]: ./map-server(+0xed7b7) [0x5609b40e77b7]
    [Error]: --- end failed assertion ----------------------------------------

     

 

 

 

~Kenpachi

Share this post


Link to post
Share on other sites
  • 0

The only timer related modification I found in this PR is that now 0 is passed for data when assigning ud->walktimer.

Prior to this PR, the amount of added ticks was passed.

  • From:
    ud->walktimer = timer->add(timer->gettick()+i,unit->walktoxy_timer,bl->id,i);
    To:
    ud->walktimer = timer->add(timer->gettick() + timer_delay, unit->walk_toxy_timer, bl->id, 0); //TODO: check if unit->walk_toxy_timer uses any intptr data

     

  • From:
    ud->walktimer = timer->add(tick+i,unit->walktoxy_timer,id,i);
    To:
    ud->walktimer = timer->add(tick + timer_delay, unit->walk_toxy_timer, id, 0);

 

 

unit_walk_toxy_timer() doesn't use the data parameter, but at least unit_stop_walking() uses the TimerData->data field.

I can't tell if those changes are causing the error, yet. Unfortunately I'm unable to get that error popping up while debugging. 😥

 

 

~Kenpachi

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.