Bay 12 Games Forum

Please login or register.

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

Author Topic: New tissue layer not working properly.  (Read 2706 times)

Xangi

  • Bay Watcher
  • ɛkzændʒiː
    • View Profile
New tissue layer not working properly.
« on: March 08, 2012, 10:39:17 pm »

Code: [Select]
creature_vampmegabeast

[OBJECT:CREATURE]

[CREATURE:ANCIENT_VAMPIRE]
[DESCRIPTION:A gigantic vampiric monster.Its body is covered in a hard exoskeleton layer, and its wings have thick leather draped over them. It is immortal and immensely powerful. Now you will know why you fear the night!]
[NAME:ancient vampire:ancient vampires:vampiric]
[CASTE_NAME:ancient vampire:ancient vampires:vampiric]
[CREATURE_TILE:'V'][COLOR:4:0:0]
[BIOME:ANY_LAND]
[FREQUENCY:5]
[CAN_DO_INTERACTION:VAMP_SPEED]
[CDI:ADV_NAME:Vampiric Speed]
[CDI:INTERACTION:VAMP_SPEED]
[CDI:TARGET:A:SELF_ONLY]
[CDI:TARGET_RANGE:A:1]
[CDI:VERB:focus:focuses:NA]
[CDI:TARGET_VERB:move at incredible speed:moves at incredible speed]
[CDI:WAIT_PERIOD:100]
=================
[FIREIMMUNE]
[FANCIFUL]
[MEGABEAST][DIFFICULTY:10]
[ATTACK_TRIGGER:80:10000:100000]
[SPHERE:DEATH]
[SPHERE:WAR]
[SPHERE:NIGHT]
[CURIOUSBEAST_ITEM]
[NOFEAR][NOEXERT][NOPAIN][NOTHOUGHT][NOBREATHE][NONAUSEA][NOSTUN][NO_EAT][NO_DRINK][NO_SLEEP][NO_DIZZINESS][NO_THOUGHT_CENTER_FOR_MOVEMENT][NOT_LIVING]
[OPPOSED_TO_LIFE]
[BUILDINGDESTROYER:2]
[LIKES_FIGHTING]
[GRASSTRAMPLE:50]
[BONECARN]
[EVIL][EXTRAVISION][CAN_SPEAK]
[NATURAL_SKILL:GRASP_STRIKE:15]
[NATURAL_SKILL:STANCE_STRIKE:15]
[NATURAL_SKILL:BITE:15]
[NATURAL_SKILL:MELEE_COMBAT:15]
[NATURAL_SKILL:DODGING:10]
[NATURAL_SKILL:SITUATIONAL_AWARENESS:15]
=================
[PREFSTRING:limitless power and ruthlessness]
[BODY:HUMANOID:2EYES:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:SKULL:5TOES:5FINGERS:MOUTH:TONGUE:GENERIC_TEETH_WITH_LARGE_EYE_TEETH:RIBCAGE:2WINGS]
[BODY_DETAIL_PLAN:STANDARD_MATERIALS]
[REMOVE_MATERIAL:LEATHER]
[REMOVE_MATERIAL:HAIR]
[USE_MATERIAL_TEMPLATE:BONELAYER:BONE_TEMPLATE]
[BODY_DETAIL_PLAN:STANDARD_TISSUES]
[REMOVE_TISSUE:SKIN]
[REMOVE_TISSUE:HAIR]
[TISSUE:EXOSKELETON]
[TISSUE_NAME:exoskeleton:NP]
[TISSUE_MATERIAL:LOCAL_CREATURE_MAT:BONELAYER]
[TISSUE_MAT_STATE:SOLID]
[RELATIVE_THICKNESS:100]
[TISSUE_SHAPE:LAYER]
[SCARS]
[INSULATION]
[BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:EXOSKELETON:FAT:MUSCLE:BONE:CARTILAGE]
[USE_MATERIAL_TEMPLATE:CLAW:NAIL_TEMPLATE]
[USE_TISSUE_TEMPLATE:CLAW:CLAW_TEMPLATE]
[TISSUE_LAYER:BY_CATEGORY:TOE:CLAW:FRONT]
[TISSUE_LAYER:BY_CATEGORY:FINGER:CLAW:FRONT]
[BODY_DETAIL_PLAN:LEATHERY_EGG_MATERIALS]
[SELECT_TISSUE_LAYER:HEART:BY_CATEGORY:HEART]
[PLUS_TISSUE_LAYER:SCALE:BY_CATEGORY:THROAT]
[TL_MAJOR_ARTERIES]
[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:POISON_IMMUNE]
[BODY_SIZE:0:0:10000000]
[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]
[ATTACK:BITE:CHILD_BODYPART_GROUP:BY_CATEGORY:HEAD:BY_CATEGORY:TOOTH]
[ATTACK_SKILL:BITE]
[ATTACK_VERB:bite:bites]
[ATTACK_CONTACT_PERC:200]
[ATTACK_PENETRATION_PERC:400]
[ATTACK_FLAG_EDGE]
[ATTACK_PRIORITY:MAIN]
[ATTACK_FLAG_CANLATCH]
[ATTACK_VELOCITY_MODIFIER:4000]
[ATTACK:CLAW:CHILD_TISSUE_LAYER_GROUP:BY_TYPE:STANCE:BY_CATEGORY:ALL:CLAW]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:slash:slashes]
[ATTACK_CONTACT_PERC:50]
[ATTACK_PENETRATION_PERC:800]
[ATTACK_FLAG_EDGE]
[ATTACK_PRIORITY:MAIN]
[ATTACK_VELOCITY_MODIFIER:4000]
[ATTACK:RAM:BODYPART:BY_TYPE_UPPERBODY]
[ATTACK_SKILL:STANCE_STRIKE]
[ATTACK_VERB:ram:rams]
[ATTACK_CONTACT_PERC:1500]
[ATTACK_PRIORITY:SECOND]
[ATTACK_VELOCITY_MODIFIER:4000]
[ATTACK:PUNCH:BODYPART:BY_TYPE:GRASP]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:punch:punches]
[ATTACK_CONTACT_PERC:100]
[ATTACK_FLAG_WITH]
[ATTACK_PRIORITY:SECOND]
[ATTACK_VELOCITY_MODIFIER:4000]
[ATTACK:KICK:BODYPART:BY_TYPE:STANCE]
[ATTACK_SKILL:STANCE_STRIKE]
[ATTACK_VERB:kick:kicks]
[ATTACK_CONTACT_PERC:100]
[ATTACK_FLAG_WITH]
[ATTACK_PRIORITY:SECOND]
[ATTACK_VELOCITY_MODIFIER:4000]
[ALL_ACTIVE]
[MENT_ATT_RANGE:WILLPOWER:3000:3500:3750:4000:4250:4500:5000]
[LAIR:SHRINE:50]
[LAIR:SIMPLE_MOUND:50]
[HABIT_NUM:TEST_ALL]
[HABIT:COLLECT_TROPHIES:100]
[HABIT:COLLECT_WEALTH:100]
[SWIMS_INNATE][SWIM_SPEED:2500]
[HOMEOTHERM:10090]
[CASTE:DEFAULT]
[NO_GENDER]
[SELECT_CASTE:ALL]
[SET_TL_GROUP:BY_CATEGORY:ALL:EXOSKELETON]
[TL_COLOR_MODIFIER:BLACK:1:MIDNIGHT_BLUE:1:CRIMSON:1]
[TLCM_NOUN:exoskeleton:SINGULAR]
[SET_TL_GROUP:BY_CATEGORY:EYE:EYE]
[TL_COLOR_MODIFIER:RED:1:BLACK:1:ORANGE:1]
[TLCM_NOUN:eyes:PLURAL]
[SELECT_MATERIAL:ALL]
[MULTIPLY_VALUE:50]
[COLDDAM_POINT:NONE]
[HEATDAM_POINT:NONE]
[IGNITE_POINT:NONE]
[IF_EXISTS_SET_MELTING_POINT:55000]
[IF_EXISTS_SET_BOILING_POINT:57000]
[SPEC_HEAT:30000]
Need to make sure blood and pus aren't solid at regular temperatures.
[SELECT_MATERIAL:BLOOD]
[MELTING_POINT:10000]

