[MC-519] Achievements lost after update Created: 25/Oct/12  Updated: 07/Jul/17  Resolved: 23/Jan/13

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.2, Snapshot 12w49a, Minecraft 1.4.6
Fix Version/s: Snapshot 13w04a

Type: Bug
Reporter: Niklas Lindgren Assignee: Unassigned
Resolution: Fixed Votes: 135
Labels: achievement
Environment:

Windows 7, SP1, 64bit

Game running on server on localhost.


Attachments: PNG File 2013-09-21_17.51.21.png     PNG File 2013-09-21_17.51.23.png     File stats.rar     File stats_Player_unsent.dat    
Issue Links:
Duplicate
is duplicated by MC-6636 reset achievements Resolved
is duplicated by MC-7455 Statistics are broken Resolved
is duplicated by MC-9771 Achivments and statices reseting. Resolved
is duplicated by MC-583 All achievements lost on update Resolved
is duplicated by MC-2277 I lost all my achievements... AGAIN! Resolved
is duplicated by MC-3182 Stats reset Resolved
CHK:
Confirmation Status: Community Consensus

 Description   

After updating to the most recent version of Minecraft, all of my previous achievements were lost.



 Comments   
Comment by Riccardo [ 30/Oct/13 ]

Thank you, I have to admit I didn't even bothered to try yet, but basically I used only one world so that's the way I'll do it

Comment by Tails [ 30/Oct/13 ]

You can edit the stats of your player found in your wolrd's folder. minecraft/saves/<worldname>/stats/<playername>.json

Comment by Riccardo [ 30/Oct/13 ]

Is possible to transfer them from an old Stat folder?

Comment by Tails [ 30/Oct/13 ]

That is intended. Achievements are saved per world in 1.7.

Comment by MisterSanderson [ 30/Oct/13 ]

It happened to me again when updating from 1.6.4 to 1.7.2.

Comment by Tails [ 21/Sep/13 ]

Well help Mojang finding out how stable the new per world system works by testing out the snapshots .

Comment by MisterSanderson [ 21/Sep/13 ]

I didn't used any 1.7 snapshots. I don't use snapshots because they're much more bugged.
But, how having the achievements per world solves the problem? This don't blocks the program from reseting them, don't?

Comment by Tails [ 21/Sep/13 ]

What I meant is: with the 1.7 release achievements and statistics are stored per world, meaning this bug is already fixed in the 1.7 snapshots.

Comment by MisterSanderson [ 21/Sep/13 ]

In the past, yes. But now it's 1.6.4.

Comment by Tails [ 21/Sep/13 ]

Well have you launched your world with a snapshot?

Comment by MisterSanderson [ 21/Sep/13 ]

There is no "stats" folder inside the folder of worldname.

Comment by Tails [ 21/Sep/13 ]

minecraft/saves/worldname/stats/playername.json

Comment by MisterSanderson [ 21/Sep/13 ]

Which file I can edit using wordpad to compensate this?

Comment by Tails [ 21/Sep/13 ]

Achievements and Statistics are stored per world in the 1.7 snapshots.

Comment by MisterSanderson [ 21/Sep/13 ]

Unresolved. Happened to me when updating from 1.6.2 to 1.6.4.

Comment by [Mojang] Jeb (Jens Bergensten) [ 23/Jan/13 ]

Added better error handling when encountering unknown statistics. Should help most problem cases.

Comment by chris landadio [ 12/Jan/13 ]

when it happens to me, i just redo the ones i had done before in creative. it'll put them in your survival worlds too.

Comment by Riccardo [ 30/Dec/12 ]

Same happened to me, I think you can't do much about it, just backup more frequently...

Comment by MisterSanderson [ 30/Dec/12 ]

I have a backup, but this will make me loss hours of game that weren't bakuped yet.

Comment by Riccardo [ 30/Dec/12 ]

You lost them because of a system crash, happened to me too, you can easily restore a backup if you have one.

Comment by MisterSanderson [ 30/Dec/12 ]

I lost them again yesterday on 1.4.6, when Windows restarted after flashing a blue screen.

Comment by Norrius [ 20/Dec/12 ]

This happens while downgrading and if you install/deinstall mods with custom achievements.

Comment by MisterSanderson [ 20/Dec/12 ]

This didn't happened to me when updating 1.4.5 for 1.4.6.

Comment by debugman18 [ 16/Dec/12 ]

This may not actually affect gameplay, but this is still really annoying. I get tired of seeing the inventory popup every time I update or try a snapshot.

Comment by Matti Ruohonen [ 19/Nov/12 ]

I have also been waiting for an online stats solutions, as such a thing was in the past mentioned to be planned sometime.
Also, as has been stated many times in the comments here, I believe that the best solution would be to have per-world (and maybe even per-gamemode?) stats. I know I don't want to get my creative mode stuff mixed with my main survival mode world stats. Probably the creative mode usually goes with the world, meaning that survival worlds usually should not experience much if any changes made in creative mode, so saving the stats and achievements per world would probably be the best and a sufficient solution.

