xiaoze1122334
使用forge服务端,加mod后崩溃。
确认了出问题的2个mod1:暮色森林,



2等价交换,


Caused by: java.lang.NoSuchMethodError: net.minecraftforge.fml.common.registry.GameRegistry.registerTileEntity(Ljava/lang/Class;Lnet/minecraft/util/ResourceLocation;)V
        at moze_intel.projecte.gameObjs.ObjHandler.register(ObjHandler.java:422) ~[ObjHandler.class:?]
        at moze_intel.projecte.PECore.preInit(PECore.java:118) ~[PECore.class:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_181]
        at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:606) ~[forge-1.12.2-14.23.0.2512-universal.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_181]
        at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) ~[minecraft_server.1.12.2.jar:?]
        at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) ~[minecraft_server.1.12.2.jar:?]
        at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) ~[minecraft_server.1.12.2.jar:?]
        at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) ~[minecraft_server.1.12.2.jar:?]
        at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) ~[minecraft_server.1.12.2.jar:?]
        at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) ~[minecraft_server.1.12.2.jar:?]
        at com.google.common.eventbus.EventBus.post(EventBus.java:217) ~[minecraft_server.1.12.2.jar:?]
        at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:253) ~[forge-1.12.2-14.23.0.2512-universal.jar:?]
        at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:231) ~[forge-1.12.2-14.23.0.2512-universal.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_181]
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_181]
        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_181]
        at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91) ~[minecraft_server.1.12.2.jar:?]
        at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150) ~[minecraft_server.1.12.2.jar:?]
        at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76) ~[minecraft_server.1.12.2.jar:?]
        at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399) ~[minecraft_server.1.12.2.jar:?]
        at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71) ~[minecraft_server.1.12.2.jar:?]
        at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116) ~[minecraft_server.1.12.2.jar:?]
        at com.google.common.eventbus.EventBus.post(EventBus.java:217) ~[minecraft_server.1.12.2.jar:?]
        at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:148) ~[LoadController.class:?]
        at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:602) ~[Loader.class:?]
        at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:98) ~[FMLServerHandler.class:?]
        at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:331) ~[FMLCommonHandler.class:?]
        at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:125) ~[nz.class:?]
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484) [MinecraftServer.class:?]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_181]
[14:05:48] [Server thread/ERROR]: This crash report has been saved to: C:\Users\Administrator\Desktop\forge sever\.\crash-reports\crash-2023-06-26_14.05.48-server.txt
[14:05:48] [Server thread/INFO]: Stopping server
[14:05:48] [Server thread/INFO]: Saving worlds
[14:05:48] [Server thread/WARN] [FML]: Can't revert to frozen GameData state without freezing first.
[14:05:48] [Server thread/INFO] [FML]: The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED. Errors may have been discarded.
[14:05:48] [Server thread/INFO] [FML]: The state engine was in incorrect state ERRORED and forced into state AVAILABLE. Errors may have been discarded.
[14:05:48] [Server Shutdown Thread/INFO]: Stopping server
[14:05:48] [Server Shutdown Thread/INFO]: Saving worlds
> 请按任意键继续. . .


我没法上传更多图片了所以只能复制下来。

有没有大佬知道这是什么情况?帮忙指导一下谢谢

xiaoze1122334
我没有加过插件。

超级粒子炮
别担心,报错并不可怕,也不是神秘的魔法。静下心来阅读堆栈跟踪就好了。




这句话告诉我们,暮色森林需要更高版本的 Forge 支持(14.23.5.2813),而你的 Forge 版本是 14.23.0.2512,所以请升级 Forge 版本。


xiaoze1122334
超级粒子炮 发表于 2023-6-26 14:25
别担心,报错并不可怕,也不是神秘的魔法。静下心来阅读堆栈跟踪就好了。

woc,感谢大佬。。。。。
但是咋升级服务器forge啊?

超级粒子炮
本帖最后由 超级粒子炮 于 2023-6-26 14:45 编辑
xiaoze1122334 发表于 2023-6-26 14:39
woc,感谢大佬。。。。。
但是咋升级服务器forge啊?

你可以跟着这个视频操作:https://www.bilibili.com/video/av372584397

xiaoze1122334
超级粒子炮 发表于 2023-6-26 14:44
你可以跟着这个视频操作:https://www.bilibili.com/video/av372584397

谢谢,等价交换是什么情况能看出来吗?可以的话麻烦帮忙解决一下。

超级粒子炮
xiaoze1122334 发表于 2023-6-26 14:45
谢谢,等价交换是什么情况能看出来吗?可以的话麻烦帮忙解决一下。

Mod 版本可能太旧了,你去 CurseForge 下载新版的。

xiaoze1122334
超级粒子炮 发表于 2023-6-26 14:50
Mod 版本可能太旧了,你去 CurseForge 下载新版的。

等价交换的版本太旧了吗?

Flower_胡子
forge版本太低 把服务端的forge版本更新到最新版本
https://files.minecraftforge.net/net/minecraftforge/forge/