Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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?

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?

  • 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.

  • 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.

  • Author

No, he is still not able to play the mod.  It still works fine for me in and out of Eclipse.

  • 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

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.

  • 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.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.