v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Duplicated raws"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (→‎Duplicated materials: Formatting (someone who knows more about wiki formatting might be able to improve this as a footnote/citation/addendum))
 
(33 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Quality}}
+
{{migrated article}}
 +
{{Quality|Unrated}}
 
{{av}}
 
{{av}}
 
{{mod}}
 
{{mod}}
 
{{stub}}
 
{{stub}}
  
'''Duplication of [[raw file]] entries''' is a type of game [[bug]], widely known in the community, due to the bizarre effects this particular bug has on [[world generation]]. It's usually caused by a [[modding]] accident, though some players duplicate raws on purpose to create a crazy glitched world.
+
'''Duplication of [[raw file]] entries''' is a type of game [[bug]], widely known in the community, due to the bizarre effects this particular bug has on [[world generation]]. It is usually caused by a [[modding]] accident, though some players duplicate raws on purpose to create a crazy glitched world.
  
 
The exact effects of the bug happen at the end of worldgen, and vary depending on type and amount of duplicated raw entries.
 
The exact effects of the bug happen at the end of worldgen, and vary depending on type and amount of duplicated raw entries.
 +
 +
== Overview ==
 +
 +
The term refers to the duplication of game object definitions present in the game's [[raw file]]s. The presence of raw entries (such as <code>[CREATURE:DWARF]</code>) being defined more than once causes internal numeric IDs of the target type to be misattributed during the initial save, resulting in each pointer after the point of duplication being shifted one entry forward. Definitions before the point of duplication are unaffected. The effects are cumulative when more than one duplicated entry is present.
 +
 +
If the game finds any duplicated raws when loading a save, it writes an appropriate message in [[errorlog.txt]] per each duplicated entry.
  
 
== Duplicated creatures ==
 
== Duplicated creatures ==
  
Duplication of [[creature]] raws results in wrong creatures appearing in wrong places and assuming wrong roles during gameplay, with many messy and/or hilarious results. It has been known to cause [[cave crocodile]]s to live in houses, civilizations of [[elephant]]s to form, [[camel]]s to wear clothes, [[fluffy wambler]]s to pull wagons, and so on. It also causes creature materials to glitch, which likely results in civilians wearing [[clothing]] made out of liver tissue, chicken teeth, [[soap]], or "unknown frozen creature substance", to name a few, and other weirdnesses, such as [[llama]] [[egg]]s being available on embark.
+
Duplication of [[creature]] raws results in the wrong creatures appearing in the wrong places and assuming the wrong roles during gameplay, with many messy and/or hilarious results. It has been known to cause [[cave crocodile]]s to live in houses, civilizations of [[elephant]]s to form, [[camel]]s to wear clothes, [[fluffy wambler]]s to pull wagons, and so on. It also causes creature materials to glitch, which likely results in civilians wearing [[clothing]] made out of liver tissue, chicken teeth, [[soap]], or "unknown frozen creature substance", to name a few, and other weirdnesses, such as [[llama]] [[egg]]s being available on embark.
  
 
This type of raw file duplication is very prone to spontaneous crashing, and duplicating all creatures will almost certainly result in a crash during worldgen, so it's not advised to do this during regular play.
 
This type of raw file duplication is very prone to spontaneous crashing, and duplicating all creatures will almost certainly result in a crash during worldgen, so it's not advised to do this during regular play.
Line 16: Line 23:
 
== Duplicated plants ==
 
== Duplicated plants ==
  
One of the most visible results of duplicated [[plant]] raws is a complete lack of [[tree]]s. Other vegetation will likely be replaced by uniform dark green [[grass]] composed of non-grass plants, or generic grass like that from older versions of the game.
+
One of the most visible results of duplicated [[plant]] raws is a complete lack of [[tree]]s. Other vegetation will likely be replaced by uniform dark green [[grass]] composed of non-grass plants, or generic grass like that from before the [[v0.31:Release information/0.31.19|v0.31.19]] release.
  
Plant materials, notably [[wood]], will be screwed up the same way creature materials are in creature raws duplication. That is, your would-be wooden items will be composed of [[plump helmet]]s, frozen [[booze]], [[dye]], or "unknown frozen plant substance". Other plant-derived items will be affected as well.
+
Plant materials, notably [[wood]], will be screwed up the same way creature materials are in creature raws duplication - that is, your would-be wooden items will be composed of [[plump helmet]]s, frozen [[booze]], [[dye]], or "unknown frozen plant substance". Other plant-derived items will be affected as well.
  
 
== Duplicated materials ==
 
== Duplicated materials ==
 
[[Image:Flickering ground.gif|right|thumb|Flickering tiles are one of the effects of material duplication.]]
 
  
 
