Thutmose / Pokecube

Primary Development has moved to: https://github.com/Pokecube-Development
https://github.com/Pokecube-Development
19 stars 7 forks source link

[1.9.4] Issue With SpongeForge #46

Closed XileForce closed 8 years ago

XileForce commented 8 years ago

I cant reproduce this. But I logged in and it began spamming this hundreds of times in the console unitl I logged out. Only reason I'm mentioning it is because I noticed thutapi in the errors. For all I know this could be nothing.

[21:02:03] [Server thread/TRACE] [Sponge/]: /_ Exception attempting to capture a block change! */

[21:02:03] [Server thread/TRACE] [Sponge/]: / PhaseContext : / [21:02:03] [Server thread/TRACE] [Sponge/]: / - Name: EMPTY / [21:02:03] [Server thread/TRACE] [Sponge/]: / Object: EMPTY / [21:02:03] [Server thread/TRACE] [Sponge/]: / Phases remaining : / [21:02:03] [Server thread/TRACE] [Sponge/]: / Stacktrace: / [21:02:03] [Server thread/TRACE] [Sponge/]: / java.lang.IllegalStateException: Intended to capture block changes, but there is no list available! Please analyze the current phase context. / [21:02:03] [Server thread/TRACE] [Sponge/]: / org.spongepowered.common.event.tracking.phase.util.PhaseUtil.lambda$throwWithContext$0(PhaseUtil.java:44) / [21:02:03] [Server thread/TRACE] [Sponge/]: / java.util.Optional.orElseThrow(Unknown Source) / [21:02:03] [Server thread/TRACE] [Sponge/]: / org.spongepowered.common.event.tracking.PhaseContext.getCapturedBlocks(PhaseContext.java:175) / [21:02:03] [Server thread/TRACE] [Sponge/]: / org.spongepowered.common.event.tracking.TrackingUtil.trackBlockChange(TrackingUtil.java:239) / [21:02:03] [Server thread/TRACE] [Sponge/]: / org.spongepowered.common.event.tracking.CauseTracker.setBlockState(CauseTracker.java:315) / [21:02:03] [Server thread/TRACE] [Sponge/]: /_ net.minecraft.world.WorldServer.func_180501a(WorldServer.java:742) / [21:02:03] [Server thread/TRACE] [Sponge/]: / thut.api.maths.Vector3.setBlock(Vector3.java:1775) / [21:02:03] [Server thread/TRACE] [Sponge/]: / thut.api.TickHandler$BlockChange.changeBlock(TickHandler.java:57) / [21:02:03] [Server thread/TRACE] [Sponge/]: / thut.api.TickHandler.worldTickEvent(TickHandler.java:267) / [21:02:03] [Server thread/TRACE] [Sponge/]: /_ net.minecraftforge.fml.common.eventhandler.ASMEventHandler_285_TickHandler_worldTickEventWorldTickEvent.invoke(.dynamic) / [21:02:03] [Server thread/TRACE] [Sponge/]: / net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:49) / [21:02:03] [Server thread/TRACE] [Sponge/]: / net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:107) / [21:02:03] [Server thread/TRACE] [Sponge/]: / net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:79) / [21:02:03] [Server thread/TRACE] [Sponge/]: / net.minecraftforge.fml.common.FMLCommonHandler.onPreWorldTick(FMLCommonHandler.java:275) / [21:02:03] [Server thread/TRACE] [Sponge/]: /_ net.minecraft.server.MinecraftServer.func_71190q(MinecraftServer.java:692) / [21:02:03] [Server thread/TRACE] [Sponge/]: /_ net.minecraft.server.dedicated.DedicatedServer.func_71190q(DedicatedServer.java:385) / [21:02:03] [Server thread/TRACE] [Sponge/]: /_ net.minecraft.server.MinecraftServer.func_71217p(MinecraftServer.java:611) / [21:02:03] [Server thread/TRACE] [Sponge/]: / net.minecraft.server.MinecraftServer.run(MinecraftServer.java:469) / [21:02:03] [Server thread/TRACE] [Sponge/]: /_ java.lang.Thread.run(Unknown Source) */

[21:02:03] [Server thread/TRACE] [Sponge/]: /_ Exception trying to process over a phase! */

