Bay 12 Games Forum

Dwarf Fortress => DF Modding => Utilities and 3rd Party Applications => Topic started by: fredsen on September 09, 2014, 09:07:28 am

Title: DwarfMockup - a graphical blueprint design tool
Post by: fredsen on September 09, 2014, 09:07:28 am
Hi everybody.

I'm glad to announce the first public release of a small project of mine, DwarfMockup.

This is a tool that offers a DF-like interface to quickly design blueprints reusable in QuickFort.

Spoiler (click to show/hide)

The features are :


Download the windows package at DFFD : http://dffd.wimbli.com/file.php?id=9654 (http://dffd.wimbli.com/file.php?id=9654)
Or browse the Ruby source on bitbucket : https://bitbucket.org/fredsen/dwarfmockup (https://bitbucket.org/fredsen/dwarfmockup)

All bug reports, suggestions, encouragements, donations (single malt whiskies are the only accepted currency) are welcome !

Edit 15.09.2014 : new version uploaded to fix the bug reported by Xeandra (thanks !)
Edit 02.02.2016 : another new version with lots of improvements : cut / copy / paste / import, lines, empty circles, walls & floors
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Hesperid on September 09, 2014, 09:46:07 am
a tool that offers a DF-like interface

Why would you ever do this, you cruel fool?
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Philii on September 09, 2014, 02:28:09 pm
anyway
Multi-level designs - 15 levels, 256x256 tiles
is good feature.
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Meph on September 09, 2014, 02:31:56 pm
This would make a great tool to have sneak peeks at tilesets. If you could save some pre-designated areas, with fortress, caverns and surface, and people can load different tilesets and colorschemes, it would make it much easier to see which style you like. Usually its only screenshots in the forum, or nothing at all... but seeing them right next to each other, seeing the same fortress layout with different tilesets would be much better. :)
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Dwarf_Fever on September 09, 2014, 04:18:50 pm
a tool that offers a DF-like interface

Why would you ever do this, you cruel fool?

LOL'ed :)
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Antsan on September 10, 2014, 04:51:16 am
a tool that offers a DF-like interface

Why would you ever do this, you cruel fool?
To use an already existing standard in the DF world instead of creating yet another special case, I guess.
I strongly suspect you didn't ask seriously, but I thought a satsifying answer to that question might be interesting either way and that's waht I came up with.
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: sayke on September 11, 2014, 04:18:44 pm
This is brilliant - keep up the good work! =)
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: fredsen on September 12, 2014, 02:40:02 am
a tool that offers a DF-like interface

Why would you ever do this, you cruel fool?

Well, you have the choice :


This would make a great tool to have sneak peeks at tilesets.

This is definitely possible, but I'll need to make the graphics pack a bit easier to install (right now, you have to specify by hand all the mapping), which means parsing raw files and such...

And thanks to sayke and Philii !  :)
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Talvieno on September 13, 2014, 08:42:14 am
This is pretty awesome, I like it. :)
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: milo christiansen on September 13, 2014, 02:22:13 pm
If it could export png images (one pixel per tile, color specifies action) you would be my hero!
(right now you are just listed as "really cool" :p)
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Philii on September 13, 2014, 04:33:28 pm
If it could export png images (one pixel per tile, color specifies action) you would be my hero!
(right now you are just listed as "really cool" :p)
1 layer 1 png image for multilayer.

I am mostly use for dig.
mostly, csv files is better.
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Xeandra on September 14, 2014, 03:22:06 am
The generated build files don't start with #build making them not to work in quickfort.
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: fredsen on September 15, 2014, 08:16:29 am
If it could export png images (one pixel per tile, color specifies action) you would be my hero!
(right now you are just listed as "really cool" :p)

I think it's possible...  But what about multi-level designs ?  Build / stockpiles / adjust layers ?
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: whitecold on September 16, 2014, 01:06:59 am
It seems stupid, but how do you change layers?
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: fredsen on September 16, 2014, 01:51:14 am
It seems stupid, but how do you change layers?

