Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 29 30 [31] 32 33 ... 120

Author Topic: [MODDING] 0.44.x GENERAL MODDING QUESTIONS THREAD - NOW IN ALLCAPS EDITION  (Read 188979 times)

Zydramir

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.44.x questions thread
« Reply #450 on: April 04, 2018, 10:22:57 pm »

Running into a weird issue with my first modded creature.  I wanted to make them shearable for wool. The dwarves are shearing the animals, but they refuse to use the wool for any yarn related purposes. The hair has the [yarn] tag and I don't see what I'm doing wrong.  Anyone have a pointer in the right direction?
Logged

Fatace

  • Bay Watcher
  • Cease hostilities? Never!
    • View Profile
Re: [MODDING] 0.44.x questions thread
« Reply #451 on: April 04, 2018, 10:55:47 pm »

Running into a weird issue with my first modded creature.  I wanted to make them shearable for wool. The dwarves are shearing the animals, but they refuse to use the wool for any yarn related purposes. The hair has the [yarn] tag and I don't see what I'm doing wrong.  Anyone have a pointer in the right direction?

I personally havn't made any creatures that are shearable, but I do recommend going through other creatures with a similar base and see if you are missing something, and double check your typing (I have a bad habit of missing brackets).
Logged
I once had a 30 dwarf glacier fortress once.. was going great till the dwarf merchants brought along a WereKoala and killed everyone...

Fatace

  • Bay Watcher
  • Cease hostilities? Never!
    • View Profile
Re: [MODDING] 0.44.x questions thread
« Reply #452 on: April 04, 2018, 11:06:44 pm »

Are certain entities restricted from meat and certain jobs? Trying to get other civs to work, but apparently the 1 I just tested wouldn't allow me to use meat, or do a lot of jobs, including mining, even tho all of the jobs are permitted.
Logged
I once had a 30 dwarf glacier fortress once.. was going great till the dwarf merchants brought along a WereKoala and killed everyone...

Zydramir

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.44.x questions thread
« Reply #453 on: April 04, 2018, 11:15:08 pm »


I personally havn't made any creatures that are shearable, but I do recommend going through other creatures with a similar base and see if you are missing something, and double check your typing (I have a bad habit of missing brackets).

Yep, did all this!  The relevant yarn and shearing parts are lifted 100% word for word from the llama entry.

It almost seems like it's missing the interaction for a new type of wool in the loom, but I can't find where to check that particular reaction.

Triple checked everything and it all checks out.

[BODY_DETAIL_PLAN:STANDARD_MATERIALS]
      [USE_MATERIAL_TEMPLATE:HOOF:HOOF_TEMPLATE]
      [USE_MATERIAL_TEMPLATE:IVORY:TOOTH_TEMPLATE]
         [STATE_NAME:ALL_SOLID:ivory]
         [STATE_ADJ:ALL_SOLID:ivory]
      [SELECT_MATERIAL:HAIR]
         [STATE_NAME:ALL_SOLID:wool]
         [STATE_ADJ:ALL_SOLID:wool]
         [YARN]
   [BODY_DETAIL_PLAN:STANDARD_TISSUES]
      [USE_TISSUE_TEMPLATE:HOOF:HOOF_TEMPLATE]
      [USE_TISSUE_TEMPLATE:IVORY:IVORY_TEMPLATE]
         [TISSUE_NAME:ivory:NP]
      [SELECT_TISSUE:HAIR]
      [TISSUE_NAME:wool:NP]
   [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]
   [BODY_DETAIL_PLAN:BODY_HAIR_TISSUE_LAYERS:HAIR]
   [SELECT_TISSUE_LAYER:HEART:BY_CATEGORY:HEART]
    [PLUS_TISSUE_LAYER:SKIN:BY_CATEGORY:THROAT]
      [TL_MAJOR_ARTERIES]
   [SELECT_TISSUE_LAYER:HAIR:BY_CATEGORY:ALL]
      [TL_RELATIVE_THICKNESS:10]

[SELECT_CASTE:ALL]
      [SET_TL_GROUP:BY_CATEGORY:ALL:HAIR]
         [TL_COLOR_MODIFIER:BROWN:1]
            [TLCM_NOUN:wool:SINGULAR]
         [TISSUE_LAYER_APPEARANCE_MODIFIER:LENGTH:0:0:0:0:0:0:0]
            [APP_MOD_NOUN:wool:SINGULAR]
            [APP_MOD_RATE:1:DAILY:0:300:0:0:NO_END]
            [APP_MOD_DESC_RANGE:10:50:100:150:200:300]
         [SHEARABLE_TISSUE_LAYER:LENGTH:300]

