Jump to content

Channel Stops Working


Go to solution Solved by displayjokes,

Recommended Posts

Hey, i'm still in test mode so i only have 2 channels, with one core each, channel1 and channel99..

Here's my problem:

When i start the server, go in game, after a few minutes/seconds or hours, it depends, even if i do nothing, the game seems like it goes down but i never get kicked out of the client..

I can't equip/unequip items, mount/unmount execute commands, it seems like i can only walk.. I can't even exit the client.. Have to be with the taskbar..

And i cannot login again or with other account unless i do a complete reboot.

Here's a print of my processes: https://metin2.download/picture/Y4OFU6UZ9f3WYJiA0FYbTKBjYqzuDq1t/.png

The channel1 should be with an "S" and it's with an "R" right? How can i fix this or which files can i check the error?

Here are some infos..

Channel1 Syserr:

Spoiler

SYSERR: Jun 20 19:20:56.819295 :: pid_init:
Start of pid: 935

SYSERR: Jun 20 19:21:35.356706 :: ItemLoad: cannot create item by vnum 49000 (name Display id 10000001)
SYSERR: Jun 20 19:21:35.356717 :: ItemLoad: cannot create item by vnum 49001 (name Display id 10000002)
SYSERR: Jun 20 19:21:35.356736 :: ItemLoad: cannot create item by vnum 41460 (name Display id 10000030)
SYSERR: Jun 20 19:21:35.358505 :: ChildLoop: AsyncSQL: query failed: Data too long for column 'hint' at row 1 (query: INSERT DELAYED INTO log (type, time, who, x, y, what, how, hint, ip) VALUES('CHARACTER', NOW(), 10002, 954319, 261200, 0, 'LOGIN', '192.168.1.8 1997735000 1 41 200000', '192.168.1.8') errno: 1406)
SYSERR: Jun 20 19:21:35.359575 :: ChildLoop: AsyncSQL: query failed: Incorrect integer value: 'Y' for column 'is_gm' at row 1 (query: INSERT INTO loginlog2(type, is_gm, login_time, channel, account_id, pid, ip, client_version) VALUES('INVALID', 'Y', NOW(), 1, 1, 10002, inet_aton('192.168.1.8'), '') errno: 1366)
SYSERR: Jun 20 19:22:08.796336 :: ChildLoop: AsyncSQL: query failed: Data too long for column 'hint' at row 1 (query: INSERT DELAYED INTO log (type, time, who, x, y, what, how, hint, ip) VALUES('CHARACTER', NOW(), 10002, 955102, 262059, 0, 'WARP', 'Display MapIdx 41 DestMapIdx0 DestX876500 DestY876500 Empire3', '192.168.1.8') errno: 1406)
SYSERR: Jun 20 19:22:08.918997 :: ChildLoop: AsyncSQL: query failed: Data too long for column 'hint' at row 1 (query: INSERT DELAYED INTO log (type, time, who, x, y, what, how, hint, ip) VALUES('CHARACTER', NOW(), 10002, 955102, 262059, 0, 'LOGOUT', '192.168.1.8 1997735000 1 41 200000', '192.168.1.8') errno: 1406)
SYSERR: Jun 20 19:22:10.557622 :: ItemLoad: cannot create item by vnum 49001 (name Display id 10000002)
SYSERR: Jun 20 19:22:10.557631 :: ItemLoad: cannot create item by vnum 49000 (name Display id 10000001)
SYSERR: Jun 20 19:22:10.557650 :: ItemLoad: cannot create item by vnum 41460 (name Display id 10000030)
SYSERR: Jun 20 19:22:10.557989 :: ChildLoop: AsyncSQL: query failed: Data too long for column 'hint' at row 1 (query: INSERT DELAYED INTO log (type, time, who, x, y, what, how, hint, ip) VALUES('CHARACTER', NOW(), 10002, 876500, 876500, 0, 'LOGIN', '192.168.1.8 1997735000 1 273 200000', '192.168.1.8') errno: 1406)

 

DB Syserr just has some monsters with wrong "Size"

Client Syserr:

Spoiler

0620 18:21:11093 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
0620 18:22:45773 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
0620 18:23:14559 :: CDungeonBlock::Load(filename=d:/ymir work/zone/dungeon/resources picking zon/mushroom01.gr2) - model count is 0

0620 18:24:56429 :: CDungeonBlock::Load(filename=d:/ymir work/zone/dungeon/resources picking zon/mushroom01.gr2) - model count is 0

0620 18:24:56429 :: CDungeonBlock::Load(filename=d:/ymir work/zone/dungeon/resources picking zon/mushroom01.gr2) - model count is 0

 

 

