Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 329 330 [331] 332 333 ... 544

Author Topic: [MODDING] 0.34. QUESTIONS THREAD  (Read 1054885 times)

Tuck_Lion

  • Bay Watcher
  • pass the lodestar
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #4950 on: April 27, 2013, 10:25:47 pm »

I am terribly new to modding Dwarf Fortress and so far I have achieved creating two new civs and some very minor modding to creatures. Currently I'm attempting to understand reaction modding, and it all seems quite digestable, and have made a test of my knowledge so far to create a reaction which takes a barrel full of venom and moves it into a large pot. This is what I have:
Spoiler (click to show/hide)
This job takes place at a custom building I've thrown in named "Alchemist's Lab". I would like if somebody more experienced than me would proofread the reaction; when I attempt to load a world with this addition to the reaction_other.txt file, I'm given the error "Missing Reaction Definition" or something similar.
Logged
Bay12 pushed self into fruit math. Tuck Lion was just the mechanism for bay12's latent fruit-math fetish.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #4951 on: April 27, 2013, 10:30:24 pm »

[PRODUCT:100:5:LIQUID_MISC:NONE:GET_MATERIAL_FROM_REAGENT:venom:NONE:NONE] should be:
[PRODUCT:100:1:LIQUID_MISC:NONE:GET_MATERIAL_FROM_REAGENT:venom:NONE]

One NONE less, and since your 150 input equals 1 output you shouldnt use 5, but only 1 as a product. Otherwise you get 5 times the poison. Might I ask why you want to move it from barrel to pot?
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Tuck_Lion

  • Bay Watcher
  • pass the lodestar
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #4952 on: April 28, 2013, 01:06:45 am »

[PRODUCT:100:5:LIQUID_MISC:NONE:GET_MATERIAL_FROM_REAGENT:venom:NONE:NONE] should be:
[PRODUCT:100:1:LIQUID_MISC:NONE:GET_MATERIAL_FROM_REAGENT:venom:NONE]

One NONE less, and since your 150 input equals 1 output you shouldnt use 5, but only 1 as a product. Otherwise you get 5 times the poison. Might I ask why you want to move it from barrel to pot?
Good question! This little addition came about from inspiration to add some consistency to the two civs I had been working on.
Spoiler (click to show/hide)

TL;DR Do-it-yourself blowdarts !!science!!

Edit: After substituting in what you gave me, I am receiving the same error message. Is there anything I need to add to the Giant Cave Spider's raws or anything?
« Last Edit: April 28, 2013, 01:28:58 am by Tuck_Lion »
Logged
Bay12 pushed self into fruit math. Tuck Lion was just the mechanism for bay12's latent fruit-math fetish.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #4953 on: April 28, 2013, 06:58:47 am »

I will try to make it a bit easier for you. There is a working dfhack plugin to apply poisons to weapons, ammo or trapcomps. Its called add_spatter. You simply install dfhack r3, it comes included. Nothing else you have to do.

Code: [Select]
[REACTION:SPATTER_ADD_AMMO_VENOM]=> this must be exactly that name, for the plugin to find it, at least the front part, with SPATTER_ADD_
[NAME:coat with venom (ammo)]
[BUILDING:TOXICIST:CUSTOM_P] => whatever, thats just the one I use
[REAGENT:extract:150:NONE:NONE:NONE:NONE]
[MIN_DIMENSION:150]
[REACTION_CLASS:ADD_SPATTER_VENOM] => this must be exactly that name, for the plugin to find it.
[REAGENT:extract container:1:NONE:NONE:NONE:NONE]
[CONTAINS:extract]
[PRESERVE_REAGENT]
[DOES_NOT_DETERMINE_PRODUCT_AMOUNT]
[REAGENT:object:25:AMMO:NONE:NONE:NONE]
[PRESERVE_REAGENT]
[REAGENT:tallow:1:GLOB:NONE:NONE:NONE][REACTION_CLASS:TALLOW][UNROTTEN]
[HAS_MATERIAL_REACTION_PRODUCT:SOAP_MAT]
[IMPROVEMENT:800:object:COVERED:GET_MATERIAL_FROM_REAGENT:extract:NONE]
[SKILL:WAX_WORKING]

