Applies cleanly to: rev.2007
What bug does this patch fix: NPCs don't move or fall out of world, they don't attack you, you can shoot through walls, you fall through too many objects...
Detailed Explanation: diff'ed rev. 1134 and rev. 2007, server code of tile handling not changed (X and Y coords), assembler changed. If assembler is broken, revert the change -> it's fixed.
How to reproduce: Select NPC, hide behind a wall and try fireball/shadow bolt, something. Without the patch, you can shoot the NPC, with the patch it will say, target not in line of sight.
Link to thread in bug reports section if available:
NO
Patch:
--- trunk/src/collision_tools/assembler/vmap/TileAssembler.cpp 2009-01-17 15:59:55.000000000 +0100 +++ trunk/src/collision_tools/assembler/vmap/TileAssembler.cpp 2009-01-21 02:18:01.000000000 +0100 @@ -190,7 +190,7 @@ char buffer[100]; if(iCoordModelMapping->isWorldAreaMap(mapId) && x<65 && y<65) { - sprintf(buffer, "%03u_%d_%d",mapId,y,x); // Let's flip x and y here + sprintf(buffer, "%03u_%d_%d",mapId,x,y); // Let's flip x and y here --- OR MAYBE NOT, it's good for the server as X,Y even if it loads them by Y,X - test confirmed it - by: VLack aka. VLsoft dirname = std::string(buffer); } else @@ -232,7 +232,7 @@ char fullnamedestnamebuffer[500]; if(nameCollection.iMainFiles.size() >0) { - sprintf(destnamebuffer,"%03u_%i_%i.vmap",pMapId, pYPos, pXPos); // flip it here too + sprintf(destnamebuffer,"%03u_%i_%i.vmap",pMapId, pXPos, pYPos); // flip it here too --- OR MAYBE NOT, it's good for the server as X,Y even if it loads them by Y,X - test confirmed it - by: VLack aka. VLsoft std::string checkDoubleStr = std::string(dirfilename); checkDoubleStr.append("##"); checkDoubleStr.append(std::string(destnamebuffer));
Delete the vmaps dir's content on the client, and do the assembling with the assembler patched with this. Copy it to server, test it and comment on it here!!!
3.0.3 enGB client data size should be like this:
DBC: 95,925,888 bytes in 255 files
maps: 1,520,923K bytes in 119 files
vmaps: 1,737,428K bytes in 4249 files
Attached File(s)
-
vmapassembler_rev2007.patch (1.26K)
Number of downloads: 154