Ok, so I want this thing to have an exoskeleton, and I have defined the tissue, problem is, it does nothing. No protection, doesn't even make contact when someone hits it. am I doing something wrong?
Logged
A spooky ghost.

Previous mod (34.11):
<<Fear The Night!>>
http://www.bay12forums.com/smf/index.php?topic=103747.0

G-Flex

  • Bay Watcher
    • View Profile
Re: New tissue layer not working properly.
« Reply #1 on: March 08, 2012, 10:53:34 pm »

[USE_MATERIAL_TEMPLATE:BONELAYER:BONE_TEMPLATE]

There's no real need for this; you're defining a material that's identical to bone in every way, so why not just use bone?

Testing in the arena, the tissue is definitely being used. I kicked a vampire in the throat and it "shattered", for example, and some of its exoskeletal layers are "smashed apart".


It's probably not working well because it's just a very thin layer on each part, since it's taking the place of skin. Also, it doesn't heal, which might work against them.
« Last Edit: March 08, 2012, 10:57:02 pm by G-Flex »
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

Xangi

  • Bay Watcher
  • ɛkzændʒiː
    • View Profile
Re: New tissue layer not working properly.
« Reply #2 on: March 08, 2012, 10:58:19 pm »

[USE_MATERIAL_TEMPLATE:BONELAYER:BONE_TEMPLATE]

