Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0000219Dwarf FortressReactionspublic2010-04-02 19:512011-03-10 17:39
shadow_slicer 
Footkerchief 
normalmajorhave not tried
resolvedduplicate 
Ubuntu (using Wine)Linux2.6.31-20
 
 
0000219: Smelting reaction ingredients/products change during gameplay, possibly Wine-specific
This issue has effected both forts I have started so far.

1. I set up a smelter and start smelting coal into coke. After a while, the smelter no longer lists the option to add another smelting job. If the job already exists in the queue or you add it via the job manager it would continue smelting.

2. In the first fort, in addition to the first problem, I bought some Cassiterite off of the caravan and started smelting it into tin. I saved and quit, and then continued on another computer. When I continued, the cassiterite ore was smelted into cassiterite bars instead of tin bars =/.

3. In the second fort, after I smelted some iron bars, I tried to smelt pig iron and steel bars, but they were absent from the smelter list. I added the jobs via the job manager and it reported that it couldn't be completed because smelting pig iron requires 150 black zircon bars ???. It also said this for smelting steel. As far as I know I had all the required materials to make pig iron: iron bars, tons limestone, and at least 10 charcoal.

4. Later in the second fort, I had already lost the ability to add smelting coal to the smelter, and was relying on a repeating order and jobs added to the job manager to smelt coal. I played for several hours like this, but eventually received the message "cancels make coke from bituminous coal: Needs platinum".

