Jump to content

Recommended Posts

Posted

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?

Posted

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?

Posted

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.

Posted

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.

Posted

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

Posted

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.

Posted

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.

Posted

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.