Jump to content

How solve this game.core error


Recommended Posts

This my game.core debug:

Spoiler

#0  0x0821a67a in CTableBySkill::GetSkillPowerByLevelFromType (
    this=0xffffcac0, job=0, skillgroup=137, skilllevel=20, bMob=false)
    at skill_power.cpp:44
44      skill_power.cpp: No such file or directory.
        in skill_power.cpp
 

Channels are down.How do i solve this problem?

Link to comment
Share on other sites

21 hours ago, account said:

check skill_power.cpp line 44 if you are not using a self compiled game, then : just die.

i already checked skill_power.cpp at line 44 in there function:

Spoiler

int CTableBySkill::GetSkillPowerByLevelFromType(int job, int skillgroup, int skilllevel, bool bMob) const
{
    if (bMob)
    {
        return m_aiSkillPowerByLevelFromType[0][skilllevel];
    }

    if (job >= JOB_MAX_NUM || skillgroup == 0)
        return 0;

    int idx = (job * 2) + (skillgroup - 1);

    return m_aiSkillPowerByLevelFromType[idx][skilllevel]; //its 44.line
}

my full skill_power.cpp in attachment

skill_power.cpp

Link to comment
Share on other sites

well the idx could be wrong too since the skillpower is loaded from a txt file if it is not updated then it could go wrong.

the table is loaded here :

snprintf(szQuery, sizeof(szQuery), "SELECT mValue from locale where mKey='SKILL_POWER_BY_LEVEL_TYPE%d' ORDER BY CAST(mValue AS unsigned)", job);

in other word it is in the locale table (common db) .

but the funny thing is that such a thing was never used even with r404 in 2009.

Link to comment
Share on other sites

1 hour ago, account said:

well the idx could be wrong too since the skillpower is loaded from a txt file if it is not updated then it could go wrong.

the table is loaded here :

snprintf(szQuery, sizeof(szQuery), "SELECT mValue from locale where mKey='SKILL_POWER_BY_LEVEL_TYPE%d' ORDER BY CAST(mValue AS unsigned)", job);

in other word it is in the locale table (common db) .

but the funny thing is that such a thing was never used even with r404 in 2009.

i think i found cause of problem:

i had a problem when i using no txt.its the players set skill groups randomize values(is bigger than 2).i think the error saying :

CTableBySkill::GetSkillPowerByLevelFromType (
    this=0xffffcac0, job=0, skillgroup=137, skilllevel=20, bMob=false)

it is warrior.server try to getting warriors skill power from skill group 137 but warrior have 2 skill groups.

When i using no txt old players skill_groups reseting and skill windows is empty(key v).i wrote a quest for this problem:

Spoiler

quest skillgroupbugfix begin
    state start begin
        when login with pc.get_skill_group() > 2 begin
                       pc.clear_skill()

                    pc.set_skill_group(0)

                    set_quest_state("skill_group","run")
        end
    end
end

so no txt is wrong.And still players when chatting the core dump.

 

  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.