Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2] 3

Author Topic: [LINUX] Masterwork Dwarf Fortress for Linux  (Read 18744 times)

urmane

  • Bay Watcher
    • View Profile
Re: [LINUX] Masterwork Dwarf Fortress for Linux
« Reply #15 on: November 21, 2016, 10:22:14 pm »

Updated.
Logged

Wooster

  • Bay Watcher
    • View Profile
Re: [LINUX] Masterwork Dwarf Fortress for Linux
« Reply #16 on: December 01, 2016, 09:52:56 am »

I wrote a short script that copies a few files around in order to produce a working MDF, for people who have the kind of dependency issues I have had. You have to unpack the Unofficial Lazy Newb Pack for Linux and Masterwork Dwarf Fortress for Linux, renaming the folder LNP and MDF respectively.

In the containing folder for LNP and MDF, copy the script below into a file called, say, mdf-setup.sh, and then run chmod +x mdf-setup.sh and ./mdf-setup.sh in a terminal session located at this folder.
Code: (mdf-setup.sh) [Select]
#!/bin/bash
# Script to set up Linux Masterwork Dwarf Fortress on computers that meet dependency issues

echo "Beginning setup for Masterwork Dwarf Fortress."
echo "Copying Linux DF into MDF."
cp -r LNP/df_linux MDF/df_linux
cd MDF
echo "Moving MDF original DF folder."
mv "Dwarf Fortress" mdf_orig
echo "Removing new DF data and raws."
rm -rf df_linux/data
rm -rf df_linux/raw
echo "Installing data and raws for MDF."
cp -r mdf_orig/data df_linux/data
cp -r mdf_orig/raw df_linux/raw
echo "Installing extra dfhack settings."
cp mdf_orig/extra_dfhack_init.init df_linux/dfhack_extra.init
echo "Moving new DF to standard name."
mv df_linux "Dwarf Fortress"
cd ..
echo "Closing out setup for Masterwork Dwarf Fortress."
At the end, you should (hopefully!) have a working MDF, with the LNP still intact and a folder called mdf_orig in the MDF folder that contains the original MDF files. You can, if you wish, remove this folder. I like to keep it in case something got screwed up or whatever and I have a decent copy to restore from.
« Last Edit: December 01, 2016, 09:59:03 am by Wooster »
Logged
Unofficial Lazy Newb Pack 43.03, Dwarf Mode only
Favourite utilities, mods and hacks: TWBT and Stockpile Settings Management; Masterwork Dwarf Fortress
Ubuntu 14.04 / Mint 17

urmane

  • Bay Watcher
    • View Profile
Re: [LINUX] Masterwork Dwarf Fortress for Linux
« Reply #17 on: December 11, 2016, 10:10:17 am »

Updated.

Using Phoebus colors.txt, as I find Meph's too dark ... but it throws off some colors, it seems ...
Logged

Wooster

  • Bay Watcher
    • View Profile
Re: [LINUX] Masterwork Dwarf Fortress for Linux
« Reply #18 on: December 14, 2016, 09:59:44 am »

Found another bug, in mdf-config. This is easily fixed!

I was trying and failing to enable / disable / toggle mods. I think the space in the name of the "Dwarf Fortress" folder is causing the script to fail. I changed the folder to df_linux (and modified mdf-config accordingly), and we are moving once again.

EDIT: nope, there's still a problem. The enable / disable section of the code needs fixing:
Code: [Select]
        GRP="\\bYES_${cfgu}\\b"
        PAT="YES_${cfgu}\\["
        REP="\\!NO_${cfgu}\\!"
There's a missing exclamation mark and a missing backslash, in both blocks of code.
« Last Edit: December 14, 2016, 11:18:08 am by Wooster »
Logged
Unofficial Lazy Newb Pack 43.03, Dwarf Mode only
Favourite utilities, mods and hacks: TWBT and Stockpile Settings Management; Masterwork Dwarf Fortress
Ubuntu 14.04 / Mint 17

jonesmz

  • Escaped Lunatic
    • View Profile
Re: [LINUX] Masterwork Dwarf Fortress for Linux
« Reply #19 on: February 07, 2017, 01:24:05 pm »

I can't embark, with the error:

Steps to reproduce:
Download tarball.
Extract.
mdf-config tileset mayday
Launch "start-df"
Press "enter" to create new world
Press "Escape" to pass the "Alpha software" notice.
Left 3 times to select "Pocket" (To reproduce more quickly).
"y" to start world gen
Enter to accept
Enter twice to select the new world and start the embark menu





Annnnnnnnnnnnnnd it worked.


Previously it was giving me an error about missing a material "quicklime".
Must be that the archive wasn't extracted properly.