???
Problems with bituminous coal and lignite are 0000332, which is not Wine-specific.
No tags attached.
duplicate of 0000332resolved Toady One Raw files parsed in strict alphabetic order in Linux but not Windows, causing ID mismatches for saves moved between systems 
has duplicate 0002483resolved Footkerchief Can't make coke, need some irrelevant stone 
Issue History
2010-04-02 19:51shadow_slicerNew Issue
2010-04-02 19:51shadow_slicerIssue Monitored: shadow_slicer
2010-04-02 19:51shadow_slicerIssue End Monitor: shadow_slicer
2010-04-02 19:54shadow_slicerNote Added: 0000380
2010-04-02 19:59DoctorZuberNote Added: 0000383
2010-04-02 21:06AsmodeousNote Added: 0000410
2010-04-02 21:20QuietustNote Added: 0000417
2010-04-02 21:20QuietustNote Edited: 0000417bug_revision_view_page.php?bugnote_id=0000417#r119
2010-04-03 17:29oliverNote Added: 0000721
2010-04-03 17:33oliverNote Added: 0000722
2010-04-03 17:33DoctorZuberNote Added: 0000723
2010-04-03 17:35DoctorZuberNote Edited: 0000723bug_revision_view_page.php?bugnote_id=0000723#r193
2010-04-03 17:40DoctorZuberNote Edited: 0000723bug_revision_view_page.php?bugnote_id=0000723#r194
2010-04-03 17:47oliverNote Added: 0000726
2010-04-03 17:48oliverNote Edited: 0000726bug_revision_view_page.php?bugnote_id=0000726#r198
2010-04-03 18:03oliverIssue Monitored: oliver
2010-04-04 00:19shadow_slicerNote Added: 0000808
2010-04-04 00:22shadow_slicerNote Edited: 0000808bug_revision_view_page.php?bugnote_id=0000808#r243
2010-04-09 03:42Khym ChanurIssue Monitored: Khym Chanur
2010-04-09 19:26CreidiekiNote Added: 0002493
2010-04-09 19:59shadow_slicerNote Added: 0002494
2010-04-10 13:12LesconradsNote Added: 0002629
2010-04-13 07:27CreidiekiNote Added: 0003251
2010-04-26 08:59CptFastbreakNote Added: 0005125
2010-04-26 09:49CptFastbreakIssue Monitored: CptFastbreak
2010-04-26 10:45FootkerchiefNote Added: 0005142
2010-04-26 10:45FootkerchiefNote Edited: 0005142bug_revision_view_page.php?bugnote_id=0005142#r1811
2010-04-26 10:45FootkerchiefNote Edited: 0005142bug_revision_view_page.php?bugnote_id=0005142#r1812
2010-04-26 10:46FootkerchiefIssue Monitored: Footkerchief
2010-04-26 10:46FootkerchiefRelationship addedparent of 0000332
2010-04-28 09:17CptFastbreakNote Edited: 0005125bug_revision_view_page.php?bugnote_id=0005125#r2019
2010-04-28 09:18CptFastbreakIssue End Monitor: CptFastbreak
2010-04-28 09:28CptFastbreakIssue Monitored: CptFastbreak
2010-04-28 13:55FootkerchiefCategoryGeneral => Reactions
2010-04-29 09:21snooptoddNote Added: 0005665
2010-05-07 07:35snooptoddIssue Monitored: snooptodd
2010-05-07 08:47snooptoddNote Added: 0006361
2010-05-07 10:33FootkerchiefRelationship replacedrelated to 0000332
2010-05-07 10:34FootkerchiefSummarySmelting reaction ingredients/products change during gameplay => Smelting reaction ingredients/products change during gameplay, possibly Wine-specific
2010-05-15 22:53WFragNote Added: 0006748
2010-05-15 23:29WFragNote Added: 0006749
2010-05-16 02:42WFragIssue Monitored: WFrag
2010-05-16 02:59jfsNote Added: 0006757
2010-05-16 21:21WFragNote Added: 0006843
2010-05-16 23:35WFragNote Added: 0006853
2010-05-16 23:51FootkerchiefNote Added: 0006854
2010-05-16 23:53FootkerchiefAdditional Information Updatedbug_revision_view_page.php?rev_id=2566#r2566
2010-06-03 12:20FootkerchiefNote Added: 0007626
2010-06-03 12:21FootkerchiefNote Edited: 0007626bug_revision_view_page.php?bugnote_id=0007626#r2834
2010-06-03 12:21FootkerchiefTag Attached: AWAITING UPDATE
2010-06-04 15:48EskarionNote Added: 0007682
2010-06-04 17:20FootkerchiefNote Added: 0007684
2010-06-05 03:10EskarionNote Edited: 0007682bug_revision_view_page.php?bugnote_id=0007682#r2864
2010-06-06 11:44LeperousNote Added: 0007812
2010-06-06 11:46FootkerchiefNote Added: 0007813
2010-06-06 12:01LeperousNote Added: 0007814
2010-06-06 12:05LeperousNote Edited: 0007814bug_revision_view_page.php?bugnote_id=0007814#r2906
2010-06-06 12:17CelNote Added: 0007817
2010-06-14 12:09jeti0Issue Monitored: jeti0
2010-06-22 09:17FootkerchiefNote Added: 0008958
2010-06-22 09:17FootkerchiefStatusnew => resolved
2010-06-22 09:17FootkerchiefResolutionopen => not fixable
2010-06-22 09:17FootkerchiefAssigned To => Footkerchief
2010-06-30 17:15Khym ChanurIssue End Monitor: Khym Chanur
2010-06-30 22:26FootkerchiefRelationship addedhas duplicate 0002483
2010-07-01 20:35FootkerchiefRelationship replacedduplicate of 0000332
2010-07-01 20:35FootkerchiefResolutionnot fixable => duplicate
2010-07-09 21:06oliverIssue End Monitor: oliver
2010-08-10 00:12DwarfuTag Detached: AWAITING UPDATE
2011-03-10 17:39snooptoddIssue End Monitor: snooptodd

Notes
(0000380)
shadow_slicer   
2010-04-02 19:54   
screenshots of parts 3 and 4:
http://www.prism.gatech.edu/~bhamilton3/pigiron.png [^]
http://www.prism.gatech.edu/~bhamilton3/platinum.png [^]