It would probably be best if they were saved in the server side and then synced to the client when the player is viewing them. That would also allow nice server side web-based stats to be displayed for every player (with external tools, even in case of a vanilla server). Also, if the stats would be per-world, it would prevent them from being messed up while trying out snapshots, since it is usually not a good idea to load any world with an older version anyway. And maybe the stats tracking could be modified in such a way that if there are unrecognized entries, they are just ignored and not updated or reset. That would probably even allow the stats to persist across downgrades (upward from the point that feature was introduced in).

In addition to the per-world server-side stats, global per-account stats on Mojang servers would be a nice addition.

Just a quick addition: I really love keeping statistics and logs in general. In case of Minecraft, I am more concerned about the stats than the achievements. It is just really nice to know how many blocks of stone you have mined during the years, how long you have walked or how much damage you have taken.

So, if the stats would in some point be improved and moved to the server, it would be nice if the newer gameplay elements are considered to be added as well, such as repairing items in the crafting slots or with an anvil, how many levels have been spent enchanting/repairing with an anvil, how many animals have been bred, how many "extra" items have been gotten with Fortune tools and so on. And maybe categorize for example the damage taken by different damage sources as well, such as mobs, falling, drowning, fire etc. I realize that is a bunch of work, but when Mojang runs out of useful things to add to the game and considers it more or less a finished product, maybe then these kind of additional nice features could be added. Of course by then, loads of interesting statistics will have been missed already :S

Anyway, just my two or maybe three cents. -masa

Comment by Riccardo [ 18/Nov/12 ]

Indeed it would

Comment by Wurl [ 18/Nov/12 ]

Minecraft in-game I lost stats I've collected for a long time, maybe since 1.0. For me, collecting stats is about 40% of the fun in Minecraft.
Having stats on a online database would be better?

Comment by Riccardo [ 15/Nov/12 ]

Same here, good thing

Comment by MisterSanderson [ 15/Nov/12 ]

I did not lost my achievements when updating 1.4.2 to 1.4.4.

Comment by Riccardo [ 11/Nov/12 ]

Tried it and it WORKS! Thanks a lot!
I think I lost something in the process, but maybe not (not sure about it since are all block/item stats).

Comment by Anthony Myre [ 11/Nov/12 ]

I just tested it for myself and it's definitely that one single stat that broke the whole file. It must be because 1.4 made crafting maps themselves impossible, and you now create empty maps instead. The new maps-crafted stat has moved to ID 16843147 (for item ID 395, Empty Map). So an easy fix would be to scan for 16843110 on game load, and if it's found, replace it with 16843147. Credit for the find goes to Valares on the Minecraft Forum: http://www.minecraftforum.net/topic/1536225-stats-reset-with-14/

Comment by Anthony Myre [ 11/Nov/12 ]

You'd also need to properly calculate the checksum, otherwise the file will reset no matter what. I explain how to do this in one of the first comments on this issue (I figured out that you use null in place of missing map.txt hashes).

Comment by Riccardo [ 11/Nov/12 ]

I'm not that good at these things, but I tried opening "stats_dunther_unsent.old" and "stats_dunther_unsent.dat" using the notepad, and either removing or setting that stat to 0 resets everything even in 1.3.2.
Probabibly I'm doing something wrong.

Comment by Anthony Myre [ 11/Nov/12 ]

Someone informed me that he thinks this one stat is causing the whole problem:

{"16843110"}

-> "Map (Times Crafted)".

I don't have the time to test it myself tonight, but I'll try removing it from my stats tomorrow to see if it fixes it.

Comment by WaterTipper [ 10/Nov/12 ]

They reset along with the minecraft.jar, it's not really a bug.

But I do believe that this should be fixed, though.

Comment by Riccardo [ 08/Nov/12 ]

Here they are, they still work in 1.3.2, but reset if I launch 1.4.2 or 1.4.3 pre-release.

Comment by Anon Ymus [ 08/Nov/12 ]

We understand this is a problem. If you can confirm this, vote for it. Don't keep repeating what others are saying.

Comment by Rickard Åberg [ 07/Nov/12 ]

Riccardo, attach the stats file. Maybe it will help the Mojangsters to find what's causing it to reset.

Comment by Riccardo [ 07/Nov/12 ]

I play since beta 1.7 and never lost stats until now, anyways, I HAVE backups of the stats dir, but everytime I put it in 1.4.2 they resets.

Comment by Rickard Åberg [ 07/Nov/12 ]

I think I will have to repeat myself.
"Statistics are stored in .minecraft/stats/stats_username_unsent.dat. They keep track of these stats, as well as achievements"

