Jump to content

Recommended Posts

Posted

Using the most recent 'Recommended' build for 1.7.10

 

Crash report:

 

  Reveal hidden contents

 

 

Haven't touched the core classes, so I'm a little dumbfounded as to why it would be crashing on a vanilla command. I'm assuming I've done something stupid with incorrectly registering my own, custom commands, but I'd appreciate some guidance here. It's a minor bug, but it is also one that crashes the game so... I'd like to get it worked out.

Have a modding question? PM me and hopefully I'll be able to help. Good at 2d Pixel Art? We need your help!  http://www.minecraftforum.net/topic/1806355-looking-for-2d-pixel-artist/

Posted
  On 8/21/2014 at 9:34 PM, Zetal said:

I've done something stupid with incorrectly registering my own, custom commands, ...

 

Correct. Now, unless we see what you have done, there is not much we can do to correct the problem.

Posted

Hrm. I'll try.

 

 

  Reveal hidden contents

 

 

And all of the commands are empty copies of this:

 

  Reveal hidden contents

 

 

Except replace 'scm' with each commands unique tag, including (in order): "checkinv", "checkchests", "createshape", "acs", "econ", "scm", "ccs"

 

All of the actual command logic is handled in a CommandEvent handler class, where I check to see which command it is by using "event.command instanceof CommandSpecializations" as an example. Obviously all of the others are the same but... that's about all that the commands do. Besides "/help" all of the commands I have work.

Have a modding question? PM me and hopefully I'll be able to help. Good at 2d Pixel Art? We need your help!  http://www.minecraftforum.net/topic/1806355-looking-for-2d-pixel-artist/

Posted

Scratch that, just looked at the new method required by commands. I'm willing to bet the '/help' command uses "public String getCommandUsage(ICommandSender icommandsender)" to populate its list- and since mine returns null, it causes an error.

 

Just ran it and tried the command- it works fine now. Issue resolved. :)

Have a modding question? PM me and hopefully I'll be able to help. Good at 2d Pixel Art? We need your help!  http://www.minecraftforum.net/topic/1806355-looking-for-2d-pixel-artist/

Posted
  On 8/23/2014 at 9:34 PM, Zetal said:

Scratch that, just looked at the new method required by commands. I'm willing to bet the '/help' command uses "public String getCommandUsage(ICommandSender icommandsender)" to populate its list- and since mine returns null, it causes an error.

 

Just ran it and tried the command- it works fine now. Issue resolved. :)

That was what I expected, since help would trigger a usage event and it would not like to see null. Glad you figured it out.

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.