PageUp / PageDown.  I should probably add +/-, but I'm not using a QWERTY keyboard layout, so these aren't very natural for me...  :)
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: tyrannus007 on March 21, 2015, 02:50:58 pm
Just want to say that I really like this tool, and it's a shame that it's been pushed so far back. I hope the creator is still working on it.
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: xaldin on April 01, 2015, 08:48:20 am
This tool is actually rather amazingly handy. I started messing around with it recently and finding it very useful. It could stand ability to edit the configuration in the interface and maybe some other tweaks but seems to be working quite effectively. Hope to see more on this in the future.
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: maestrod on May 13, 2015, 03:00:19 pm
Is it possible to build walls and floors with this tool?
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Meph on May 13, 2015, 07:17:28 pm
Is it possible to get different tilesets into the tool? Aka drag and drop them into a folder and select one you want?
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Putnam on May 13, 2015, 10:40:11 pm
Is it possible to get different tilesets into the tool? Aka drag and drop them into a folder and select one you want?

  • User-configurable graphics packs (mot very user-friendly, though !  :) ) - Mayday is packaged by default,
  • User-configurable fonts
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Meph on May 13, 2015, 11:25:20 pm
Is it possible to get different tilesets into the tool? Aka drag and drop them into a folder and select one you want?

  • User-configurable graphics packs (mot very user-friendly, though !  :) ) - Mayday is packaged by default,
  • User-configurable fonts
I honestly did not see that. -.- But I tried changing the tileset, there is nothing about it in the config or the readme. There is the line "# tiles_name = mayday # png extension automatically added" in the confic, but no actual mayday.png anywhere to be found.

I think my question was more likely: HOW do I change tilesets? ^^
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Dibujor on May 15, 2015, 12:44:40 pm
I think my question was more likely: HOW do I change tilesets? ^^

I'm new around here and to dwarf fortress in general, and instead of playing it I've embarked myself in trying to customize a tileset to my liking XD, so was franticaly looking for something like this to see how my changes affect the graphics "in game". But I digress...

I found how you can change the tileset:

Code: [Select]
# tiles_dir = .
# tiles_name = mayday # png extension automatically added
# tile_size = 16

To look like this:

Code: [Select]
tiles_dir = ./tiles
tiles_name = Spacefox # png extension automatically added
tile_size = 16

Where Spacefox is the name you used for the tileset (no need to add the .png)

Result:

Spoiler (click to show/hide)

Lines to change:

Spoiler (click to show/hide)

[EDIT] By the way, in the same config file you should change the line that says: statue = 64 for statue = 234. By default it points to the wrong tile, I guess the tiles "adresses" changed since this was made
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Meph on May 15, 2015, 09:47:26 pm
Thank you so much. :)
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Dibujor on May 16, 2015, 03:04:18 am
My pleasure :), glad to help.

It would be awesome if it had more types of elements (fortifications, workshops,etc) to see, it would be awesome to check tilesets on the fly (for noobs like me anyway, I haven't played the game properly, so I don't have a save to check on advanced tiles like fortifications, engravings, weapons and armor, etc) in fact I am a bit surprised there's no utility like that.

 But I understand this was intended "just" to make plans for quickfort. In order to see other elements though,  you can "play" with the values in the config file, directing the elements already there to other tiles you want to see "in game"
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Meph on May 16, 2015, 10:15:15 am
If you want to see some tileset previews next to each other, you can download Masterwork 6.2, open the manual and go to "RawAdditions:Tilesets" and see 25 previews. Doesnt matter if you play vanilla or mods, the tilesets will look the same.
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Dibujor on May 16, 2015, 11:28:27 am
Thank you for the info.  Masterwork is something I definitely want to try.  Although I've been watching let's plays of DF for over a year now, I just played for the first time a week ago so I want to understand the vanilla game before diving into more complexity.  I'll look at the manual though. Awesome work on that btw.

Anyway, I was referring to trying customized tilesets (I really didn't explain myself so the confusion is understandable).  I just begun to play and seems I'm a bit masochist. I'm trying my hand at customizing spacefox for me, but I have no real experience or knowledge of how the tiles will look once in game and I have different variations of some tiles to choose from.  That's why I mentioned this falls a bit short for seeing the complete tileset in game, unless you play with the config file to change the directions of the tiles.

Thank you, though :)
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Putnam on May 16, 2015, 12:48:24 pm
Where'd you hear about Masterwork?
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Dibujor on May 16, 2015, 12:58:06 pm
Me? ,  we'll I've been visiting this forums for a long time since I first knew about DF, but I'm not sure if I first knew about Masterwork here or on YouTube.  Why?,  now  you got me curious  ;D
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Putnam on May 16, 2015, 01:03:39 pm
i'm curious
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Dibujor on May 16, 2015, 01:53:55 pm
i'm curious

