Sponge and Animals+

Hello, I recently attempted adding Animals+ to my server (which also has sponge onboard) however it lead to a crash that looks like this ->


---- Minecraft Crash Report ----

WARNING: coremods are present:
  SpongeCoremod (sponge-1.8-1487-2.1DEV-517.jar)
Contact their authors BEFORE contacting forge

// I feel sad now :(

Time: 7/14/15 10:43 AM
Description: Exception ticking world entities

java.lang.NullPointerException: Exception ticking world entities
	at org.spongepowered.mod.mixin.plugin.entityactivation.ActivationRange.activateChunkEntities(ActivationRange.java:221)
	at org.spongepowered.mod.mixin.plugin.entityactivation.ActivationRange.activateEntities(ActivationRange.java:194)
	at net.minecraft.world.World.onInvokeProfiler(World.java:61)
	at net.minecraft.world.World.func_72939_s(World.java:1656)
	at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:571)
	at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:704)
	at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:364)
	at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:598)
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:478)
	at java.lang.Thread.run(Unknown Source)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
	at org.spongepowered.mod.mixin.plugin.entityactivation.ActivationRange.activateChunkEntities(ActivationRange.java:221)
	at org.spongepowered.mod.mixin.plugin.entityactivation.ActivationRange.activateEntities(ActivationRange.java:194)
	at net.minecraft.world.World.onInvokeProfiler(World.java:61)
	at net.minecraft.world.World.func_72939_s(World.java:1656)
	at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:571)

-- Affected level --
Details:
	Level name: world
	All players: 1 total; [EntityPlayerMP['dragon_12dk'/220, l='world', x=363.15, y=69.00, z=-66.48]]
	Chunk stats: ServerChunkCache: 477 Drop: 0
	Level seed: 5938942394688241959
	Level generator: ID 00 - default, ver 1. Features enabled: true
	Level generator options: 
	Level spawn location: 354.00,68.00,-59.00 - World: (354,68,-59), Chunk: (at 2,4,5 in 22,-4; contains blocks 352,0,-64 to 367,255,-49), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
	Level time: 791715 game time, 820563 day time
	Level dimension: 0
	Level storage version: 0x04ABD - Anvil
	Level weather: Rain time: 67283 (now: false), thunder time: 20895 (now: false)
	Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
Stacktrace:
	at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:704)
	at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:364)
	at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:598)
	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:478)
	at java.lang.Thread.run(Unknown Source)

-- System Details --
Details:
	Minecraft Version: 1.8
	Operating System: Linux (amd64) version 2.6.32-504.23.4.el6.x86_64
	Java Version: 1.8.0_45, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 714028424 bytes (680 MB) / 1015545856 bytes (968 MB) up to 1015545856 bytes (968 MB)
	JVM Flags: 2 total; -Xmx1024M -Xms1024M
	IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94
	FML: MCP v9.10 FML v8.0.99.99 Minecraft Forge 11.14.3.1450 8 mods loaded, 8 mods active
	States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
	UCHIJAAAA	mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) 
	UCHIJAAAA	FML{8.0.99.99} [Forge Mod Loader] (minecraft_server.jar) 
	UCHIJAAAA	Forge{11.14.3.1450} [Minecraft Forge] (minecraft_server.jar) 
	UCHIJAAAA	Sponge{1.8-1487-2.1DEV-517} [SpongePowered Sponge] (minecraft.jar) 
	UCHIJAAAA	animalsplus{1.3} [Animals Plus] (animalsplus-1.3.jar) 
	UCHIJAAAA	gvc{0.6.1} [�aGliby's�f Voice Chat Mod] (GlibysVC-1.8-0.6.1.jar) 
	UCHIJAAAA	parachutemod{3.1.1} [Parachute Mod] (parachutemod-1.8.0-3.1.2-96.jar) 
	UCHIJAAAA	pore{unknown} [Pore] (Pore-1.0.0-SNAPSHOT.jar) 
	Loaded coremods (and transformers): 
SpongeCoremod (sponge-1.8-1487-2.1DEV-517.jar)
  
	Profiler Position: N/A (disabled)
	Player Count: 1 / 20; [EntityPlayerMP['dragon_12dk'/220, l='world', x=363.15, y=69.00, z=-66.48]]
	Is Modded: Definitely; Server brand changed to 'fml,forge'
	Type: Dedicated Server (map_server.txt)

Any ideas on what went wrong?

I can see what’s happening. Sponge doesn’t seem to support custom mod entities just yet.
The crash is caused by the EntityActivation module from within Sponge. You could try disabling it for now to see if that helps.
Open up the sponge config config/sponge/global.conf
under sponge.modules set entity-activation-range=false

sponge {
    modules {
        entity-activation-range=false
    }
}
1 Like

That did the trick, Thanks! :slight_smile:

Mind editing the thread title and adding the prefix [SOLVED] and posting the solution at the bottom of the OP? This helps people browsing to know the issue is no longer open, and those with a similar issue to find the solution faster.

EDIT: See the comment below as he is right. This thread is not fully solved.

1 Like

This isn’t really ‘solved’, it’s just a work-around. When sponge properly supports modded entities then this will be solved.

2 Likes

I fixed it. The next Sponge build should work with custom entities registered globally.

4 Likes

Nice! Two major fixes in a day!