Duplication of inorganic material raws results in wrong materials forming [[stone layers|geological layers]] and inclusions, some of which normally don't appear within the world's crust. These can produce unusual resources when mined, such as metal boulders. Below is the list of what materials you can encounter, and how you can put them to use.
 
Duplication of inorganic material raws results in wrong materials forming [[stone layers|geological layers]] and inclusions, some of which normally don't appear within the world's crust. These can produce unusual resources when mined, such as metal boulders. Below is the list of what materials you can encounter, and how you can put them to use.
  
=== Displaced [[stone|minerals]] ===
+
<small>n.b. Although duplication of "default" (rather than 'inorganic') materials have been a feature of a few mods for quite some time, and there have been no verified bugs directly related to this, the developers of the game have assured the community that these definitely will be causing errors, even if they are not immediately apparent to players.</small>
  
The amount of displaced minerals will depend on the place in which raw file duplication has occurred. Sometimes, you can even find entire layers composed of usable [[ore]].
+
=== Displaced [[stone|minerals]], [[soil]]s, and [[metal]] layers ===
  
=== Misplaced [[soil]]s ===
+
The amount of displaced minerals will depend on the place in which raw file duplication has occurred - sometimes, you can even find entire layers composed of usable [[ore]].
  
[[Soil]], [[sand]], and [[clay]] tiles can also be misplaced, which will likely result in [[aquifer]]s being generated in unexpected places, such as in [[vein|mineral deposits]]. The tiles themselves will be unusable in sand/clay production, however, unless they happen to form the entire layer.
+
[[Soil]], [[sand]], and [[clay]] tiles can also be displaced, which will likely result in [[aquifer]]s being generated in unexpected places, such as in [[vein|mineral deposits]]. The tiles themselves will be unusable in sand/clay production, however, unless they happen to form the entire layer.
  
=== [[Metal]] layers ===
+
Contrary to what you might think, metal layers produce metal ''boulders'' when mined, which can either be [[melt]]ed into a meager amount of metal [[bars]], or directly made into [[short sword]]s, the same way [[obsidian]] swords are made.
 
 
Contrary to what you might think, these produce metal ''boulders'' when mined, which can either be [[melt]]ed into a meager amount of metal [[bars]], or directly made into short swords the same way [[obsidian]] swords are made.
 
  
 
=== [[Evil weather]] materials ===
 
=== [[Evil weather]] materials ===
  
Evil weather materials have no melting or boiling point, and thus will always be mined as solids. These can be used either as basic [[construction]] material, or in [[jewelry]], but not in [[masonry|stoneworking]]. Note that mining them and working with created 'boulders' is perfectly safe, but [[cave-in]] dust '''will''' transfer any syndromes of the material, likely turning the majority of your population into undead [[husk]]s.
+
Evil weather materials have no melting or boiling point, and, thus, will always be mined as solids. These can be used either as basic [[construction]] material, or in [[jewelry]], but not [[masonry|stoneworking]]. Note that mining them and working with created 'boulders' is perfectly safe, but [[cave-in]] dust '''will''' transfer any syndromes of the material, likely turning the majority of your population into undead [[husk]]s.
  
 
=== [[Divine fabric]] ===
 
=== [[Divine fabric]] ===
  
