Taterzens [Fabric]

Taterzens [Fabric]

86.3k Downloads

Getting kicked from server when using /npc create

Opened this issue · 18 comments

commented

I think the title says it all.
Latest release at time of posting with these mods:
Screenshot 2021-04-23 at 18 23 26
Screenshot 2021-04-23 at 18 23 36

commented
23.04 17:20:55 [Server] Netty Epoll Server IO #6/ERROR java.lang.NullPointerException
23.04 17:20:55 [Server] Netty Epoll Server IO #6/ERROR java.lang.NullPointerException
23.04 17:20:55 [Server] Netty Epoll Server IO #6/ERROR java.lang.NullPointerException
23.04 17:20:55 [Server] Netty Epoll Server IO #6/ERROR java.lang.NullPointerException
23.04 17:20:55 [Server] Netty Epoll Server IO #6/ERROR java.lang.NullPointerException
23.04 17:20:55 [Server] Netty Epoll Server IO #6/ERROR java.lang.NullPointerException
23.04 17:20:55 [Server] Netty Epoll Server IO #6/ERROR java.lang.NullPointerException
23.04 17:20:55 [Disconnect] User NOTTAVINCI has disconnected, reason: Internal Exception: io.netty.handler.codec.EncoderException: java.lang.NullPointerException
23.04 17:20:55 [Server] Server thread/INFO Dillonia left the game
commented

Humm, could you perhaps add Gunpowder as it contains a mixin which stacktraces netty errors?
As this log isn't really useful ...

commented

No, I can't do that as Gunpowder conflicts with Carpet Mod(We need carpet)
Sorry.

commented

Well, at the end of the day, you can try this with local server / even singleplayer ...

commented

It has to be a mod conflict but I can't think which one it could be...

commented

Yeah, that's for sure. Perhaps setup a temp server with gunpowder utils instead of carpet or try adding mods and see when it occurs ...

commented
commented

I'll take a look later, as samo said the log you provided isn't very helpful, might take a bit to figure it out.

commented

Sorry about that. I did actually go back and add Gunpowder + Utilities + Pal but it crashed for some reason. The log wasn't helpful either.

commented

I have found the mod that causes the issue by removing one at a time and trying to join.
It was this: https://github.com/SpaceClouds42/PlaytimeTracker
Any chance that you or @spaceclouds42 could try and add some compatibility please?

commented

Cannot invoke "us.spaceclouds42.playtime_tracker.duck.AFKPlayer.isAfk()" because "player" is null

:concern:
That shouldn't be running on anything but ServerPlayerEntities. I thought Taterzens were their own type of entity..

commented

Oh, I think it might be this line

@DillonB07 were you using the command from console?

commented

I've just come around to fix this, seems like it's PlaytimeTracker's fault.

java.lang.NullPointerException: Cannot invoke "us.spaceclouds42.playtime_tracker.duck.AFKPlayer.isAfk()" because "player" is null

I'm yet to get more info about it & find where it's caused.

commented

Yep I mentioned PlaytimeTracker(#9 (comment))
But couldn't find any more info myself from logs.

commented

Cannot invoke "us.spaceclouds42.playtime_tracker.duck.AFKPlayer.isAfk()" because "player" is null

:concern:
That shouldn't be running on anything but ServerPlayerEntities. I thought Taterzens were their own type of entity..

Yes, they are, that's why it's so strange ...

Oh, I think it might be this line

This should throw CommandSyntaxException if it would be ran from console?

commented

I thought getPlayer() just returns null if the server command source is not a player entity, which would make sense with the error message because the name of the variable is player, as is in the error. Not sure though, might return the syntax exception

commented

Oh, I think it might be this line

@DillonB07 were you using the command from console?

No, I wasn't(very late reply sorry!

commented

Thanks for fixing it though!