Posted November 20, 201410 yr Hello Everyone! I've been working on a mod for Minecraft and I just got to the point where I wanted to share it with my friend. I emailed him the .jar file. He starts up Minecraft just fine, but when he goes to single player, his game gives him a "Cannot connect to Server" error. I tested the mod by putting it into my own Minecraft installation and it played just fine for me. What is going on here?
November 20, 201410 yr different version of minecraft or forge maybe? If you post the jar somewhere (like, on dropbox) we could try it ourselves -TGG
November 20, 201410 yr Have you different systems on your computers? This could be a problem. Or just other minecraft (forge) versions? Or an other java version? And can your friend send a crash report?
November 20, 201410 yr Author Well, I know he has the right version of forge, the lastest 1.7.10 build, and that's the version I used to test it in my own Minecraft version. I'm not sure which version of Java he has on his computer, I can ask him later when he gets up. I don't have time to upload it to Dropbox at the moment, but I can do that when I get home from class.
November 20, 201410 yr Author Here's my mod file: https://www.dropbox.com/s/t7jh8fpwd71sb30/TetraCraft-1.7.10-1.0.0.jar?dl=0
November 20, 201410 yr Author I downloaded forge, placed it in the folder that I wanted it to be in, then I used command prompt to run gradlew setupDecompWorkspace --refresh-dependencies and gradlew eclipse. I then opened up Eclipse and pointed it at the eclipse folder within the forge directory.
November 20, 201410 yr Author Then what are you saying the issue is? I've redone my workspace and have re-run the gradlew build and this is the resulting .jar file, which no longer contains those forge classes: https://www.dropbox.com/s/t7jh8fpwd71sb30/TetraCraft-1.7.10-1.0.0.jar?dl=0
November 21, 201410 yr Author No, he is still not able to play the mod. It still works fine for me in and out of Eclipse.
November 22, 201410 yr Author I went through his logs and the only thing I could see that really stood out (besides the errors generated from missing textures): [19:44:07] [server thread/INFO]: fastdesigns lost connection: TextComponent{text='Disconnected', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null}} Here's a link to the logs: https://www.dropbox.com/s/hzgmu96fgzp76ym/Forge%20Logs.zip?dl=0
November 22, 201410 yr This looks like it's the issue: java.lang.NoSuchMethodError: java.util.Map.replace(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; at com.tetra.skyrimmod.entity.player.extended.ExtendedPlayer.loadNBTData(ExtendedPlayer.java:179) ~[ExtendedPlayer.class:?] at com.tetra.skyrimmod.network.messages.MessageSyncPlayerProps$Handler.onMessage(MessageSyncPlayerProps.java:47) ~[MessageSyncPlayerProps$Handler.class:?] at com.tetra.skyrimmod.network.messages.MessageSyncPlayerProps$Handler.onMessage(MessageSyncPlayerProps.java:40) ~[MessageSyncPlayerProps$Handler.class:?] Something about your packets and ExtendedPlayer is screwy. You should post the relevant classes.
November 22, 201410 yr Author This looks like it's the issue: java.lang.NoSuchMethodError: java.util.Map.replace(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; at com.tetra.skyrimmod.entity.player.extended.ExtendedPlayer.loadNBTData(ExtendedPlayer.java:179) ~[ExtendedPlayer.class:?] at com.tetra.skyrimmod.network.messages.MessageSyncPlayerProps$Handler.onMessage(MessageSyncPlayerProps.java:47) ~[MessageSyncPlayerProps$Handler.class:?] at com.tetra.skyrimmod.network.messages.MessageSyncPlayerProps$Handler.onMessage(MessageSyncPlayerProps.java:40) ~[MessageSyncPlayerProps$Handler.class:?] Something about your packets and ExtendedPlayer is screwy. You should post the relevant classes. Haha, I missed that one. Thanks! It didn't like the way I was handling the Player NBT Tag. That error should be fixed up now. I have to check back with my friend now.
November 22, 201410 yr FYI I think the problem is because you are using a different version of Java to your friend. The Map.replace() method was only added to the language recently. So your code builds fine, but when it runs on his machine, the method is missing. -TGG
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.