Code: [Select]
[MATERIAL_TEMPLATE:CREATURE_EXTRACT_TEMPLATE]
[REACTION_CLASS:ADD_SPATTER_VENOM] => only this is new
[STATE_COLOR:ALL_SOLID:WHITE]
[STATE_NAME:ALL_SOLID:frozen extract]
[STATE_ADJ:ALL_SOLID:frozen extract]
[STATE_COLOR:LIQUID:WHITE]
[STATE_NAME:LIQUID:extract]
[STATE_ADJ:LIQUID:extract]
[STATE_COLOR:GAS:WHITE]
[STATE_NAME:GAS:boiling extract]
[STATE_ADJ:GAS:boiling extract]
[DISPLAY_COLOR:7:0:1]
[MATERIAL_VALUE:25]
[SPEC_HEAT:4181]
[IGNITE_POINT:NONE]
[MELTING_POINT:9950]
[BOILING_POINT:10200]
[HEATDAM_POINT:NONE]
[COLDDAM_POINT:NONE]
[MAT_FIXED_TEMP:NONE]
[SOLID_DENSITY:1200]
[LIQUID_DENSITY:1200]
[MOLAR_MASS:20000]
[IMPACT_YIELD:10000]
[IMPACT_FRACTURE:10000]
[IMPACT_STRAIN_AT_YIELD:100]
[COMPRESSIVE_YIELD:10000]
[COMPRESSIVE_FRACTURE:10000]
[COMPRESSIVE_STRAIN_AT_YIELD:100]
[TENSILE_YIELD:10000]
[TENSILE_FRACTURE:10000]
[TENSILE_STRAIN_AT_YIELD:100]
[TORSION_YIELD:10000]
[TORSION_FRACTURE:10000]
[TORSION_STRAIN_AT_YIELD:100]
[SHEAR_YIELD:6600] used high salinity ice
[SHEAR_FRACTURE:6600]
[SHEAR_STRAIN_AT_YIELD:100]
[BENDING_YIELD:10000]
[BENDING_FRACTURE:10000]
[BENDING_STRAIN_AT_YIELD:100]
[MAX_EDGE:500]
[ABSORPTION:100]
[LIQUID_MISC_CREATURE]
[ROTS]

This is it. It accepts any creature extract, which is usually venom and poison, and from any container. Then open all creature files with notepad++ and search and replace this:

Code: [Select]
[USE_MATERIAL_TEMPLATE:VENOM:CREATURE_EXTRACT_TEMPLATE]with
Code: [Select]
[USE_MATERIAL_TEMPLATE:VENOM:CREATURE_EXTRACT_TEMPLATE][MILKABLE:LOCAL_CREATURE_MAT:VENOM:20000]
and

Code: [Select]
[USE_MATERIAL_TEMPLATE:POISON:CREATURE_EXTRACT_TEMPLATE]with
Code: [Select]
[USE_MATERIAL_TEMPLATE:POISON:CREATURE_EXTRACT_TEMPLATE][MILKABLE:LOCAL_CREATURE_MAT:POISON:20000]
And now you can use any bought creature poison or venom to coat your ammo, and milk any pet your have that produces poison. It will create the poison directly into a bucket, which is accepted by the coating reaction as well.
« Last Edit: April 28, 2013, 07:00:26 am by Meph »
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Tuck_Lion

  • Bay Watcher
  • pass the lodestar
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #4954 on: April 28, 2013, 01:15:13 pm »

Ok, thanks. I figured I might eventually resort to something like this.
Edit: Alright, I've had my Fun frolicking about the raws for now. I'm gonna move on over to masterwork.
« Last Edit: April 28, 2013, 04:07:55 pm by Tuck_Lion »
Logged
Bay12 pushed self into fruit math. Tuck Lion was just the mechanism for bay12's latent fruit-math fetish.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #4955 on: April 28, 2013, 10:58:52 pm »

Could I avoid loyality cascades if I change [ETHIC:KILL_ENTITY_MEMBER:ONLY_IF_SANCTIONED] to [ETHIC:KILL_ENTITY_MEMBER:ACCEPTABLE]  ?
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #4956 on: April 28, 2013, 11:04:38 pm »

No.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #4957 on: April 28, 2013, 11:20:33 pm »

Ok, thank you. :)
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Trapezohedron

  • Bay Watcher
  • No longer exists here.
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #4958 on: April 29, 2013, 09:01:15 am »

Is [WEATHER_CREEPING_GAS] gas, or is it dust?
Logged
Thank you for all the fish. It was a good run.

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #4959 on: April 29, 2013, 09:10:08 am »

Gas. Dust would physically push people around, which is not the case.
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Trapezohedron

  • Bay Watcher
  • No longer exists here.
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #4960 on: April 29, 2013, 09:31:05 am »

So, I guess it would be fine if I set custom creeping gasses to INHALED?

Thanks Meph. :D
Logged
Thank you for all the fish. It was a good run.

Vanzetti

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #4961 on: April 29, 2013, 01:19:52 pm »

Is it possible to create a playable sentient undead race in DF? Something akin to Forsaken from World of Warcraft. Undead, but not necessary evil.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #4962 on: April 29, 2013, 05:55:44 pm »

Yes, it is. Good luck. Need any help, we're right here :V

tahujdt

  • Bay Watcher
  • The token conservative
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #4963 on: April 29, 2013, 10:54:04 pm »

Yes, it is. Good luck. Need any help, we're right here :V
If you plan on raising corpses, please be aware that they cannot hold noble positions.
Logged
DFBT the Dwarf: The only community podcast for Dwarf Fortress!
Tahu-R-TOA-1, Troubleshooter
Quote
I suggest that we add a clause permitting the keelhauling of anyone who suggests a plan involving "zombify the crew".
Quote from: MNII
Friend Computer, can you repair the known universe, please?

Trapezohedron

  • Bay Watcher
  • No longer exists here.
    • View Profile
Re: [MODDING] 0.34. QUESTIONS THREAD
« Reply #4964 on: April 30, 2013, 05:20:31 am »

Just for confirmation, is it possible having two [SYNDROME] tokens in one inorganic?

As in:
[SYNDROME]
effects
[SYNDROME]
effects
Logged
Thank you for all the fish. It was a good run.
Pages: 1 ... 329 330 [331] 332 333 ... 544