Jump to content

[SOLVED][1.7.2]User login issues when in development environment


Recommended Posts

I use Eclipse as my IDE, and have a Client run configruation that I just run every time I want to test my mod code.


Question #1) When it runs, I end up with a random player name "Player90243" or similar (the number changes). Is ther a way to force the run to use a proper Minecraft user login?  I'm assuming there is an argument I can put in the Run configuration?


Question #2) Most of the time (maybe 7 out of 10 times), if I load a saved game it will continue where I left off (i.e. my player is in same position as when I last played, I have all my inventory, etc.).  But the other times an error happens where it complains about not being able to cast the login handler and then I spawn in original spawn point without my stuff.  Is this a known issue?  I don't think it has anything to do with my code as it seems to be something related to the vanilla start up.  Maybe there is some sort of race condition in the code?  It happens frequently enough to be annoying.  So my question is whether this is a known issue, and whether there is a known fix.

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

Link to comment
Share on other sites


In your run-configurations, add the following to the 'Program Arguments':

--username <your_desired_name_here>


^^ Keep in mind, that login is not authenticated, and you will not be able to login to actual live remote servers with the development client. (although it will work if the server is set to offline mode / not authenticate)




I'm glad you bring this up, because this has been bugging me as well.  I was thinking there was something I might have not done properly in my network code, but it does seem to be related to a thread-race during startup.


So, I'm not sure if it is a 'know issue' to the forge-devs, but it is certainly a known issue amongst some of the other mod developers.

Link to comment
Share on other sites

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.

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.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.