Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Wywala kanał po ulepszaniu u kowala


zakodemon

Rekomendowane odpowiedzi

Opublikowano

Cześć, dodałem metal dodający +5% przy ulepszeniu, niby wszystko działa bo daje te 5% więcej, ale po przeciągnięciu jakiegoś przedmiotu na kowala wywala cały kanał.

 

Wpisy po których dodałem te od nowego metalu

Pod tym:

BDRAGON_SCROLL = 6,

To:

METAL_LEPSZY = 7,

 

Pod tym:
pkItemScroll->GetValue(0) == YONGSIN_SCROLL || 
To:
pkItemScroll->GetValue(0) == METAL_LEPSZY || 
 
Pod tym:
if (pkItemScroll->GetValue(0) == YONGSIN_SCROLL)
To:
else if (pkItemScroll->GetValue(0) == METAL_LEPSZY)
{
success_prob += 5;

 

Pod tym:

if (pkItemScroll->GetValue(0) == HYUNIRON_CHN) // ÇööŔş ľĆŔĚĹŰŔĚ şÎĽ­Á®ľß ÇŃ´Ů.

bDestroyWhenFail = true;
To:
else if (pkItemScroll->GetValue(0) == METAL_LEPSZY)
bDestroyWhenFail = true;
 
Pod tym:
else if (pkItemScroll->GetValue(0) == YONGSIN_SCROLL)
To:
else if (pkItemScroll->GetValue(0) == METAL_LEPSZY)
{
szRefineType = "METAL_LEPSZY";
}
 
Pod tym:
p.prob = prt->prob;
To:
LPITEM itemScroll = GetInventoryItem(iAdditionalCell);
 
if (itemScroll->GetValue(0) == METAL_LEPSZY)
p.prob = prt->prob+5;

 

Sysser pokazuje tylko takie błędy:

SYSERR: Mar 30 19:16:01 :: socket_connect: HOST 25.92.213.163:41005, could not connect.
SYSERR: Mar 30 19:16:01 :: heart_idle: losing 75 seconds. (lag occured)
SYSERR: Mar 30 19:16:12 :: ItemLoad: cannot create item by vnum 45499 (name test id 2102370712)
SYSERR: Mar 30 19:16:12 :: ItemLoad: cannot create item by vnum 45489 (name test id 2102370715)
SYSERR: Mar 30 19:16:12 :: ItemLoad: cannot create item by vnum 45479 (name test id 2102370716)
SYSERR: Mar 30 19:16:12 :: 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(), 16, 476567, 951257, 0, 'LOGIN', '25.92.213.163 68644838 1 1 300935', '25.92.213.163') errno: 1406)

Co jest nie tak?

Opublikowano

ref

Po tym jak wywali channel podaj ss z backtrace channelu. Przyda się jeszcze syserr danego core channelowego.

Edit.

Podaj pliki w których to zmieniałeś. Wrzuć je tutaj i coś zdziałamy.

zandia_sygna.png

Opublikowano

 

ref

Po tym jak wywali channel podaj ss z backtrace channelu. Przyda się jeszcze syserr danego core channelowego.

Edit.

Podaj pliki w których to zmieniałeś. Wrzuć je tutaj i coś zdziałamy.

 

Zmieniałem tylko w char_item: http://wklej.to/fCSLj

 

gdb pokazuje tylko coś takiego:

(gdb) bt full
#0  0x08157d13 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*> ()
No symbol table info available.
#1  0x0809df08 in ?? ()
No symbol table info available.
#2  0x0809e694 in ?? ()
No symbol table info available.
#3  0x0809e74f in ?? ()
No symbol table info available.
#4  0x0815175f in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*> ()
No symbol table info available.
#5  0x08139eab in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*> ()
No symbol table info available.
#6  0x08103073 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*> ()
No symbol table info available.
#7  0x0825b754 in std::operator+<char, std::char_traits<char>, std::allocator<char> > ()
No symbol table info available.
#8  0x0825c181 in std::operator+<char, std::char_traits<char>, std::allocator<char> > ()
No symbol table info available.
#9  0x0825d7e1 in std::operator+<char, std::char_traits<char>, std::allocator<char> > ()
No symbol table info available.
#10 0x0804ebaa in ?? ()
No symbol table info available.
#11 0x00000001 in ?? ()
No symbol table info available.
#12 0xbfbfdce4 in ?? ()
No symbol table info available.
#13 0xbfbfdcec in ?? ()
No symbol table info available.
#14 0xbfbfdcd0 in ?? ()
No symbol table info available.
#15 0xbfbfdce0 in ?? ()
No symbol table info available.
#16 0x00000000 in ?? ()
No symbol table info available.

Nie wiem czy to ma tak wyglądać, czy coś źle zrobiłem.

Opublikowano

 

 

ref

Po tym jak wywali channel podaj ss z backtrace channelu. Przyda się jeszcze syserr danego core channelowego.