There's no real need for this; you're defining a material that's identical to bone in every way, so why not just use bone?

Testing in the arena, the tissue is definitely being used. I kicked a vampire in the throat and it "shattered", for example, and some of its exoskeletal layers are "smashed apart".
Really? It never seems to work for me. Well, I'll try again. And yeah, I figured out that that line was pointless.
Logged
A spooky ghost.

Previous mod (34.11):
<<Fear The Night!>>
http://www.bay12forums.com/smf/index.php?topic=103747.0

G-Flex

  • Bay Watcher
    • View Profile
Re: New tissue layer not working properly.
« Reply #3 on: March 08, 2012, 11:01:37 pm »

It probably is working for you and you just aren't noticing it because the only time it mentions the outer layer like that is when nothing else gets damaged. After all, how often do you see skin get mentioned much in regular DF?

Also, for what it's worth, your ancient vampires are about the size of a centuries-old dragon.
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

Xangi

  • Bay Watcher
  • ɛkzændʒiː
    • View Profile
Re: New tissue layer not working properly.
« Reply #4 on: March 08, 2012, 11:05:09 pm »

It probably is working for you and you just aren't noticing it because the only time it mentions the outer layer like that is when nothing else gets damaged. After all, how often do you see skin get mentioned much in regular DF?

Also, for what it's worth, your ancient vampires are about the size of a centuries-old dragon.
Yeah, they're supposed to be big, I might shrink them a little later, but they need to be pretty big. I mentally measure the size in weight, not actual cm^3 anyway, so for me it just means they're heavy :P

I just want to make sure it actually works, what did you use to test it? Just a regular human?
Logged
A spooky ghost.

Previous mod (34.11):
<<Fear The Night!>>
http://www.bay12forums.com/smf/index.php?topic=103747.0

G-Flex

  • Bay Watcher
    • View Profile
Re: New tissue layer not working properly.
« Reply #5 on: March 08, 2012, 11:06:41 pm »

I just copied and pasting your code verbatim, then had a couple of them fight it out in the arena.
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

Xangi

  • Bay Watcher
  • ɛkzændʒiː
    • View Profile
Re: New tissue layer not working properly.
« Reply #6 on: March 08, 2012, 11:08:26 pm »

I just copied and pasting your code verbatim, then had a couple of them fight it out in the arena.
You see, that's what I did, and I get stuff like "Its right lower arm is bruised", "Its thumb, right hand, is smashed apart", no mention of the exoskeleton. It's really odd.
Logged
A spooky ghost.

Previous mod (34.11):
<<Fear The Night!>>
http://www.bay12forums.com/smf/index.php?topic=103747.0

G-Flex

  • Bay Watcher
    • View Profile
Re: New tissue layer not working properly.
« Reply #7 on: March 08, 2012, 11:09:09 pm »

That's because creature description pages don't mention individual tissue layers. Take control of one in the arena and look at its health status page instead while controlling it; it'll mention them there.
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

Xangi

  • Bay Watcher
  • ɛkzændʒiː
    • View Profile
Re: New tissue layer not working properly.
« Reply #8 on: March 08, 2012, 11:12:10 pm »

That's because creature description pages don't mention individual tissue layers. Take control of one in the arena and look at its health status page instead while controlling it; it'll mention them there.
Ah, I see. Well then, do you have any suggestions on how to make it... more protective? It seems to not do much at the moment.

Oh, and if you want to see something really funny, fix the slam attack (I derped a bit), and make one fight 30 or so humans. Flying humans everywhere.
« Last Edit: March 08, 2012, 11:23:11 pm by Xangi »
Logged
A spooky ghost.

Previous mod (34.11):
<<Fear The Night!>>
http://www.bay12forums.com/smf/index.php?topic=103747.0

G-Flex

  • Bay Watcher
    • View Profile
Re: New tissue layer not working properly.
« Reply #9 on: March 08, 2012, 11:31:04 pm »

That's because creature description pages don't mention individual tissue layers. Take control of one in the arena and look at its health status page instead while controlling it; it'll mention them there.
Ah, I see. Well then, do you have any suggestions on how to make it... more protective? It seems to not do much at the moment.

Oh, and if you want to see something really funny, fix the slam attack (I derped a bit), and make one fight 30 or so humans. Flying humans everywhere.

To make it more protective, you'd want to increase its thickness. Right now you're using BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS, which makes the "skin" layer rather thin. You'd probably want to make your own version of that where the corresponding layer has a higher number for relative thickness, and use that instead.
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

