ViaVersionMCP / ViaMCP-Reborn

Client-side version changer for MCP using ViaVersion, ViaBackwards and ViaRewind
GNU Lesser General Public License v2.1
111 stars 12 forks source link

Crashes when exported #13

Closed JonnyMqc closed 2 years ago

JonnyMqc commented 2 years ago

This works great and I appreciate it, but when I export my client to the normal minecraft launcher instead of eclipse, when I go to the GuiProtocolSelector it crashes. This doesn't happen in eclipse. I think it's something to do with the libs, can you help pls

JonnyMqc commented 2 years ago

java.lang.NoClassDefFoundError: com/viaversion/viaversion/api/protocol/version/ProtocolVersion at viamcp.protocols.ProtocolCollection.(ProtocolCollection.java:9) at viamcp.gui.GuiProtocolSelector$SlotList.getSize(GuiProtocolSelector.java:86) at net.minecraft.client.gui.GuiSlot.getContentHeight(GuiSlot.java:123) at net.minecraft.client.gui.GuiSlot.func_148135_f(GuiSlot.java:181) at net.minecraft.client.gui.GuiSlot.bindAmountScrolled(GuiSlot.java:164) at net.minecraft.client.gui.GuiSlot.drawScreen(GuiSlot.java:235) at viamcp.gui.GuiProtocolSelector.drawScreen(GuiProtocolSelector.java:64) at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1414) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1143) at net.minecraft.client.Minecraft.run(Minecraft.java:419) at net.minecraft.client.main.Main.main(Main.java:117) Caused by: java.lang.ClassNotFoundException: com.viaversion.viaversion.api.protocol.version.ProtocolVersion at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 11 more

notpoiu commented 2 years ago

aight, did you put all the files of via mcp lib when exporting? because if you did you arent supposed to. you should only drag in the folders and not the files.

hiderikzki commented 2 years ago

Resolved (hopefully) with new jarless export method (see readme)