[21:02:03] [Server thread/TRACE] [Sponge/]: / PhaseContext : / [21:02:03] [Server thread/TRACE] [Sponge/]: / - Name: EMPTY / [21:02:03] [Server thread/TRACE] [Sponge/]: / Object: EMPTY / [21:02:03] [Server thread/TRACE] [Sponge/]: / Stacktrace: / [21:02:03] [Server thread/TRACE] [Sponge/]: / java.lang.IllegalStateException: Intended to capture block changes, but there is no list available! Please analyze the current phase context. / [21:02:03] [Server thread/TRACE] [Sponge/]: / org.spongepowered.common.event.tracking.phase.util.PhaseUtil.lambda$throwWithContext$0(PhaseUtil.java:44) / [21:02:03] [Server thread/TRACE] [Sponge/]: / java.util.Optional.orElseThrow(Unknown Source) / [21:02:03] [Server thread/TRACE] [Sponge/]: / org.spongepowered.common.event.tracking.PhaseContext.getCapturedBlocks(PhaseContext.java:175) / [21:02:03] [Server thread/TRACE] [Sponge/]: / org.spongepowered.common.event.tracking.TrackingUtil.trackBlockChange(TrackingUtil.java:239) / [21:02:03] [Server thread/TRACE] [Sponge/]: / org.spongepowered.common.event.tracking.CauseTracker.setBlockState(CauseTracker.java:315) / [21:02:03] [Server thread/TRACE] [Sponge/]: /_ net.minecraft.world.WorldServer.func_180501a(WorldServer.java:742) / [21:02:03] [Server thread/TRACE] [Sponge/]: / thut.api.maths.Vector3.setBlock(Vector3.java:1775) / [21:02:03] [Server thread/TRACE] [Sponge/]: / thut.api.TickHandler$BlockChange.changeBlock(TickHandler.java:57) / [21:02:03] [Server thread/TRACE] [Sponge/]: / thut.api.TickHandler.worldTickEvent(TickHandler.java:267) / [21:02:03] [Server thread/TRACE] [Sponge/]: /_ net.minecraftforge.fml.common.eventhandler.ASMEventHandler_285_TickHandler_worldTickEventWorldTickEvent.invoke(.dynamic) / [21:02:03] [Server thread/TRACE] [Sponge/]: / net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:49) / [21:02:03] [Server thread/TRACE] [Sponge/]: / net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:107) / [21:02:03] [Server thread/TRACE] [Sponge/]: / net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:79) / [21:02:03] [Server thread/TRACE] [Sponge/]: / net.minecraftforge.fml.common.FMLCommonHandler.onPreWorldTick(FMLCommonHandler.java:275) / [21:02:03] [Server thread/TRACE] [Sponge/]: /_ net.minecraft.server.MinecraftServer.func_71190q(MinecraftServer.java:692) / [21:02:03] [Server thread/TRACE] [Sponge/]: /_ net.minecraft.server.dedicated.DedicatedServer.func_71190q(DedicatedServer.java:385) / [21:02:03] [Server thread/TRACE] [Sponge/]: /_ net.minecraft.server.MinecraftServer.func_71217p(MinecraftServer.java:611) / [21:02:03] [Server thread/TRACE] [Sponge/]: / net.minecraft.server.MinecraftServer.run(MinecraftServer.java:469) / [21:02:03] [Server thread/TRACE] [Sponge/]: /_ java.lang.Thread.run(Unknown Source) */

Forge 1968 Pokecube core 3.26 Pokecube mobs 2.12 Pokecube revival 3.22 SpongeForge 1473

Thutmose commented 8 years ago

Tomorrow afternoon/evening I should be able to get around to trying to look into that.

From a glance, it looks to be related to the code used for making explosions take place over multiple ticks, rather than occurring all at once (and thereby lagging the game due to too many block changes).

Spongeforge seems to not be happy about it for some reason. i will try to fix it if I can, it might be something that needs to be fixed on their side, I will try to fix it first though, and then I can try to take it to them.

XileForce commented 8 years ago

sounds good man. thanks for all of the help

XileForce commented 8 years ago

As a side note, just realized you also dont get the intial menu to pick a starter pokemon when using spongeforge.

Thutmose commented 8 years ago

hmm, I will investigate that as well, spongeforge is known for interfering with a lot of events, it is probably somehow preventing it from appearing.

There are a couple other ways to get the gui though, you can place a pokecube table, and right clicking it will give the gui.

Also, if in creative mode, shift right clickiing with lucky egg will spawn a professor who opens the gui if you right click him (punch him in creative mode to remove him iirc)

XileForce commented 8 years ago

thanks for the info! thats a good workaround for the time being. luckily this is all on a test server atm so we dont need plugins.

XileForce commented 8 years ago

Can confirm issue still exists even when disabling explosions in config.

XileForce commented 8 years ago

I've also reported this to sponge guys. https://github.com/SpongePowered/SpongeForge/issues/710

XileForce commented 8 years ago

they fixed this on their side