Xangi

  • Bay Watcher
  • ɛkzændʒiː
    • View Profile
Re: New tissue layer not working properly.
« Reply #10 on: March 08, 2012, 11:33:49 pm »

That's because creature description pages don't mention individual tissue layers. Take control of one in the arena and look at its health status page instead while controlling it; it'll mention them there.
Ah, I see. Well then, do you have any suggestions on how to make it... more protective? It seems to not do much at the moment.

Oh, and if you want to see something really funny, fix the slam attack (I derped a bit), and make one fight 30 or so humans. Flying humans everywhere.

To make it more protective, you'd want to increase its thickness. Right now you're using BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS, which makes the "skin" layer rather thin. You'd probably want to make your own version of that where the corresponding layer has a higher number for relative thickness, and use that instead.
I thought setting the tissue thickness with [RELATIVE_THICKNESS] would do that even if I was using a template?
Logged
A spooky ghost.

Previous mod (34.11):
<<Fear The Night!>>
http://www.bay12forums.com/smf/index.php?topic=103747.0

arzzult

  • Bay Watcher
  • This statement is false.
    • View Profile
Re: New tissue layer not working properly.
« Reply #11 on: March 08, 2012, 11:34:55 pm »

Well for one you can make the material thicker but that'll only help a little. If you really want it to have meaningful protective value you probably need to define a new material with stronger properties. Just use material definition tokens found here http://dwarffortresswiki.org/index.php/DF2012:Material_definition_token after your [USE_MATERIAL_TEMPLATE:BONELAYER:BONE_TEMPLATE] token. You can look in the inorganic_metal for something to compare it too then play around with values.
Logged
I just realized two things. 1. For the Win and F___ the World have the same initials. 2. They have the same meaning in Dwarf Fortress.

Xangi

  • Bay Watcher
  • ɛkzændʒiː
    • View Profile
Re: New tissue layer not working properly.
« Reply #12 on: March 08, 2012, 11:36:38 pm »

Well for one you can make the material thicker but that'll only help a little. If you really want it to have meaningful protective value you probably need to define a new material with stronger properties. Just use material definition tokens found here http://dwarffortresswiki.org/index.php/DF2012:Material_definition_token after your [USE_MATERIAL_TEMPLATE:BONELAYER:BONE_TEMPLATE] token. You can look in the inorganic_metal for something to compare it too then play around with values.
Yeah, that sounds a bit better too. Though currently I'm playing around with adding normal skin back and replacing the fat with the exoskeleton.
Logged
A spooky ghost.

Previous mod (34.11):
<<Fear The Night!>>
http://www.bay12forums.com/smf/index.php?topic=103747.0

G-Flex

  • Bay Watcher
    • View Profile
Re: New tissue layer not working properly.
« Reply #13 on: March 08, 2012, 11:43:42 pm »

All tissues have a default relative thickness, but presumably that's overridden by the template.

Although... there is something you could do.

Slap this in somewhere after all the body_detail_plan stuff in the creature definition:
Code: [Select]
[SET_TL_GROUP:BY_CATEGORY:ALL:EXOSKELETON]
[TL_RELATIVE_THICKNESS:5]

The relative thickness of skin in VERTEBRATE_TISSUE_LAYERS is 1 for every body part, it seems, so this will make it five times as thick. It still might get broken easily, though, being on the outside and still much less thick than the bones themselves. Tweak the number to your satisfaction, I guess, if you want them to have really thick bone plates or something.
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

Xangi

  • Bay Watcher
  • ɛkzændʒiː
    • View Profile
Re: New tissue layer not working properly.
« Reply #14 on: March 08, 2012, 11:47:05 pm »

All tissues have a default relative thickness, but presumably that's overridden by the template.

Although... there is something you could do.

Slap this in somewhere after all the body_detail_plan stuff in the creature definition:
Code: [Select]
[SET_TL_GROUP:BY_CATEGORY:ALL:EXOSKELETON]
[TL_RELATIVE_THICKNESS:5]

The relative thickness of skin in VERTEBRATE_TISSUE_LAYERS is 1 for every body part, it seems, so this will make it five times as thick. It still might get broken easily, though, being on the outside and still much less thick than the bones themselves. Tweak the number to your satisfaction, I guess, if you want them to have really thick bone plates or something.
Hey thanks! Yeah, I want them to have a layer of thick bone plate over their bodies, the guts inside, then bones inside as well. Why? Why not?
Logged
A spooky ghost.

Previous mod (34.11):
<<Fear The Night!>>
http://www.bay12forums.com/smf/index.php?topic=103747.0
Pages: [1] 2