How to disable mobs?
#1
Question 
My server crashes with this error:


[00:36:42] D: | MCServer has encountered an error and needs to close
[00:36:42] Details | SIGSEGV: Segmentation fault
./MCServer(_Z15PrintStackTracev+0x27)[0x5bab17]
./MCServer(_Z14NonCtrlHandleri+0x40)[0x5b5030]
/usr/lib/libc.so.6(+0x33540)[0x7fc858af8540]
./MCServer(_ZN6cChunk16GetNeighborChunkEii+0x0)[0x5296e0]
./MCServer(_ZN5cPath7IsSolidERK7Vector3IdE+0x35)[0x762315]
./MCServer(_ZN5cPath7GetCellERK7Vector3IdE+0x91)[0x7622c1]
./MCServer(_ZN5cPath17ProcessIfWalkableERK7Vector3IdEP9cPathCelli+0x2d)[0x76253d]
./MCServer(_ZN5cPath13Step_InternalEv+0x121)[0x762a51]
./MCServer(_ZN5cPath4StepER6cChunk+0x3a)[0x762dca]
./MCServer(_ZN8cMonster15TickPathFindingER6cChunk+0x3a)[0x75a53a]
./MCServer(_ZN8cMonster4TickENSt6chrono8durationIlSt5ratioILl1ELl1000EEEER6cChunk+0x1fb)[0x75c46b]
./MCServer(_ZN18cAggressiveMonster4TickENSt6chrono8durationIlSt5ratioILl1ELl1000EEEER6cChunk+0x27)[0x74f4d7]
./MCServer(_ZN8cCreeper4TickENSt6chrono8durationIlSt5ratioILl1ELl1000EEEER6cChunk+0x9)[0x753f09]
./MCServer(_ZN6cWorld8TickMobsENSt6chrono8durationIlSt5ratioILl1ELl1000EEEE+0x2f4)[0x5aee24]
./MCServer(_ZN6cWorld4TickENSt6chrono8durationIlSt5ratioILl1ELl1000EEEES4_+0x2cb)[0x5af47b]
./MCServer(_ZN6cWorld11cTickThread7ExecuteEv+0x90)[0x5af6a0]
/usr/lib/libstdc++.so.6(+0xbadf0)[0x7fc85943ddf0]
/usr/lib/libpthread.so.0(+0x7374)[0x7fc859699374]
/usr/lib/libc.so.6(clone+0x6d)[0x7fc858bad27d]
[00:36:42] D: | MCServer has encountered an error and needs to close
[00:36:42] Details | SIGABRT: Server self-terminated due to an internal fault
./MCServer(_Z15PrintStackTracev+0x27)[0x5bab17]
./MCServer(_Z14NonCtrlHandleri+0x99)[0x5b5089]
/usr/lib/libc.so.6(+0x33540)[0x7fc858af8540]
/usr/lib/libc.so.6(gsignal+0x37)[0x7fc858af84b7]
/usr/lib/libc.so.6(abort+0x16a)[0x7fc858af988a]
./MCServer(_Z14NonCtrlHandleri+0x45)[0x5b5035]
/usr/lib/libc.so.6(+0x33540)[0x7fc858af8540]
./MCServer(_ZN6cChunk16GetNeighborChunkEii+0x0)[0x5296e0]
./MCServer(_ZN5cPath7IsSolidERK7Vector3IdE+0x35)[0x762315]
./MCServer(_ZN5cPath7GetCellERK7Vector3IdE+0x91)[0x7622c1]
./MCServer(_ZN5cPath17ProcessIfWalkableERK7Vector3IdEP9cPathCelli+0x2d)[0x76253d]
./MCServer(_ZN5cPath13Step_InternalEv+0x121)[0x762a51]
./MCServer(_ZN5cPath4StepER6cChunk+0x3a)[0x762dca]
./MCServer(_ZN8cMonster15TickPathFindingER6cChunk+0x3a)[0x75a53a]
./MCServer(_ZN8cMonster4TickENSt6chrono8durationIlSt5ratioILl1ELl1000EEEER6cChunk+0x1fb)[0x75c46b]
./MCServer(_ZN18cAggressiveMonster4TickENSt6chrono8durationIlSt5ratioILl1ELl1000EEEER6cChunk+0x27)[0x74f4d7]
./MCServer(_ZN8cCreeper4TickENSt6chrono8durationIlSt5ratioILl1ELl1000EEEER6cChunk+0x9)[0x753f09]
./MCServer(_ZN6cWorld8TickMobsENSt6chrono8durationIlSt5ratioILl1ELl1000EEEE+0x2f4)[0x5aee24]
./MCServer(_ZN6cWorld4TickENSt6chrono8durationIlSt5ratioILl1ELl1000EEEES4_+0x2cb)[0x5af47b]
./MCServer(_ZN6cWorld11cTickThread7ExecuteEv+0x90)[0x5af6a0]
/usr/lib/libstdc++.so.6(+0xbadf0)[0x7fc85943ddf0]
/usr/lib/libpthread.so.0(+0x7374)[0x7fc859699374]
/usr/lib/libc.so.6(clone+0x6d)[0x7fc858bad27d]
Аварийный останов (core dumped)


