Jump to content

[SOLVED][1.7.2]How to debug my partially-working, "published" mod. Java console


Recommended Posts

Posted

Sorry this is really noob question, but I swear I googled and tried a few things before posting here.

 

Okay, so I build my mod and it creates a jar that looks pretty good (has all my class files and assets in it).  Drag the jar into my mods folder.  I run Minecraft with Forge installed and great -- the mod shows in the mods list.  I then create a single player game in creative mode and I enter my custom command ("conjure" which is basically like a "summon") and it is obvious my command class is there because the command is found (doesn't give an error about no such command) and also it gives some feedback that is my code.  However, it doesn't actually conjure the entity that it is supposed to complaining about not finding the ID.  So it seems there some problem with the entity class or (more likely) its registration.

 

In other words, it is partially working so it isn't a fundamental problem with the build or applying it.  It is not crashing.  So I need to now debug it during operation.

 

Anyway, I'm not looking for help with my specific issue, but rather the general issue -- how do you debug your mod issues with the built version (i.e. not in the IDE environment)?  I assume you can get a Java console with same output, but I haven't been able to get that working. 

 

I have in fact get a Java console going, but can't seem to get it to do anything interesting -- I get Java icon in system tray, right click and ask for console, and it indicates a list of commands but don't see any real time logging related to the running Minecraft.

 

Or do I have to start Minecraft from a windows console?

 

This is first time my built mod has partially worked, so didn't have to do this before.  I appreciate any tip.

 

I guess my other option is to put a bunch more debug messages to the player in-game.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted

In the Minecraft launcher, select your profile -> edit -> launcher visibility: select "always visible" or whatever option that is, then you can view the same output that you would get in your IDE console in the launcher's "development console" tab. Of course, the usefulness thereof depends on how much information you output to the console from your mod.

Posted

In the Minecraft launcher, select your profile -> edit -> launcher visibility: select "always visible" or whatever option that is, then you can view the same output that you would get in your IDE console in the launcher's "development console" tab. Of course, the usefulness thereof depends on how much information you output to the console from your mod.

 

Thanks.  I thought I tried that though, but I'll try again when I get home.  I do normally put a lot of information out to console when developing so pretty sure I won't have trouble tracing the problem as soon as I can see the console.

 

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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.