Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0001428Dwarf FortressTechnical -- Generalpublic2010-04-22 06:032011-03-09 17:25
ethanb 
Toady One 
normalcrashalways
resolvedfixed 
AMDUbuntu Linux 32-bit (under Wine)9.10
0.31.03 
0.31.22 
0001428: Backup raws files (*.txt~, *.txt.bak) get parsed, causing mismatched IDs and crashes
I'm vieweing Legends before starting a game and when I go to see what happened at the Mountain Hall Rigothmor ("Crafttemples") it instantly crashes.
1) Legends mode
2) Sites
3) Choose the last "Mountain Halls" in the sites list (Rigothmor)
4) ...
5) Profit!
http://dffd.wimbli.com/file.php?id=2194 [^]
crash, gameplay tweak, legends, raw file
has duplicate 0002654resolved Footkerchief Race entities all shuffled about when a small change is made in the raws 
has duplicate 0002022resolved Footkerchief Generic layers (e.g. "Rock"), metal stone (e.g. an unmined Black Bronze wall), deep soil layers, and cycling surface tiles  
has duplicate 0003565resolved Logical2u applying the raw changes for mayday's tileset results in butcherable Dwarfes after worldgen/embark 
has duplicate 0000446resolved Dwarfu Crash when viewing merchants' "unknown plant substance" in depot 
has duplicate 0001597resolved Dwarfu Repeatable crash, unknown cause 
has duplicate 0004707resolved Dwarfu Dwarves turn into alligators??? 
related to 0009988resolved Loci Random Magma While Digging 
Issue History
2010-04-22 06:03ethanbNew Issue
2010-04-22 06:03ethanbIssue Monitored: ethanb
2010-04-22 06:03ethanbIssue End Monitor: ethanb
2010-04-22 06:34Knight OtuNote Added: 0004587
2010-04-22 09:24FootkerchiefNote Added: 0004606
2010-04-22 09:43Knight OtuNote Added: 0004608
2010-04-22 11:30FootkerchiefNote Added: 0004625
2010-04-22 11:33FootkerchiefSummarycrash when viewing specific site in Legends => Backup raws file (creature_standard.txt~) gets parsed with other raws, causing mismatched IDs and crashes
2010-04-22 11:40KennelTag Attached: crash
2010-04-22 11:40KennelTag Attached: legends
2010-04-22 11:40KennelTag Attached: raw file
2010-04-22 21:30ethanbNote Added: 0004673
2010-04-28 10:04FootkerchiefNote Added: 0005548
2010-04-28 10:04FootkerchiefSummaryBackup raws file (creature_standard.txt~) gets parsed with other raws, causing mismatched IDs and crashes => Backup raws file (creature_standard.txt~, creature_standard.txt.bak) gets parsed, causing mismatched IDs and crashes
2010-04-28 13:53FootkerchiefCategoryGeneral => Technical
2010-05-04 11:02FootkerchiefRelationship addedparent of 0001200
2010-05-17 01:21FootkerchiefRelationship deletedparent of 0001200
2010-06-29 07:38FootkerchiefCategoryTechnical => Technical -- General
2010-07-12 09:46FootkerchiefRelationship addedhas duplicate 0002654
2010-07-12 10:04NarosNote Added: 0010040
2010-07-12 12:52FootkerchiefRelationship addedhas duplicate 0002022
2010-07-12 12:52FootkerchiefIssue Monitored: Footkerchief
2010-07-12 12:52FootkerchiefIssue Monitored: almostsix
2010-07-12 12:52FootkerchiefIssue Monitored: ChickenLips
2010-07-12 12:52FootkerchiefSticky IssueNo => Yes
2010-07-12 12:52FootkerchiefSummaryBackup raws file (creature_standard.txt~, creature_standard.txt.bak) gets parsed, causing mismatched IDs and crashes => Backup raws files (creature_standard.txt~, creature_standard.txt.bak) get parsed, causing mismatched IDs and crashes
2010-07-12 12:53FootkerchiefSummaryBackup raws files (creature_standard.txt~, creature_standard.txt.bak) get parsed, causing mismatched IDs and crashes => Backup raws files (*.txt~, *.txt.bak) get parsed, causing mismatched IDs and crashes
2010-07-25 11:52ChickenLipsIssue End Monitor: ChickenLips
2010-11-05 13:41AnotherTag Attached: gameplay tweak
2010-11-12 19:06Logical2uRelationship addedhas duplicate 0003565
2010-11-13 13:49rofl0rNote Added: 0013777
2010-11-16 16:53InsanityPreludeNote Added: 0013941
2010-12-11 12:14DwarfuRelationship addedhas duplicate 0000446
2011-02-05 17:43DwarfuRelationship addedhas duplicate 0001597
2011-02-05 17:43DwarfuIssue Monitored: Dae
2011-02-05 17:43DwarfuIssue Monitored: nil
2011-02-12 01:54Khym ChanurIssue Monitored: Khym Chanur
2011-03-09 04:01Toady OneStatusnew => resolved
2011-03-09 04:01Toady OneFixed in Version => 0.31.22
2011-03-09 04:01Toady OneResolutionopen => fixed
2011-03-09 04:01Toady OneAssigned To => Toady One
2011-03-09 04:52DwarfuSticky IssueYes => No
2011-03-09 17:25Khym ChanurIssue End Monitor: Khym Chanur
2011-06-28 12:36DwarfuRelationship addedhas duplicate 0004707
2016-09-03 05:48LociRelationship addedrelated to 0009988

