Bay 12 Games Forum

Dwarf Fortress => DF Modding => Topic started by: Kali on June 27, 2011, 12:04:33 pm

Title: DF Designator - A fortress design tool
Post by: Kali on June 27, 2011, 12:04:33 pm
DF Designator is a tool to create a fortresses from "blueprint" image files and some support for Quickfort csv files. It supports many of the actions required during DF construction.

It has an advanced gui to manages the different blueprints, create plans that span multiple z-levels and assign hotkeys for easy access.

Download it and open one of the examples to give it a try.

(http://s2.postimage.org/tvfbubp2u/Screen_shot_2011_06_28_at_10_32_55_AM.png)

MORE INFORMATION
    http://wina2.ugent.be/~karel/userguide.pdf (http://wina2.ugent.be/~karel/userguide.pdf)

DOWNLOAD
    http://wina2.ugent.be/~karel/DF Designator (windows).zip (http://wina2.ugent.be/~karel/DF Designator (windows).zip)
    http://wina2.ugent.be/~karel/DF Designator (linux32).tar.bz2 (http://wina2.ugent.be/~karel/DF Designator (linux32).tar.bz2)
    http://wina2.ugent.be/~karel/DF Designator (linux64).tar.bz2 (http://wina2.ugent.be/~karel/DF Designator (linux64).tar.bz2)
    http://wina2.ugent.be/~karel/DF Designator (OS X).zip (http://wina2.ugent.be/~karel/DF Designator (OS X).zip)
    http://wina2.ugent.be/~karel/DF Designator (source all platforms).zip (http://wina2.ugent.be/~karel/DF Designator (source all platforms).zip)

You need java to run DF designator. If it complains java is missing. download it at http://java.com/en/download/index.jsp.

DF Designator is developed in java and is platform independent. To create the gui however, I've used QT jambi which is not. I could include the libraries for all platform and for the all platform sources I've just done that, but they are rather large.

FEATURES
    Easy gui
    Multi-Z-level designs
    Some support for Quickfort csv file
    Multi platform (window/linux/mac os X)
    Open source

THANKS
    zwei for the initial codebase
    Tiny_Puppy_Smasher for some of ideas of DF Architect
    joelpt Some of the concepts are shamelessly stolen from Quickfort
    DF team



Comments, bug reports, feature requests, patches, blueprints and other are welcome.

Ontrew posted a video tutorial here http://www.youtube.com/watch?v=PFUWBXn9n8I if you want to see it in action.
   

Title: Re: DF Designator
Post by: celem on June 27, 2011, 12:42:15 pm
Im still experimenting with this a bit but....

...very nice!

Incidentally...is this an AWT Robot?  Maybe i'll take a look at that source link :)
Title: Re: DF Designator
Post by: [NO_THOUGHT] on June 27, 2011, 06:32:35 pm
Looks great, and useful too. Unfortunately I can attest that the mac version does not work:

Console Output
Spoiler (click to show/hide)

Spec Sheet:
Spoiler (click to show/hide)

That's about all I can think of, it's too bad this isn't working. No good designators exist for Macs, and quickfort macros don't let me build.
Title: Re: DF Designator
Post by: Kali on June 27, 2011, 07:10:11 pm
NO_THOUGHT, did you use the gui.sh script to start it ?

if you want to start it without, you have to give the command:

java -cp gui.jar:./jars/* cz.zweistein.df.designator.GUI.RunGUI
Title: Re: DF Designator
Post by: [NO_THOUGHT] on June 28, 2011, 12:01:49 am
In fact I was simply clicking the gui.jar!
However, I got a different error this time (same error if I try without using the script)
Error (from terminal):
Spoiler (click to show/hide)
Title: Re: DF Designator
Post by: Kali on June 28, 2011, 07:48:59 am
Thank you for playing guinea pig NO_THOUGHT.

Seems like a problem in loading the Qt jambi library, not immidiately something I can fix.

I've tried increasing the jambi version to 4.7.0-beta1, this version seems to work with the linux version, perhaps they fixed this issue with the mac version.

Can you redownload the mac version and give it a spin ?
Title: Re: DF Designator
Post by: [NO_THOUGHT] on June 28, 2011, 10:11:27 am
No problem, I am willing to take the time to get this up and running.
New error (again, no difference between script/no script):
Spoiler (click to show/hide)
Title: Re: DF Designator
Post by: Kali on June 28, 2011, 10:48:29 am
Can you try

java -d32 -cp gui.jar:./jars/* cz.zweistein.df.designator.GUI.RunGUI

or

java -XstartOnFirstThread -d32 -cp gui.jar:./jars/* cz.zweistein.df.designator.GUI.RunGUI
Title: Re: DF Designator - A fortress design tool
Post by: [NO_THOUGHT] on June 28, 2011, 11:41:24 am
First Command Result:
Spoiler (click to show/hide)

Second Command Result:
Spoiler (click to show/hide)
Title: Re: DF Designator - A fortress design tool
Post by: Kali on June 28, 2011, 04:45:08 pm
Excellent
Title: Re: DF Designator - A fortress design tool
Post by: Kali on June 30, 2011, 10:02:24 am
After using it a little myself, I noticed some weaknesses/bugs.

Some tweaks:
    - Now remembers the last directory you accessed something.
    - Now remembers the current session.
    - Pressing PAUSE (to interrupt current designation) is no longer likely to crash the application.
    - Spaces in filenames when saving your current collection of blueprints are now supported (did break the file format).
    - Proper support for keyboard modifiers in shortcuts alt/ctrl/meta/shift or any combination thereof.
Title: Re: DF Designator - A fortress design tool
Post by: Demosthien on October 24, 2011, 07:28:35 pm
I seem to be getting this in my Terminal window when I try to open the start.sh file;

Spoiler (click to show/hide)

I have whatever Java comes packaged with OSX (10.6.8) and it's up to date with Apple Update.
Title: Re: DF Designator - A fortress design tool
Post by: Kali on October 30, 2011, 06:57:21 am
Can you try chaninging the line

java -XstartOnFirstThread -d32 -Djava.util.logging.config.file=logging.properties -cp gui.jar:.:./jars/* cz.zweistein.df.designator.GUI.RunGUI

int start.sh into

java -XstartOnFirstThread -d32 -Djava.util.logging.config.file=logging.properties -cp .:./jars/* cz.zweistein.df.designator.GUI.RunGUI

Technically gui.jar isn't there in the root any more, linux's java version doesn't make a fuss but perhaps the OSX version does.

Otherwise Any suggestions ? That class is in the file jars/gui.jar, it should find it. I have no mac to test it on.
Title: Re: DF Designator - A fortress design tool
Post by: i2amroy on October 30, 2011, 01:26:54 pm
I seem to be getting this in my Terminal window when I try to open the start.sh file;

Spoiler (click to show/hide)

I have whatever Java comes packaged with OSX (10.6.8) and it's up to date with Apple Update.
I'm getting this exact error with the latest version of DF Designator that already has the changed lines you suggested. I'm running a 10.7.2 Lion with the most updated Java available through Software update. Should I just download the all libraries version and try that? Or do you have another suggestion?
Title: Re: DF Designator - A fortress design tool
Post by: Kali on October 31, 2011, 04:11:33 am
The only thing I can still think of is trying to spell out all jar files explicitly. In start.sh, try changing

java -XstartOnFirstThread -d32 -Djava.util.logging.config.file=logging.properties -cp .:./jars/* cz.zweistein.df.designator.GUI.RunGUI

to

java -XstartOnFirstThread -d32 -Djava.util.logging.config.file=logging.properties -cp .:jars/cloning-1.7.4.jar:jars/qtjambi-macosx-gcc-4.6.3.jar:jars/gui.jar:jars/objenesis-1.2.jar:jars/qtjambi-util-4.6.3.jar:jars/jkeymaster-1.0-SNAPSHOT.jar:jars/qtjambi-4.6.3.jar:jars/lib/jna-3.2.7.jar cz.zweistein.df.designator.GUI.RunGUI
Title: Re: DF Designator - A fortress design tool
Post by: Kali on October 31, 2011, 03:30:59 pm
I got a chance to test it on mac, the newly uploaded version should now work. Mac didn't want to recognize my pause key, so I bound the F10 key in addition to pause key to interrupt the process.
Title: Re: DF Designator - A fortress design tool
Post by: Mohreb el Yasim on October 31, 2011, 05:29:21 pm
i was just looking for something like this for ages :D, thank you very much, it hase some gliches for me or i just do not get the multi level designe yet, but still,
Here i come random maze-fortress :D
Title: Re: DF Designator - A fortress design tool
Post by: [NO_THOUGHT] on November 22, 2011, 12:19:57 pm
Went afdf for a month or so, so I didn't see the new version! Just started it and it worked beautifully! My only problem was I clicked on another application and had no idea how to stop it!  :P I'll be sure to read the read me before opening next time.
Title: Re: DF Designator - A fortress design tool
Post by: zwei on November 23, 2011, 07:27:35 am
Oh, cool! Glad to see this went somewhere :-)
Title: Re: DF Designator - A fortress design tool
Post by: ActnMoviHeroBoy on December 16, 2011, 04:52:42 am
the only thing is, it appears not to lik quickfort .csv files.
Gives this every time:

Spoiler (click to show/hide)
works perfectly with bmp images, though i admit i haven't tried anything more complex than a 100 level staircase.
Title: Re: DF Designator - A fortress design tool
Post by: Kali on December 20, 2011, 07:41:40 am
the only thing is, it appears not to lik quickfort .csv files.
Gives this every time:

Spoiler (click to show/hide)
works perfectly with bmp images, though i admit i haven't tried anything more complex than a 100 level staircase.

Well I said some support for csv files, I must say I didn't went all out.

Looking at the error, you have "d" in your csv files instead of plain d. I'll fix it in a future version. If I get some more bugs/feature requests, I'll actually make one.
Title: Re: DF Designator - A fortress design tool
Post by: ActnMoviHeroBoy on December 28, 2011, 06:17:29 pm
the only thing is, it appears not to lik quickfort .csv files.
Gives this every time:

Spoiler (click to show/hide)
works perfectly with bmp images, though i admit i haven't tried anything more complex than a 100 level staircase.

Well I said some support for csv files, I must say I didn't went all out.

Looking at the error, you have "d" in your csv files instead of plain d. I'll fix it in a future version. If I get some more bugs/feature requests, I'll actually make one.

sorry, i was unclear. what i posted was what the terminal printed. the actual CSV files do have a plain d.

i've been using the utility since the last post and i find i actually prefer the ability to use images instead of spreadsheets. it's a lot clearer and it makes designing things much easier, what with circle tools and rounded rectangles and pixel math and all that.

i am a bit confused with the green cursor pixel, too. some of the templates given don't appear to need it, as they work and don't have one.

regardless, this is going to make my life much easier. thanks
Title: Re: DF Designator - A fortress design tool
Post by: Kali on December 29, 2011, 01:18:44 pm
The green pixel directly corresponds to the place where your cursor is in DF. So if your blueprint has that green pixel right in the middle, then the program will designate the blueprint around your cursor in DF. If you add no green cursor, the program assumes there is one in the upper left corner.

Take the fractal blueprint for example, it would be annoying to have to find the upper left position to start in such a way that the middle directly corresponds to your staircase, it is much more natural to pick the spot where the middle should be and build the blueprint around that.

Also when you use some multilevel blueprints, the green dots will be aligned across multiple levels.
Title: Re: DF Designator - A fortress design tool
Post by: Moonshine Fox on April 01, 2012, 03:33:38 am
I'm having a problem with this program and that is that it keeps being a real pain in the nuts to get it to start in the right place. My blueprint is correct (because it works just fine 1 out of 4 times), but it seems to insist on relocating the entire blueprint 3-6 rows down. So for instance, it'll offset my furniture by say 6 squares down.

It keeps doing this several times, and I have to stop it with "Pause" and try again. I will move my cursor a bit, then go back to the center, run the "macro" again and poof, now it works. Any reason as to why it does this? It's one reason I'm starting to glance back at QuickFort instead of this.
Title: Re: DF Designator - A fortress design tool
Post by: BigD145 on April 01, 2012, 11:36:50 am
I'm not sure how this program functions but I know with QuickFort you need to set [MACRO_MS:0] in the init.txt file to not get skipping in designations.
Title: Re: DF Designator - A fortress design tool
Post by: Moonshine Fox on April 05, 2012, 08:47:19 am
I'm not sure how this program functions but I know with QuickFort you need to set [MACRO_MS:0] in the init.txt file to not get skipping in designations.
It doesn't actually skip designations. It just simply relocates the entire design downwards a few squares. It's infinitely infuriating :D
Title: Re: DF Designator - A fortress design tool
Post by: SauliusTheBlack on April 10, 2012, 06:20:21 am
anyone interested in a designing side program for designator? if yes, I'll try to whip up a proof of concept.
Features:
- using the same colors as specified in dfdesignator ini-file
- save in .zip or .bmp
- pixel-by-pixel drawing(as in, you have some rectangles, ratio = DF default ratio or square. 1 rectangle = 1 position in DF)

input always welcome, but I'll probably not start unless there are people waiting for this.

Greetings
Title: Re: DF Designator - A fortress design tool
Post by: zwei on April 10, 2012, 07:39:34 am
anyone interested in a designing side program for designator? if yes, I'll try to whip up a proof of concept.
Features:
- using the same colors as specified in dfdesignator ini-file
- save in .zip or .bmp
- pixel-by-pixel drawing(as in, you have some rectangles, ratio = DF default ratio or square. 1 rectangle = 1 position in DF)

input always welcome, but I'll probably not start unless there are people waiting for this.

Greetings

To be honest, existing drawing programs are more than suitable already.

What I want from such software is copy/pasting sections and rotating them/mirroring them, basic brush/rectangle/circle works.

paintbrush does that perfectly and more advanced software does more (layers and export of layers to ordered pngs for example)

I suppose gimp-plugin for color management and reading form ini would be nice, but not required: Simply creating image with palete from ini file, possibly custom color picker with designation names next to each colors.
Title: Re: DF Designator - A fortress design tool
Post by: Dragula on April 12, 2012, 05:35:53 pm
It refuses to go down Z-levels, did I break it? :(
Title: Re: DF Designator - A fortress design tool
Post by: Kali on April 20, 2012, 04:18:24 am
I'm having a problem with this program and that is that it keeps being a real pain in the nuts to get it to start in the right place. My blueprint is correct (because it works just fine 1 out of 4 times), but it seems to insist on relocating the entire blueprint 3-6 rows down. So for instance, it'll offset my furniture by say 6 squares down.

It keeps doing this several times, and I have to stop it with "Pause" and try again. I will move my cursor a bit, then go back to the center, run the "macro" again and poof, now it works. Any reason as to why it does this? It's one reason I'm starting to glance back at QuickFort instead of this.

Well, the problem is probably that a few keystrokes are lost because they arrive too quickly, a solution is increasing the delay between keystrokes a little. Open settings.ini and increase the delay values, it will go a little slower but will be a little more reliable.
Title: Re: DF Designator - A fortress design tool
Post by: Kali on April 20, 2012, 05:36:35 am
It refuses to go down Z-levels, did I break it? :(

Fixed, it was a problem on windows with querty keyboards, so if that is you, you should re-download.

This probably explains why people couldn't figure out the multi z-level thing.
Title: Re: DF Designator - A fortress design tool
Post by: Finn on April 20, 2012, 09:31:58 pm
Should this work on Windows 7 with 64bit Java?
Title: Re: DF Designator - A fortress design tool
Post by: Kali on April 21, 2012, 05:57:44 am
Should this work on Windows 7 with 64bit Java?

It does not. You can however install 32bit java along side 64bit java on a 64bit system without issues.
Title: Re: DF Designator - A fortress design tool
Post by: turabeasel on April 11, 2013, 03:50:44 pm
I cannot get it to work on OSX Mountain Lion. It keeps telling me I need java 32 but I cannot find that anywhere. I just installed whatever java was at the end of the link in the first post.
Title: Re: DF Designator - A fortress design tool
Post by: puke on April 12, 2013, 09:38:31 am
Fixed, it was a problem on windows with querty keyboards, so if that is you, you should re-download.

haha, thats the most awesome quote ever.  Did you intentionally "misspell" qwerty out of humor or disdain? Or does that sort of thing just happen when you rock the Dvorak?

Title: Re: DF Designator - A fortress design tool
Post by: smokingwreckage on June 04, 2013, 07:56:08 pm
Does this come with some decent pre-built rooms etc? Is there a wiki page or something with designs?
Title: Re: DF Designator - A fortress design tool
Post by: loiy33 on August 17, 2013, 08:18:34 pm
Awesome!!!
It worked beautifully on my macbook pro the first time I used, so I sat down and created some designs on paintbrush to designate for my new fortress. Unfortunately next time I did so, as I opened the program I did not want to use Raynards Fractal design, is there a way to remove the designs from the DF designator screen?

Scratch that, I redownloaded it, and attempted to designate the standard raynard fractal, and THAT won't even designate itself, however it does give me this, QKqueueFileSystemWatcherEngine::addPaths: open: No such file or directory
QFileSystemWatcher: failed to add paths: /Users/Ian/Documents/Dwarffortress OSX/DF Designator (OS X)


any help?

*Edit: problem solved*

HOWEVER, I was planning on designing a above ground fortress, is there any way I can specify which material I want the walls to be built out of?
Title: Re: DF Designator - A fortress design tool
Post by: nekoexmachina on September 18, 2014, 10:46:13 am
Still working for DF2014 (obv.).
Awesome tool. Better than anything else.