It's NOT stored in minecraft.jar! Something in the code resets the stats and achivements sometimes for some reason tho'.
Perhaps its better to have the achivements serverside instead.

(you can backup the stats dir, I've done that, that way I can always put the stats/achivements back in case of a reset)

Comment by David Harmon [ 07/Nov/12 ]

Xavier: No, I lost my achievements when I went to 1.4, before Halloween. I'm not actually annoyed by this, because I'd gotten "Sniper Duel" offline (so online would never recognize it, nor let me re-earn it). I've got most of mine back, plus one I hadn't had and the rest will come in time.

Comment by FireHunterX [ 07/Nov/12 ]

This happened after and during October 31, because Minecraft.jar was changed to make the easter egg work.

Comment by Talven81 [ 07/Nov/12 ]

I have to say that I'm surprised at Grum's comment. From a marketing standpoint achievements are a big seller. It brings players back to the game to try to get that next achievement, or reset/prestige (by choice) and do it again. Microsoft and the xbox/PC, Sony and the PlayStation, Steam, and more have all learned this. To say a feature included in the game on purpose, isn't that important and you can play without it... is very true, however your customers enjoy seeing "I did something!". When an feature is included in the game, however minuscule, is expected to work properly. People have even been requesting an expansion of the achievement sets.

So I have to agree, fix it or remove it. Otherwise it will continue to reflect badly upon Mojang and their developers as it's highly visible to all who play. I really hope Grum was having a bad day, because I really don't want to see MC go down a path where the majority of players say, "MineCraft is OK, but there's all these bugs they don't care about," instead of "MineCraft is great!"

Comment by Riccardo [ 07/Nov/12 ]

^ that would be awesome, it would be the first mod I try.
And yeah, Mojang should do this instead.

Comment by Takaya Sato [ 07/Nov/12 ]

I think I'm going to work on a mod, that saves the achievements in a different folder outside of minecraft.jar, so when updated, it will still keep the achievements. The only concern is that you will need to download the mod every time you update. I infer that this will be finished by the end of this month, or December, depending on the school work I have to do.


Also, it would be easier for the Mojang team to do this, rather than a modder like me, because I would have to read all the coding in the minecraft.jar, while the mojang team knows what is what. Also, if the mojang team does this, the achievements can be saved server sided, like skins.

Comment by Rolf Redford [ 06/Nov/12 ]

Per world makes more sense anyway. Some challenges is harder in some worlds than others. For example 1 km rails is very easy with flat worlds.

Comment by Wesley [ 06/Nov/12 ]

I agree with Michele. If they were saved per world then you could also allow creation of custom achievements for adventure/survival worlds.

Comment by Rolf Redford [ 05/Nov/12 ]

Achievements was reset on me so many times since early beta that I do not even try to complete them. Not for long time now.

Too bad since I made hard ones such as 1 KM cart ride in survival too.

Comment by Levon Valle [ 03/Nov/12 ]

More achievements would be great once this is fixed.

Comment by Riccardo [ 03/Nov/12 ]

I don't care really much for an XP reward for getting achievements, I'd rather prefer a ton of new achievements to unlock (just about an achievement for every thing you can do in Minecraft).
Anyway, first things first, they sould fix this bug.

Comment by Capopanzone [ 03/Nov/12 ]

This can be fixed by saving achievements per world, so they won't be lost on every minecraft.jar change. Also, if achivements were saved per world, it would be possible to give them a utility, such a experience reward!

Comment by Riccardo [ 03/Nov/12 ]

Tried the new snapshot, the bug is still present

Comment by Dustin Dowell [ 02/Nov/12 ]

I agree with Rodney. I think there should be another dat file or something per world that stores achievements. At least until they implement online achievements. It's a tad bit annoying to get an achievement for pressing the 'E' button each update.

Comment by Max Norwood [ 02/Nov/12 ]

The achievements getting wiped also happen seemingly random when installing mods, the idea of making a separate achievement folder for achievements and stats seems like a good idea.

Comment by Riccardo [ 01/Nov/12 ]

^this

I can attach my stat file if needed anyway.

Comment by Alexander Spielvogel [ 01/Nov/12 ]

The best thing would be statistics per world and global stats for all worlds you played.

Comment by Joshua Cope [ 01/Nov/12 ]

Echoing Tyron and Riccardo: many of us would rather lose a stack of diamonds in the upgrade than lose credit for our precious achievements!

Comment by Rodney Bonner [ 31/Oct/12 ]

Personally I think achievements and statistics should be per world and saved with the world files.

Comment by Riccardo [ 31/Oct/12 ]

Yeah, stats and achievements are pointless if they regularly reset...

Comment by Tyron [ 31/Oct/12 ]

> The achievements/tracking are just numbers. You can totally play without them. No gameplay elements depend on them.

The Achievements/Tracking IS a gameplay element. If this is not going to be fixed, Mojang might as well remove/disable the Achievements rather than people getting their work (trying to get all achievements) ruined after every update.

Comment by Riccardo [ 31/Oct/12 ]

I know but they track everything I do since beta 1.7, I don't want to miss all of it. I like stats, and they're a game feature so why should I play without them?

Comment by sciguyryan [ 31/Oct/12 ]

Its true that it isn't needed but considering they are there and they reset often it can be quite annoying for some people.

Comment by [Mojang] Grum (Erik Broes) [ 31/Oct/12 ]

The achievements/tracking are just numbers. You can totally play without them. No gameplay elements depend on them.

Comment by Riccardo [ 30/Oct/12 ]

I understand, I hope someone will find a solution soon because I can't wait to play in 1.4.2

Comment by Anthony Myre [ 30/Oct/12 ]

That's what I was trying to do, but I don't know how Minecraft calculates the checksum when there are statistics without an associated MD5 in map.txt (the details of this generation are explained in my comment above). If I knew how Minecraft did it, I could simply port the old one over to the new one and keep all of my statistics. Or, in my case, just add the values from my pre-1.4 backup to the values in the new post-1.4 file to get a full, up-to-date statistics file.

Comment by Riccardo [ 30/Oct/12 ]

Same here, I have a backup of my Stats folder and MC 1.4.2 simply resets it, so I had to downgrade to 1.3.2 again until fixed. Maybe someone could help me to at least create a new stats file with the same values of the previous one?

Comment by Takaya Sato [ 28/Oct/12 ]

Indeed, a possible solution, is to have a separate folder/file for the achievements, instead of being inside the minecraft.jar file, or the files can be server sided, like skins. But, the server sided solution has a problem; The server might not work all the time, like how the skin server doesn't work all the time.

Comment by Brandon Hockle [ 27/Oct/12 ]

I was also able to reproduce this bug after forcing upgrade to 1.4.2. The .minecraft/stats/stats_username_unsent.old was also wiped.

Comment by Rickard Åberg [ 26/Oct/12 ]

From the wiki:
Statistics are stored in .minecraft/stats/stats_username_unsent.dat. They keep track of these stats, as well as achievements

Comment by Anon Ymus [ 26/Oct/12 ]

I have also noticed this bug every time I get the newest snapshot. Perhaps the achievement data is in minecraft.jar and updating resets it?

Comment by Rickard Åberg [ 26/Oct/12 ]

Not quite sure if just upgrading trigger the bug, but going back from a current snapshot to an earlier one might trigger a reset on stats/achivements.

Comment by Anthony Myre [ 26/Oct/12 ]

I looked into the issue and it seems to be related to the fact that there are no MD5 hashes for newer achievements and blocks in map.txt in the achievement folder of minecraft.jar. There is a "checksum" value in the stats .dat file, and if this is incorrect, Minecraft empties the file. The checksum is the MD5 hash of the values in the following format:

local<HASH>,value,<HASH>,value,<HASH>,value, ...

So if your only statistic is 10 worlds loaded (Worlds Loaded's id is 1002, and 1002's associated hash in map.txt is d517ae73160fd8576d7687ead1c1a973:
locald517ae73160fd8576d7687ead1c1a973,10,

The hash of that string is 4c9841b44dca5b5667d220471ab70817, and that is what is used as the checksum value.

map.txt in minecraft.jar is a list of MD5s and statistics ids. The string starts with "local", then includes the id-hash and value of each statistic/achievement. But there are no hashes for any achievement id over 5242895 (newer achievements go up to 5242903 or so), and no hashes for any block introduced after the achievement system was added, such as Melon blocks. Obviously Minecraft knows how to handle these missing hashes since statistics for these blocks/achievements were stored prior to 1.4, but it may have something to do with the statistics-wiping of 1.4.

I attached an example of a stats file that will be wiped upon loading Minecraft 1.4. Remember to change the filename from "Player" to your username to make Minecraft actually handle it.

Comment by John Holland [ 25/Oct/12 ]

I have also had achievements reset. As Levon stated, I also have not had achievement reset after updates. I would also like to note that I loaded a backup of my achievements into my folder and after 3 tries they were not accepted.

Comment by Levon Valle [ 25/Oct/12 ]

This has happened to me. Prior to the update I never lost any of my achievements until now.

Comment by Liam Fallon [ 25/Oct/12 ]

It is an annoying thing that really needs to be fixed. Possibly online syncing like they've been talking about since they were added to the game?

Comment by DetachableMonkey (Kurt Boyer) [ 25/Oct/12 ]

I believe this happens every time you update Minecraft, or manually upgrade with a snapshot. I agree that this is a bug though and should be looked into to see if there is a fix/workaround.

Generated at Sun Jan 12 11:51:18 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.