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.

Featured Replies

Posted

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/

#1:

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)

 

 

#2

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.

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.