While not fire-safe, divine fabric has an astonishingly-high base [[value]] of 300, making it perfect for [[decoration]]. Unfortunately, 'boulders' composed of it cannot be processed into thread, and can be worked only at a [[jeweler's workshop]].
+
While not fire-safe, divine fabric has an astonishingly-high base [[value]] of 300, making it perfect for [[decoration]]. Unfortunately, 'boulders' composed of it cannot be processed into thread, being workable only at a [[jeweler's workshop]].
  
 
=== [[Divine metal]] ===
 
=== [[Divine metal]] ===
  
It is completely impervious to [[temperature|heat]], and superior to anything other than [[adamantine]]. Mined boulders can be processed the same way as boulders of other metals, discussed above.
+
This metal of the [[deity|gods]] is completely impervious to [[temperature|heat]], and superior to anything other than [[adamantine]]. Mined boulders of it can be processed the same way as boulders of other metals, discussed above.
 +
 
 +
=== Undefined materials ===
 +
If a given region's list of geological layers ends up not containing any Stone or Soil materials, the corresponding terrain tiles will rapidly flicker between '''all''' possible inorganic materials. Attempting to designate such Wall tiles will randomly fail whenever the game picks an undiggable material such as [[slade]] (and successfully-designated tiles may randomly fail to mine with "Inappropriate dig square" for the same reason), and successfully mining one will produce a completely random result, with gem materials yielding rough gems and everything else yielding boulders.
 +
 
 +
== Gallery ==
 +
<gallery>
 +
File:Flickering ground.gif|Flickering tiles are one of the effects of material duplication.
 +
File:Duplicated_raws_embark.png|The [[embark]] screen can be used to inspect material weirdnesses.
 +
File:Duplicated_raws_grass.png|Glitched vegetation in a world with duplicated plants.
 +
File:Duplicated_raws_layer.png|Unusual stone layer composition, characteristic to worlds with duplicated minerals.
 +
File:Duplicated_raws_artifact.png|An [[artifact]] created in a world with duplicated raws.
 +
</gallery>

Latest revision as of 00:09, 12 February 2023

This article is about the current version of DF.
Note that some content may still need to be updated.


Duplication of raw file entries is a type of game bug, widely known in the community, due to the bizarre effects this particular bug has on world generation. It is usually caused by a modding accident, though some players duplicate raws on purpose to create a crazy glitched world.

The exact effects of the bug happen at the end of worldgen, and vary depending on type and amount of duplicated raw entries.

Overview[edit]

The term refers to the duplication of game object definitions present in the game's raw files. The presence of raw entries (such as [CREATURE:DWARF]) being defined more than once causes internal numeric IDs of the target type to be misattributed during the initial save, resulting in each pointer after the point of duplication being shifted one entry forward. Definitions before the point of duplication are unaffected. The effects are cumulative when more than one duplicated entry is present.

If the game finds any duplicated raws when loading a save, it writes an appropriate message in errorlog.txt per each duplicated entry.

Duplicated creatures[edit]

Duplication of creature raws results in the wrong creatures appearing in the wrong places and assuming the wrong roles during gameplay, with many messy and/or hilarious results. It has been known to cause cave crocodiles to live in houses, civilizations of elephants to form, camels to wear clothes, fluffy wamblers to pull wagons, and so on. It also causes creature materials to glitch, which likely results in civilians wearing clothing made out of liver tissue, chicken teeth, soap, or "unknown frozen creature substance", to name a few, and other weirdnesses, such as llama eggs being available on embark.

This type of raw file duplication is very prone to spontaneous crashing, and duplicating all creatures will almost certainly result in a crash during worldgen, so it's not advised to do this during regular play.

Duplicated plants[edit]

One of the most visible results of duplicated plant raws is a complete lack of trees. Other vegetation will likely be replaced by uniform dark green grass composed of non-grass plants, or generic grass like that from before the v0.31.19 release.

Plant materials, notably wood, will be screwed up the same way creature materials are in creature raws duplication - that is, your would-be wooden items will be composed of plump helmets, frozen booze, dye, or "unknown frozen plant substance". Other plant-derived items will be affected as well.

Duplicated materials[edit]

Duplication of inorganic material raws results in wrong materials forming geological layers and inclusions, some of which normally don't appear within the world's crust. These can produce unusual resources when mined, such as metal boulders. Below is the list of what materials you can encounter, and how you can put them to use.

n.b. Although duplication of "default" (rather than 'inorganic') materials have been a feature of a few mods for quite some time, and there have been no verified bugs directly related to this, the developers of the game have assured the community that these definitely will be causing errors, even if they are not immediately apparent to players.

Displaced minerals, soils, and metal layers[edit]

The amount of displaced minerals will depend on the place in which raw file duplication has occurred - sometimes, you can even find entire layers composed of usable ore.

Soil, sand, and clay tiles can also be displaced, which will likely result in aquifers being generated in unexpected places, such as in mineral deposits. The tiles themselves will be unusable in sand/clay production, however, unless they happen to form the entire layer.

Contrary to what you might think, metal layers produce metal boulders when mined, which can either be melted into a meager amount of metal bars, or directly made into short swords, the same way obsidian swords are made.

Evil weather materials[edit]

Evil weather materials have no melting or boiling point, and, thus, will always be mined as solids. These can be used either as basic construction material, or in jewelry, but not stoneworking. Note that mining them and working with created 'boulders' is perfectly safe, but cave-in dust will transfer any syndromes of the material, likely turning the majority of your population into undead husks.

Divine fabric[edit]

While not fire-safe, divine fabric has an astonishingly-high base value of 300, making it perfect for decoration. Unfortunately, 'boulders' composed of it cannot be processed into thread, being workable only at a jeweler's workshop.

Divine metal[edit]

This metal of the gods is completely impervious to heat, and superior to anything other than adamantine. Mined boulders of it can be processed the same way as boulders of other metals, discussed above.

Undefined materials[edit]

If a given region's list of geological layers ends up not containing any Stone or Soil materials, the corresponding terrain tiles will rapidly flicker between all possible inorganic materials. Attempting to designate such Wall tiles will randomly fail whenever the game picks an undiggable material such as slade (and successfully-designated tiles may randomly fail to mine with "Inappropriate dig square" for the same reason), and successfully mining one will produce a completely random result, with gem materials yielding rough gems and everything else yielding boulders.

Gallery[edit]