Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [REQUEST] Guide for making new materials?  (Read 717 times)

spikeof2010

  • Bay Watcher
    • View Profile
[REQUEST] Guide for making new materials?
« on: November 07, 2013, 03:25:30 pm »

Hey, newbie to DF in general, and I want to dip my feet into modding, the wiki is rather complex and hard to understand, at least the tutorial is. Would anyone please write a guide for making a new material and how to get it in game (Like smelting it?)
Logged

spikeof2010

  • Bay Watcher
    • View Profile
Re: [REQUEST] Guide for making new materials?
« Reply #1 on: November 07, 2013, 03:59:13 pm »

Also, might I ask if it's possibly to add a syndrome to a material?
Logged

BlackFlyme

  • Bay Watcher
  • BlackFlyme cancels Work: Interrupted by bird.
    • View Profile
Re: [REQUEST] Guide for making new materials?
« Reply #2 on: November 07, 2013, 05:04:52 pm »

Which part of the wiki did you check? Personally I find it easier to mod by looking at a pre-existing item that is close to what I want to make while reading up on the various tokens that can be applied to a material.

These two links should help you with what tags can be applied to a new material.

http://dwarffortresswiki.org/index.php/DF2012:Material_definition_token

http://dwarffortresswiki.org/index.php/DF2012:Inorganic_material_definition_token

To have a material smeltable into a metal without having to make a new reaction, you can give it [METAL_ORE:MATERIAL:CHANCE]

Syndromes can be added to a material by adding [SYNDROME] to the end, along with various syndrome tokens that can be found on this page.

http://dwarffortresswiki.org/index.php/Syndrome

What exactly is it that you want to make?
Logged

spikeof2010

  • Bay Watcher
    • View Profile
Re: [REQUEST] Guide for making new materials?
« Reply #3 on: November 07, 2013, 05:36:16 pm »

Necrite, A grey metal a bit weaker than steel, and has a 50% chance or rotting any body part it hits.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [REQUEST] Guide for making new materials?
« Reply #4 on: November 10, 2013, 12:43:45 am »

That would require DFHack. Luckily for you, I've already created the script: itemsyndrome.

spikeof2010

  • Bay Watcher
    • View Profile
Re: [REQUEST] Guide for making new materials?
« Reply #5 on: November 10, 2013, 05:19:03 pm »

That would require DFHack. Luckily for you, I've already created the script: itemsyndrome.

Example?
I'm completely unfamiliar with using DFHack, I just let it run with Lazy Newb Pack, letting it remove any bugs.
I did hear that some Masterwork items use DFHack for it
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: [REQUEST] Guide for making new materials?
« Reply #6 on: November 10, 2013, 05:48:18 pm »

http://www.bay12forums.com/smf/index.php?topic=123817.0

I use it extensively too in Genesis and Fallout mods.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

spikeof2010

  • Bay Watcher
    • View Profile
Re: [REQUEST] Guide for making new materials?
« Reply #7 on: November 10, 2013, 06:24:34 pm »

Would someone be willing to put an example?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [REQUEST] Guide for making new materials?
« Reply #8 on: November 10, 2013, 06:53:56 pm »

Would someone be willing to put an example?

Try clicking the spoiler.

spikeof2010

  • Bay Watcher
    • View Profile
Re: [REQUEST] Guide for making new materials?
« Reply #9 on: November 10, 2013, 07:29:40 pm »

I'll try and see what I can do.

Also, I'm assuming smelting ore would be as simple as adding a new rock and adding a reaction to turn it into this bar?
Logged

BlackFlyme

  • Bay Watcher
  • BlackFlyme cancels Work: Interrupted by bird.
    • View Profile
Re: [REQUEST] Guide for making new materials?
« Reply #10 on: November 10, 2013, 07:40:11 pm »

I'll try and see what I can do.

Also, I'm assuming smelting ore would be as simple as adding a new rock and adding a reaction to turn it into this bar?

All you need is two materials. One is the ore and the other is your metal. Give your ore this tag

[METAL_ORE:MATERIAL:#]

Where it says MATERIAL is where you will put in the name of the metal you want the ore to smelt into. The # is the percentage chance of getting the metal when the ore is smelted. So if the number is 100 you will get the metal 100% of the time, but if the number is 20, then your chances of getting the metal are 1/5.

You won't need to add a reaction anywhere, since the metal ore tag will automatically add a reaction to the smelter for you.
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: [REQUEST] Guide for making new materials?
« Reply #11 on: November 10, 2013, 07:53:48 pm »

Is it a chance now? # used to be a direct percentage, so 25 gave you a full bar after you smelt 4 bars in the same smelter.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository