Jump to content

Recommended Posts

Posted

All of my version names for my mod have text in them. Since there isn't anything that should be stopping them from connecting with each other, I started trying to use @VersionCheckHandler (from @NetworkMod), but have had no luck. The definition is:

  Reveal hidden contents

 

I've put the annotation onto a method,  but it isn't doing anything, including complaining of incorrect usage. I added a simple .printStackTrace() test on a fully contained exception and nothing printed, leading me to think it's not even being looked at.

In case it matters, I've changed the signature for the method a few times trying to get a result, even if it were a bad one, with no changes.

 

How do I correctly set up @VersionCheckHandler from @NetworkMod so I can have improved version checking?

 

More information, if needed:

 

  Reveal hidden contents

 

If this isn't enough information, please let me know and I'll provide what is needed.

Posted

Your function NEEDS to accept a NetworkManager! You are only accepting a String, it needs both, it even says so in the javadoc above the declaration!

When using something you have not used before, ALWAYS read the documentation

Posted

I did read the documentation. There is no "NetworkManager" class - the closest thing is an "INetworkManager" class, which I had already tried.

  Reveal hidden contents

 

I'll try it again, but I can almost guarantee that it still won't work.

EDIT: I was correct, it still doesn't work like that (String, INetworkManager)

 

And for the checking if the two Strings are the same in my first post, I have it check through both == and .equals(String) as a result of a bug involving Strings elsewhere in the code, which I'm going to completely rewrite soon to try to remove.

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.