jabelar Posted May 9, 2014 Posted May 9, 2014 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. Quote Check out my tutorials here: http://jabelarminecraft.blogspot.com/
coolAlias Posted May 9, 2014 Posted May 9, 2014 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. Quote http://i.imgur.com/NdrFdld.png[/img]
jabelar Posted May 9, 2014 Author Posted May 9, 2014 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. Quote Check out my tutorials here: http://jabelarminecraft.blogspot.com/
jabelar Posted May 10, 2014 Author Posted May 10, 2014 Okay yeah that worked. The problem is obvious -- my config file isn't processing properly. I will start separate thread on that. Quote Check out my tutorials here: http://jabelarminecraft.blogspot.com/
Recommended Posts
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.