Closed rs-v closed 2 years ago
no manualy DB modify use Koko-boya/Grasscutter_Resources
Please provide more context
ha! I maybe cause by a certain lua script! but now there is a more tricky problem! when i teletransport ,the server crashed now! `
java.lang.NullPointerException: Cannot invoke "emu.grasscutter.game.world.Scene.getSceneType()" because the return value of "emu.grasscutter.game.player.Player.getScene()" is null at emu.grasscutter.game.player.Player.onLogout(Player.java:1244) at emu.grasscutter.server.game.GameSession.onDisconnect(GameSession.java:131) at emu.grasscutter.netty.KcpChannel.channelInactive(KcpChannel.java:37) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248) at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:241) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1405) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:262) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:248) at io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:901) at io.netty.channel.AbstractChannel$AbstractUnsafe$8.run(AbstractChannel.java:831) at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164) at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:469) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500) at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.base/java.lang.Thread.run(Thread.java:833)
here is the
Please provide more context
`
This looks like a problem with YSLua rather than Grasscutter itself
Not all data from the anime game is reliable, so it may just be that some data are broken for usage
please anime company bring back lua 😔
oh! altough it sounds so bad😶, Thanks for your help.
dev-wrold-script 862bfa061133a35e453fa042d7125644810082f2
<ERROR:GameServer$1> An error occurred during game update. java.lang.NullPointerException: Cannot invoke "emu.grasscutter.game.entity.GameEntity.getEntityType()" because "e" is null at emu.grasscutter.scripts.SceneScriptManager.lambda$checkRegions$2(SceneScriptManager.java:196) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:178) at it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap$ValueSpliterator.acceptOnIndex(Int2ObjectOpenHashMap.java:1221) at it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap$ValueSpliterator.acceptOnIndex(Int2ObjectOpenHashMap.java:1205) at it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap$MapSpliterator.forEachRemaining(Int2ObjectOpenHashMap.java:881) at it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap$ValueSpliterator.forEachRemaining(Int2ObjectOpenHashMap.java:1205) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at emu.grasscutter.scripts.SceneScriptManager.checkRegions(SceneScriptManager.java:197) at emu.grasscutter.game.world.Scene.onTick(Scene.java:425) at emu.grasscutter.game.world.World.onTick(World.java:314) at emu.grasscutter.server.game.GameServer.onTick(GameServer.java:224) at emu.grasscutter.server.game.GameServer$1.run(GameServer.java:251) at java.base/java.util.TimerThread.mainLoop(Timer.java:566) at java.base/java.util.TimerThread.run(Timer.java:516) 10:33:38 <INFO:ScriptLib> [LUA] @@ LUA_WARNING : set_gadget_state_by_configId 10:33:40 <ERROR:GameServer$1> An error occurred during game update. java.lang.NullPointerException: null