Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0011672Dwarf FortressTechnical -- Generalpublic2021-01-09 02:192021-01-10 13:51
panda42 
lethosor 
urgentblockhave not tried
resolvedno change required 
?Mac10.14.6 (Mojave)
0.47.04 
 
0011672: The df command does not work
opening the df command simply creates this text:
#!/bin/sh
PWD=`dirname "${0}"`
#thanks to Iriel for figuring this out
OSREV=`uname -r | cut -d. -f1`
if [ "$OSREV" -ge 11 ] ; then
    export DYLD_LIBRARY_PATH=${PWD}/libs
    export DYLD_FRAMEWORK_PATH=${PWD}/libs
else
    export DYLD_FALLBACK_LIBRARY_PATH=${PWD}/libs
    export DYLD_FALLBACK_FRAMEWORK_PATH=${PWD}/libs
fi
cd "${PWD}"
if grep -q '\[PRINT_MODE:TEXT\]' data/init/init.txt ; then
    ./dwarfort.exe "$@"
else
    ./dwarfort.exe "$@" &
fi



Then nothing happens. Do i need an app to run this or is there a problem with the command line? i have nothing installed on my mac other than steam games and everything in the df folder because i just cleaned up my mac. I have tried to download the game again (vanilla version which i was using before)but same problem.
I should also mention last time i was using df, i accidentally unplugged my mac so it crashed. after that i cleand up my mac and then tried to launch df, but it didn't work.
delete everything outside the df folder and run the command. obviously don't.
file:///Users/mojave/Desktop/Screenshot%202021-01-09%20at%2009.31.30.png [^]
link to screenshot of my df folder and the command running
No tags attached.
Issue History
2021-01-09 02:19panda42New Issue
2021-01-09 10:12ZiusudraNote Added: 0040852
2021-01-09 11:09ZiusudraNote Edited: 0040852bug_revision_view_page.php?bugnote_id=0040852#r16615
2021-01-09 11:29ZiusudraNote Added: 0040853
2021-01-09 11:30ZiusudraNote Edited: 0040852bug_revision_view_page.php?bugnote_id=0040852#r16616
2021-01-10 13:50lethosorNote Added: 0040855
2021-01-10 13:51lethosorStatusnew => resolved
2021-01-10 13:51lethosorResolutionopen => no change required
2021-01-10 13:51lethosorAssigned To => lethosor

Notes
(0040852)
Ziusudra   
2021-01-09 10:12   
(edited on: 2021-01-09 11:30)
Unfortunately we cannot see the screenshot on your computer. You'll have to upload it to an image hosting site, like imgur.com, and post the link to that.

Edit: or you can link to the discord upload: https://cdn.discordapp.com/attachments/580417881385467914/797397529477775360/Screenshot_2021-01-09_at_09.31.30.png [^]

(0040853)
Ziusudra   
2021-01-09 11:29   
Anyway, your computer is openning the script for editting as a text file rather than running it as a script. On discord you say you "deleted terminal" - if you broke some thing with the OS you're gonna hav to sort that out. (https://discord.com/channels/329272032778780672/580417881385467914/797409876677623808 [^])

If you didn't break your OS, you could try redownloading and extracting the game. You could also try using one of the starter packs for Mac.
(0040855)
lethosor   
2021-01-10 13:50   
You need to open this file with a terminal, yes. Try right-clicking on it and selecting "open with" to see if "Terminal" is listed. If you've configured executable files like the "df" script to open in a text editor, or if you have deleted your Terminal application, you will need to undo those things somehow, but there is unfortunately nothing that can be done on the DF side to fix those things.