Help someone already guild icon

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

Nou Venit
Mesaje: 31
Membru din: 09 Oct 2014, 13:02
Server: sfvad
Regat: Jinno
Aprecieri: 196  
Mulţumiri: 0
Medalii

knocks out of the client when choosing a guild icon
I've tried everything already

error
403 22:19:07282 :: CGuildMarkImage::CopyBlockFromCompressedData: cannot decompress, compressed size = 0 [errorID: -4]
0403 22:19:07282 :: CGuildMarkImage::CopyBlockFromCompressedData: cannot decompress, compressed size = 0 [errorID: -4]
0403 22:19:07282 :: CGuildMarkImage::CopyBlockFromCompressedData: cannot decompress, compressed size = 0 [errorID: -4]
0403 22:19:07283 :: CGuildMarkImage::CopyBlockFromCompressedData: cannot decompress, compressed size = 0 [errorID: -4]
0403 22:19:07283 :: CGuildMarkImage::CopyBlockFromCompressedData: cannot decompress, compressed size = 0 [errorID: -4]
0403 22:19:07283 :: CGuildMarkImage::CopyBlockFromCompressedData: cannot decompress, compressed size = 0 [errorID: -4]
0403 22:19:07283 :: CGuildMarkImage::CopyBlockFromCompressedData: cannot decompress, compressed size = 0 [errorID: -4]
0403 22:19:07283 :: CGuildMarkImage::CopyBlockFromCompressedData: cannot decompress, compressed size = 0 [errorID: -4]
0403 22:19:07283 :: CGuildMarkImage::CopyBlockFromCompressedData: cannot decompress, compressed size = 0 [errorID: -4]
Avatar utilizator
ShrauTV
Nou Venit

Nou Venit
Mesaje: 25
Membru din: 15 Apr 2020, 10:27
Server: Rodnia2
Regat: Jinno
Aprecieri: 41  
Mulţumiri: 4  
Discord: Copiază ID
Medalii

In packet.h server and client source add:

Search:
DWORD       gold;
Replace with:
long long       gold;
Avatar utilizator
mrbaddy
Nou Venit

Nou Venit
Mesaje: 31
Membru din: 09 Oct 2014, 13:02
Server: sfvad
Regat: Jinno
Aprecieri: 196  
Mulţumiri: 0
Medalii

did not help
Avatar utilizator
mrbaddy
Nou Venit

Nou Venit
Mesaje: 31
Membru din: 09 Oct 2014, 13:02
Server: sfvad
Regat: Jinno
Aprecieri: 196  
Mulţumiri: 0
Medalii

Packet.h clien

typedef struct packet_guild_sub_info
{
WORD member_count;
WORD max_member_count;
DWORD guild_id;
DWORD master_pid;
DWORD exp;
BYTE level;
char name[GUILD_NAME_MAX_LEN+1];
long long gold;
BYTE hasLand;
} TPacketGCGuildInfo;

Packet.h server

typedef struct command_item_drop2
{
BYTE header;
TItemPos Cell;
long long gold;
BYTE count;
} TPacketCGItemDrop2;
#endif
Avatar utilizator
mrbaddy
Nou Venit

Nou Venit
Mesaje: 31
Membru din: 09 Oct 2014, 13:02
Server: sfvad
Regat: Jinno
Aprecieri: 196  
Mulţumiri: 0
Medalii

Packet.h clien
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

I really don't understand how "guild mark" can be related with "gold" and "llgold"...
So, your issue came from bad lzo compression, and that error is defined here
Imagine
In order to solve, start to search from there.
Pentru acest mesaj, [RaffaeL] for the post:
mrbaddy
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
Avatar utilizator
mrbaddy
Nou Venit

Nou Venit
Mesaje: 31
Membru din: 09 Oct 2014, 13:02
Server: sfvad
Regat: Jinno
Aprecieri: 196  
Mulţumiri: 0
Medalii

if (posBlock >= BLOCK_TOTAL_COUNT)
return false;

Pixel apxBuf[SGuildMarkBlock::SIZE];
size_t sizeBuf = sizeof(apxBuf);

int lzoDecompressResult = lzopro_lzo1x_decompress_a07((const unsigned char*)pbComp, dwCompSize, (BYTE *)apxBuf, (lzo_uint*)&sizeBuf, CLZO::Instance().GetWorkMemory());
if (LZO_E_OK != lzoDecompressResult)
{
sys_err("CGuildMarkImage::CopyBlockFromCompressedData: cannot decompress, compressed size = %u [errorID: %d]", dwCompSize, lzoDecompressResult);
return false;
}

if (sizeBuf != sizeof(apxBuf))
{
sys_err("CGuildMarkImage::CopyBlockFromCompressedData: image corrupted, decompressed size = %u", sizeBuf);
return false;
}
Avatar utilizator
mrbaddy
Nou Venit

Nou Venit
Mesaje: 31
Membru din: 09 Oct 2014, 13:02
Server: sfvad
Regat: Jinno
Aprecieri: 196  
Mulţumiri: 0
Medalii

game src

if (posBlock >= BLOCK_TOTAL_COUNT)
return false;

Pixel apxBuf[SGuildMarkBlock::SIZE];
lzo_uint sizeBuf = sizeof(apxBuf);

if (LZO_E_OK != lzo1x_decompress_safe(pbComp, dwCompSize, (BYTE*)apxBuf, &sizeBuf, CLZO::Instance().GetWorkMemory()))
{
sys_err("GuildMarkImage::CopyBlockFromCompressedData: cannot decompress, compressed size = %u", dwCompSize);
return false;
}

if (sizeBuf != sizeof(apxBuf))
{
sys_err("GuildMarkImage::CopyBlockFromCompressedData: image corrupted, decompressed size = %u", sizeBuf);
return false;
}
Avatar utilizator
mrbaddy
Nou Venit

Nou Venit
Mesaje: 31
Membru din: 09 Oct 2014, 13:02
Server: sfvad
Regat: Jinno
Aprecieri: 196  
Mulţumiri: 0
Medalii

error not resolved
Avatar utilizator
Ionuţ M.
Metin Master

Metin Master
Mesaje: 2680
Membru din: 28 Noi 2015, 22:02
Aprecieri: 170  
Mulţumiri: 12723  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

Inactiv, arhivat.
Imagine
Afișează semnătura
Închis
Răspunsuri
0
Vizualizări
698
Răspunsuri
0
Vizualizări
1281

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

  • Informaţie