Jump to content

Recommended Posts

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!

Posted

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

Posted

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

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

Announcements



×
×
  • Create New...

Important Information

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