[FIXED] Spawnregions and z levels

Here we stuff all the bugs we've managed to squash/squish/squelch.
Locked
Puck
UOX3 Novice
Posts: 72
Joined: Sat Jan 23, 2010 3:22 pm
Has thanked: 0
Been thanked: 0

Spawnregions and z levels

Post by Puck »

uox3 98.0.4 d&e
I believe the client doesn't matter, but here goes:
3D client 5091 - UO_riced
razor 1

Increase the number of NPCs to spawn in spawn region 297 to something like.. say.. 50 and CALL=50 too. Restart the server if it was running, just reloading the DFNs wont change the spawnbehaviour, for some reason.

Login and 'go 5503 604 50 0, see NPCs stuck in walls or even underneath ground at -128
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Fix is up on CVS. Experimental version including fix can be downloaded here.

Fixed by adding some checks for invalid Z, as well as making DoesMapBlock() check if, you know, map tiles have the TF_BLOCKING flag set. No idea why this wasn't done already :P
-= Ho Eyo He Hum =-
Puck
UOX3 Novice
Posts: 72
Joined: Sat Jan 23, 2010 3:22 pm
Has thanked: 0
Been thanked: 0

Post by Puck »

Just adding some info here, I don't know whether it matters or not.

After I tested the fixed version (thanks xuri for some awesome work, even if i don't get any donuts, seriously, what does a man need to do around here to get a donut?), I noticed, I suddenly have almost 3000 items in the garbage collection, which happens every 10 minutes. Before that, it was roughly between 30 and 300 items.

Can easily be checked by putting the community made spawn.dfn into the spawn folder, and watching the garbage collection.
Then plug the community spawn into 40e and compare.

I have not a single clue if it means anything, I just thought maybe its worth to check out.
Locked