Bay 12 Games Forum

Please login or register.

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

Author Topic: DF to Minecraft utility  (Read 107730 times)

TroZ_shack

  • Bay Watcher
  • Narf!
    • View Profile
    • Shacknews
DF to Minecraft utility
« on: August 22, 2010, 09:14:22 pm »

Dwarf Fortress to Minecraft Map conversion utility

For the last few weeks, I've been working on a Dwarf Fortress to Minecraft map conversion utility.
Based on DFHack, it will read the memory of a running Dwarf Fortress game and convert the local map into a Minecraft Indev .mclevel file.

You can use this utility as a sort of 3D visualizer for your Dwarf Fortress map, or use it as a way of using Dwarf Fortress to make building huge constructions in Minecraft easier.

Download: http://github.com/TroZ/DF2MC/downloads (Windows only for now)
Source code: http://github.com/TroZ/DF2MC

It works by converting each 'square' in Dwarf Fortress into a NxNxN block of cubes in Minecraft, looking up how to convert each object in a settings xml file that can be user modified. The default file that I provide converts each 'square' into a 3x3x3 block of cubes, but other sizes are possible. I currently have nearly 1000 objects defined.

Current limitations:
Only outputs Indev .mclevel files, not Alpha 'infinite' levels, so level sizes are limited by memory and must be played at http://www.minecraft.com/indev  This also limits the available block types (no doors or furnaces is biggest issue)
Lighting is not calculated, so level starts out dark until game can calculate the lighting over the first few minutes of play.
Building, tree, and plant 'material' isn't read/used yet, but terrain and construction materials are.
I'm mainly a Java developer, and only use windows, so the git project can best be described as 'bare bones'. Help creating a project that could be compiled on windows or linux with different compilers would be appreciated.

Some example output:
http://troz.shackspace.com/minecraft/df2mc/woodcastle3.mclevel  df map: http://mkv25.net/dfma/map-9322-roadraced
http://troz.shackspace.com/minecraft/df2mc/floodtrade.mclevel  df map (about 6 months earlier due to building buildings to test): http://mkv25.net/dfma/map-9358-masterrazors

I have to thank Toady One and Notch for creating awesome games.

So try it out, tell me what you think, and if you are able, contribute code to this project!
Logged
DF2MC -> Convert DF Maps to Minecraft Levels so you can use Minecraft as a 3D visualizer for Dwarf Fortress
DF2MC - The cause of 15+ head explosions and counting!

cappstv

  • Bay Watcher
    • View Profile
Re: DF to Minecraft utility
« Reply #1 on: August 22, 2010, 09:24:02 pm »

My head just exploded
Logged
The French were adept of the "Losing is Fun" philosophy long before Dwarf Fortress.

Umi

  • Bay Watcher
    • View Profile
Re: DF to Minecraft utility
« Reply #2 on: August 22, 2010, 09:48:16 pm »

*Wishes so desperately that my competent laptop hadn't broken so I could play with this*

T_T
Logged

Foamy

  • Bay Watcher
    • View Profile
Re: DF to Minecraft utility
« Reply #3 on: August 22, 2010, 09:59:49 pm »

Never heard of minecraft before. any chance of getting some screenshots?
Logged

TroZ_shack

  • Bay Watcher
  • Narf!
    • View Profile
    • Shacknews
Re: DF to Minecraft utility
« Reply #4 on: August 22, 2010, 10:27:32 pm »

Screenshots from current version:
Spoiler (click to show/hide)

And I'll take the opportunity to note that I cross-posted this to the Minecraft forums as well. http://www.minecraftforum.net/viewtopic.php?f=25&t=27744
Logged
DF2MC -> Convert DF Maps to Minecraft Levels so you can use Minecraft as a 3D visualizer for Dwarf Fortress
DF2MC - The cause of 15+ head explosions and counting!

Patchouli

  • Bay Watcher
  • Where very delicious cake shop?
    • View Profile
Re: DF to Minecraft utility
« Reply #5 on: August 23, 2010, 02:36:12 am »

Logged

ModBewlay

  • Escaped Lunatic
    • View Profile
Re: DF to Minecraft utility
« Reply #6 on: August 23, 2010, 05:43:50 am »

Amazing! Brilliant! Genius! Wonderful!

i've been wishing for this ever since i first played minecraft (after detoxing from a heavy DF addiction)
Logged

a404notfound

  • Bay Watcher
  • was lost but now... wait still lost.
    • View Profile
Logged

Heavenfall

  • Bay Watcher
    • View Profile
Logged
Upon him I will visit famine and a fire, until all around him desolation rings
and all the demons in the outer dark look on amazed and recognize
that vengeance is the business of a dwarf

Vattic

  • Bay Watcher
  • bibo ergo sum
    • View Profile
Re: DF to Minecraft utility
« Reply #10 on: August 23, 2010, 09:45:22 am »

Cool stuff. I'd like to see what it made of some larger, more complex, forts. Especially some of the forum favourites.
Logged
6 out of 7 dwarves aren't Happy.
How To Generate Small Islands

This is not a link

Toast024

  • Bay Watcher
  • Goes good with jam or butter.
    • View Profile
Logged
The learning curve of the df forums should be equal to that of df itself.

TroZ_shack

  • Bay Watcher
  • Narf!
    • View Profile
    • Shacknews
Re: DF to Minecraft utility
« Reply #13 on: August 23, 2010, 11:45:40 am »

Especially some of the forum favourites.

Is there a place that I can download some large, old, cool fortresses?  All of mine are less than 10 years old.

I'll post the results of any conversions that I do, and it will probably help debug some issues with buildings / constructions that I don't have in my fortresses.
Logged
DF2MC -> Convert DF Maps to Minecraft Levels so you can use Minecraft as a 3D visualizer for Dwarf Fortress
DF2MC - The cause of 15+ head explosions and counting!

DennyTom

  • Bay Watcher
  • !!Urist!!
    • View Profile
Re: DF to Minecraft utility
« Reply #14 on: August 23, 2010, 11:49:21 am »

those without Minecraft humbly ask for more screenshots
Logged
It is so much easier to measure life in experience points...
Pages: [1] 2 3 ... 19