Jump to content
  • Home
  • Files
  • Docs
  • Merch
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Achievement Error
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 0
Moony22

Achievement Error

By Moony22, March 26, 2013 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Moony22    0

Moony22

Moony22    0

  • Tree Puncher
  • Moony22
  • Members
  • 0
  • 16 posts
Posted March 26, 2013

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?

  • Quote

Share this post


Link to post
Share on other sites

Mazetar    271

Mazetar

Mazetar    271

  • World Shaper
  • Mazetar
  • Forge Modder
  • 271
  • 1343 posts
Posted March 26, 2013

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.

 

  • Quote

Share this post


Link to post
Share on other sites

Moony22    0

Moony22

Moony22    0

  • Tree Puncher
  • Moony22
  • Members
  • 0
  • 16 posts
Posted March 26, 2013

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!

  • Quote

Share this post


Link to post
Share on other sites

__RikMuld__    2

__RikMuld__

__RikMuld__    2

  • Tree Puncher
  • __RikMuld__
  • Members
  • 2
  • 20 posts
Posted March 30, 2013

How did you fix it, i am also getting duplicate state id errors.

not always thought around 1-20 times.

 

achievement code

  • Quote

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • MattNL
      Trouble getting contents of a Chest

      By MattNL · Posted 32 minutes ago

      Oh, I see... well that's useful to know! I'm going to try implementing your JSON-style replacement. Thank you very much!
    • Differentiation
      [1.12.2] Modifying player capabilities for offline players?

      By Differentiation · Posted 45 minutes ago

      Hey!   Is there any way to modify capability values for offline players (where EntityPlayerMP instance is null essentially) without using JSON? Is there like a way to make capabilities for GameProfile?   Any help is appreciated!   Thanks!
    • Draco18s
      Trouble getting contents of a Chest

      By Draco18s · Posted 47 minutes ago

      This event does not fire on 1.14 https://github.com/MinecraftForge/MinecraftForge/pull/6267
    • DaemonUmbra
      Trouble getting contents of a Chest

      By DaemonUmbra · Posted 56 minutes ago

      https://mcforge.readthedocs.io/en/1.13.x/concepts/sides/
    • MattNL
      Trouble getting contents of a Chest

      By MattNL · Posted 1 hour ago

      So, I realized I didn't really mention what the problem was, oops. I need to get the contents of broken containers, not just chests, and write that data to an item stack (presumably through net.minecraft.client.Minecraft.storeTEInStack).
  • Topics

    • MattNL
      4
      Trouble getting contents of a Chest

      By MattNL
      Started 1 hour ago

    • Differentiation
      0
      [1.12.2] Modifying player capabilities for offline players?

      By Differentiation
      Started 45 minutes ago

    • inzig0
      1
      Does forge 1.14.-28.1 support openjdk11?

      By inzig0
      Started 1 hour ago

    • hobohogiepro
      5
      1.7.10 libraries won't download

      By hobohogiepro
      Started 1 hour ago

    • millerman19
      1
      java.lang.NoSuchFieldError: world

      By millerman19
      Started 1 hour ago

  • Who's Online (See full list)

    • J0WAY
    • Differentiation
    • MattNL
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Achievement Error
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community