[Offline Shop Great]Error

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
Nazox
Nivel 1

Nivel 1
Mesaje: 106
Membru din: 28 Iul 2015, 00:45
Server: metin2.es
Regat: Chunjo
Aprecieri: 170  
Mulţumiri: 22  
Discord: Copiază ID
Medalii

Hello, i have a little problem with offline shop of great.. My offline shop work great, but the problem is when i try to create shop.
And i can't create normal shop, my sysser of ch1 say that:
SYSERR: Apr 21 15:06:22 :: 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, vnum) VALUES('ITEM', NOW(), 1, 960406, 272931, 10001610, 'Priv shop', 'Skill book 1 ', '192.X.X.X', 50300) errno: 1406)
SYSERR: Apr 21 15:06:22 :: 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, vnum) VALUES('ITEM', NOW(), 1, 960406, 272931, 10001702, 'Priv shop', 'Lectura concentrada 5 ', '192.X.X.X', 71094) errno: 1406)
SYSERR: Apr 21 15:06:22 :: Process: SEQUENCE 29b8d480 mismatch 0xe2 != 0x12 header 55
SYSERR: Apr 21 15:06:22 :: Process: SEQUENCE_LOG [Rain]-------------
[007 : 0x72]
[007 : 0xf7]
[007 : 0x6f]
[007 : 0x84]
[007 : 0xbc]
[007 : 0x37]
[007 : 0x46]
[007 : 0xe3]
[007 : 0x24]
[007 : 0xda]
[007 : 0xa1]
[007 : 0xc8]
[007 : 0xee]
[007 : 0x36]
[007 : 0x7c]
[007 : 0x33]
[007 : 0x2f]
[011 : 0x98]
[011 : 0x76]
[003 : 0x5e]
[055 : 0xe2]
But work:
Imagine
The problem is, when i try to create normal shop, not work, and when i try to create offline shop, i go back to login, but when i login again i have offline shop, this is my problem:
Error

i try to debug my game.core and i have this:
# 0 std :: string :: _ M_data (this = 0x222) es /usr/local/lib/gcc48/include/c++/bits/basic_string.h:293
# 1 std :: string :: _ M_rep (this = 0x222 ) es /usr/local/lib/gcc48/include/c++/bits/basic_string.h:301
# 2 std :: string :: size (this = 0x222) es / usr / local / lib / gcc48 / include / c + + / bits / basic_string.h: 716
# 3 std :: string :: empty (this = 0x222) es /usr/local/lib/gcc48/include/c++/bits/basic_string.h:812
# 4 CHARACTER :: GetName (esto = 0x10) en char.cpp: 632
# 5 0x0815db01 en ITEM_MANAGER :: SaveSingleItem (esto = 0xbfbfbd00, item = 0x2b0d0000) en item_manager.cpp: 431
# 6 0x0815ea53 en load_lotto () en item_manager.cpp: 6900
# 00 ( )
Char.cpp
const char * CHARACTER :: GetName () const <--- line 630 gdb error
{<- line 631
return m_stName.empty ()? (m_pkMobData? m_pkMobData-> m_table.szLocaleName: ""): m_stName.c_str (); <- 632
}
Item_manager.cpp
void ITEM_MANAGER::SaveSingleItem(LPITEM item) <--error gdb
{
if (!item->GetOwner())
{
DWORD dwID = item->GetID();
DWORD dwOwnerID = item->GetLastOwnerPID();

db_clientdesc->DBPacketHeader(HEADER_GD_ITEM_DESTROY, 0, sizeof(DWORD) + sizeof(DWORD));
db_clientdesc->Packet(&dwID, sizeof(DWORD));
db_clientdesc->Packet(&dwOwnerID, sizeof(DWORD));

sys_log(1, "ITEM_DELETE %s:%u", item->GetName(), dwID);
return;
}

sys_log(1, "ITEM_SAVE %s:%d in %s window %d", item->GetName(), item->GetID(), item->GetOwner()->GetName(), item->GetWindow());

TPlayerItem t;

t.id = item->GetID();
t.window = item->GetWindow();
t.pos = t.window == EQUIPMENT ? item->GetCell() - INVENTORY_MAX_NUM : item->GetCell();
t.count = item->GetCount();
t.vnum = item->GetOriginalVnum();
t.owner = (t.window == SAFEBOX || t.window == MALL) ? item->GetOwner()->GetDesc()->GetAccountTable().id : item->GetOwner()->GetPlayerID();
thecore_memcpy(t.alSockets, item->GetSockets(), sizeof(t.alSockets));
thecore_memcpy(t.aAttr, item->GetAttributes(), sizeof(t.aAttr));

db_clientdesc->DBPacketHeader(HEADER_GD_ITEM_SAVE, 0, sizeof(TPlayerItem));
db_clientdesc->Packet(&t, sizeof(TPlayerItem));
}
and item_manager.cpp again
std::set<DWORD> g_set_lotto;

void load_lotto() <---- error gdb
{
static int bLoaded = false;

if (bLoaded)
return;

bLoaded = true;
FILE * fp = fopen("lotto.txt", "r");

if (!fp)
return;

char buf[256];

while (fgets(buf, 256, fp))
{
char * psz = strchr(buf, '\n');

if (NULL != psz)
*psz = '\0';

DWORD dw = 0;
str_to_number(dw, buf);
g_set_lotto.insert(dw);
}

fclose(fp);
}
I don't know because i have error on item_manager.cpp because on guide not use item_manager.cpp, and i try to compare others source games with this offline shop but i have the same error.
I read this problem is normal on great offline but anyone can't help me.. so i really appreciate if you help me, thanks
Avatar utilizator
Nazox
Nivel 1

Nivel 1
Mesaje: 106
Membru din: 28 Iul 2015, 00:45
Server: metin2.es
Regat: Chunjo
Aprecieri: 170  
Mulţumiri: 22  
Discord: Copiază ID
Medalii

up
Avatar utilizator
Nazox
Nivel 1

Nivel 1
Mesaje: 106
Membru din: 28 Iul 2015, 00:45
Server: metin2.es
Regat: Chunjo
Aprecieri: 170  
Mulţumiri: 22  
Discord: Copiază ID
Medalii

up
Avatar utilizator
Len.
Membru Club

Membru Club
Mesaje: 411
Membru din: 29 Ian 2020, 22:52
Regat: Chunjo
Aprecieri: 218  
Mulţumiri: 564  
  Rezolvări prob.: 1
Discord: Copiază ID
Medalii

Inactiv, arhivat.
Închis
Răspunsuri
8
Vizualizări
443
Răspunsuri
2
Vizualizări
279
Răspunsuri
4
Vizualizări
646

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 30 vizitatori