Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Getting Civilizations to Make Weapons/Armor Out of New Metals  (Read 534 times)

Lord Gadigan

  • Bay Watcher
    • View Profile
Getting Civilizations to Make Weapons/Armor Out of New Metals
« on: November 24, 2013, 02:14:00 pm »

I have been trying to mod some new metals into the game, but when I travel around in adventure mode, no one has items made out of them. What sort of tags do I need to set to make civilizations actually use metals that I've modded into the game?
Logged

BlackFlyme

  • Bay Watcher
  • BlackFlyme cancels Work: Interrupted by bird.
    • View Profile
Re: Getting Civilizations to Make Weapons/Armor Out of New Metals
« Reply #1 on: November 24, 2013, 02:39:58 pm »

There's not much information to go on here. It may help to post the metal's raws as well as any other related raws such as reactions.

But how a civilization uses a material depends on a few things. How do you make the metal? If it is by smelting an ore that has the [METAL_ORE:metal:chance] tag, then anyone who can use metal will be able to make it, as long as they own an area that has the ore.

Though if the metal is created through a custom reaction, then you will need to give the civilizations that you want to use the metal permissions to use the reaction in their entity file.
Logged

Lord Gadigan

  • Bay Watcher
    • View Profile
Re: Getting Civilizations to Make Weapons/Armor Out of New Metals
« Reply #2 on: November 24, 2013, 02:47:37 pm »

Here's an example of one of the ones I was trying to make

[INORGANIC:SAMPLETANIUM]
   [USE_MATERIAL_TEMPLATE:METAL_TEMPLATE]
   [STATE_NAME_ADJ:ALL_SOLID:sampletanium]
   [STATE_NAME_ADJ:LIQUID:molten sampletanium]
   [STATE_NAME_ADJ:GAS:boiling sampletanium]
   [DISPLAY_COLOR:1:1:1]
   [BUILD_COLOR:1:1:1]
   [MATERIAL_VALUE:124]
   [SPEC_HEAT:500]
   [MELTING_POINT:11999]
   [BOILING_POINT:15999]
   [SOLID_DENSITY:22424]
   [LIQUID_DENSITY:12412]
   [MOLAR_MASS:224112]
   [IMPACT_YIELD:240000]
   [IMPACT_FRACTURE:640000]
   [IMPACT_STRAIN_AT_YIELD:120]
   [COMPRESSIVE_YIELD:244000]
   [COMPRESSIVE_FRACTURE:480000]
   [COMPRESSIVE_STRAIN_AT_YIELD:120]
   [TENSILE_YIELD:64000]
   [TENSILE_FRACTURE:128000]
   [TENSILE_STRAIN_AT_YIELD:72]
   [TORSION_YIELD:64000]
   [TORSION_FRACTURE:124000]
   [TORSION_STRAIN_AT_YIELD:240]
   [SHEAR_YIELD:9600]
   [SHEAR_FRACTURE:240000]
   [SHEAR_STRAIN_AT_YIELD:240]
   [BENDING_YIELD:64000]
   [BENDING_FRACTURE:124000]
   [BENDING_STRAIN_AT_YIELD:64]
   [MAX_EDGE:12000]
   [ITEMS_WEAPON][ITEMS_WEAPON_RANGED][ITEMS_AMMO][ITEMS_ARMOR]
   [ITEMS_HARD]
   [ITEMS_METAL]
   [ITEMS_BARRED]
   [ITEMS_SCALED]
   [HARDENS_WITH_WATER]
   [STATE_COLOR:ALL_SOLID:CYAN]
        [SYNDROME]
         [SYN_NAME:drowsysyndrome]
         [SYN_AFFECTED_CLASS:GENERAL_POISON]
         [SYN_CONTACT]
         [CE_DROWSINESS:SEV:700:PROB:24:RESISTABLE:START:12:PEAK:24000:END:240000]

It sounds like from what you're saying that I'm missing the  [METAL_ORE:metal:chance] tag or some reaction to make it.
Logged

BlackFlyme

  • Bay Watcher
  • BlackFlyme cancels Work: Interrupted by bird.
    • View Profile
Re: Getting Civilizations to Make Weapons/Armor Out of New Metals
« Reply #3 on: November 24, 2013, 02:55:30 pm »

Yes, you need either a different stone that has the tag [METAL_ORE:SAMPLETANIUM:100] and can be found naturally underground like other ores, or you will need a custom reaction that can create the metal bars.

If you use a custom reaction you will also need to give reaction permissions to the civilizations you want to use your metal. All you would need is a reaction to make bars, though. Since it is metal and has the [ITEM_X] tags, it should have reactions added to the forge automatically.
Logged

Lord Gadigan

  • Bay Watcher
    • View Profile
Re: Getting Civilizations to Make Weapons/Armor Out of New Metals
« Reply #4 on: November 24, 2013, 03:15:06 pm »

Thank you for the help!
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Getting Civilizations to Make Weapons/Armor Out of New Metals
« Reply #5 on: November 24, 2013, 03:56:14 pm »

Yep, to make other civilizations to use metals, just make a reaction

[REACTION:PERMIT_SAMPLETANIUM]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:1:BAR:NONE:INORGANIC:SAMPLETANIUM][PRODUCT_DIMENSION:150]

And then add [PERMITTED_REACTION:PERMIT_SAMPLETANIUM] to any race you want to use this metal.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository