Bay 12 Games Forum

Please login or register.

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

Author Topic: Re: PreD: A DF megaproject layout generator [V0.6] - Custom arenas!  (Read 7404 times)

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile

PreD: A DF megaproject layout generator by MagmaMcFry

Current Version: v0.6

Some time ago, in a thread far, far away, I wrote that I had coded an awesome program that you could use to draw DF layout plans for arbitrarily awesome 3D megaproject layouts. But I had lost that program, and could not rewrite it in a way that you could also use it, because the library I was using was taken out of the Perl Standard Library. I therefore wrote a generally more awesome program that can do everything the old program could do, plus some more awesomeness.

Spoiler: Images (click to show/hide)


Spoiler: Changelog (click to show/hide)

What to do with this:

The file "ptut1.pl" is a tutorial explaining the basics of PreD usage. Run it first, then read through it to understand what it did. Optionally run and look at the other .pl files in the archive.
If you have a little programming experience, try to look at the PreD files to see what they do. PreD.pm is the core module that creates your images. PreDFunc.pm is a collection of useful functions to help you make your layout. PreDTiles.pm is a definition of the tiles that PreD.pm uses to create your layouts.

If you don't have any programming experience and still want to have a custom layout, give me a rough sketch or explanation of your layout and I (or somebody else) will post a layout program for you, with lots of comments so you understand what happens and can make your own layouts later.

If you have a layout that doesn't do what you want it to do, post it here and I'll help you fix your mistakes.
If you have a layout that works, feel free to share it!

Spoiler: Future Plans: (click to show/hide)
« Last Edit: June 08, 2013, 08:02:36 am by MagmaMcFry »
Logged

Loud Whispers

  • Bay Watcher
  • They said we have to aim higher, so we dug deeper.
    • View Profile
    • I APPLAUD YOU SIRRAH
Re: PreD: A DF megaproject layout generator [V0.1]
« Reply #1 on: December 20, 2011, 06:21:32 pm »

This is amazing :O
Though I still don't quite get how to install it  ::)

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: PreD: A DF megaproject layout generator [V0.1]
« Reply #2 on: December 21, 2011, 05:38:33 am »

I changed the Perl installation link to this one: http://downloads.activestate.com/ActivePerl/releases/5.14.2.1402/ActivePerl-5.14.2.1402-MSWin32-x86-295342.msi
Which part of the installation don't you understand?
Logged

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: PreD: A DF megaproject layout generator [V0.3]
« Reply #3 on: December 21, 2011, 02:42:37 pm »

An update! Wall connections are now supported, as well as more coordinate transformation functions!
Spoiler: Connected walls (click to show/hide)
Next short-term goal: More demonstration layouts for understandability's sake, increasing in complexity step by step.
Logged

Cellmonk

  • Bay Watcher
  • You might find it, whatever it is.
    • View Profile
Re: PreD: A DF megaproject layout generator [V0.3]
« Reply #4 on: December 21, 2011, 04:58:10 pm »

Awesome! love to see new layout planning tools. If only world-gen town scripts were editable. Think of all the thing geniuses like you could do.
Logged

Dsarker

  • Bay Watcher
  • Ἱησους Χριστος Θεου Υἱος Σωτηρ
    • View Profile
Re: PreD: A DF megaproject layout generator [V0.3]
« Reply #5 on: December 21, 2011, 05:00:14 pm »

Posting to watch.
Logged
Quote from: NewsMuffin
Dsarker is the trolliest Catholic
Quote
[Dsarker is] a good for nothing troll.
You do not convince me. You rationalize your actions and because the result is favorable you become right.
"There are times, Sember, when I could believe your mother had a secret lover. Looking at you makes me wonder if it was one of my goats."

Loud Whispers

  • Bay Watcher
  • They said we have to aim higher, so we dug deeper.
    • View Profile
    • I APPLAUD YOU SIRRAH
Re: PreD: A DF megaproject layout generator [V0.1]
« Reply #6 on: December 21, 2011, 05:21:05 pm »

