SRC error while recovering missing costumes

Nekotine

New member
Messages
7
Points
0
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

[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

        }
            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

 
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.

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

Code:
: 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
 
Back
Top