Jump to content
  • 0
Tio Akima

Memory Manager - error

Question

5 answers to this question

Recommended Posts

  • 0

you using any plugins or mods? if yes, try on clean hercules.

error mostly mean memory corruption, but it not say where and why. In windows i not sure what exists any simple way to debug this.

Share this post


Link to post
Share on other sites
  • 0
21 minutes ago, 4144 said:

you using any plugins or mods? if yes, try on clean hercules.

error mostly mean memory corruption, but it not say where and why. In windows i not sure what exists any simple way to debug this.

Thanks for answering.
This error is coming from the TK skill.
TK_RUN ...

I put a function in the skill. in Status.c
in case SC_RUN I put this call:

struct mob_data *md = bl;
skill->castend_nodamage_id(&md->bl, &md->bl, NPC_SELFDESTRUCTION, 1, timer->gettick(), 0);		//mob explode	

and it was thus:

case SC_RUN:
            {                    
                struct unit_data *ud = unit->bl2ud(bl);
                bool begin_spurt = true;
                // Note: this int64 value is stored in two separate int32 variables (FIXME)
                int64 starttick  = (int64)sce->val3&0x00000000ffffffffLL;
                      starttick |= ((int64)sce->val4<<32)&0xffffffff00000000LL;

                if (ud) {
                    if(!ud->state.running)
                        begin_spurt = false;
                    printf("enter 1 \n");  //console message
                    ud->state.running = 0;

                        struct mob_data *md = bl;               
                        skill->castend_nodamage_id(&md->bl, &md->bl, NPC_SELFDESTRUCTION, 1, timer->gettick(), 0);      
 //mob explode            
                
                    if (ud->walktimer != INVALID_TIMER){
                        unit->stop_walking(bl, STOPWALKING_FLAG_FIXPOS);
                        printf("enter 2 \n");  //console message                        
                        clif->specialeffect(bl, 223, AREA);        
                         printf("enter 3 \n");  //console message

                    }
                    
                }
                if (begin_spurt && sce->val1 >= 7
                 && DIFF_TICK(timer->gettick(), starttick) <= 1000
                 && (!sd || (sd->weapontype1 == W_FIST && sd->weapontype2 == W_FIST))
                )
                    sc_start(bl, bl,SC_STRUP,100,sce->val1,skill->get_time2(status->sc2skill(type), sce->val1));    
            }
            break;

-----------------------------------------------------------------------------------------------------------------------

Is it possible to correct this error?
Am I making the wrong call?

Share this post


Link to post
Share on other sites
  • 0

then yes this is your issue. you cast player to mob. and calling mod skill on player.

memory corruption is hercules issue, but normally no one call mob skill on player.

 

 

Share this post


Link to post
Share on other sites
  • 0
14 minutes ago, 4144 said:

then yes this is your issue. you cast player to mob. and calling mod skill on player.

memory corruption is hercules issue, but normally no one call mob skill on player.

 

I understand...
I'm calling SC_RUN on a mob ... And then, when SC_RUN stops, I call that function highlighted in red.

The skill is: the player calling SC_RUN in mob.
But this is working. The memory problem is when I put the highlighted call in red.

Is there any way to fix it? any way to make that call without error?
Thanks for that help. <3

Share this post


Link to post
Share on other sites
  • 0

red code show call skill on PLAYER. this is not mob. this is your error.

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...

×
×
  • Create New...

Important Information

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