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

Alright, so I have some achievements in my mod. I found out I had an error saying:

 

"2013-03-26 16:17:11 [iNFO] [sTDOUT] 5242907 is not a valid stat, creating place-holder"

 

This happens after the Achievement is taken, and Minecraft is loaded up once more. It seems that it's got to do with a duplicate ID as later in the log it says:

 

java.lang.RuntimeException: Duplicate stat id: "Unknown stat" and "achievement.compactBlockAchievement" at id 5242907

 

I wonder if anyone could help me find what the problem is?

Compact Crafting-The best way to store all your excess items!

Hi!

 

Well I guess that means your code is somehow duplicating a stat somehow. So I guess that means that you're code is not doing what you think it would.

Maybe the number 5242907 is not defined, not valid which is the reason for the place holder or it's the wrong number?

You could of course go looking after the 5242907 inn your code or you could set a break point and do some debugging to see what happens at the seconds before it crashes and how it crashes.

 

But all of this you already knew, so why am I saying this?

Because with NO CODE and NO LOGS then we can give NO HELP.

 

If you guys dont get it.. then well ya.. try harder...

  • Author

Sorry about the no code.

 

This is my declaration of the Achievement.

 

5242907 is just the ID added onto 5242880 as you can see in the Achievement.java. This crash also only happens when I launch the normal Minecraft Client from my desktop and get one of my achievements, close it down and reopen it, so I can't debug it.

 

So, with this more information, could anyone help?

 

 

 

 

EDIT: I fixed it by asking someone else, thanks though!

Compact Crafting-The best way to store all your excess items!

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.