Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Does anyone else do this?  (Read 668 times)

Kyubee

  • Bay Watcher
  • modding is hard
    • View Profile
Does anyone else do this?
« on: January 21, 2017, 06:49:57 pm »

When I play, I frequently mod a lot of the vanilla metals to be usable for weapons. As impractical as it may be, sometimes i get a handful of good things, for example, brass and lead mauls for my weapon traps. At the same time, my adventurers always end up starting with Large Electrum Daggers and it's quite annoying. Anyways, unrelatedly, is it possible to code alloys of alloys? for example, mixing Lead, Steel, and Brass into a very heavy, but still sharp and resiliant, material? I mean, it should be, but before I start trying I wanna know if someone else tried it and it has a game breaking bug
« Last Edit: January 21, 2017, 06:56:41 pm by Kyubee »
Logged
My (long abandoned) mod: http://www.bay12forums.com/smf/index.php?topic=176501.0
The litten is wandering around the dump now, occasionally exploding.

Ryga_

  • Bay Watcher
    • View Profile
Re: Does anyone else do this?
« Reply #1 on: January 22, 2017, 08:23:52 pm »

You would have to write your own custom reaction requiring those metal alloys and create a custom inorganic material with the specifications for the new alloy. It won't automatically combine them for you, so you have to define everything in the raws yourself :)
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Does anyone else do this?
« Reply #2 on: January 23, 2017, 01:28:05 am »

Anyways, unrelatedly, is it possible to code alloys of alloys? for example, mixing Lead, Steel, and Brass into a very heavy, but still sharp and resiliant, material? I mean, it should be, but before I start trying I wanna know if someone else tried it and it has a game breaking bug

Yes, easily, here's an example.

Code: [Select]
[INORGANIC:HIGH_SPEED_STEEL_PUTNAM]
    [USE_MATERIAL_TEMPLATE:METAL_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:high-speed steel]
[STATE_NAME_ADJ:LIQUID:molten high-speed steel]
[STATE_NAME_ADJ:GAS:boiling high-speed steel]
[DISPLAY_COLOR:0:7:1]
[BUILD_COLOR:0:7:1]
[MATERIAL_VALUE:50]
[SPEC_HEAT:500] used steel
[MELTING_POINT:12718]
[BOILING_POINT:14968]
[SOLID_DENSITY:7850]
[LIQUID_DENSITY:6980]
[MOLAR_MASS:55485]
[ITEMS_WEAPON][ITEMS_WEAPON_RANGED][ITEMS_AMMO][ITEMS_DIGGER][ITEMS_ARMOR]
[ITEMS_HARD]
[ITEMS_METAL]
[ITEMS_BARRED]
[ITEMS_SCALED]
[IMPACT_YIELD:2300000]
[IMPACT_FRACTURE:3300000]
[IMPACT_STRAIN_AT_YIELD:900]
[COMPRESSIVE_YIELD:2300000]
[COMPRESSIVE_FRACTURE:3300000]
[COMPRESSIVE_STRAIN_AT_YIELD:900] bulk modulus 255.5 GPa
[TENSILE_YIELD:500000]
[TENSILE_FRACTURE:900000]
[TENSILE_STRAIN_AT_YIELD:233] young's modulus 215 GPa
[TORSION_YIELD:500000]
[TORSION_FRACTURE:900000]
[TORSION_STRAIN_AT_YIELD:632]
[SHEAR_YIELD:500000]
[SHEAR_FRACTURE:900000]
[SHEAR_STRAIN_AT_YIELD:632] shear modulus 79.1 GPa
[BENDING_YIELD:500000]
[BENDING_FRACTURE:900000]
[BENDING_STRAIN_AT_YIELD:233]
[MAX_EDGE:10000]
[STATE_COLOR:ALL:GRAY]

And the reaction to make it:

Code: [Select]
[REACTION:HIGH_SPEED_STEEL_MAKING]
    [NAME:make high speed steel] 1.5% carbon .5% silicon 1% manganese 1% nickel 5% chromium 4.5% molybdenum 6% vanadium 2.5% tungsten
    [BUILDING:SMELTER:CUSTOM_H]
    [REAGENT:steel:900:BAR:NONE:INORGANIC:STEEL]
    [REAGENT:vanadium:150:BAR:NONE:INORGANIC:VANADIUM_PUTNAM]
    [REAGENT:chromium:150:BAR:NONE:INORGANIC:CHROMIUM_PUTNAM]
    [REAGENT:tungsten:150:BAR:NONE:INORGANIC:TUNGSTEN_PUTNAM]
    [REAGENT:molybdenum:150:BAR:NONE:INORGANIC:MOLYBDENUM_PUTNAM]
    [PRODUCT:100:10:BAR:NONE:INORGANIC:HIGH_SPEED_STEEL_PUTNAM][PRODUCT_DIMENSION:150]
    [CATEGORY:MATERIALS_PLUS]
    [DESCRIPTION:Takes steel, vanadium, chromium, tungsten and molybdenum to make high speed steel, which is about 16% stronger than steel.]
    [DESCRIPTION:The fact that 6 bars of steel go in and 10 bars of high-steel come out makes this a very worthy alloy.]
    [SKILL:SMELT]

Kyubee

  • Bay Watcher
  • modding is hard
    • View Profile
Re: Does anyone else do this?
« Reply #3 on: January 23, 2017, 09:49:55 pm »

You would have to write your own custom reaction requiring those metal alloys and create a custom inorganic material with the specifications for the new alloy. It won't automatically combine them for you, so you have to define everything in the raws yourself :)

I knew that much, I just wanted to be sure; I intend on making a powerful late game metal, with the weight of lead and combat effectiveness of adamantine, to represent the peak of one race's achievements
Logged
My (long abandoned) mod: http://www.bay12forums.com/smf/index.php?topic=176501.0
The litten is wandering around the dump now, occasionally exploding.