Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0006394Dwarf FortressWorld Generation -- Generalpublic2013-11-27 07:172014-08-03 11:36
lethosor 
Toady One 
normalminoralways
resolvedfixed 
MacOS X10.7-10.9
0.34.11 
0.40.06 
0006394: "df" script does not pass command-line arguments correctly (i.e. for world generation) on OS X/Linux
On OS X:
* Running "./df -gen ..." simply opens DF normally (and does not generate a world).
* Running "./dwarfort.exe -gen ..." crashes, since the library variables were not set by the "df" script.
On Linux, spaces in arguments aren't recognized properly (as mentioned in the 0.34.11 release notes).
Attempt world generation with a clean install of DF, using the instructions in command_line.txt (replacing "Dwarf Fortress.exe" with the appropriate name). Both "df" and "dwarfort.exe" fail to generate a world.
This can be fixed on OS X and Linux by changing the last line of the script to './dwarfort.exe "$@" ' and './libs/Dwarf_Fortress "$@" ' (respectively)
Probable Quick Fix
has duplicate 0007276resolved Footkerchief Worldgen arguments are not passed on correctly from the df script 
Issue History
2013-11-27 07:17lethosorNew Issue
2013-11-27 07:18lethosorTag Attached: Probable Quick Fix
2014-01-17 10:33Kirig StonebeardIssue Monitored: Kirig Stonebeard
2014-05-09 14:59lethosorNote Added: 0024750
2014-06-14 06:20lethosorNote Edited: 0024750bug_revision_view_page.php?bugnote_id=0024750#r9299
2014-07-25 06:21lethosorAdditional Information Updatedbug_revision_view_page.php?rev_id=10327#r10327
2014-07-25 11:06lethosorSummaryCommand-line world generation does not work (without modification) on OS X => "df" script does not pass command-line arguments correctly (i.e. for world generation) on OS X/Linux
2014-07-25 11:06lethosorDescription Updatedbug_revision_view_page.php?rev_id=10350#r10350
2014-07-25 11:06lethosorAdditional Information Updatedbug_revision_view_page.php?rev_id=10351#r10351
2014-07-25 11:06lethosorDescription Updatedbug_revision_view_page.php?rev_id=10352#r10352
2014-07-25 11:07lethosorNote Edited: 0024750bug_revision_view_page.php?bugnote_id=0024750#r10353
2014-07-28 16:51lethosorAssigned To => lethosor
2014-07-28 16:51lethosorStatusnew => confirmed
2014-08-03 11:36Toady OneStatusconfirmed => resolved
2014-08-03 11:36Toady OneFixed in Version => Next Version
2014-08-03 11:36Toady OneResolutionopen => fixed
2014-08-03 11:36Toady OneAssigned Tolethosor => Toady One
2014-08-20 12:10FootkerchiefRelationship addedhas duplicate 0007276

Notes
(0024750)
lethosor   
2014-05-09 14:59   
(edited on: 2014-07-25 11:07)
(Edited)
I'm assuming the reason this went unnoticed on OS X is because the SDL libraries are located somewhere where dwarfort.exe can find them without the need for the "df" script.