Also, before step 1 occurred, I encountered issue 0000025 (http://www.bay12games.com/dwarves/mantisbt/view.php?id=25 [^]), so there is some chance it may be related.
(0000383)
DoctorZuber   
2010-04-02 19:59   
is it possible the recipe for steel has changed ?
(0000410)
Asmodeous   
2010-04-02 21:06   
...to require 150 black zircon bars?
(0000417)
Quietust   
2010-04-02 21:20   
Sounds like the raws may have gotten corrupted - back in 0.28.181.40d, adding/removing stuff without clearing out data/objects would often result in stuff like this ("olon Udilmat, Woodcutter cancels Make Coke From Bituminous Coal: Needs black opal."), but in 0.31 the game seems to not keep the precompiled raws around anymore. Does the situation improve if you save, exit, and reload?

(0000721)
oliver   
2010-04-03 17:29   
I had part (1) happen midway through a fort just now. No modified raws. Bituminous coal and lignite are now considered an "other" stone (see 0000332), I cannot add them to the smelter, and there are no reactions listed for them under the 'z'/Stone screen (usually it'll list the "make coke" reactions there)
(0000722)
oliver   
2010-04-03 17:33   
Save/exit/reload didn't help.
(0000723)
DoctorZuber   
2010-04-03 17:33   
(edited on: 2010-04-03 17:40)
If you found a large amount of flux (possibly ore too) in 40d it would set itself to be available (green) in the z - stone menu.

The z - stone menu now has all stone in it (except obsidian), not just metal and economics, try going here and setting it back to red if necessary.

(0000726)
oliver   
2010-04-03 17:47   
(edited on: 2010-04-03 17:48)
This appears to be a Wine-induced bug.

My fortress was started under Windows and played for a while.
Later, I copied it to my linux install and played it under Wine. Then I noticed the reaction problems.

If I go back to the original save from Windows and play it under Windows, the reactions are correct.
If I take a fresh copy of that identical save and load it under Wine, the reactions are broken immediately on load.

Guessing there is some problem with parsing the raws that only triggers when the wine libraries are used..

(0000808)
shadow_slicer   
2010-04-04 00:19   
(edited on: 2010-04-04 00:22)
Perhaps this problem is caused by switching between Wine and XP?
For my first fort (started under Wine), it worked correctly under Wine, but then started having problems on XP.
For the second fort (started under XP), it worked fine under XP, but then started having problems after switching to Wine.

I tested the save from the first fort (from before switching to XP) and the save from the second fort (from before switching to Wine) under Wine. The problem is not present for the first fort, but is for the second fort.

(0002493)
Creidieki   
2010-04-09 19:26   
I had this problem when I played under wine, then scp'd the entire dwarf fortress folder to another linux computer, where I tried playing (under wine again).

I tried preserving file permissions, and that didn't help.
(0002494)
shadow_slicer   
2010-04-09 19:59   
@Creidieki: Did you generate the fortress under XP or on Linux? My current hypothesis is that switching from Wine to XP or vice versa causes this. It would be nice to have evidence either way.
(0002629)
Lesconrads   
2010-04-10 13:12   
I just played on wine. No windows involved.
I too have the problem of strange output-goods... iron mugs producing some siltstone mugs instead etc.
(0003251)
Creidieki   
2010-04-13 07:27   
shadow_slicer: Both of the computers involved were 64-bit Linux computers running Ubuntu. They may have been running different versions of wine, or differently-configured versions of wine; I'll try to check on that when I get home.
(0005125)
CptFastbreak   
2010-04-26 08:59   
(edited on: 2010-04-28 09:17)
It's most definitely not a Wine bug. I'm playing on WiXP32, and I had about the same thing happen WRT bituminous coal and lignite in a non-burrowed smelter. When I add the jobs via manager, I would get "Urist McSmelter cancels Make coal from Lignite - needs rock." I can still make steel with charcoal though. Saving and reloading did nothing.

Edit: cross posted in 0000332 with some more information.

(0005142)
Footkerchief   
2010-04-26 10:45   
The thing with bituminous coal and lignite is 0000332, which may or may not be related.

I have a vague suspicion this has something to do with inconsistent handling of underscores/spaces in raw tokens:
- PLATINUM comes immediately after PIG_IRON, the first metal with an underscore in the name
- BLACK ZIRCON comes after QUARTZ_ROSE and CRYSTAL_ROCK, which are the first gems to use underscores

However I can't find anything special about CASSITERITE, OPAL_BLACK and SILTSTONE.

More testing is needed. If you get this bug, please make sure to report your OS and which precise material got substituted for which.

(0005665)
snooptodd   
2010-04-29 09:21   
trying to make pig iron tells me i need 150 chrysoberyl bars.

wine v1.1.42

I am going to try turning off compress saves and see if that helps.
(0006361)
snooptodd   
2010-05-07 08:47   
turning off compress saves didn't help.
new fort wanted sandstone bars for pig iron and steel.
(0006748)
WFrag   
2010-05-15 22:53   
Same issue with wine. The reactions are getting corrupted.

I was switching back and forth to XP and Linux and reactions are corrupted/recovered again and again. However, I can't find clue what exactly recovers them (making some specific actions on XP and saving?).
(0006749)
WFrag   
2010-05-15 23:29   
Loaded under windows => everything is fine.

I think, it is a memory corruption that is either:
1) occurs only under wine
2) under wine it hits the reactions due to the different memory layout. Under windows the corruption hits something else, not visible (?)
(0006757)
jfs   
2010-05-16 02:59   
Someone somewhere on the forum mentioned that the order in which reactions and materials are loaded seem to affect things, i.e. moving a material from one file to another might cause corruption.

