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.

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

Featured Replies

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/

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.

  • Author

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

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.