Npc random walking clipping [317]
I was looking around in my Server.java because I kept getting an error when running my server when I added this into my random walking codes
Code:
if (VirtualWorld.I(npcs[i].heightLevel, npcs[i].absX, npcs[i].absY, x, y, 0))
npcs[i].getNextNPCMovement(i);
handleClipping(i);
else
{
npcs[i].moveX = 0;
npcs[i].moveY = 0;
}
npcs[i].updateRequired = true;
RED TEXT = TEXT THAT WAS REMOVED.
So adding handleClipping(i); specifically to that code gave me errors. Then I went rooting around in my Server.java why I got a fatal error and while doing that I found this code,
Code:
if(!Config.SERVER_DEBUG)
VirtualWorld.init();
WorldMap.loadWorldMap();
commented out so I un-commented it just for the hell of it and put the text back in that I had previously removed ran my server and most of my npc's now appear to be clipped :0 wut?
Probably wondering why I am posting in the help section then, i am curious as to what this did that's why? :P
EDIT:
I also noticed that in now says this in my console
Code:
Loaded WorldMap In (18 ms)...
-Fully Processed in (553 ms)...
-Loaded 957256 world objects
Loaded 908870 clips.
Loaded WorldMap In (519 ms)...
says it loads 957256 objects and 908870 clips Does that mean some of the objects are un-clipped?