Oh, there's that then :D
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Meph on May 17, 2015, 04:12:32 am
i'm curious

Oh, there's that then :D
He is just trying to wrap his head around the fact that people hear a lot about MasterworkDF, while hearing so little about other mods.
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Dibujor on May 17, 2015, 08:59:32 am
He is just trying to wrap his head around the fact that people hear a lot about MasterworkDF, while hearing so little about other mods.

Well, once you get into dwarf fortress you hear about other mods (although I'm most interested in graphical things, comes with the job). But if you don't dig too much into the game and just know about it from youtube (I don't know if I first knew about the game from Aavak or Arumba on YT) then you more than likely only know about Masterwork, as I see it, ouside the forums, Masterwork is THE mod.
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: PeridexisErrant on May 17, 2015, 07:33:58 pm
PTW
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Putnam on May 18, 2015, 12:17:46 am
He is just trying to wrap his head around the fact that people hear a lot about MasterworkDF, while hearing so little about other mods.

Well, once you get into dwarf fortress you hear about other mods (although I'm most interested in graphical things, comes with the job). But if you don't dig too much into the game and just know about it from youtube (I don't know if I first knew about the game from Aavak or Arumba on YT) then you more than likely only know about Masterwork, as I see it, ouside the forums, Masterwork is THE mod.

And calling that a bad situation makes me a hater, yeah.

(not yelling at you, just whining in general)
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Dibujor on May 18, 2015, 05:16:58 am
Don't worry, I don't take it personally :)

I don't think it's a good situation either, there are lots of people moding and adding to the game. I was just giving my impressions of how I, as a newcomer to dwarf fortress, see it (and I might be wrong). DF is a pretty obscure game by means of it's complexity and it appeals to a pretty niche market. Youtubers had discovered the game to many (like me) and among those youtubers there seems to be two trends, those who play the vanilla game (i'm not counting tilesets as mods) and those who play Masterwork DF, so that's why Masterwok is known outside of this forums (at least to those who know about DF in the first place). To be fair, Masterwork adds A LOT of content to the game.

Again I'm just a newcomer and I might have got this all wrong :)
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Meph on May 18, 2015, 09:54:07 am
I don't mind the discussion and are always open to chime in, but I think it would be best to not do it in this thread.
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Dibujor on May 18, 2015, 10:21:14 am
Yep, you're right.  I didn't think It was a discussion but I  can see now how I can be wrong and where this can go from here.  I'm sorry.
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Scoops Novel on May 18, 2015, 04:21:05 pm
a tool that offers a DF-like interface

Why would you ever do this, you cruel fool?

(https://lh3.ggpht.com/JWbMvkP7Q-8MnwEzjb04mdeqIeA_QANL-ZAuGsKVJhMrKuU7Rj8JaURKkC-DUAi2CW0=w300)
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Xolroc on May 21, 2015, 01:03:28 pm
If there's any development at all still going on with this, I'd suggest adding in some mouse control--something like how the mousequery dfhack utility works would be excellent. I use mousequery for designations in DF, and so am completely unused to its normal interface.
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: PeridexisErrant on May 21, 2015, 04:49:42 pm
That would be cool, as would supporting colour schemes to get fully general visualisation.
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Toskin on November 24, 2015, 05:36:46 am
Is there any option or planned feature to plan walls ? Like for, structures above land.
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: Bumber on December 09, 2015, 11:20:03 am
Bug report:
A negative value saved into the "start(x;y; )" field of the .csv files creates a hyphen, causing the save to become unreadable. This happened when I moved the center marker just outside the bottom-left corner of the screen because it was irritating me. It seems to be caused by having the center marker too far to the North or West of your design. Maximum negative value is -251 from placing at opposite corners. This doesn't occur in the other field because the coordinates are guaranteed to be positive. (I'm not entirely sure how that z-coordinate is maintained, seeing as how it only seems to range from 0 to 7.)

Feature request:
Option to hide that annoying blinking center marker.
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: moisesjns on December 11, 2015, 12:50:28 pm
I just wanna say this is an awesome tool i love it!

All the other versions of this like the one where you save pictures and than it converts it for quickfort NEVER seem to work for me.

And with his awesome tool i can  easily make my own custom designs.
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: moisesjns on January 30, 2016, 10:39:43 pm
I also wanna drop by and say this is an awesome tool. THANK YOU for making this. i also cant seem to get this converter shit to work. but your mod is great and lets me bypass that.
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: fredsen on February 02, 2016, 02:17:55 pm
Bug report:
A negative value saved into the "start(x;y; )" field of the .csv files creates a hyphen, causing the save to become unreadable.
Feature request:
Option to hide that annoying blinking center marker.

Bug fixed & new feature implemented !   :)
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: SpoCk0nd0pe on February 23, 2016, 10:21:16 pm
I just wanted to drop by and thank you for this marvelous tool!

One small thing that could improve ease of use for me: add > and < for changing levels. I'm so used to those keys from DF and Nethack, it would help a lot.

Another small thing is, that I'm somehow unable to remove fortifications. Or am I just too stupid to find the button?

I would be really interested in the designs other people come up with! I will probably start a thread for some design ideas in the near future.
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: LordBaal on July 15, 2016, 07:20:19 am
Great tool fredsen! A fine job indeed. Only a couple of observations:
1- If you included workshops this will be supreme. However one can include them manually to the csv files if so is not that big deal.

2- There's an is issue with designated fortifications, at least for me. Whenever I load the file the designations are gone.

3- Sometimes when I press control+c or control+x to copy or cut, if I press control+c or control+x again before pressing enter the program doesn't come out of the copy/cut mode, and if I press N or M to pass to another mod it crash-exit without promp. That's it, if I press control+c or control+x twice sometimes the applications bugs out. However it doesn't seem to be consistent.

However those are minor issues that don't undermine the great work you have done.
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: dementia on July 31, 2016, 10:41:34 pm
Just thought I would let you know that your utility pinged windows defender as malware. It might be the way it reads, writes, or modifies memory objects but I wouldn't know.
https://virustotal.com/en/file/6e126556a8560f36d7883d42bb3607b24b733e321cb35f70fe3238956c2e59ea/analysis/1470023292/
Trojan:Win32/Rundas!plock
Spoiler (click to show/hide)
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: LordBaal on August 01, 2016, 07:51:05 am
Just thought I would let you know that your utility pinged windows defender as malware....
https://bitbucket.org/fredsen/dwarfmockup
Quote from: Fredsen
Important note :

The Avira anti-virus program seems to believe that DwarfMockup.exe is infected with a trojan (TR/Dropper.Gen7). This is a false positive.

I believe it's caused by the OCRA system of embedding a ruby interpreter in one big exe file.

If you do not trust this file, you can always download the whole ruby source and execute with a ruby interpreter.

I guess it also fires up other antiviruses as well. I have been using the program for a few weeks and it seems fine. I scanned it on MacAffe entrerprise and windows defender. I know they aren't the most brilliant on the class but they do the job.
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: FantasticDorf on August 01, 2016, 10:25:30 am
Although im sure there are other tools out there to do that, what would you think about designating some of these 'sneak-peeks' to be converted into macros? It would be handy to have a 'pop up' base design function drawing upon the macros DF can already do.
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: NikT on July 01, 2020, 04:35:52 pm
Hi Folks,

I tried launched programm, but this utility does not to work in my computer. In general i click on the icon and nothing happens. Can you help me? May be somebebore had similar problem.
 
Thank you advance!
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: GandalfTheGreyt3791 on July 23, 2020, 12:09:07 pm
does it work on linux?
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: clinodev on February 22, 2021, 04:52:12 am
I've managed to make contact with the DwarfMockup dev!

First fruits: https://github.com/fredlacave/dwarfmockup

Edit: A new release https://github.com/fredlacave/dwarfmockup/releases/tag/1.4.0
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: myk on February 22, 2021, 10:28:49 pm
does it work on linux?
It's written in Ruby, so it should. it depends on a few rubygems (https://github.com/fredlacave/dwarfmockup/blob/master/Gemfile), which you can install with the gem package manager
Title: Re: DwarfMockup - a graphical blueprint design tool
Post by: PeridexisErrant on February 27, 2021, 07:43:41 pm
@fredsen: the previous version was 1.2.0, and it's still available at https://dffd.bay12games.com/file.php?id=9654

Should I presume that future updates will be hosted on GitHub?