Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

Pet system game.core


Question

I am using pet system official and i have some errors.

here is my game.core

Spoiler


For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/srv1/share/bin/game...
[New LWP 100155]
[New LWP 100151]
[New LWP 100152]
[New LWP 100169]
Core was generated by `./srv1-ch1-core1'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  ITEM_MANAGER::GetTable (this=0xffbfb3ac, vnum=55400)
--Type <RET> for more, q to quit, c to continue without paging--bt full
    at item_manager.cpp:613
613     item_manager.cpp: No such file or directory.
[Current thread is 1 (LWP 100155)]
 

item_mananger.cpp(line 603-624)

Spoiler

TItemTable * ITEM_MANAGER::GetTable(DWORD vnum)
{
    int rnum = RealNumber(vnum);

    if (rnum < 0)
    {
        for (size_t i = 0; i < m_vec_item_vnum_range_info.size(); i++)
        {
            TItemTable* p = m_vec_item_vnum_range_info;
            if ((p->dwVnum < vnum) &&
                vnum < (p->dwVnum + p->dwVnumRange))
            {
                return p;
            }
        }

        return NULL;
    }

    return &m_vec_prototype[rnum];
}
 

 

Link to post

7 answers to this question

Recommended Posts

  • 0
Posted (edited)

Use the gdb like Night said and we may help you. What you show us is not showing the error's origin, ITEM_MANAGER::GetTable only involved but not your problem, i'm sure.

 

so

gdb
set gnutarget i386-marcel-freebsd
file game
core game.core
bt
bt full

Show in a screenshot/copy here the output from bt and bt full too, sometimes bt is enough to solve the problem and it's shorter.

Edited by TMP4 (see edit history)
  • Love 1
Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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