Jump to content
  • 0
Sign in to follow this  
Nekotine

SRC error while recovering missing costumes

Question

Sorry I don't know if this should go to database or source section

 

While messing around with the database trying to recover missing costumes I got this error on the map-server.bat

Spoiler

[Warning]: pc_bonus2: unknown type 0 0 5!
[Error]: --- failed assertion --------------------------------------------
[Error]: D:\ro_offline_2021\01_emulator\hercules_pre\src\map\pc.c:3929: '0' in function `pc_bonus2'
[Error]: --- end failed assertion ----------------------------------------

 

If I understood this leads to pc.c

Spoiler


        }
            break;
        default:
            ShowWarning("pc_bonus2: unknown type %d %d %d!\n",type,type2,val);
            Assert_report(0);
            break;
    }
    return 0;
}

 

where I don't really see anything helpful

 

The item works, kinda, it shows in game (.spr and ,act) but I still need to work on the client side even if some already have descriptions and all

 

Server side, it has nothing, no bonus whatsoever, it's just a costume with basic settings (ID, type, location, view...) 

 

What do that means and how do i fix that?

 

hercules pre re

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

your script try to add incorrect bonus.

and warning show what parameters you send to function. Your bonus type is zero.

most time this error happened if you use not existing constant. it can be typo or copy paste from other emulators.

 

Share this post


Link to post
Share on other sites
  • 0

I see, after some tests apparently I got rid of that issue but now I see a new message

 

Spoiler

: DB error - Unknown column 'grade' in 'field list'
[Debug]: at D:\ro_offline_2021\01_emulator\hercules_pre\src\map\log.c:191 - INSERT DELAYED INTO `picklog` (`time`, `char_id`, `type`, `nameid`, `amount`, `refine`, `grade`, `card0`, `card1`, `card2`, `card3`, `opt_idx0`, `opt_val0`, `opt_idx1`, `opt_val1`, `opt_idx2`, `opt_val2`, `opt_idx3`, `opt_val3`, `opt_idx4`, `opt_val4`, `map`, `unique_id`) VALUES (NOW(), '1635', 'M', '7347', '-1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', 'lhz_dun03', '0')

 

For what I understood this is related to mobs and their drops, something seems to be calling for drops but there is a delay of some sort. again no custom drops or changes into the mob files

 

Could this be related to drop boost items such as bubblegum or bubblegum in mouth lower headgear?

Spoiler

bonus2 bDropAddRace,RC_All,5;

 If that's is the case these are the only things I can think of that could be causing it

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.