<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.factorio.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Emlun</id>
	<title>Official Factorio Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.factorio.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Emlun"/>
	<link rel="alternate" type="text/html" href="https://wiki.factorio.com/Special:Contributions/Emlun"/>
	<updated>2026-05-13T20:07:25Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://wiki.factorio.com/index.php?title=Talk:Achievement_file_format&amp;diff=216399</id>
		<title>Talk:Achievement file format</title>
		<link rel="alternate" type="text/html" href="https://wiki.factorio.com/index.php?title=Talk:Achievement_file_format&amp;diff=216399"/>
		<updated>2025-11-16T21:04:09Z</updated>

		<summary type="html">&lt;p&gt;Emlun: Updated for 2.x&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* I&#039;ve updated the documentation for Factorio 2.x, based mostly on the existing 1.x documentation. Most of the structure is the same, but some data lengths have changed and some achievement types have been added. I documented the (probable) index numbers as unknown for now, since it&#039;s not clear if they work the same as in 1.x. I discovered the differences while implementing a parser, which I then used as reference implementation when updating this documentation. The implementation can be found here: https://github.com/emlun/factorio-achievements-editor . [[User:Emlun|Emlun]] ([[User talk:Emlun|talk]]) 21:03, 16 November 2025 (UTC)&lt;br /&gt;
* I have fully mapped out the achievements-modded.dat file and updated the page to reflect, i split the page into a achievements.dat and achievement-modded.dat sections, there are some odditys but they seem to be consistent, it is confirmed that for both files, tracked achievements are stored as shorts to refrence the index of the achievement set earlyer in the file, for some reason there can be shorts with value 0, not sure why, best guess is old achievements that were tracked but were completed, while i tried my best to stay with the theme and wording of the wiki and the content that was there before, i feel that what i have added may not be clear, having someone else do a look over (peer review?) to make sure it&#039;s as clear as it can be would be useful, also it should be looked into whether the 2 sections can be condensed back into 1 since there is some redundant information [[User:O2theC|O2theC]] ([[User talk:O2theC|talk]]) 04:43, 2 August 2024 (UTC)&lt;br /&gt;
* so i went into the modded formated and my god is it different, the normal header and all before is the same , seems like the same index values as the normal one (for my copys of the files), but after it goes weird, first it has an array which uses an int rather than short for length like previous arrays and then it goes SO String (ach type), SO String (ach name), then bytes[*], which is varible length based on ach type, what is weirder is that the research-achievement type has no data bytes, it does in the normal format but in the modded one is has no data bytes, and i had 2 achs with it and it was consistent , so weird , there also seems to be 4 bytes at the end of the file , not sure what they do yet [[User:O2theC|O2theC]] ([[User talk:O2theC|talk]]) who knows when i made this, i forgot to add the ~s&lt;br /&gt;
* i think i have the correct format now and the page is updated to reflect it, during some testing it looks like the modded file almost seems to repeat some things and the repeated part uses a format that looks similar to what this page showed before, gonna check it out more tomorrow [[User:O2theC|O2theC]] ([[User talk:O2theC|talk]]) 01:27, 1 August 2024 (UTC)&lt;br /&gt;
* the starting format is not complete, similar to [[Mod_settings_file_format|mod settings format]], there is a bool set to false right after the version string, the page has been adjusted to reflect this [[User:O2theC|O2theC]] ([[User talk:O2theC|talk]]) 19:56, 31 July 2024 (UTC)&lt;/div&gt;</summary>
		<author><name>Emlun</name></author>
	</entry>
	<entry>
		<id>https://wiki.factorio.com/index.php?title=Achievement_file_format&amp;diff=216398</id>
		<title>Achievement file format</title>
		<link rel="alternate" type="text/html" href="https://wiki.factorio.com/index.php?title=Achievement_file_format&amp;diff=216398"/>
		<updated>2025-11-16T20:48:37Z</updated>

		<summary type="html">&lt;p&gt;Emlun: Update documentation for Factorio 2.x&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a technical description of the achievement file format, used by Factorio to store player&#039;s achievement progress in the files &amp;lt;code&amp;gt;achievements.dat&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;achievements-modded.dat&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Yes - this information can be used to &amp;quot;cheat&amp;quot; Factorio by simply writing to the achievement file(s) in such a way as if you had met all the achievement requirements, open up Factorio, and then suddenly have all achievements unlocked. The goal of this document is to share how to &#039;&#039;read&#039;&#039; the achievement file(s) - so that third party applications can do new and interesting things with that information.&lt;br /&gt;