==============================
I think that problem with mobs. But i don't know how to disable them.Dodgy
Reply
Thanks given by:
#2
Hello, welcome to the forum.

You can disable mobs in the world.ini file (it is a per-world setting), there's a [Monsters].AnimalsOn setting.
Reply
Thanks given by:
#3
Don't forget to remove the "Animals" finisher from the generator if it's enabled.
Reply
Thanks given by:
#4
(05-04-2015, 07:52 AM)xoft Wrote: Hello, welcome to the forum.

You can disable mobs in the world.ini file (it is a per-world setting), there's a [Monsters].AnimalsOn setting.
world.ini part:
[Monsters]
VillagersShouldHarvestCrops=1
AnimalsOn=0
Types=bat, cavespider, chicken, cow, creeper, enderman, guardian, horse, mooshroom, ocelot, pig, rabbit, sheep, silverfish, skeleton, slime, spider, squid, wolf, zombie

[Animals]
AnimalSpawnChunkPercentage=0

LOG:
[00:59:26] D: | MCServer has encountered an error and needs to close
[00:59:26] Details | SIGSEGV: Segmentation fault
./MCServer(_Z15PrintStackTracev+0x27)[0x5bab17]
./MCServer(_Z14NonCtrlHandleri+0x40)[0x5b5030]
/usr/lib/libc.so.6(+0x33540)[0x7f9500869540]
./MCServer(_ZN6cChunk16GetNeighborChunkEii+0x0)[0x5296e0]
./MCServer(_ZN5cPath7IsSolidERK7Vector3IdE+0x35)[0x762315]
./MCServer(_ZN5cPath7GetCellERK7Vector3IdE+0x91)[0x7622c1]
./MCServer(_ZN5cPath17ProcessIfWalkableERK7Vector3IdEP9cPathCelli+0x2d)[0x76253d]
./MCServer(_ZN5cPath13Step_InternalEv+0x19f)[0x762acf]
./MCServer(_ZN5cPath4StepER6cChunk+0x3a)[0x762dca]
./MCServer(_ZN8cMonster15TickPathFindingER6cChunk+0x3a)[0x75a53a]
./MCServer(_ZN8cMonster4TickENSt6chrono8durationIlSt5ratioILl1ELl1000EEEER6cChunk+0x1fb)[0x75c46b]
./MCServer(_ZN15cPassiveMonster4TickENSt6chrono8durationIlSt5ratioILl1ELl1000EEEER6cChunk+0x28)[0x761728]
./MCServer(_ZN6cWorld8TickMobsENSt6chrono8durationIlSt5ratioILl1ELl1000EEEE+0x2f4)[0x5aee24]
./MCServer(_ZN6cWorld4TickENSt6chrono8durationIlSt5ratioILl1ELl1000EEEES4_+0x2cb)[0x5af47b]
./MCServer(_ZN6cWorld11cTickThread7ExecuteEv+0x90)[0x5af6a0]
/usr/lib/libstdc++.so.6(+0xbadf0)[0x7f95011aedf0]
/usr/lib/libpthread.so.0(+0x7374)[0x7f950140a374]
/usr/lib/libc.so.6(clone+0x6d)[0x7f950091e27d]
[00:59:26] D: | MCServer has encountered an error and needs to close
[00:59:26] Details | SIGABRT: Server self-terminated due to an internal fault
./MCServer(_Z15PrintStackTracev+0x27)[0x5bab17]
./MCServer(_Z14NonCtrlHandleri+0x99)[0x5b5089]
/usr/lib/libc.so.6(+0x33540)[0x7f9500869540]
/usr/lib/libc.so.6(gsignal+0x37)[0x7f95008694b7]
/usr/lib/libc.so.6(abort+0x16a)[0x7f950086a88a]
./MCServer(_Z14NonCtrlHandleri+0x45)[0x5b5035]
/usr/lib/libc.so.6(+0x33540)[0x7f9500869540]
./MCServer(_ZN6cChunk16GetNeighborChunkEii+0x0)[0x5296e0]
./MCServer(_ZN5cPath7IsSolidERK7Vector3IdE+0x35)[0x762315]
./MCServer(_ZN5cPath7GetCellERK7Vector3IdE+0x91)[0x7622c1]
./MCServer(_ZN5cPath17ProcessIfWalkableERK7Vector3IdEP9cPathCelli+0x2d)[0x76253d]
./MCServer(_ZN5cPath13Step_InternalEv+0x19f)[0x762acf]
./MCServer(_ZN5cPath4StepER6cChunk+0x3a)[0x762dca]
./MCServer(_ZN8cMonster15TickPathFindingER6cChunk+0x3a)[0x75a53a]
./MCServer(_ZN8cMonster4TickENSt6chrono8durationIlSt5ratioILl1ELl1000EEEER6cChunk+0x1fb)[0x75c46b]
./MCServer(_ZN15cPassiveMonster4TickENSt6chrono8durationIlSt5ratioILl1ELl1000EEEER6cChunk+0x28)[0x761728]
./MCServer(_ZN6cWorld8TickMobsENSt6chrono8durationIlSt5ratioILl1ELl1000EEEE+0x2f4)[0x5aee24]
./MCServer(_ZN6cWorld4TickENSt6chrono8durationIlSt5ratioILl1ELl1000EEEES4_+0x2cb)[0x5af47b]
./MCServer(_ZN6cWorld11cTickThread7ExecuteEv+0x90)[0x5af6a0]
/usr/lib/libstdc++.so.6(+0xbadf0)[0x7f95011aedf0]
/usr/lib/libpthread.so.0(+0x7374)[0x7f950140a374]
/usr/lib/libc.so.6(clone+0x6d)[0x7f950091e27d]
Аварийный останов (core dumped)
Reply
Thanks given by:
#5
That's because the generator still creates mobs when it generates chunks. You can remove it in [Generator].Finishers by removing "Animals" from the list.
Reply
Thanks given by:
#6
This is a PathFinder crash. We've fixed some of them in the recent version, but if I am not mistaken, this is the first time GetNeighborChunk directly crashes.
Reply
Thanks given by:
#7
I think its because with the initial fix, m_Chunk was still being assigned the potential nullptr value of GetNeighborChunk. Later calls to cPath::IsSolid would still try to call GetNeighborChunk based on the new nullptr value of m_Chunk, and therefore crash.

It should be completely fixed now. should...
Reply
Thanks given by: LogicParrot
#8
(05-05-2015, 06:59 AM)tigerw Wrote: I think its because with the initial fix, m_Chunk was still being assigned the potential nullptr value of GetNeighborChunk. Later calls to cPath::IsSolid would still try to call GetNeighborChunk based on the new nullptr value of m_Chunk, and therefore crash.

It should be completely fixed now. should...

Makes complete sense, I am pretty confident this is it.
Reply
Thanks given by:




Users browsing this thread: 5 Guest(s)