edit: confirmed that stockpiles have option to store the modded creature's yarn thread and cloth. Additionally clothier shop detail specifying has OPTION to make an item specifically out of the modded creature's yarn. The farmer's workshop task SPIN HAIR INTO THREAD is where my problem is I think, as it is not recognizing the modded creature hair as a thing that exists.

Any thoughts?
« Last Edit: April 04, 2018, 11:40:11 pm by Zydramir »
Logged

Fatace

  • Bay Watcher
  • Cease hostilities? Never!
    • View Profile
Re: [MODDING] 0.44.x questions thread
« Reply #454 on: April 05, 2018, 12:06:02 am »

You may need to make a new interaction for it then, not completely sure tho, I would just suggest experiementing till someone responds who knows :)
Logged
I once had a 30 dwarf glacier fortress once.. was going great till the dwarf merchants brought along a WereKoala and killed everyone...

Zydramir

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.44.x questions thread
« Reply #455 on: April 05, 2018, 12:17:10 am »

That's what I'm thinking but I don't know WHERE the interactions for the farmer's workshop even are.
Logged

Fatace

  • Bay Watcher
  • Cease hostilities? Never!
    • View Profile
Re: [MODDING] 0.44.x questions thread
« Reply #456 on: April 05, 2018, 12:53:43 am »

I think you might need to make a completely new reaction then



Edit: I just now realized ive been saying interactions, Ive been meaning reactions lol
been busy with interactions and secrets for to long that im mixing things up ;x
« Last Edit: April 05, 2018, 01:12:26 am by Fatace »
Logged
I once had a 30 dwarf glacier fortress once.. was going great till the dwarf merchants brought along a WereKoala and killed everyone...

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] 0.44.x questions thread
« Reply #457 on: April 05, 2018, 01:05:34 am »

That's what I'm thinking but I don't know WHERE the interactions for the farmer's workshop even are.

They're not in the raws.

FantasticDorf

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.44.x questions thread
« Reply #458 on: April 05, 2018, 04:03:27 am »

That's what I'm thinking but I don't know WHERE the interactions for the farmer's workshop even are.

They're not in the raws.

I think he means reactions, there's a reference in reaction_other to the 'process_to_bag' farmer workshop reaction which might help them, and some other usefully listed workshop tags on the wiki poking around.