&lt;br /&gt;
See the page on [[data types]] for an explanation of the different types of data used in this document.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Factorio 2.x =&lt;br /&gt;
Factorio 2.x uses the same format for both &amp;lt;code&amp;gt;achievements.dat&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;achievements-modded.dat&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== File Format ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#short|short]][4]&lt;br /&gt;
| The [[Version_string_format|version string]] of Factorio that generated this file.&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#bool|bool]]&lt;br /&gt;
| A bool that is always false&lt;br /&gt;
|-&lt;br /&gt;
| short [[Data_types#array|array]]&amp;lt;[[#Achievement Header Info|bytes]]&amp;gt;&lt;br /&gt;
| [[#Achievement Header Info|Achievement header info]]. Variable length. See the section for more information.&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#array|array]]&amp;lt;[[#Achievement Content Info|bytes]]&amp;gt;&lt;br /&gt;
| [[#Achievement Content Info|Achievement content info]]. Variable length. See the section for more information.&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#short|byte]][*]&lt;br /&gt;
| Unknown. Probably tracked achievements like in [[#Factorio 1.x]], but this is not confirmed.&lt;br /&gt;
|}&lt;br /&gt;
This format is valid as of version 2.0.72.&lt;br /&gt;
&lt;br /&gt;
== Achievement Header Info ==&lt;br /&gt;
&lt;br /&gt;
The header contains information about what type of data fields each achievement has.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#Space_Optimized|Space optimized]] [[Data_types#string|string]]&lt;br /&gt;
| Achievement type. This determines what kind of data fields this achievement contains in the content array.&lt;br /&gt;
|-&lt;br /&gt;
| short [[Data_types#array|array]]&amp;lt;Header Subobject&amp;gt;&lt;br /&gt;
| An array of achievements that use this achievement type.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Header Subobject ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#Space_Optimized|Space optimized]] [[Data_types#string|string]]&lt;br /&gt;
| Achievement string id - the one used internally by Factorio.&lt;br /&gt;
|-&lt;br /&gt;
| byte[2]&lt;br /&gt;
| Unknown. Probably an index number like in [[#Factorio 1.x]], but this is not confirmed.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Achievement Content Info ==&lt;br /&gt;
&lt;br /&gt;
This contains the actual data of each achievement. It&#039;s important to note that not every achievement listed in the header has a matching content section here.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#Space_Optimized|Space optimized]] [[Data_types#string|string]]&lt;br /&gt;
| Achievement type. This determines what kind of data fields this achievement contains in the progress field.&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#Space_Optimized|Space optimized]] [[Data_types#string|string]]&lt;br /&gt;
| Achievement id - the one used internally by Factorio.&lt;br /&gt;
|-&lt;br /&gt;
| byte[*]&lt;br /&gt;
| The achievement&#039;s progress information. The structure and length of this is determined by the [[#Achievement Types|achievement&#039;s type]]. See the table below for a list of achievement types.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Achievement Types ==&lt;br /&gt;
&lt;br /&gt;
If new achievement types are added in the future, the achievement files will be unparse-able. Please add any new types you find here.&lt;br /&gt;
&lt;br /&gt;
See the [https://lua-api.factorio.com/latest/defines.html#defines.prototypes Defines.prototypes] and bas [https://lua-api.factorio.com/latest/prototypes/AchievementPrototype.html AchivementPrototype] documentation for more information about achievement types and data structures.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Achievement&amp;lt;br&amp;gt;Type !! Binary&amp;lt;br&amp;gt;Fields(s) !! Field(s) Description&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/AchievementPrototype.html achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[0]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 0 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/BuildEntityAchievementPrototype.html build-entity-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/ChangedSurfaceAchievementPrototype.html change-surface-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[1]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 1 byte long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/CombatRobotCountAchievementPrototype.html combat-robot-count]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#int|int]]&lt;br /&gt;
|&lt;br /&gt;
* The greatest number of combat robots you&#039;ve had following you.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/CompleteObjectiveAchievementPrototype.html complete-objective-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[0]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 0 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/ConstructWithRobotsAchievementPrototype.html construct-with-robots-achievement]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#int|int]]&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Total number of objects constructed using robots.&lt;br /&gt;
* Unknown format, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/CreatePlatformAchievementPrototype.html create-platform-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/DeconstructWithRobotsAchievementPrototype.html deconstruct-with-robots-achievement]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#int|int]]&lt;br /&gt;
|&lt;br /&gt;
* Total number of objects deconstructed using robots.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/DeliverByRobotsAchievementPrototype.html deliver-by-robots-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/DepleteResourceAchievementPrototype.html deplete-resource-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/DestroyCliffAchievementPrototype.html destroy-cliff-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/DontBuildEntityAchievementPrototype.html dont-build-entity-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[5]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 5 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/DontCraftManuallyAchievementPrototype.html dont-craft-manually-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/DontKillManuallyAchievementPrototype.html dont-kill-manually-achievement]&lt;br /&gt;
|&lt;br /&gt;
* ???&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, unknown length.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/DontResearchBeforeResearchingAchievementPrototype.html dont-research-before-researching-achievement]&lt;br /&gt;
|&lt;br /&gt;
* ???&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, unknown length.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/DontUseEntityInEnergyProductionAchievementPrototype.html dont-use-entity-in-energy-production-achievement]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#double|double]]&lt;br /&gt;
|&lt;br /&gt;
* Maximum number of Joules produced per hour, only including power produced from entities listed under &amp;quot;[https://lua-api.factorio.com/latest/prototypes/DontUseEntityInEnergyProductionAchievementPrototype.html#included included]&amp;quot;, and excluding those listed under &amp;quot;[https://lua-api.factorio.com/latest/prototypes/DontUseEntityInEnergyProductionAchievementPrototype.html#excluded excluded]&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/EquipArmorAchievementPrototype.html equip-armor-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/GroupAttackAchievementPrototype.html group-attack-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/KillAchievementPrototype.html kill-achievement]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#double|double]]&lt;br /&gt;
|&lt;br /&gt;
* The greatest number of an entity killed (e.g. trees, spawners).&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/ModuleTransferAchievementPrototype.html module-transfer-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/PlaceEquipmentAchievementPrototype.html place-equipment-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/PlayerDamagedAchievementPrototype.html player-damaged-achievement]&lt;br /&gt;
| &lt;br /&gt;
* [[Data_types#float|float]]&lt;br /&gt;
* [[Data_types#bool|bool]]&lt;br /&gt;
|&lt;br /&gt;
* The maximum amount of damage you&#039;ve taken in a single hit.&lt;br /&gt;
* True if the you survived that hit, False if you died.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/ProduceAchievementPrototype.html produce-achievement]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#double|double]]&lt;br /&gt;
|&lt;br /&gt;
* The total number of the item you&#039;ve produced.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/ProducePerHourAchievementPrototype.html produce-per-hour-achievement]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#double|double]]&lt;br /&gt;
|&lt;br /&gt;
* The maximum amount of the item produced per hour.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/ResearchAchievementPrototype.html research-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[0]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 0 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/ResearchWithSciencePackAchievementPrototype.html research-with-science-pack-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/ShootAchievementPrototype.html shoot-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/SpaceConnectionDistanceTraveledAchievementPrototype.html space-connection-distance-traveled-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/TrainPathAchievementPrototype.html train-path-achievement]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#double|double]]&lt;br /&gt;
|&lt;br /&gt;
* The longest path (in tiles) planned by a train.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/UseEntityInEnergyProductionAchievementPrototype.html use-entity-in-energy-production-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[5]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 5 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/latest/prototypes/UseItemAchievementPrototype.html use-item-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 4 bytes long.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Factorio 1.x =&lt;br /&gt;
Factorio 1.x uses different formats for &amp;lt;code&amp;gt;achievements.dat&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;achievements-modded.dat&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== achievements.dat ==&lt;br /&gt;
=== File Format ===&lt;br /&gt;
The overall file format is as follows. Note that in this file, [[Data_types#array|array]] length is stored as a [[Data_types#short|short]], not an [[Data_types#int|int]]!&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#short|short]][4]&lt;br /&gt;
| The [[Version_string_format|version string]] of Factorio that generated this file.&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#bool|bool]]&lt;br /&gt;
| A bool that is always false&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#array|array]]&amp;lt;[[#Achievement Header Info|bytes]]&amp;gt;&lt;br /&gt;
| [[#Achievement Header Info|Achievement header info]]. Variable length. See the section for more information.&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#array|array]]&amp;lt;[[#Achievement Content Info|bytes]]&amp;gt;&lt;br /&gt;
| [[#Achievement Content Info|Achievement content info]]. Variable length. See the section for more information.&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#short|short]][*]&lt;br /&gt;
| Currently tracked achievements, given as a series of [[Data_types#short|shorts]] up until the end of the file, with each representing the index number of an achievement. The order of achievements in this series matches the order of which the player has them tracked in game. Some shorts may have a value of 0, it is unknown currently why, but they don&#039;t seem to store meaningful data.&lt;br /&gt;
|}&lt;br /&gt;
This format has been valid since at least version 1.1.0.&lt;br /&gt;
&lt;br /&gt;
=== Achievement Header Info ===&lt;br /&gt;
&lt;br /&gt;
The header contains information about what type of data fields each achievement has.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#Space_Optimized|Space optimized]] [[Data_types#string|string]]&lt;br /&gt;
| Achievement type. This determines what kind of data fields this achievement contains in the content array.&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#array|array]]&amp;lt;Header Subobject&amp;gt;&lt;br /&gt;
| An array of achievements that use this achievement type.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Header Subobject ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Type !! Description&lt;br /&gt;
|- &lt;br /&gt;
| [[Data_types#Space_Optimized|Space optimized]] [[Data_types#string|string]]&lt;br /&gt;
| Achievement string id - the one used internally by Factorio.&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#short|short]]&lt;br /&gt;
| Achievement index number. This number is used to map achievements between this header info array, the content info array, and the tracked achievements list in this file. These index numbers are non-normative, so they won&#039;t always match up with the same achievement.&amp;lt;br&amp;gt; Note: the mapping of index numbers to achievement ids are continuous, but start at index 1 (there is no index 0) - because Lua tables start at 1.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Achievement Content Info ===&lt;br /&gt;
&lt;br /&gt;
This contains the actual data of each achievement. It&#039;s important to note that not every achievement listed in the header has a matching content section here.&lt;br /&gt;
&lt;br /&gt;
Also note that this array always ends with an index number of 0. When reading, either ignore this, or manually add in a blank achievement into your meta table at index zero with no fields.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#short|short]]&lt;br /&gt;
| Achievement index number. This matches up with the index number in the [[#Achievement Header Info|Achievement header info]].&lt;br /&gt;
|-&lt;br /&gt;
| byte[*]&lt;br /&gt;
| The achievement&#039;s progress information. The structure and length of this is determined by the [[#Achievement Types|achievement&#039;s type]]. See the table below for a list of achievement types.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Achievement Types ===&lt;br /&gt;
&lt;br /&gt;
If new achievement types are added in the future, the achievement files will be unparse-able. Please add any new types you find here.&lt;br /&gt;
&lt;br /&gt;
See the [https://lua-api.factorio.com/1.1.110/prototypes/AchievementPrototype.html AchievementPrototype] base prototype page for more information about achievement structure.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Achievement&amp;lt;br&amp;gt;Type !! Binary&amp;lt;br&amp;gt;Fields(s) !! Field(s) Description&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/BuildEntityAchievementPrototype.html build-entity-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/CombatRobotCountAchievementPrototype.html combat-robot-count]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#int|int]]&lt;br /&gt;
|&lt;br /&gt;
* The greatest number of combat robots you&#039;ve had following you.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/ConstructWithRobotsAchievementPrototype.html construct-with-robots-achievement]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#int|int]]&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Total number of objects constructed using robots.&lt;br /&gt;
* Unknown format, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/DeconstructWithRobotsAchievementPrototype.html deconstruct-with-robots-achievement]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#int|int]]&lt;br /&gt;
|&lt;br /&gt;
* Total number of objects deconstructed using robots.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/DeliverByRobotsAchievementPrototype.html deliver-by-robots-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[8]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 8 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/DontBuildEntityAchievementPrototype.html dont-build-entity-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Null bytes, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/DontCraftManuallyAchievementPrototype.html dont-craft-manually-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[8]&lt;br /&gt;
|&lt;br /&gt;
* Null bytes, 8 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/DontUseEntityInEnergyProductionAchievementPrototype.html dont-use-entity-in-energy-production-achievement]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#double|double]]&lt;br /&gt;
|&lt;br /&gt;
* Maximum number of Joules produced per hour, only including power produced from entities listed under &amp;quot;[https://lua-api.factorio.com/1.1.110/prototypes/DontUseEntityInEnergyProductionAchievementPrototype.html#included included]&amp;quot;, and excluding those listed under &amp;quot;[https://lua-api.factorio.com/1.1.110/prototypes/DontUseEntityInEnergyProductionAchievementPrototype.html#excluded excluded]&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/FinishTheGameAchievementPrototype.html finish-the-game-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Null bytes, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/GroupAttackAchievementPrototype.html group-attack-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/KillAchievementPrototype.html kill-achievement]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#double|double]]&lt;br /&gt;
|&lt;br /&gt;
* The greatest number of an entity killed (e.g. trees, spawners).&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/PlayerDamagedAchievementPrototype.html player-damaged-achievement]&lt;br /&gt;
| &lt;br /&gt;
* [[Data_types#float|float]]&lt;br /&gt;
* [[Data_types#bool|bool]]&lt;br /&gt;
|&lt;br /&gt;
* The maximum amount of damage you&#039;ve taken in a single hit.&lt;br /&gt;
* True if the you survived that hit, False if you died.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/ProduceAchievementPrototype.html produce-achievement]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#double|double]]&lt;br /&gt;
|&lt;br /&gt;
* The total number of the item you&#039;ve produced.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/ProducePerHourAchievementPrototype.html produce-per-hour-achievement]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#double|double]]&lt;br /&gt;
|&lt;br /&gt;
* The maximum amount of the item produced per hour.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/ResearchAchievementPrototype.html research-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/TrainPathAchievementPrototype.html train-path-achievement]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#double|double]]&lt;br /&gt;
|&lt;br /&gt;
* The longest path (in tiles) planned by a train.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;quot;combat-robot-count&amp;quot; is the only achievement type in 1.x that doesn&#039;t end in &amp;quot;-achievement&amp;quot;. This is not an error.&lt;br /&gt;
&lt;br /&gt;
== achievements-modded.dat ==&lt;br /&gt;
=== File Format ===&lt;br /&gt;
The overall file format is simular to the non modded version but slightly different.&lt;br /&gt;
Note some arrays here will use an int and others a short for storing their length, assume they use an int unless referred to as short arrays, in which they will use shorts for their length&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#short|short]][4]&lt;br /&gt;
| The [[Version_string_format|version string]] of Factorio that generated this file.&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#bool|bool]]&lt;br /&gt;
| A bool that is always false&lt;br /&gt;
|-&lt;br /&gt;
| short [[Data_types#array|array]]&amp;lt;[[#Achievement Header Info|bytes]]&amp;gt;&lt;br /&gt;
| [[#Achievement Header Info|Achievement header info]]. Variable length. See the section for more information.&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#array|array]]&amp;lt;[[#Achievement Content Info|bytes]]&amp;gt;&lt;br /&gt;
| [[#Achievement Content Info|Achievement Content info]]. Variable length. See the section for more information.&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#short|short]][*]&lt;br /&gt;
| Currently tracked achievements, given as a series of [[Data_types#short|shorts]] up until the end of the file, with each representing the index number of an achievement. The order of achievements in this series matches the order of which the player has them tracked in game. Some shorts may have a value of 0, it is unknown currently why, but they don&#039;t seem to store meaningful data.&lt;br /&gt;
|}&lt;br /&gt;
This format has been valid since at least version 1.1.0.&lt;br /&gt;
&lt;br /&gt;
=== Achievement Header Info ===&lt;br /&gt;
&lt;br /&gt;
The header contains information about what type of data fields each achievement has.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#Space_Optimized|Space optimized]] [[Data_types#string|string]]&lt;br /&gt;
| Achievement type. This determines what kind of data fields this achievement contains in the content array.&lt;br /&gt;
|-&lt;br /&gt;
| short [[Data_types#array|array]]&amp;lt;Header Subobject&amp;gt;&lt;br /&gt;
| An array of achievements that use this achievement type.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==== Header Suboject ====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Type !! Description&lt;br /&gt;
|- &lt;br /&gt;
| [[Data_types#Space_Optimized|Space optimized]] [[Data_types#string|string]]&lt;br /&gt;
| Achievement string id - the one used internally by Factorio.&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#short|short]]&lt;br /&gt;
| Achievement index number. This number is used to map achievements between this header info array, the content info array, and the tracked achievements list in this file. These index numbers are non-normative, so they won&#039;t always match up with the same achievement.&amp;lt;br&amp;gt; Note: the mapping of index numbers to achievement ids are continuous, but start at index 1 (there is no index 0) - because Lua tables start at 1. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Achievement Content Info ===&lt;br /&gt;
&lt;br /&gt;
This a object representing achievements, their type and their data &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Type !! Description&lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#Space_Optimized|Space optimized]] [[Data_types#string|string]]&lt;br /&gt;
| Achievement Type &lt;br /&gt;
|-&lt;br /&gt;
| [[Data_types#Space_Optimized|Space optimized]] [[Data_types#string|string]]&lt;br /&gt;
| Achievement string id - the one used internally by Factorio.&lt;br /&gt;
|-&lt;br /&gt;
| byte[*]&lt;br /&gt;
| The achievement&#039;s progress information. The structure and length of this is determined by the [[#Achievement Types_2|achievement&#039;s type]]. See the table below for a list of achievement types.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Achievement Types ===&lt;br /&gt;
&lt;br /&gt;
If new achievement types are added in the future, the achievement files will be unparse-able. Please add any new types you find here.&lt;br /&gt;
&lt;br /&gt;
See the [https://lua-api.factorio.com/1.1.110/prototypes/AchievementPrototype.html AchievementPrototype] base prototype page for more information about achievement structure.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Achievement&amp;lt;br&amp;gt;Type !! Binary&amp;lt;br&amp;gt;Fields(s) !! Field(s) Description&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/BuildEntityAchievementPrototype.html build-entity-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/CombatRobotCountAchievementPrototype.html combat-robot-count]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#int|int]]&lt;br /&gt;
|&lt;br /&gt;
* The greatest number of combat robots you&#039;ve had following you.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/ConstructWithRobotsAchievementPrototype.html construct-with-robots-achievement]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#int|int]]&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Total number of objects constructed using robots.&lt;br /&gt;
* Unknown format, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/DeconstructWithRobotsAchievementPrototype.html deconstruct-with-robots-achievement]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#int|int]]&lt;br /&gt;
|&lt;br /&gt;
* Total number of objects deconstructed using robots.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/DeliverByRobotsAchievementPrototype.html deliver-by-robots-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[8]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 8 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/DontBuildEntityAchievementPrototype.html dont-build-entity-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Null bytes, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/DontCraftManuallyAchievementPrototype.html dont-craft-manually-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[8]&lt;br /&gt;
|&lt;br /&gt;
* Null bytes, 8 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/DontUseEntityInEnergyProductionAchievementPrototype.html dont-use-entity-in-energy-production-achievement]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#double|double]]&lt;br /&gt;
|&lt;br /&gt;
* Maximum number of Joules produced per hour, only including power produced from entities listed under &amp;quot;[https://lua-api.factorio.com/1.1.110/prototypes/DontUseEntityInEnergyProductionAchievementPrototype.html#included included]&amp;quot;, and excluding those listed under &amp;quot;[https://lua-api.factorio.com/1.1.110/prototypes/DontUseEntityInEnergyProductionAchievementPrototype.html#excluded excluded]&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/FinishTheGameAchievementPrototype.html finish-the-game-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Null bytes, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/GroupAttackAchievementPrototype.html group-attack-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[4]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 4 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/KillAchievementPrototype.html kill-achievement]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#double|double]]&lt;br /&gt;
|&lt;br /&gt;
* The greatest number of an entity killed (e.g. trees, spawners).&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/PlayerDamagedAchievementPrototype.html player-damaged-achievement]&lt;br /&gt;
| &lt;br /&gt;
* [[Data_types#float|float]]&lt;br /&gt;
* [[Data_types#bool|bool]]&lt;br /&gt;
|&lt;br /&gt;
* The maximum amount of damage you&#039;ve taken in a single hit.&lt;br /&gt;
* True if the you survived that hit, False if you died.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/ProduceAchievementPrototype.html produce-achievement]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#double|double]]&lt;br /&gt;
|&lt;br /&gt;
* The total number of the item you&#039;ve produced.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/ProducePerHourAchievementPrototype.html produce-per-hour-achievement]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#double|double]]&lt;br /&gt;
|&lt;br /&gt;
* The maximum amount of the item produced per hour.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/ResearchAchievementPrototype.html research-achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[0]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 0 bytes long.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/TrainPathAchievementPrototype.html train-path-achievement]&lt;br /&gt;
|&lt;br /&gt;
* [[Data_types#double|double]]&lt;br /&gt;
|&lt;br /&gt;
* The longest path (in tiles) planned by a train.&lt;br /&gt;
|-&lt;br /&gt;
| [https://lua-api.factorio.com/1.1.110/prototypes/AchievementPrototype.html achievement]&lt;br /&gt;
|&lt;br /&gt;
* byte[0]&lt;br /&gt;
|&lt;br /&gt;
* Unknown format, 0 bytes long.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;quot;combat-robot-count&amp;quot; is the only achievement type that in 1.x doesn&#039;t end in &amp;quot;-achievement&amp;quot;. This is not an error.   &amp;lt;br&amp;gt;   &lt;br /&gt;
Also for some reason, in the 2nd Header the research-achievement type has no data bytes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Technical]]&lt;/div&gt;</summary>
		<author><name>Emlun</name></author>
	</entry>
</feed>