Mobs spawning
#1
I am just trying to rework the Mob spawning code.
At first I stopped limitless spawning mobs.
Second I spawn up to 50 mobs every 2 seconds when a player is online.
Third I destroy every mob after 1000 ticks (at the moment)
So wherever i go i get new mobs.

What to do next ?
- spawn mobs for each player (50 mobs for each player)
- destroy mobs only when no player is near
- don't destroy passive mobs and save passive mobs with chunk
- spawn mobs where they are supposed to be (for example squids only in water - maybe based on binomes, maybe configurable in world.ini for each biome)

- look at chunk loading/unloading - are mobs saved/loaded with chunk ?
while testing i got sometimes a server crash:

[7da60700|03:11:49] Assertion failed: BytesToEndOfBuffer >= 0, file source/ByteBuffer.cpp, line 357
MCServer: source/ByteBuffer.cpp:357: bool cByteBuffer::ReadBuf(void*, int): Assertion `0' failed.

what could this be ?


Attached Files
.txt   monster.txt (Size: 3.04 KB / Downloads: 292)
Reply
Thanks given by:


Messages In This Thread
Mobs spawning - by steven2612 - 11-19-2012, 11:56 AM
RE: Mobs spawning - by xoft - 11-19-2012, 04:33 PM
RE: Mobs spawning - by steven2612 - 11-19-2012, 11:40 PM
RE: Mobs spawning - by xoft - 11-20-2012, 12:38 AM
RE: Mobs spawning - by steven2612 - 11-20-2012, 01:06 AM
RE: Mobs spawning - by xoft - 11-20-2012, 01:23 AM
RE: Mobs spawning - by steven2612 - 11-20-2012, 01:26 AM
RE: Mobs spawning - by xoft - 11-20-2012, 02:31 AM
RE: Mobs spawning - by steven2612 - 11-20-2012, 11:20 AM
RE: Mobs spawning - by xoft - 11-20-2012, 07:15 PM
RE: Mobs spawning - by steven2612 - 11-20-2012, 08:24 PM
RE: Mobs spawning - by ThuGie - 11-20-2012, 08:59 PM
RE: Mobs spawning - by steven2612 - 11-20-2012, 09:02 PM
RE: Mobs spawning - by FakeTruth - 11-20-2012, 09:03 PM
RE: Mobs spawning - by steven2612 - 11-22-2012, 10:54 PM
RE: Mobs spawning - by xoft - 11-22-2012, 11:52 PM
RE: Mobs spawning - by steven2612 - 11-23-2012, 12:03 AM
RE: Mobs spawning - by xoft - 11-23-2012, 12:25 AM
RE: Mobs spawning - by steven2612 - 11-23-2012, 12:56 AM
RE: Mobs spawning - by steven2612 - 11-24-2012, 11:20 PM
RE: Mobs spawning - by xoft - 11-24-2012, 11:27 PM
RE: Mobs spawning - by FakeTruth - 11-25-2012, 12:00 AM
RE: Mobs spawning - by steven2612 - 11-24-2012, 11:41 PM
RE: Mobs spawning - by steven2612 - 11-25-2012, 12:47 AM
RE: Mobs spawning - by xoft - 11-25-2012, 06:55 AM
RE: Mobs spawning - by steven2612 - 11-25-2012, 08:26 AM
RE: Mobs spawning - by steven2612 - 11-25-2012, 01:49 PM
RE: Mobs spawning - by xoft - 11-25-2012, 06:46 PM
RE: Mobs spawning - by steven2612 - 11-25-2012, 10:45 PM
RE: Mobs spawning - by steven2612 - 12-02-2012, 09:54 AM



Users browsing this thread: 6 Guest(s)