[BUILDING:FARMER:\\hotkey here//]
Logged

Jazz Cat

  • Bay Watcher
  • Adept stringed instrumentalist
    • View Profile
Re: [MODDING] 0.44.x questions thread
« Reply #459 on: April 05, 2018, 04:13:44 am »

Running into a weird issue with my first modded creature.  I wanted to make them shearable for wool. The dwarves are shearing the animals, but they refuse to use the wool for any yarn related purposes. The hair has the [yarn] tag and I don't see what I'm doing wrong.  Anyone have a pointer in the right direction?

The tags you posted look all right to me; I've got the same stuff on my cave shambler and my dwarves make cloth out of fleece just fine. Can you post the full raw for your creature? Maybe you're missing a bracket somewhere or something.
Logged
Give your dwarves a pet
My holiday mod (only offensive to elves)
The check-laundry script

Quote
Just give the Crossbow weapon the [AMMO:CROSSBOW] tag in the raws. You can make a crossbow that shoots crossbows.

Zydramir

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.44.x questions thread
« Reply #460 on: April 05, 2018, 05:05:13 am »

[CREATURE:WOOLY_BOAR]
   [DESCRIPTION:A medium-sized beast, known for its tusks and powerful build.]
   [NAME:wooly boar:wooly boars:wooly boar]
   [CHILD:1][GENERAL_CHILD_NAME:wooly boar piglet:wooly boar piglets]
   [CREATURE_TILE:77][COLOR:6:0:0]
   [CREATURE_CLASS:MAMMAL]
   [PETVALUE:50]
   [COMMON_DOMESTIC][TRAINABLE][PET]
   [VISION_ARC:50:310]
   [PREFSTRING:tusks]
   [PREFSTRING:ferocious charges]
   [PREFSTRING:wooly bodies]
   [GRASSTRAMPLE:0]
   [LARGE_ROAMING]
   [NATURAL]
   [BODY:QUADRUPED_NECK_HOOF:TAIL:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:SKULL:MOUTH:GENERIC_TEETH:2TUSKS:RIBCAGE]
   [BODY_DETAIL_PLAN:STANDARD_MATERIALS]
      [USE_MATERIAL_TEMPLATE:HOOF:HOOF_TEMPLATE]
      [USE_MATERIAL_TEMPLATE:IVORY:TOOTH_TEMPLATE]
         [STATE_NAME:ALL_SOLID:ivory]
         [STATE_ADJ:ALL_SOLID:ivory]
      [SELECT_MATERIAL:HAIR]
         [STATE_NAME:ALL_SOLID:wool]
         [STATE_ADJ:ALL_SOLID:wool]
         [YARN]
   [BODY_DETAIL_PLAN:STANDARD_TISSUES]
      [USE_TISSUE_TEMPLATE:HOOF:HOOF_TEMPLATE]
      [USE_TISSUE_TEMPLATE:IVORY:IVORY_TEMPLATE]
         [TISSUE_NAME:ivory:NP]
      [SELECT_TISSUE:HAIR]
      [TISSUE_NAME:wool:NP]
   [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]
   [BODY_DETAIL_PLAN:BODY_HAIR_TISSUE_LAYERS:HAIR]
   [SELECT_TISSUE_LAYER:HEART:BY_CATEGORY:HEART]
    [PLUS_TISSUE_LAYER:SKIN:BY_CATEGORY:THROAT]
      [TL_MAJOR_ARTERIES]
   [SELECT_TISSUE_LAYER:HAIR:BY_CATEGORY:ALL]
      [TL_RELATIVE_THICKNESS:10]
   [BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS]
   [BODY_DETAIL_PLAN:HUMANOID_RIBCAGE_POSITIONS]
   [USE_MATERIAL_TEMPLATE:SINEW:SINEW_TEMPLATE]
   [TENDONS:LOCAL_CREATURE_MAT:SINEW:200]
   [LIGAMENTS:LOCAL_CREATURE_MAT:SINEW:200]
   [HAS_NERVES]
   [USE_MATERIAL_TEMPLATE:BLOOD:BLOOD_TEMPLATE]
   [BLOOD:LOCAL_CREATURE_MAT:BLOOD:LIQUID]
   [CREATURE_CLASS:GENERAL_POISON]
   [GETS_WOUND_INFECTIONS]
   [GETS_INFECTIONS_FROM_ROT]
   [USE_MATERIAL_TEMPLATE:PUS:PUS_TEMPLATE]
   [PUS:LOCAL_CREATURE_MAT:PUS:LIQUID]
   [BODY_SIZE:0:0:8000]
   [BODY_SIZE:1:0:40000]
   [BODY_SIZE:2:0:80000]
   [BODY_APPEARANCE_MODIFIER:LENGTH:90:95:98:100:102:105:110]
   [BODY_APPEARANCE_MODIFIER:HEIGHT:90:95:98:100:102:105:110]
   [BODY_APPEARANCE_MODIFIER:BROADNESS:90:95:98:100:102:105:110]
   [MAXAGE:15:20]
   [ATTACK:KICK:BODYPART:BY_CATEGORY:HOOF_FRONT]
      [ATTACK_SKILL:STANCE_STRIKE]
      [ATTACK_VERB:kick:kicks]
      [ATTACK_CONTACT_PERC:100]
      [ATTACK_PREPARE_AND_RECOVER:4:4]
      [ATTACK_PRIORITY:MAIN]
      [ATTACK_FLAG_WITH]
      [ATTACK_FLAG_BAD_MULTIATTACK]
   [ATTACK:KICK:BODYPART:BY_CATEGORY:HOOF_REAR]
      [ATTACK_SKILL:STANCE_STRIKE]
      [ATTACK_VERB:kick:kicks]
      [ATTACK_CONTACT_PERC:100]
      [ATTACK_PREPARE_AND_RECOVER:4:4]
      [ATTACK_PRIORITY:MAIN]
      [ATTACK_FLAG_WITH]
      [ATTACK_FLAG_BAD_MULTIATTACK]
   [ATTACK:BITE:CHILD_BODYPART_GROUP:BY_CATEGORY:HEAD:BY_CATEGORY:TOOTH]
      [ATTACK_SKILL:BITE]
      [ATTACK_VERB:bite:bites]
      [ATTACK_CONTACT_PERC:100]
      [ATTACK_PENETRATION_PERC:100]
      [ATTACK_FLAG_EDGE]
      [ATTACK_PREPARE_AND_RECOVER:3:3]
      [ATTACK_PRIORITY:SECOND]
      [ATTACK_FLAG_CANLATCH]
   [APPLY_CREATURE_VARIATION:TUSK_STAB_ATTACK]
   [DIURNAL]
   [HOMEOTHERM:10065]
   [APPLY_CREATURE_VARIATION:STANDARD_QUADRUPED_GAITS:900:549:366:183:1900:2900] 48 kph
   [APPLY_CREATURE_VARIATION:STANDARD_SWIMMING_GAITS:9000:8900:8825:8775:9500:9900] 1 kph, NO DATA
   [APPLY_CREATURE_VARIATION:STANDARD_CRAWLING_GAITS:9000:8900:8825:8775:9500:9900] 1 kph, NO DATA
   [SWIMS_INNATE]
   [MUNDANE]
   [CASTE:FEMALE]
      [FEMALE]
      [MULTIPLE_LITTER_RARE]
      [CASTE_NAME:wooly boar sow:wooly boar sows:wooly boar sow]
      [USE_MATERIAL_TEMPLATE:MILK:MILK_TEMPLATE]
         [STATE_NAME:ALL_SOLID:frozen boar's milk]
         [STATE_ADJ:ALL_SOLID:frozen boar's milk]
         [STATE_NAME:LIQUID:boar's milk]
         [STATE_ADJ:LIQUID:boar's milk]
         [STATE_NAME:GAS:boiling boar's milk]
         [STATE_ADJ:GAS:boiling boar's milk]
         [PREFIX:NONE]
      [MILKABLE:LOCAL_CREATURE_MAT:MILK:20000]
      [USE_MATERIAL_TEMPLATE:CHEESE:CREATURE_CHEESE_TEMPLATE]
         [STATE_NAME:SOLID:boar cheese]
         [STATE_ADJ:SOLID:boar cheese]
         [STATE_NAME:SOLID_POWDER:boar cheese powder]
         [STATE_ADJ:SOLID_POWDER:boar cheese powder]
         [STATE_NAME:LIQUID:melted boar cheese]
         [STATE_ADJ:LIQUID:melted boar cheese]
         [STATE_NAME:GAS:boiling boar cheese]
         [STATE_ADJ:GAS:boiling boar cheese]
         [PREFIX:NONE]
   [CASTE:MALE]
      [MALE]
      [SET_BP_GROUP:BY_TYPE:LOWERBODY][BP_ADD_TYPE:GELDABLE]
      [CASTE_NAME:wooly boar:wooly boars:wooly boar]
   [SELECT_CASTE:ALL]
      [SET_TL_GROUP:BY_CATEGORY:ALL:HAIR]
         [TL_COLOR_MODIFIER:BROWN:1]
            [TLCM_NOUN:wool:SINGULAR]
         [TISSUE_LAYER_APPEARANCE_MODIFIER:LENGTH:0:0:0:0:0:0:0]
            [APP_MOD_NOUN:wool:SINGULAR]
            [APP_MOD_RATE:1:DAILY:0:300:0:0:NO_END]
            [APP_MOD_DESC_RANGE:10:50:100:150:200:300]
         [SHEARABLE_TISSUE_LAYER:LENGTH:300]
      [SET_TL_GROUP:BY_CATEGORY:ALL:SKIN]
   [TL_COLOR_MODIFIER:BROWN:1:BURNT_UMBER:1:CINNAMON:1:COPPER:1:DARK_BROWN:1:DARK_PEACH:1:DARK_TAN:1:ECRU:1:PALE_BROWN:1:PALE_CHESTNUT:1:PALE_PINK:1:PEACH:1:PINK:1:RAW_UMBER:1:SEPIA:1:TAN:1:TAUPE_PALE:1:TAUPE_SANDY:1]
            [TLCM_NOUN:skin:SINGULAR]
      [SET_TL_GROUP:BY_CATEGORY:EYE:EYE]
         [TL_COLOR_MODIFIER:IRIS_EYE_BROWN:1]
            [TLCM_NOUN:eyes:PLURAL]

Here's the full raws.

And yeah, I was talking about reactions. I'm sleepy. :P
Logged

FantasticDorf

  • Bay Watcher
    • View Profile
Re: [MODDING] 0.44.x questions thread
« Reply #461 on: April 05, 2018, 07:26:17 am »

Im aware it may not be the neatest to copy paste, but using the # button in the forum's button tool bar will keep all your RAW's together and in proper syntax order. I can see you've put a lot of spaces into it so please correct those. (Top tip, [TAB] on the keyboard puts in code spaces for notepad while you're writing RAW's) i've cleaned up and prepped it for you with //comments, which won't affect the code and allow me to point out parts that went wrong.

> Incidentally i did move some body BP tags around a little bit so i could track them, nothing has been lost so just double-check through.

[Ready to use Wooly Boar code within]
Spoiler (click to show/hide)

RAW's are difficult to get into, id appreciate a bit of peer-double checking from other modders here and to hear whether this works for you Zydramir. This should be fine to copy and paste, just be careful with your spacing even if you have the right tags. The [YARN] tag notably was on the wrong line, and the name of wool didn't have a standard tissues tag to reference from.
« Last Edit: April 05, 2018, 07:28:51 am by FantasticDorf »
Logged

TomiTapio

  • Bay Watcher
  • OldGenesis since 2012
    • View Profile
    • My Flickr animal photos
Re: [MODDING] 0.44.x questions thread
« Reply #462 on: April 05, 2018, 07:50:18 am »

In OldGenesis I have llamas with
   [BODY_DETAIL_PLAN:FURMAMMAL_MATERIALS]
      [USE_MATERIAL_TEMPLATE:HAIR:HAIR_YARNABLE_TEMPLATE]

and that HAIR_YARNABLE_TEMPLATE has
[MATERIAL_REACTION_PRODUCT:THREAD_MAT:LOCAL_CREATURE_MAT:THREAD] --core feature

and the FURMAMMAL_MATERIALS has
[ADD_MATERIAL:THREAD:THREAD_ANIMAL_TEMPLATE]
and THREAD_ANIMAL_TEMPLATE has [YARN] tag.

Hope this clarifies what is needed for woolly antics. (splitting hair into yarnable and not-yarnable allows custom reaction "cremate bodyparts" to destroy only the not-yarnable)
« Last Edit: April 05, 2018, 08:26:07 am by TomiTapio »
Logged
==OldGenesis mod== by Deon & TomiTapio. Five wood classes, four leather classes. Nine enemy civs. So much fine-tuning.
47.05e release: http://dffd.bay12games.com/who.php?id=1538
OldGenesis screenshots: https://twitter.com/hashtag/OldGenesis?src=hashtag_click&f=image
My Finnish language file: http://dffd.bay12games.com/file.php?id=14884

Fatace

  • Bay Watcher
  • Cease hostilities? Never!
    • View Profile
Re: [MODDING] 0.44.x questions thread
« Reply #463 on: April 05, 2018, 03:45:50 pm »

Are logs not able to be used in smelting reactions? This doesn't seem to be working the way its intended:

[REACTION:ECHANORIATIUM_MAKING]
[NAME:make echanoriatium bars]
[BUILDING:SMELTER:NONE]
[REAGENT:A:150:BAR:NO_SUBTYPE:METAL:ARCANIUM]
[REAGENT:B:5:WOOD:NO_SUBTYPE:PLANT_MAT:ECHANORIAT]
[PRODUCT:100:2:BAR:NO_SUBTYPE:METAL:ECHANORIATIUM][PRODUCT_DIMENSION:150]
[FUEL]
[SKILL:SMELT]

They only grab the arcanium but completely ignore the new wood ive created... the wood/logs work fine as trees, but they don't bother with grabbing it...
Logged
I once had a 30 dwarf glacier fortress once.. was going great till the dwarf merchants brought along a WereKoala and killed everyone...

Jazz Cat

  • Bay Watcher
  • Adept stringed instrumentalist
    • View Profile
Re: [MODDING] 0.44.x questions thread
« Reply #464 on: April 05, 2018, 04:22:36 pm »

I think the item type for a log is LOG, not WOOD. [REAGENT:B:5:LOG:NONE:PLANT_MAT:ECHANORIAT]. (I use NONE, NO_SUBTYPE is an alias based on an older version, I think?)
Logged
Give your dwarves a pet
My holiday mod (only offensive to elves)
The check-laundry script

Quote
Just give the Crossbow weapon the [AMMO:CROSSBOW] tag in the raws. You can make a crossbow that shoots crossbows.
Pages: 1 ... 29 30 [31] 32 33 ... 120