Edit.

Podaj pliki w których to zmieniałeś. Wrzuć je tutaj i coś zdziałamy.

 

Zmieniałem tylko w char_item: http://wklej.to/fCSLj

 

gdb pokazuje tylko coś takiego:

(gdb) bt full
#0  0x08157d13 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*> ()
No symbol table info available.
#1  0x0809df08 in ?? ()
No symbol table info available.
#2  0x0809e694 in ?? ()
No symbol table info available.
#3  0x0809e74f in ?? ()
No symbol table info available.
#4  0x0815175f in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*> ()
No symbol table info available.
#5  0x08139eab in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*> ()
No symbol table info available.
#6  0x08103073 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*> ()
No symbol table info available.
#7  0x0825b754 in std::operator+<char, std::char_traits<char>, std::allocator<char> > ()
No symbol table info available.
#8  0x0825c181 in std::operator+<char, std::char_traits<char>, std::allocator<char> > ()
No symbol table info available.
#9  0x0825d7e1 in std::operator+<char, std::char_traits<char>, std::allocator<char> > ()
No symbol table info available.
#10 0x0804ebaa in ?? ()
No symbol table info available.
#11 0x00000001 in ?? ()
No symbol table info available.
#12 0xbfbfdce4 in ?? ()
No symbol table info available.
#13 0xbfbfdcec in ?? ()
No symbol table info available.
#14 0xbfbfdcd0 in ?? ()
No symbol table info available.
#15 0xbfbfdce0 in ?? ()
No symbol table info available.
#16 0x00000000 in ?? ()
No symbol table info available.

Nie wiem czy to ma tak wyglądać, czy coś źle zrobiłem.

 

https://pastebin.com/YjgvXPzi

Połowy rzeczy nie zrobiłeś.

input_main.cpp

1)

Do tego:

else if (p->type == REFINE_TYPE_SCROLL || p->type == REFINE_TYPE_HYUNIRON || p->type == REFINE_TYPE_MUSIN || p->type == REFINE_TYPE_BDRAGON)

Dopisujesz:

 || p->type == REFINE_TYPE_METAL_LEPSZY

item_length.h

Pod:

 REFINE_TYPE_BDRAGON,

Dopisujesz:

REFINE_TYPE_METAL_LEPSZY

w item_proto zmieniasz value0 na wartość 7

zandia_sygna.png

Opublikowano

 

 

 

ref

Po tym jak wywali channel podaj ss z backtrace channelu. Przyda się jeszcze syserr danego core channelowego.

Edit.

Podaj pliki w których to zmieniałeś. Wrzuć je tutaj i coś zdziałamy.

 

Zmieniałem tylko w char_item: http://wklej.to/fCSLj

 

gdb pokazuje tylko coś takiego:

(gdb) bt full
#0  0x08157d13 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*> ()
No symbol table info available.
#1  0x0809df08 in ?? ()
No symbol table info available.
#2  0x0809e694 in ?? ()
No symbol table info available.
#3  0x0809e74f in ?? ()
No symbol table info available.
#4  0x0815175f in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*> ()
No symbol table info available.
#5  0x08139eab in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*> ()
No symbol table info available.
#6  0x08103073 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<char*> ()
No symbol table info available.
#7  0x0825b754 in std::operator+<char, std::char_traits<char>, std::allocator<char> > ()
No symbol table info available.
#8  0x0825c181 in std::operator+<char, std::char_traits<char>, std::allocator<char> > ()
No symbol table info available.
#9  0x0825d7e1 in std::operator+<char, std::char_traits<char>, std::allocator<char> > ()
No symbol table info available.
#10 0x0804ebaa in ?? ()
No symbol table info available.
#11 0x00000001 in ?? ()
No symbol table info available.
#12 0xbfbfdce4 in ?? ()
No symbol table info available.
#13 0xbfbfdcec in ?? ()
No symbol table info available.
#14 0xbfbfdcd0 in ?? ()
No symbol table info available.
#15 0xbfbfdce0 in ?? ()
No symbol table info available.
#16 0x00000000 in ?? ()
No symbol table info available.

Nie wiem czy to ma tak wyglądać, czy coś źle zrobiłem.

 

https://pastebin.com/YjgvXPzi

Połowy rzeczy nie zrobiłeś.

input_main.cpp

1)

Do tego:

else if (p->type == REFINE_TYPE_SCROLL || p->type == REFINE_TYPE_HYUNIRON || p->type == REFINE_TYPE_MUSIN || p->type == REFINE_TYPE_BDRAGON)

Dopisujesz:

 || p->type == REFINE_TYPE_METAL_LEPSZY

item_length.h

Pod:

 REFINE_TYPE_BDRAGON,

Dopisujesz:

REFINE_TYPE_METAL_LEPSZY

w item_proto zmieniasz value0 na wartość 7

 

Dzięki wielkie, teraz działa ;P

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...