Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [DFHack] Sky Eternal: Create more z-levels! (version 0.1)  (Read 8387 times)

expwnent

  • Bay Watcher
    • View Profile
[DFHack] Sky Eternal: Create more z-levels! (version 0.1)
« on: December 31, 2012, 03:38:38 pm »

This was a separate plugin for DFHack r2. It is merged into r3. Don't use this version anymore.






What it is

This plugin allows you to create new (sky) z-levels in fort mode, either on request, or as needed. The new z-levels will be empty. You will be able to construct things in them just fine. They work just like every other initially empty z-level.

If construction monitoring is enabled, then every time you make a new construction, it will ensure that you have at least two z-levels of head room. It keeps two z-levels instead of one so that you can keep constructing up/down stairs even at the top.


Requirements

Requires DFHack, version 0.34.11-r2. Later versions will probably work also.

Linux only for the moment. I can't compile a windows version for a few days.

Windows and Linux versions are available.

A Mac OS version may or may not be included in the next DFHack release.


Usage

Add the following line to dfhack.init to automatically enable the plugin:

Code: [Select]
skyEternal enable

To create a z-level, type "skyEternal" into the DFHack console. To create many z-levels at once, use "skyEternal [n]".

Type "help skyEternal" into the DFHack console for usage details.


Downloads

Download Link (Linux)

Download Link (Windows)


Installation

Un7zip the file and move it to your Dwarf Fortress/hack/plugins folder. If this folder doesn't exist, you haven't installed DFHack correctly.


Version History

0.1: Windows release. Same content, so same version number.

0.1: First release. Linux only.


Other

Please comment if there are any problems. I've tested it myself, and it works fine, but keep a savescum just in case.

STRIKE THE HEAVENS!
« Last Edit: March 20, 2013, 11:38:07 pm by expwnent »
Logged

Aerval

  • Bay Watcher
    • View Profile
Re: [DFHack] Sky Eternal: Create more z-levels! (version 0.1)
« Reply #1 on: January 01, 2013, 11:07:48 am »

Cool progress in the above earth fortress possibilities.

One question:
Quote
They work just like every other initially empty z-level.
Does this mean that you'll have to allocate the memory for the blocks when just using it with tiletypes, as you described in falconnes construction plug-in? (Would have tested it myself but unfortunately I don't have a linux pc here)

Also, could you do the same with layers at the bottom of the map (not that I need it, just curious)
Logged

GreatWyrmGold

  • Bay Watcher
  • Sane, by the local standards.
    • View Profile
Re: [DFHack] Sky Eternal: Create more z-levels! (version 0.1)
« Reply #2 on: January 01, 2013, 05:34:28 pm »

Probably wouldn't work as well, HFS is in the way.


What happens if you've "anchored" a construction to the sky and then add a new z-level?
Logged
Sig
Are you a GM with players who haven't posted? TheDelinquent Players Help will have Bay12 give you an action!
[GreatWyrmGold] gets a little crown. May it forever be his mark of Cain; let no one argue pointless subjects with him lest they receive the same.

expwnent

  • Bay Watcher
    • View Profile
Re: [DFHack] Sky Eternal: Create more z-levels! (version 0.1)
« Reply #3 on: January 01, 2013, 05:50:53 pm »

Does this mean that you'll have to allocate the memory for the blocks when just using it with tiletypes, as you described in falconnes construction plug-in? (Would have tested it myself but unfortunately I don't have a linux pc here)

Some memory will need to be allocated, but not as much as you'd think. I have to allocate space for pointers to map blocks, but I don't have to allocate the map blocks themselves. DF will do that itself as needed.

Also, could you do the same with layers at the bottom of the map (not that I need it, just curious)

Would be much more difficult. I don't intend to try, but DFHack and this plugin are both open source, so if someone else wants to, go for it.

What happens if you've "anchored" a construction to the sky and then add a new z-level?

It would fall as soon as the game notices. Probably not instantly, but I haven't tried it.
Logged

expwnent

  • Bay Watcher
    • View Profile
Re: [DFHack] Sky Eternal: Create more z-levels! (version 0.1)
« Reply #4 on: January 01, 2013, 09:10:29 pm »

Windows version is up.
Logged

runetrantor

  • Bay Watcher
    • View Profile
Re: [DFHack] Sky Eternal: Create more z-levels! (version 0.1)
« Reply #5 on: March 20, 2013, 07:47:47 pm »

Sorry if necro, but I just installed DF Hack 0.34.11 r3 and it says it cannot load the plugin...
Any idea?
Logged
-Maybe this world is another planet's Hell. Aldous Huxley.

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: [DFHack] Sky Eternal: Create more z-levels! (version 0.1)
« Reply #6 on: March 20, 2013, 08:56:11 pm »

DFHack v3 already has InfiniteSky plugin (which can allocate sky levels automatically).
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

expwnent

  • Bay Watcher
    • View Profile
Re: [DFHack] Sky Eternal: Create more z-levels! (version 0.1)
« Reply #7 on: March 20, 2013, 11:27:39 pm »

This plugin was improved and merged into DFHack version 3, yes. The old one probably works ok for DFHack r2, but I can't think of any good reason not to upgrade the whole thing to r3.
Logged

runetrantor

  • Bay Watcher
    • View Profile
Re: [DFHack] Sky Eternal: Create more z-levels! (version 0.1)
« Reply #8 on: March 20, 2013, 11:47:12 pm »

Oh good, I had resolved to move to r2, not that bad either way as my LNP was r1. XD
Thanks anyway!

EDIT: The stated command of skyEternal does not seem to work, was it changed for the merge?
« Last Edit: March 21, 2013, 11:31:46 am by runetrantor »
Logged
-Maybe this world is another planet's Hell. Aldous Huxley.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [DFHack] Sky Eternal: Create more z-levels! (version 0.1)
« Reply #9 on: March 21, 2013, 04:51:42 pm »

Yes, it's now infinitesky.

runetrantor

  • Bay Watcher
    • View Profile
Re: [DFHack] Sky Eternal: Create more z-levels! (version 0.1)
« Reply #10 on: March 21, 2013, 08:20:46 pm »

Odd, it does not appear in the command list... nor working...

EDIT: Turns out DF Hack is seriously picky with caps, infinitesky is not a command it knows, BUT infiniteSky is. ಠ_ಠ
« Last Edit: March 21, 2013, 08:23:00 pm by runetrantor »
Logged
-Maybe this world is another planet's Hell. Aldous Huxley.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [DFHack] Sky Eternal: Create more z-levels! (version 0.1)
« Reply #11 on: March 21, 2013, 08:57:13 pm »

ls, dude, ls

runetrantor

  • Bay Watcher
    • View Profile
Re: [DFHack] Sky Eternal: Create more z-levels! (version 0.1)
« Reply #12 on: March 22, 2013, 01:16:03 am »

I checked both that one and the database linked in the DF Hack topic, to no avail.
But anyway, it is already working, with the command you said, and the little caps issue.
Thanks.
Logged
-Maybe this world is another planet's Hell. Aldous Huxley.