This happens a lot of times and i do not know why it does

 

I don't really know what to do at this point, so any help is much apreciated!

Thank you in advance

Edited by Metin2 Dev
Core X - External 2 Internal

It's all lies

Link to comment
Share on other sites

On 6/20/2019 at 7:00 PM, iFreakTime~.~ said:

Try to reinstall freebsd.

Just happened again, here's a print of the processes: https://metin2.download/picture/5NK1SVncivg7YB1Vt64H563sEjy9kGW8/.png

The channel works fine when it's on "S" and not on "R"

Need help to fix this ?

 

I had this on syserr now:

SYSERR: Jun 21 14:15:36.730064 :: Process: SEQUENCE 32f6d400 mismatch 0xaf != 0x64 header 254
SYSERR: Jun 21 14:15:36.730075 :: Process: SEQUENCE_LOG [UNKNOWN]-------------
    [254 : 0xaf]

 

Could this be the reason?

 

Edit again:

This was not the reason, fixed this but still got the bug '-'

Edited by Metin2 Dev
Core X - External 2 Internal

It's all lies

Link to comment
Share on other sites

1)

I'm concerned about this in particular.

 INSERT DELAYED INTO log (type, time, who, x, y, what, how, hint, ip) VALUES('CHARACTER', NOW(), 10002, 954319, 261200, 0, 'LOGIN', '192.168.1.8 1997735000 1 41 200000', '192.168.1.8')

Because:

ChildLoop: AsyncSQL: query failed: Data too long for column 'hint' at row 1

 

2)

SYSERR: Jun 20 19:21:35.356706 :: ItemLoad: cannot create item by vnum 49000 (name Display id 10000001)

You have a valid item by vnum 49000?(and others with the same error pattern)

 

3)

0620 18:23:14559 :: CDungeonBlock::Load(filename=d:/ymir work/zone/dungeon/resources picking zon/mushroom01.gr2) - model count is 0

Replace the file with another from another server file or client.See if it's working.This should be first step.

  • Love 1
Link to comment
Share on other sites

19 hours ago, OnlyRipper said:

1)

I'm concerned about this in particular.

 INSERT DELAYED INTO log (type, time, who, x, y, what, how, hint, ip) VALUES('CHARACTER', NOW(), 10002, 954319, 261200, 0, 'LOGIN', '192.168.1.8 1997735000 1 41 200000', '192.168.1.8')

Because:

ChildLoop: AsyncSQL: query failed: Data too long for column 'hint' at row 1

 

2)

SYSERR: Jun 20 19:21:35.356706 :: ItemLoad: cannot create item by vnum 49000 (name Display id 10000001)

You have a valid item by vnum 49000?(and others with the same error pattern)

 

3)

0620 18:23:14559 :: CDungeonBlock::Load(filename=d:/ymir work/zone/dungeon/resources picking zon/mushroom01.gr2) - model count is 0

Replace the file with another from another server file or client.See if it's working.This should be first step.

Fixed all those errors, i managed to find a pattern, everytime i try to mount i mean, CTRL+G without a mount seal on my inventory or without horse called, this happens.

I don't know if this happens in other situations, but i managed to find that one in particular, i rebooted the server 3 times and tested this 3 times. Everytime the channel got bugged!

Will try to to a debug on this and post more info later!

Thank you for your feedback guys!

It's all lies

Link to comment
Share on other sites

  • Solution

Debug and found a solution, i do not know if this happens any other time, but, for now, i fixed it.

It was a bug on do_ride function in cmd_general.cpp

old code that was changed:

Spoiler


    for (int i = 0; i < INVENTORY_MAX_NUM; ++i)
    {
        LPITEM item = ch->GetInventoryItem(i);
        if (NULL == item)
            continue;

        if (item->GetType() == ITEM_COSTUME && item->GetSubType() == COSTUME_MOUNT)    {
            ch->UseItem(TItemPos (INVENTORY, i));
            return;
        }
    }

new code i changed:

Spoiler


    for (long int i = 0; i < INVENTORY_MAX_NUM; ++i)
    {
        LPITEM item = ch->GetInventoryItem(i);
        if (NULL == item)
            continue;

        if (item->GetType() == ITEM_COSTUME && item->GetSubType() == COSTUME_MOUNT)    {
            ch->UseItem(TItemPos (INVENTORY, i));
            return;
        }
    }

 

Since i added more inventories i needed to check this right there!

it was from slot 0 to 255 and 8 inventories like i have, are 360 slots. So, if i did not had a mount in inventory it would check slots higher than 255 and crashed the game.

The same applied if i had the mount seal on slots higher than 255!

Problem solved atleast for now!

Thank you :)

It's all lies

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.