Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2 3

Author Topic: Spiders  (Read 5129 times)

Kalidari

  • Escaped Lunatic
    • View Profile
Spiders
« on: July 07, 2015, 06:40:49 pm »

So in an effort to ease silk production i tried to add webbing to different creatures but the only web attack i could get to work was the one from the Giant Cave Spider, what i want is what the normal cave spiders do, just leave some lying around every so often.

Is there any way to add that ability to, say, cats?

Or could i tame cave spiders (as common domestic pets) and embark with them?
Logged

Kalidari

  • Escaped Lunatic
    • View Profile
Re: Spiders
« Reply #1 on: July 07, 2015, 08:48:26 pm »

Would adding these to an animal allow it to just leave web as it moves around?



[WEBBER:LOCAL_CREATURE_MAT:SILK]
[USE_MATERIAL_TEMPLATE:SILK:SILK_TEMPLATE]

I'll test it anyway and see if it works
Logged

CulixCupric

  • Bay Watcher
    • View Profile
Re: Spiders
« Reply #2 on: September 16, 2015, 02:46:17 pm »

here, have a brand new domestic barn spider raw fragment...

Code: [Select]
[CREATURE:SPIDER_DOMESTIC]
[DESCRIPTION:A small arachnid, domesticated for silk production.]
[NAME:barn spider:barn spiders:barn spider]
[CASTE_NAME:barn spider:barn spiders:barn spider]
[CREATURE_TILE:161][COLOR:7:0:0]
[CARNIVORE]
[PETVALUE:28]
[PREFSTRING:soft silk]
[PREFSTRING:shiny carapace]
[LARGE_ROAMING]
[ROOT_AROUND]
[HUNTS_VERMIN]
[COMMON_DOMESTIC]
[BENIGN][MEANDERER][PET]
[PARALYZEIMMUNE]
[WEBIMMUNE]
[NATURAL]
[BIOME:SUBTERRANEAN_WATER]
[BIOME:SUBTERRANEAN_CHASM]
[UNDERGROUND_DEPTH:1:2]
[POPULATION_NUMBER:25:50]
[SMALL_REMAINS]
[APPLY_CREATURE_VARIATION:STANDARD_WALKING_GAITS:9000:8900:8825:8775:9500:9900] 1 kph
[APPLY_CREATURE_VARIATION:STANDARD_CRAWLING_GAITS:9000:8900:8825:8775:9500:9900] 1 kph
[APPLY_CREATURE_VARIATION:STANDARD_CLIMBING_GAITS:9000:8900:8825:8775:9500:9900] 1 kph
[STANCE_CLIMBER][NATURAL_SKILL:CLIMBING:15]
[ALL_ACTIVE]
[NO_SLEEP]
[HOMEOTHERM:10040]
[LOW_LIGHT_VISION:10000]
[NOT_BUTCHERABLE]
[NOPAIN][EXTRAVISION][NOSTUN][NOFEAR]
[NOBONES]
[BODY:SPIDER:2EYES:HEART:GUTS:BRAIN:MOUTH]
[BODY_DETAIL_PLAN:CHITIN_MATERIALS]
[BODY_DETAIL_PLAN:CHITIN_TISSUES]
[USE_MATERIAL_TEMPLATE:VENOM:CREATURE_EXTRACT_TEMPLATE]
[STATE_NAME:ALL_SOLID:frozen barn spider venom]
[STATE_ADJ:ALL_SOLID:frozen barn spider venom]
[STATE_NAME:LIQUID:barn spider venom]
[STATE_ADJ:LIQUID:barn spider venom]
[STATE_NAME:GAS:boiling barn spider venom]
[STATE_ADJ:GAS:boiling barn spider venom]
[PREFIX:NONE]
[ENTERS_BLOOD]
[SYNDROME]
[SYN_NAME:barn spider bite]
[SYN_AFFECTED_CLASS:GENERAL_POISON]
[SYN_IMMUNE_CREATURE:SPIDER_CAVE:ALL]
[SYN_INJECTED]
[CE_DIZZINESS:SEV:1:PROB:10:RESISTABLE:START:1:PEAK:100:END:2]
[USE_MATERIAL_TEMPLATE:SILK:SILK_TEMPLATE]
[EXTRACT:LOCAL_CREATURE_MAT:VENOM]
[WEBBER:LOCAL_CREATURE_MAT:SILK]
[BODY_DETAIL_PLAN:EXOSKELETON_TISSUE_LAYERS:CHITIN:FAT:MUSCLE]
[BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS]
[USE_MATERIAL_TEMPLATE:SINEW:SINEW_TEMPLATE]
[TENDONS:LOCAL_CREATURE_MAT:SINEW:200]
[LIGAMENTS:LOCAL_CREATURE_MAT:SINEW:200]
[HAS_NERVES]
[USE_MATERIAL_TEMPLATE:ICHOR:ICHOR_TEMPLATE]
[BLOOD:LOCAL_CREATURE_MAT:ICHOR: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:50]
[MAXAGE:1:1]
[HOMEOTHERM:10040]
[CASTE:FEMALE]
[FEMALE]
[LAYS_EGGS]
[EGG_MATERIAL:LOCAL_CREATURE_MAT:EGGSHELL:SOLID]
[EGG_MATERIAL:LOCAL_CREATURE_MAT:EGG_WHITE:LIQUID]
[EGG_MATERIAL:LOCAL_CREATURE_MAT:EGG_YOLK:LIQUID]
[EGG_SIZE:60]
[CLUTCH_SIZE:3:5]
[CASTE:MALE]
[MALE]
[SELECT_CASTE:ALL]
[SET_TL_GROUP:BY_CATEGORY:ALL:CHITIN]
[TL_COLOR_MODIFIER:WHITE:1]
[TLCM_NOUN:chitin:SINGULAR]
[SET_TL_GROUP:BY_CATEGORY:EYE:EYE]
[TL_COLOR_MODIFIER:BLACK:1]
[TLCM_NOUN:eyes:PLURAL]
Logged
Don't know what to put here... let me know if you have any ideas...

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Spiders
« Reply #3 on: September 16, 2015, 03:03:15 pm »