I'm thinking that this might relate to MS Windows and Wine returning lists of files in different order, so when DF searches the raws directory for materials and reactions, it finds them in different order on MS Windows and Wine, and this causes the corruption.

I haven't actually tested this hypothesis.
(0006843)
WFrag   
2010-05-16 21:21   
Tested 0.31.4 (Linux version) => reactions seems to work fine.
(0006853)
WFrag   
2010-05-16 23:35   
Pig iron & steel seems to be ok, but bitumnous coal now requires chromite. So this is still an issue in 0.31.04
(0006854)
Footkerchief   
2010-05-16 23:51   
Problems with bituminous coal and lignite are 0000332, which is not Wine-specific.
(0007626)
Footkerchief   
2010-06-03 12:20   
(edited on: 2010-06-03 12:21)
Is anyone experiencing this problem in 31.04? (NOT the coal/lignite problems, which are 0000332)

(0007682)
Eskarion   
2010-06-04 15:48   
(edited on: 2010-06-05 03:10)
(edit: moved to the correct bug report)

(0007684)
Footkerchief   
2010-06-04 17:20   
Again:

Problems with bituminous coal and lignite are 0000332, which is not Wine-specific.
(0007812)
Leperous   
2010-06-06 11:44   
Still occuring in 31.05 in the native Linux version - adamantine wafer creation is missing from smelters, adding the jobs through the manager tells me that "15000 gypsum plaster thread" are needed to make them.
(0007813)
Footkerchief   
2010-06-06 11:46   
Leperous, if that problem continues to happen after a save/load, you should definitely upload your save to http://dffd.wimbli.com/ [^]
(0007814)
Leperous   
2010-06-06 12:01   
(edited on: 2010-06-06 12:05)
Hrm, just realised this is a reclaim on an old save (perhaps from 31.02) despite copying over the new RAW folder. Since it's not happening on fresh embarks I'll chalk it up to that for now, and repost if it pops up again.

(0007817)
Cel   
2010-06-06 12:17   
If you use windows saves in linux version you got weird errors. Like, need sand to make pig iron.

Linux native 31.05 works fine (fedora 13 x86_64), steel making and coke making works fine. Don't know about adamantine yet
(0008958)
Footkerchief   
2010-06-22 09:17   
Okay, we'll chalk this up to Wine issues. Hopefully it'll never show up again now that there's a native Linux version.