some "bugs"
#21
(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...
Reply
Thanks given by:


Messages In This Thread
some "bugs" - by Hunterz - 03-27-2012, 12:17 AM
RE: some "bugs" - by NiLSPACE - 03-27-2012, 12:29 AM
RE: some "bugs" - by xoft - 03-27-2012, 03:39 AM
RE: some "bugs" - by Hunterz - 03-27-2012, 06:26 AM
RE: some "bugs" - by distroyed123 - 03-27-2012, 12:30 PM
RE: some "bugs" - by Hunterz - 03-27-2012, 04:02 PM
RE: some "bugs" - by distroyed123 - 03-27-2012, 03:59 AM
RE: some "bugs" - by NiLSPACE - 03-27-2012, 04:11 AM
RE: some "bugs" - by xoft - 03-27-2012, 04:12 AM
RE: some "bugs" - by NiLSPACE - 03-27-2012, 04:13 AM
RE: some "bugs" - by xoft - 03-27-2012, 05:45 AM
RE: some "bugs" - by NiLSPACE - 03-27-2012, 05:48 AM
RE: some "bugs" - by xoft - 03-27-2012, 04:57 PM
RE: some "bugs" - by Hunterz - 03-27-2012, 06:07 PM
RE: some "bugs" - by xoft - 03-27-2012, 06:33 PM
RE: some "bugs" - by FakeTruth - 03-27-2012, 08:46 PM
RE: some "bugs" - by xoft - 03-27-2012, 10:59 PM
RE: some "bugs" - by FakeTruth - 03-27-2012, 11:38 PM
RE: some "bugs" - by Hunterz - 03-29-2012, 04:31 PM
RE: some "bugs" - by xoft - 03-29-2012, 04:51 PM
RE: some "bugs" - by Hunterz - 03-29-2012, 05:19 PM
RE: some "bugs" - by xoft - 03-30-2012, 01:19 AM
RE: some "bugs" - by Hunterz - 03-30-2012, 05:03 AM
RE: some "bugs" - by NiLSPACE - 03-30-2012, 05:05 AM
RE: some "bugs" - by Hunterz - 03-30-2012, 05:32 AM
RE: some "bugs" - by NiLSPACE - 03-30-2012, 05:37 AM
RE: some "bugs" - by FakeTruth - 03-30-2012, 05:55 AM
RE: some "bugs" - by Hunterz - 03-30-2012, 06:36 AM
RE: some "bugs" - by FakeTruth - 03-30-2012, 07:36 AM
RE: some "bugs" - by Hunterz - 03-30-2012, 03:53 PM
RE: some "bugs" - by xoft - 03-30-2012, 05:57 PM
RE: some "bugs" - by Hunterz - 03-30-2012, 09:04 PM
RE: some "bugs" - by FakeTruth - 03-30-2012, 09:35 PM
RE: some "bugs" - by Hunterz - 03-30-2012, 09:42 PM
RE: some "bugs" - by xoft - 03-30-2012, 09:50 PM
RE: some "bugs" - by Hunterz - 04-01-2012, 08:07 PM
RE: some "bugs" - by NiLSPACE - 04-02-2012, 10:31 PM
RE: some "bugs" - by xoft - 04-02-2012, 11:20 PM



Users browsing this thread: 1 Guest(s)