Notes
(0004587)
Knight Otu   
2010-04-22 06:34   
You have a creature_standard.txt~ file (not creature_standard.txt) in your raws folder. That caused a heavy bout of duplicate object errors. Delete that file and generate the world anew. Deleting it from the save's raw folder won't save the world.
(0004606)
Footkerchief   
2010-04-22 09:24   
Knight Otu: Does that appear to be the cause of the crash? Usually it at least pops up an error message when the raws are messed up.
(0004608)
Knight Otu   
2010-04-22 09:43   
It appears to be. The error log does include the duplicate objects warning, and I believe there has always been the potential for legends crashes when vermin somehow became involved.

Let's see, apparently his dwarves became mountain goats, elves became giant eagles, goblins became mountain gnomes, and humans became hoary marmots, but one of the megabeasts appears to have become a lizard and another one a red-winged blackbird - looking at one of those causes a crash. There are also demons without a demon type, which also crash when looked at. The file (I guess it's an automatic backup file) and the resulting creature shift does seem to be the cause.

The true bug here, presumably, would be that DF reads non-text files if they are otherwise in the correct format.
(0004625)
Footkerchief   
2010-04-22 11:30   
Haha. Yeah, good call, I'll retitle the report.
(0004673)
ethanb   
2010-04-22 21:30   
Ah, that would explain it! Naughty vim, making backup files!

It's ok, only the second facepalm today. The first was at work while my boss was trying to go home - much more embarrassing.
(0005548)
Footkerchief   
2010-04-28 10:04   
It's reported here that this happens with .bak files as well: http://www.bay12forums.com/smf/index.php?topic=55809.msg1204985#msg1204985 [^]
(0010040)
Naros   
2010-07-12 10:04   
The obvious suggested fix for this would be to only parse raws that have the 'txt' extention.
Ultimately the modders are to blame for our own inattentiveness, though if such a fix doesn't cause any issues it would make life a bit easier for said modders.
(0013777)
rofl0r   
2010-11-13 13:49   
thats a 3 minute fix, but toady obviously doesnt care whats going on here on the bugtracker.
i have the feeling he fixes only the bugs he encounters himself, but only those who annoy him the most.
(0013941)
InsanityPrelude   
2010-11-16 16:53   
Pessimistic, aren't you? There's a *lot* of bugs and Toady's only one guy.