Well, I guess let this be a lesson for others that if you have errors, starting from scratch may help.
Logged

se5a

  • Bay Watcher
    • View Profile
Re: [LINUX] Masterwork Dwarf Fortress for Linux
« Reply #20 on: February 27, 2017, 12:38:17 pm »

are there some instructions somewhere? it's complaining about not having libGLEW.so.1.10
I looked at Woosters script, but LNP is waaay out of date.
Logged

Vitor_Goatman

  • Bay Watcher
    • View Profile
Re: [LINUX] Masterwork Dwarf Fortress for Linux
« Reply #21 on: March 06, 2017, 07:17:27 pm »

Are you planning on making an actual package out of this? Would love to see this on the Arch User Repository or in a PPA.
Logged

urmane

  • Bay Watcher
    • View Profile
Re: [LINUX] Masterwork Dwarf Fortress for Linux
« Reply #22 on: March 15, 2017, 09:47:11 pm »

Updated:

Changes:
- fixed clay and boulder crabs, and updated succubus (as per Boltgun) based on this thread: http://www.bay12forums.com/smf/index.php?topic=162937.0
- fixed mdf-config and moved back down to Dwarf Fortress directory, to remediate (read: "sidestep") space-in-filename issues

NB: the mdf-gui script is a work in progress, and does not actually do anything
Logged

urmane

  • Bay Watcher
    • View Profile
Re: [LINUX] Masterwork Dwarf Fortress for Linux
« Reply #23 on: July 18, 2017, 07:02:14 pm »

Updated to MDF-V1.29
Logged

TaigaR

  • Bay Watcher
    • View Profile
Re: [LINUX] Masterwork Dwarf Fortress for Linux
« Reply #24 on: November 08, 2017, 02:22:56 am »

Is Therapist working already? Also, is it possible to make browser-based settings utility for Masterwork?
Logged

urmane

  • Bay Watcher
    • View Profile
Re: [LINUX] Masterwork Dwarf Fortress for Linux
« Reply #25 on: February 15, 2018, 07:41:03 pm »

Updated to V1.30, with a working Therapist.
Logged

invelios

  • Escaped Lunatic
    • View Profile
Re: [LINUX] Masterwork Dwarf Fortress for Linux
« Reply #26 on: September 12, 2018, 07:27:28 pm »

I've gotten this working on kubuntu, and can load the game just fine. However I'm having trouble switching from the default of human fort mode back to the standard dwarf fort mode. I used the following commands in the Dwarf Fortress mode:

Code: [Select]
./mdf-config disable fort_mode_human
./mdf-config enable fort_mode_dwarf

And if I use find afterwards it shows humans with the NO_ prefix and dwarf with the YES_ prefix. However when I start DF with the ./start-df script I'm still embarking with humans. Is there anything else I need to do to update the settings?

EDIT: Ignore this. I figured it out. I forgot that I needed to generate a new world as the region files keep the data that is modded in them when they are created. Also the files come with a lot of the races enabled initally, so I had to disable all of them except Dwarfs.
« Last Edit: September 12, 2018, 11:57:44 pm by invelios »
Logged

urmane

  • Bay Watcher
    • View Profile
Re: [LINUX] Masterwork Dwarf Fortress for Linux
« Reply #27 on: January 17, 2019, 07:23:37 pm »

Updated to 1.31.

Includes Armok Vision linux version ... but I cannot get it to actually do anything, it just dies.  Please let me know if you can make it go, the file is north of 160MB with it and I'll remove it if it's useless.
Logged

cb123

  • Escaped Lunatic
    • View Profile
Re: [LINUX] Masterwork Dwarf Fortress for Linux
« Reply #28 on: January 24, 2019, 05:36:54 pm »

Hello, thanks for the hard work.

Having problems with mdf1.31. When I run start-df script in terminal it just opens window and immediately dies. I don't have any problems running mdf1.30 or linux lnp 44.12. My os is xubuntu if that matters.
Are there any new dependencies that need to be installed in version 1.31 that aren't in 1.30?
Can anyone offer me troubleshooting tips? Unable to find information on this problem.

Thanks
Logged

urmane

  • Bay Watcher
    • View Profile
Re: [LINUX] Masterwork Dwarf Fortress for Linux
« Reply #29 on: January 25, 2019, 02:34:06 pm »

start-df is a 2 line script that just does "cd Dwarf\ Fortress" and "./dfhack".  Run those manually to see what happens.

There's also stderr.log and stdout.log logfiles in that dir as well - see if they have anything insightful.

You could also try "ldd hack/dfhack-run" and "ldd libs/Dwarf_Fortress" to see if those executables are missing libraries linkages on your system.
Logged
Pages: 1 [2] 3