MCPC+ 1.6.4 crash with TC 2.5.0
keenerb opened this issue · 8 comments
TC 2.5.0 as a plugin, not a forge mod.
15:42:43 [WARNING] Failed to handle packet for Skuli_Steinulf/192.168.5.104: net.minecraft.util.ReportedException: Exception preparing structure feature
net.minecraft.util.ReportedException: Exception preparing structure feature
at net.minecraft.world.gen.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:202)
at com.bergerkiller.bukkit.common.internal.ChunkProviderServerHook.getChunkAt(ChunkProviderServerHook.java:122)
at net.minecraft.server.management.PlayerInstance.<init>(PlayerInstance.java:39)
at net.minecraft.server.management.PlayerManager.func_72690_a(PlayerManager.java:136)
at net.minecraft.server.management.PlayerManager.func_72691_b(PlayerManager.java:236)
at net.minecraft.server.management.PlayerManager.func_72685_d(PlayerManager.java:339)
at net.minecraft.server.management.ServerConfigurationManager.func_72358_d(ServerConfigurationManager.java:375)
at net.minecraft.network.NetServerHandler.func_72498_a(NetServerHandler.java:594)
at com.bergerkiller.bukkit.common.internal.network.CommonPacketHandler$CommonPlayerConnection.func_72498_a(CommonPacketHandler.java:319)
at net.minecraft.network.packet.Packet10Flying.func_73279_a(Packet10Flying.java:51)
at net.minecraft.network.TcpConnection.func_74428_b(TcpConnection.java:469)
at net.minecraft.network.NetServerHandler.func_72570_d(NetServerHandler.java:232)
at net.minecraft.network.NetworkListenThread.func_71747_b(NetworkListenThread.java:54)
at net.minecraft.server.dedicated.DedicatedServerListenThread.func_71747_b(DedicatedServerListenThread.java:34)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:898)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:328)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:765)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:647)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
Caused by: java.lang.RuntimeException: StructureStart "com.khorn.terraincontrol.bukkit.structuregens.VillageStart" missing ID Mapping, Modder see MapGenStructureIO
at net.minecraft.world.gen.structure.StructureStart.func_143021_a(StructureStart.java:73)
at net.minecraft.world.gen.structure.MapGenStructure.func_143026_a(MapGenStructure.java:272)
at net.minecraft.world.gen.structure.MapGenStructure.func_75037_a(MapGenStructure.java:48)
at net.minecraft.world.gen.MapGenBase.func_75036_a(MapGenBase.java:33)
at com.khorn.terraincontrol.bukkit.structuregens.VillageGen.prepare(VillageGen.java:98)
at com.khorn.terraincontrol.bukkit.BukkitWorld.PrepareTerrainObjects(BukkitWorld.java:196)
at com.khorn.terraincontrol.generator.ChunkProviderTC.generate(ChunkProviderTC.java:126)
at com.khorn.terraincontrol.bukkit.TCChunkGenerator.generateBlockSections(TCChunkGenerator.java:64)
at org.bukkit.craftbukkit.v1_6_R3.generator.CustomChunkGenerator.func_73154_d(CustomChunkGenerator.java:95)
at net.minecraft.world.gen.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:193)
... 18 more
Well this look suspicious in my startup log:
2013-10-16 15:33:08 [INFO] [TerrainControl] Enabling TerrainControl v2.5.0
2013-10-16 15:33:09 [INFO] [TerrainControl] MCPC+ detected, enabling extended block id support.
2013-10-16 15:33:09 [SEVERE] [TerrainControl] Failed to register structures: java.lang.NoSuchMethodException: net.minecraft.world.gen.structure.MapGenStructureIO.b(java.lang.Class, java.lang.String)
2013-10-16 15:33:09 [INFO] [TerrainControl] 0 global custom objects loaded.
2013-10-16 15:33:09 [INFO] [TerrainControl] Global objects loaded, waiting for worlds to load
@keenerb Thanks. I didn't get the exception, but I did get the [SEVERE] [TerrainControl] Failed to register structures: java.lang.NoSuchMethodException: net.minecraft.world.gen.structure.MapGenStructureIO.b(java.lang.Class, java.lang.String)
message. I hope that the two are related. Could you please test this build?
@Timethor Do you know how I can display the full stack trace here, instead of just the first line?
Try adding this below the other log line... should work:
TerrainControl.log(Level.WARNING, e.getStackTrace().toString());
@Timethor Won't that display something like StackTraceElement[]@57624691
?
haha, err, yea, now that i think about it... stupid java making things complicated...
EDIT:
Or if you aren't gonna leave it there you can just do
e.printStackTrace();
Why I didnt suggest that to begin with... we'll never know 😲
SEE BELOW FOR CODE ADDITIONS
I just pushed two new methods to master. You can now do either of the following:
/**
* Prints the stackTrace of the provided Throwable object
* @param level The log level to log this stack trace at
* @param e The Throwable object to obtain stack trace information from
*/
TerrainControl.printStackTrace(level, e);
/**
* Prints the stackTrace of the provided Throwable object to a certain depth
* @param maxDepth The max number of trace elements to print
*/
TerrainControl.printStackTrace(level, e, maxDepth);
@Timethor Thanks
I didn't get the exception, but I did get the
[SEVERE] [TerrainControl] Failed to register structures: java.lang.NoSuchMethodException: net.minecraft.world.gen.structure.MapGenStructureIO.b(java.lang.Class, java.lang.String)
message. I hope that the two are related. Could you please test this build?