Which part of the installation don't you understand?

Pretty much everything, I'll give it a pass for now:P

DrKillPatient

  • Bay Watcher
  • The yak falls infinitely
    • View Profile
Re: PreD: A DF megaproject layout generator [V0.1]
« Reply #7 on: December 21, 2011, 05:43:25 pm »

Which part of the installation don't you understand?

Pretty much everything, I'll give it a pass for now:P

I recall you saying you use a mac. Assuming such, download PreD and unzip it. Then open terminal (Applications -> Utilities -> Terminal) and do this:
Quote
cd /path/to/PreD (In my case it was "cd ~/Downloads/PreD". If you save stuff to the Downloads folder, it should be the same for you.)
perl nlconv.pl
perl ptest1.pl
After a while, some images will be generated based on the layout specified in ptest1.pl. ptest1.pl is commented extensively, so even without knowledge of Perl you should be able to make some sense of it.
Logged
"Frankly, if you're hanging out with people who tell you to use v.begin() instead of &v[0], you need to rethink your social circle."
    Scott Meyers, Effective STL

I've written bash scripts to make using DF easier under Linux!

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: PreD: A DF megaproject layout generator [V0.3]
« Reply #8 on: December 21, 2011, 05:51:29 pm »

I'm currently working on an even more extensively documented step-by-step tutorial. Hope to finish it tonight!

Hint: it involves lots of cheese.
Logged

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: PreD: A DF megaproject layout generator [V0.4] - Now with Tutorial!
« Reply #9 on: December 21, 2011, 07:27:18 pm »

Tutorial complete and uploaded! Read it and don't you dare still not understand something after that. ;D
Logged

blaize9

  • Bay Watcher
    • View Profile
    • Blaizecraft
Re: PreD: A DF megaproject layout generator [V0.4] - Now with Tutorial!
« Reply #10 on: December 22, 2011, 02:57:07 am »

So whats the difference between quickfort and this?
Logged

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: PreD: A DF megaproject layout generator [V0.4] - Now with Tutorial!
« Reply #11 on: December 22, 2011, 06:03:46 am »

Quickfort is a tool where you can design fortress layouts tile-by-tile into a spreadsheet and make DF build that for you automatically.
PreD is a tool where you can create procedurally generated design plans for awesome-looking three-dimensional fortress structures, but then you have to build those yourself.

Next update: Raw stone, fortifications and doors! Also, a tutorial on how to make a DF human castle layout!
Logged

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: PreD: A DF megaproject layout generator [V0.5] - Cheese and Castles!
« Reply #12 on: December 22, 2011, 04:29:07 pm »

v0.5 is out, with a brand new tutorial going deeper into handy aspects of Perl!
Holy shit, I am constantly pumping out new features...  :D

Next project: A tool to export your layout to an arena.txt file that DF can understand, so you can walk around in it in Arena mode!

Logged

Loud Whispers

  • Bay Watcher
  • They said we have to aim higher, so we dug deeper.
    • View Profile
    • I APPLAUD YOU SIRRAH
Re: PreD: A DF megaproject layout generator [V0.5] - Cheese and Castles!
« Reply #13 on: December 27, 2011, 11:05:32 pm »

Arena mode you say? O-o

Hitty40

  • Bay Watcher
  • Poker face, motherfucker.
    • View Profile
Re: PreD: A DF megaproject layout generator [V0.3]
« Reply #14 on: December 28, 2011, 12:13:04 am »

Logged
Ho Ho Ho! I'm going to be sticking economic stone so far up your stockings, you'll be coughing up gemstone windows!
Quote
You see, when the devil comes on to your forums and begins dropping F bombs and shouts 'GIVE ALL YOUR WOMEN!', he's in a happy mood.
Quote
if there's lots of g's and z's, it's gobbo. If you don't really recognize it, it's human. if it's called Urist, it's dwarf.
Pages: [1] 2