(03-29-2012, 04:51 PM)xoft Wrote: What revision is that?
I am at rev 440 and line 677 doesn't have any of those logging lines.
Also a full server log may be useful in this case - is the server upgrading PAK versions or loading data normally?
Can you provide the world data that's causing the trouble? And the coordinates from the player who's attempting to log in.
It is last revision, compiled from source.
messages are modified with numbers 1,2,3 because in the code are three places with same log message and I need find which part of source generate errors
Code:
bool cWSSCompact::LoadChunkFromData(const cChunkCoords & a_Chunk, int & a_UncompressedSize, const AString & a_Data, cWorld * a_World)
{
// Crude data integrity check:
if (a_UncompressedSize < cChunkDef::BlockDataSize)
{
LOGWARNING("Chunk [%d, %d] has too short decompressed data (%d bytes out of %d needed), erasing",
a_Chunk.m_ChunkX, a_Chunk.m_ChunkZ,
a_UncompressedSize, cChunkDef::BlockDataSize
);
EraseChunkData(a_Chunk);
return false;
}
// Decompress the data:
AString UncompressedData;
int errorcode = UncompressString(a_Data.data(), a_Data.size(), UncompressedData, a_UncompressedSize);
if (errorcode != Z_OK)
{
LOGERROR("Error %d decompressing data for chunk [%d, %d]",
errorcode,
a_Chunk.m_ChunkX, a_Chunk.m_ChunkZ
);
return false;
}
There in LOGERROR i added number to locate place...
(03-30-2012, 01:19 AM)xoft Wrote: Still, I would appreciate your world PAK files. It works for me completely fine, so I guess it's something with the data.
when i delete "world" folder, data (chunks) are generated again, but still decompressing errors
(03-30-2012, 01:19 AM)xoft Wrote: Still, I would appreciate your world PAK files. It works for me completely fine, so I guess it's something with the data.
when i delete "world" folder, data (chunks) are generated again, but still decompressing errors
(03-30-2012, 07:36 AM)FakeTruth Wrote: Yeah, but obviously you changed it by adding "3", are you ABSOLUTELY SURE you made no other changes?
Yes sure. Adding "3" were because I want search source of error message in the source code and exactly same message are on three positions in one cpp file.