Open Modular Turrets

Open Modular Turrets

26M Downloads

Game Crash when adjusting turret range but doesn’t give a crash log.

Closed this issue · 3 comments

commented

So I was adjusting the range on a turret and the game crashed when I reduced a bit. It kicked me to the server select screen but I was in single player and it didn’t give a crash log it’s repeatable. Turret used was the laser one with damage and scattershot upgrades. Is that fixable? Its MC 1.12.2 and the latest forge build for 1.12.2 the one that hasn’t changed for months and the latest omlib and open modular turrets version as well.

commented

Crash log prolly is in the logs somewhere, but in dev for 3.2.0 that should be fixed, not released yet though.

commented

Had a similar crash, tier 1 turret base, junk turret, clicked mode, got this in the log. Using latest versions on curse (3.1.6 OMT and 3.1.4 OMLib)

[14:17:44] [Netty Server IO #1/ERROR]: There was a critical exception handling a packet on channel openmodularturrets
io.netty.handler.codec.EncoderException: java.lang.NullPointerException
at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:106) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:738) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:801) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:814) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:794) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:831) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:1032) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:296) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendToAllAround(SimpleNetworkWrapper.java:264) ~[SimpleNetworkWrapper.class:?]
at omtteam.openmodularturrets.tileentity.TurretBase.func_73660_a(TurretBase.java:372) ~[TurretBase.class:?]
at com.zeitheron.hammercore.asm.McHooks.tickTile(McHooks.java:38) ~[McHooks.class:?]
at net.minecraft.world.World.func_72939_s(World.java:1838) ~[amu.class:?]
at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1847) ~[bib.class:?]
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1098) ~[bib.class:?]
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:398) ~[bib.class:?]
at net.minecraft.client.main.Main.main(SourceFile:123) ~[1.12.2.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) ~[launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) ~[launchwrapper-1.12.jar:?]
Caused by: java.lang.NullPointerException
at omtteam.omlib.util.player.Player.writeToByteBuf(Player.java:45) ~[Player.class:?]
at omtteam.openmodularturrets.network.messages.MessageTurretBase.toBytes(MessageTurretBase.java:115) ~[MessageTurretBase.class:?]
at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:30) ~[SimpleIndexedCodec.class:?]
at net.minecraftforge.fml.common.network.simpleimpl.SimpleIndexedCodec.encodeInto(SimpleIndexedCodec.java:26) ~[SimpleIndexedCodec.class:?]
at net.minecraftforge.fml.common.network.FMLIndexedMessageToMessageCodec.encode(FMLIndexedMessageToMessageCodec.java:81) ~[FMLIndexedMessageToMessageCodec.class:?]
at io.netty.handler.codec.MessageToMessageCodec$1.encode(MessageToMessageCodec.java:67) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:88) ~[netty-all-4.1.9.Final.jar:4.1.9.Final]
... 22 more
[14:17:44] [Netty Server IO #1/ERROR]: Network Disconnect: A fatal error has occurred, this connection is terminated

commented

Please see if this works in newer releases, I have not got any problems on my end.