I believe it's currently only vermin creatures that place webs around randomly, Giant cave spiders spew webs out as an interaction instead of a random chance on tick. So if you made a new domesticated vermin pet that you could buy and then release from the cages/traps and have them do their thing is one way, however I don't know the timer they have until they despawn/vanish/leave
Logged

CulixCupric

  • Bay Watcher
    • View Profile
Re: Spiders
« Reply #4 on: September 16, 2015, 03:25:48 pm »

I believe it's currently only vermin creatures that place webs around randomly, Giant cave spiders spew webs out as an interaction instead of a random chance on tick. So if you made a new domesticated vermin pet that you could buy and then release from the cages/traps and have them do their thing is one way, however I don't know the timer they have until they despawn/vanish/leave
thanks, i put vermin_grounder back in, and spliced a bit from fluffy wamblers... not much, but anyway... i am going to test and see if it works now, as i can embark with them... if they work i will post the new raw fragment.

edit: can't find them on embark screen...
« Last Edit: September 16, 2015, 04:03:33 pm by CulixCupric »
Logged
Don't know what to put here... let me know if you have any ideas...

Dirst

  • Bay Watcher
  • [EASILY_DISTRA
    • View Profile
Re: Spiders
« Reply #5 on: September 16, 2015, 05:22:22 pm »

I believe it's currently only vermin creatures that place webs around randomly, Giant cave spiders spew webs out as an interaction instead of a random chance on tick. So if you made a new domesticated vermin pet that you could buy and then release from the cages/traps and have them do their thing is one way, however I don't know the timer they have until they despawn/vanish/leave
thanks, i put vermin_grounder back in, and spliced a bit from fluffy wamblers... not much, but anyway... i am going to test and see if it works now, as i can embark with them... if they work i will post the new raw fragment.

edit: can't find them on embark screen...
Domesticated vermin often show up as items instead of animals, but I haven't quite worked out the pattern.
Logged
Just got back, updating:
(0.42 & 0.43) The Earth Strikes Back! v2.15 - Pay attention...  It's a mine!  It's-a not yours!
(0.42 & 0.43) Appearance Tweaks v1.03 - Tease those hippies about their pointy ears.
(0.42 & 0.43) Accessibility Utility v1.04 - Console tools to navigate the map

CulixCupric

  • Bay Watcher
    • View Profile
Re: Spiders
« Reply #6 on: September 18, 2015, 05:03:14 pm »

Okay, I have them working. you do have to uncage them of course, doing so in a closed room that will be a silk farm works well. assigning them to a pit room with nest boxes works too.
UPDATE: as vermin, they get eaten by each other, and cats... i think i am going to make them non-vermin, and have them place webs as a custom interaction...
UPDATE: couldn't figure out how to do a material emission that isn't an attack... made them milkable for silk instead.
---
« Last Edit: September 19, 2015, 01:19:29 pm by CulixCupric »
Logged
Don't know what to put here... let me know if you have any ideas...

AceSV

  • Bay Watcher
  • [SUPER_VILLAIN]
    • View Profile
Re: Spiders
« Reply #7 on: September 19, 2015, 11:01:53 am »

I remember someone suggested that a realistic silk farm could be based on the reactions for honey bees.  Instead of collected honey and wax, you collect silk from the colony.  But I don't know how hardcoded the honey bee reaction is. 

I think you could also make a non vermin creature drop silk by giving it a different trigger.  The GCS's web spray has [CDI:USAGE_HINT:ATTACK], just replace that with something else.  That might leave webs that your dwarves can get stuck in, so you could change the breath attack to just drop silk thread once in a while instead of the web.  Or just be careful with them, and enjoy the high jinks as they happen. 
Logged
Quote
could God in fact send a kea to steal Excalibur and thereby usurp the throne of the Britons? 
Furry Fortress 3 The third saga unfurls.  Now with Ninja Frogs and Dogfish Pirates.

CulixCupric

  • Bay Watcher
    • View Profile
Re: Spiders
« Reply #8 on: September 19, 2015, 01:20:34 pm »

mistook [VERMIN_EATER] for [HUNTS_VERMIN] fixed the error, and added a shearable hair layer made of silk.

Code: [Select]
[CREATURE:SPIDER_DOMESTIC]
[DESCRIPTION:A small arachnid, domesticated for silk production.]
[NAME:barn spider:barn spiders:barn spider]
[CASTE_NAME:barn spider:barn spiders:barn spider]
[CREATURE_TILE:161][COLOR:7:0:0]
[PETVALUE:28]
[PREFSTRING:soft silk]
[COMMON_DOMESTIC]
[BENIGN][MEANDERER][PET]
[PARALYZEIMMUNE]
[WEBIMMUNE]
[HUNTS_VERMIN]
[FREQUENCY:100]
[BIOME:SUBTERRANEAN_WATER]
[BIOME:SUBTERRANEAN_CHASM]
[UNDERGROUND_DEPTH:1:2]
[BIOME:ANY_LAND]
[POPULATION_NUMBER:250:500]
[TRIGGERABLE_GROUP:5:50]
[SMALL_REMAINS]
[APPLY_CREATURE_VARIATION:STANDARD_WALKING_GAITS:9000:8900:8825:8775:9500:9900] 1 kph
[APPLY_CREATURE_VARIATION:STANDARD_CRAWLING_GAITS:9000:8900:8825:8775:9500:9900] 1 kph
[APPLY_CREATURE_VARIATION:STANDARD_CLIMBING_GAITS:9000:8900:8825:8775:9500:9900] 1 kph
[STANCE_CLIMBER][NATURAL_SKILL:CLIMBING:15]
[ALL_ACTIVE]
[NO_SLEEP]
[HOMEOTHERM:10040]
[LOW_LIGHT_VISION:10000]
[NOT_BUTCHERABLE]
[NOPAIN][EXTRAVISION][NOSTUN][NOFEAR]
[NOBONES]
[BODY:SPIDER:2EYES:HEART:GUTS:BRAIN:MOUTH]
[BODY_DETAIL_PLAN:CHITIN_MATERIALS]
[USE_MATERIAL_TEMPLATE:HAIR:HAIR_TEMPLATE]
[SELECT_MATERIAL:HAIR]
[STATE_NAME:ALL_SOLID:silken fur]
[STATE_ADJ:ALL_SOLID:silken fur]
[SILK]
[BODY_DETAIL_PLAN:CHITIN_TISSUES]
[ATTACK:STING:BODYPART:BY_CATEGORY:MOUTH]
[ATTACK_SKILL:BITE]
[ATTACK_VERB:bite:bites]
[ATTACK_CONTACT_PERC:100]
[ATTACK_FLAG_EDGE]
[ATTACK_PREPARE_AND_RECOVER:3:3]
[ATTACK_PRIORITY:MAIN]
[ATTACK_FLAG_CANLATCH]
[USE_MATERIAL_TEMPLATE:SILK:SILK_TEMPLATE]
[WEBBER:LOCAL_CREATURE_MAT:SILK]
[MILKABLE:LOCAL_CREATURE_MAT:SILK:20000]
[BODY_DETAIL_PLAN:EXOSKELETON_TISSUE_LAYERS:CHITIN:FAT:MUSCLE]
[BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS]
[USE_MATERIAL_TEMPLATE:SINEW:SINEW_TEMPLATE]
[TENDONS:LOCAL_CREATURE_MAT:SINEW:200]
[LIGAMENTS:LOCAL_CREATURE_MAT:SINEW:200]
[HAS_NERVES]
[USE_MATERIAL_TEMPLATE:ICHOR:ICHOR_TEMPLATE]
[BLOOD:LOCAL_CREATURE_MAT:ICHOR: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:60]
[BODY_SIZE:1:0:1500]
[BODY_SIZE:2:0:3000]
[MAXAGE:10:15]
[HOMEOTHERM:10040]
[CASTE:FEMALE]
[FEMALE]
[LAYS_EGGS]
[EGG_MATERIAL:LOCAL_CREATURE_MAT:EGGSHELL:SOLID]
[EGG_MATERIAL:LOCAL_CREATURE_MAT:EGG_WHITE:LIQUID]
[EGG_MATERIAL:LOCAL_CREATURE_MAT:EGG_YOLK:LIQUID]
[EGG_SIZE:70]
[CLUTCH_SIZE:3:12]
[CASTE:MALE]
[MALE]
[SELECT_CASTE:ALL]
[SET_TL_GROUP:BY_CATEGORY:ALL:HAIR]
[TL_COLOR_MODIFIER:WHITE:1]
[TLCM_NOUN:silk:SINGULAR]
[TISSUE_LAYER_APPEARANCE_MODIFIER:LENGTH:0:0:0:0:0:0:0]
[APP_MOD_NOUN:silk: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:CHITIN]
[TL_COLOR_MODIFIER:WHITE:1]
[TLCM_NOUN:chitin:SINGULAR]
[SET_TL_GROUP:BY_CATEGORY:EYE:EYE]
[TL_COLOR_MODIFIER:BLACK:1]
[TLCM_NOUN:eyes:PLURAL]
Logged
Don't know what to put here... let me know if you have any ideas...

Kazoo

  • Bay Watcher
    • View Profile
Re: Spiders
« Reply #9 on: September 24, 2015, 12:08:47 pm »

Shameless self promotion coming through.

I don't think i've seen silk industry done more efficiently than using eggs, which is remarkably simple to do.

My mod does exactly this, by making spiders lay eggs with silk shells, which are fed into a reaction to convert the eggs into globs, then another reaction to convert the globs to threads.

The last two steps could be converted into one, but doing it with two enables larger eggs to give more threads.

Spoiler (click to show/hide)
Logged

Urlance Woolsbane

  • Bay Watcher
    • View Profile
Re: Spiders
« Reply #10 on: September 24, 2015, 01:37:31 pm »

I believe it's currently only vermin creatures that place webs around randomly
I'm not so sure about that. When I played the latest version of Darkflagrance's Fortress Defense II mod, any area I embarked in would have Great Fiend Spider-webs lying about the place (despite their absence.) GFS are a sapient species with their own civilizations. Now, whether they actually do that while on-screen, I don't know, but it would be odd if they couldn't.
Logged
"Hey papa, your dandruff is melting my skin. Is that normal?"
"SKREEEONK!!!"
"Yes, daddy."

CulixCupric

  • Bay Watcher
    • View Profile
Re: Spiders
« Reply #11 on: September 25, 2015, 04:06:42 pm »

Shameless self promotion coming through.

I don't think i've seen silk industry done more efficiently than using eggs, which is remarkably simple to do.

My mod does exactly this, by making spiders lay eggs with silk shells, which are fed into a reaction to convert the eggs into globs, then another reaction to convert the globs to threads.

The last two steps could be converted into one, but doing it with two enables larger eggs to give more threads.

Spoiler (click to show/hide)
so...
Code: [Select]
[LAYS_EGGS]
[EGG_MATERIAL:LOCAL_CREATURE_MAT:SILK:SOLID]
[EGG_MATERIAL:LOCAL_CREATURE_MAT:EGG_WHITE:LIQUID]
[EGG_MATERIAL:LOCAL_CREATURE_MAT:EGG_YOLK:LIQUID]
[EGG_SIZE:150]
[CLUTCH_SIZE:3:6]
where:
Code: [Select]
[BODY_DETAIL_PLAN:EGG_MATERIALS]
[USE_MATERIAL_TEMPLATE:SILK:SILK_TEMPLATE]
then:
Code: [Select]
[REACTION:COLLECT_EGG_SILK]
[NAME:harvest silk from eggs]
[BUILDING:FARMER:NONE]
[REAGENT:silk:1:EGG:NONE:NONE:NONE][UNROTTEN][ANY_SILK_MATERIAL]
[PRODUCT:100:1:THREAD:NONE:GET_MATERIAL_FROM_REAGENT:silk:NONE][PRODUCT_DIMENSION:1500]
[SKILL:SPINNING]
so 10 eggs makes a full spool of thread, and the farmer's workshop 'weave silk cloth' will work on the thread produced? would the produced thread from multiple eggs stack?
Logged
Don't know what to put here... let me know if you have any ideas...

Kazoo

  • Bay Watcher
    • View Profile
Re: Spiders
« Reply #12 on: September 25, 2015, 07:48:51 pm »

No it's a lot simpler. There's a material called EGGSHELL_TEMPLATE, this is what all eggs are made of, the EGG_WHITE and EGG_YOLK are just kind of like attributes.

As it stands, all animals that lay eggs make them out of [MATERIAL_TEMPLATE:EGGSHELL_TEMPLATE], but you can designate them to lay them out of any MATERIAL_TEMPLATE, in my mod they do so out of [MATERIAL_TEMPLATE:SILK_TEMPLATE].

[LAYS_EGGS]
         [EGG_MATERIAL:LOCAL_CREATURE_MAT:SILK:SOLID]
         [EGG_MATERIAL:LOCAL_CREATURE_MAT:EGG_WHITE:LIQUID]
         [EGG_MATERIAL:LOCAL_CREATURE_MAT:EGG_YOLK:LIQUID]
         [EGG_SIZE:150]
         [CLUTCH_SIZE:3:6]

Then you can do whatever you want with the eggs and if the reaction takes material from the egg reagent it will make a product of that material.

However to stop weavers making EGGSHELL thread out of chicken eggs, i use a [REACTION_CLASS:SILK_EGG] under silk, so reagents of that material can only be used in the reaction.

As for [PRODUCT_DIMENSION:1500], i don't believe that's relevant anymore, but we can trick dwarf fortress and turn the eggs into globs (like meat and fat), which will give us an arbitrary amount of "egg globs" in relativity to egg size, which can then be exchanged into an appropriate amount of thread by a second reaction.

I hope this makes sense, and i haven't horribly misunderstood...
Logged

milo christiansen

  • Bay Watcher
  • Something generic here
    • View Profile
Re: Spiders
« Reply #13 on: September 26, 2015, 01:01:12 pm »

Why don't you just download the mod from his signature and take a look at the raws? It is a really ingenious system, and deserves proper appreciation :)
Logged
Rubble 8 - The most powerful modding suite in existence!
After all, coke is for furnaces, not for snorting.
You're not true dwarven royalty unless you own the complete 'Signature Collection' baby-bone bedroom set from NOKEAS

Kazoo

  • Bay Watcher
    • View Profile
Re: Spiders
« Reply #14 on: September 26, 2015, 01:59:13 pm »

That's very kind of you. I just wish i could come up with a way of merging the two reactions.
Logged
Pages: [1] 2 3