Bay 12 Games Forum

Please login or register.

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

Author Topic: creating a custom race  (Read 2906 times)

Mysterious Tree

  • Bay Watcher
    • View Profile
Re: creating a custom race
« Reply #15 on: December 22, 2020, 09:18:17 pm »

nope, but the custom creature variation takes care of that

c_variation_default

[OBJECT:CREATURE_VARIATION]

[CREATURE_VARIATION:ANIMAL_PERSON_LEGLESS_MOD]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:QUADRUPED]
      [CVCT_REPLACEMENT:HUMANOID_LEGLESS]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:QUADRUPED_NECK]
      [CVCT_REPLACEMENT:HUMANOID_LEGLESS_NECK:3FINGERS]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:QUADRUPED_HOOF]
      [CVCT_REPLACEMENT:HUMANOID_LEGLESS:3FINGERS]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:QUADRUPED_NECK_HOOF]
      [CVCT_REPLACEMENT:HUMANOID_LEGLESS_NECK:3FINGERS]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:HUMANOID_ARMLESS]
      [CVCT_REPLACEMENT:HUMANOID_LEGLESS:4FINGERS]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:HUMANOID_ARMLESS_NECK]
      [CVCT_REPLACEMENT:HUMANOID_LEGLESS_NECK:4FINGERS]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:BODY_WITH_HEAD_FLAG]
      [CVCT_REPLACEMENT:HUMANOID_LEGLESS:3FINGERS]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:BASIC_1PARTBODY:BASIC_HEAD]
      [CVCT_REPLACEMENT:HUMANOID_LEGLESS:3FINGERS]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:BASIC_2PARTBODY:BASIC_HEAD]
      [CVCT_REPLACEMENT:HUMANOID_LEGLESS:3FINGERS]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:BASIC_1PARTBODY:BASIC_HEAD_NECK]
      [CVCT_REPLACEMENT:HUMANOID_LEGLESS_NECK:3FINGERS]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:BASIC_2PARTBODY:BASIC_HEAD_NECK]
      [CVCT_REPLACEMENT:HUMANOID_LEGLESS_NECK:3FINGERS]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:INSECT]
      [CVCT_REPLACEMENT:HUMANOID_LEGLESS_4ARMS:3FINGERS]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:SPIDER]
      [CVCT_REPLACEMENT:HUMANOID_LEGLESS_6ARMS:3FINGERS]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:5TOES_FQ_FINGERS]
      [CVCT_REPLACEMENT:5FINGERS]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:4TOES_FQ_FINGERS]
      [CVCT_REPLACEMENT:4FINGERS]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:3TOES_FQ_FINGERS]
      [CVCT_REPLACEMENT:3FINGERS]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:5TOES_FQ_REG]
      [CVCT_REPLACEMENT:5FINGERS]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:4TOES_FQ_REG]
      [CVCT_REPLACEMENT:4FINGERS]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:3TOES_FQ_REG]
      [CVCT_REPLACEMENT:3FINGERS]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:5TOES_RQ_ANON]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:4TOES_RQ_ANON]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:3TOES_RQ_ANON]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:5TOES_RQ_REG]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:4TOES_RQ_REG]
   [CV_CONVERT_TAG]
      [CVCT_MASTER:BODY]
      [CVCT_TARGET:3TOES_RQ_REG]
   [CV_NEW_TAG:LARGE_ROAMING]
   [CV_NEW_TAG:SAVAGE]
   [CV_NEW_TAG:SELECT_CASTE:ALL]
      [CV_NEW_TAG:GRAVITATE_BODY_SIZE:70000]
      [CV_NEW_TAG:CHANGE_FREQUENCY_PERC:10]
   [CV_NEW_TAG:CAN_LEARN]
   [CV_NEW_TAG:CAN_SPEAK]
   [CV_NEW_TAG:EQUIPS]
   [CV_NEW_TAG:CANOPENDOORS]
   [CV_NEW_TAG:LOCAL_POPS_CONTROLLABLE]
   [CV_NEW_TAG:LOCAL_POPS_PRODUCE_HEROES]
   [CV_NEW_TAG:CAN_DO_INTERACTION:PET_ANIMAL]
      [CV_NEW_TAG:CDI:ADV_NAME:Pet animal]
      [CV_NEW_TAG:CDI:USAGE_HINT:GREETING]
      [CV_NEW_TAG:CDI:BP_REQUIRED:BY_TYPE:GRASP]
      [CV_NEW_TAG:CDI:VERB:pet:pets:pets]
      [CV_NEW_TAG:CDI:TARGET:A:SELF_ONLY]
      [CV_NEW_TAG:CDI:TARGET:B:TOUCHABLE]
      [CV_NEW_TAG:CDI:TARGET_RANGE:B:1]
      [CV_NEW_TAG:CDI:MAX_TARGET_NUMBER:B:1]
      [CV_NEW_TAG:CDI:WAIT_PERIOD:20]
Logged

brolol.404

  • Bay Watcher
    • View Profile
Re: creating a custom race
« Reply #16 on: December 23, 2020, 08:58:35 am »

ah ok cool. I didn't see the new creature variation

Mysterious Tree

  • Bay Watcher
    • View Profile
Re: creating a custom race
« Reply #17 on: December 25, 2020, 11:30:49 pm »

another little issue has arrived
I'm trying to make an ichor snake just as a fun experiment and I can't get it to work
first I tried to change the fire snake text (source is the wiki) but since these vermin can't be spawned in the arena I tried to "unvermin" them as I believed this to be responsible and I don't know if this lead to more problems but soon issues began appearing in the error log with the body and stuff which eventually led me to try and merge the black mamba body lines with the ichor snake's lines and then change them to using only the ichor material template as all body materials (so not the parts) but this didn't work so I changed it back to fire snake lines and changed flame to ichor in the text file to make it use ichor instead of flame but then the game just crashed while reading the raws for world generation so I "revermined" them but that also didn't work and here I am now... and I can't figure out what the errors mean
(I am unsure if me not being able to solve the issue is a direct consequence of me not having slept yet as it's currently border morning time so there may not be a response until after about 12 hours have passed since the time of this post as I am indeed tired and full of regret from staying up this late)

now presenting my mess (including the error log):

creature_default

[OBJECT:CREATURE]

[CREATURE:SNAKE_ICHOR]
   [DESCRIPTION:A serpent made of ichor which can inject ichor as venom aswell.]
   [NAME:ichor snake:ichor snakes:ichor snake]
   [CASTE_NAME:ichor snake:ichor snakes:ichor snake]
   [CREATURE_TILE:'s'][COLOR:6:0:1]
   [PETVALUE:10]
   [PET_EXOTIC]
   [NATURAL]
   [NO_GENDER][FREQUENCY:100][VERMIN_GROUNDER][VERMIN_HATEABLE]
   [FIREIMMUNE][WEBIMMUNE][IMMOLATE]
   [SMALL_REMAINS]
   [NOT_BUTCHERABLE]
   [NO_DRINK][NO_EAT][NO_SLEEP]
   [BIOME:ANY_OCEAN]
   [POPULATION_NUMBER:250:500]
   [CLUSTER_NUMBER:1:1]
   [PREFSTRING:mystery]
   [NOPAIN][EXTRAVISION][NOBREATHE][NOSTUN][NONAUSEA][NOEMOTION][NOTHOUGHT]
   [NOBONES]
   [BODY:BASIC_1PARTBODY:BASIC_HEAD:TAIL:2EYES:NOSE:MOUTH:FORKED_TONGUE:GENERIC_TEETH_WITH_FANGS]
   [NO_THOUGHT_CENTER_FOR_MOVEMENT]
   [USE_MATERIAL_TEMPLATE:ICHOR:ICHOR_TEMPLATE]
   [USE_TISSUE_TEMPLATE:ICHOR:ICHOR_TEMPLATE]
   [TISSUE_LAYER:BY_CATEGORY:ALL:ICHOR]   
   [USE_MATERIAL_TEMPLATE:VENOM:ICHOR_TEMPLATE]
      [STATE_NAME:ALL:ichor]
      [STATE_ADJ:ALL:ichor]
      [PREFIX:NONE]
   [EXTRACT:LOCAL_CREATURE_MAT:VENOM]
   [VERMIN_BITE:10:bitten:LOCAL_CREATURE_MAT:VENOM:LIQUID]
   [BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS]
   [APPLY_CREATURE_VARIATION:STANDARD_WALK_CRAWL_GAITS:3512:2634:1756:878:4900:6900] 10 kph
   [APPLY_CREATURE_VARIATION:STANDARD_CRAWLING_GAITS:9000:8900:8825:8775:9500:9900] 1 kph
   [APPLY_CREATURE_VARIATION:STANDARD_SWIMMING_GAITS:3512:2634:1756:878:4900:6900] 10 kph
   [BODY_SIZE:0:0:1000]
   [BODY_APPEARANCE_MODIFIER:LENGTH:90:95:98:100:102:105:110]
   [ALL_ACTIVE]
   [NO_DIZZINESS]
   [NO_FEVERS]
   [SWIMS_INNATE]
   [CANNOT_JUMP]
   [ODOR_STRING:ichor]
   [ODOR_LEVEL:10]
   [SMELL_TRIGGER:10000]

error log:

*** Error(s) found in the file "raw/objects/creature_ichor_snake.txt"
SNAKE_ICHOR:Unrecognized Tissue Template: ICHOR_TEMPLATE
*** Error(s) finalizing the creature SNAKE_ICHOR
SNAKE_ICHOR:DEFAULT:body, layer 1: Tissue ICHOR was not found, using first tissue instead
Logged

brolol.404

  • Bay Watcher
    • View Profile
Re: creating a custom race
« Reply #18 on: December 26, 2020, 07:11:41 am »

I am not at my computer, but I assume there is no ICHOR tissue template so you would have to create it. Check the tissue file for examples.

Mysterious Tree

  • Bay Watcher
    • View Profile
Re: creating a custom race
« Reply #19 on: December 26, 2020, 11:47:42 am »

the thing that confuses me is that there's no indicator of what is and what isn't a tissue template when looking at the material templates. I've compared ichor to blood and skin templates and they're the same (just with different numbers) so I don't understand why the game gives me those errors as there's also a man made out of blood and ichor is the same thing but divine. after trying to merge the blood man's lines with my own I got it to the point that it doesn't crash but now I also can't spawn it in the arena
http://dwarffortresswiki.org/index.php/DF2014:Blood_man


   [USE_MATERIAL_TEMPLATE:ICHOR:ICHOR_TEMPLATE]
   [USE_TISSUE_TEMPLATE:ICHOR:ICHOR_TEMPLATE]

these lines have been replaced by:

   [USE_MATERIAL_TEMPLATE:ICHOR:ICHOR_TEMPLATE]
      [STATE_NAME:ALL_SOLID:frozen ichor]
      [STATE_ADJ:ALL_SOLID:frozen ichor]
      [STATE_NAME:LIQUID:ichor]
      [STATE_ADJ:LIQUID:ichor]
      [STATE_NAME:GAS:boiling ichor]
      [STATE_ADJ:GAS:boiling ichor]
      [PREFIX:NONE]
   [TISSUE:ICHOR]
      [TISSUE_NAME:ichor:NP]
      [TISSUE_MATERIAL:LOCAL_CREATURE_MAT:ICHOR]
      [TISSUE_MAT_STATE:LIQUID]
      [MUSCULAR]
      [FUNCTIONAL]
      [STRUCTURAL]
      [RELATIVE_THICKNESS:1]
      [CONNECTS]
      [TISSUE_SHAPE:LAYER]
Logged

brolol.404

  • Bay Watcher
    • View Profile
Re: creating a custom race
« Reply #20 on: December 26, 2020, 03:17:43 pm »

Are you getting any errors? Did you copy [ARENA_RESTRICTED] from the blood man? Delete that tag or it won't show up in the arena.

Mysterious Tree

  • Bay Watcher
    • View Profile
Re: creating a custom race
« Reply #21 on: December 26, 2020, 03:42:56 pm »

there is no [ARENA_RESTRICTED] tag within the text but there are also no new errors that show up however I have just discovered that I've been a bit dumb as I kept going to my old world instead of the new one due to the way the game handles region numbers (region10 showing up after region1 instead of region9) so it can be spawned in the arena but now the second problem which is that with every bite the attack glances away which I believe to be responsible for the snake not being able to inject ichor as venom (or I did something wrong again)

here's the text one final time for convenience:

creature_default

[OBJECT:CREATURE]

[CREATURE:SNAKE_ICHOR]
   [DESCRIPTION:A serpent made of ichor which can inject ichor as venom aswell.]
   [NAME:ichor snake:ichor snakes:ichor snake]
   [CASTE_NAME:ichor snake:ichor snakes:ichor snake]
   [CREATURE_TILE:'s'][COLOR:6:0:1]
   [PETVALUE:10]
   [PET_EXOTIC]
   [NATURAL]
   [NO_GENDER][FREQUENCY:100]
   [FIREIMMUNE][WEBIMMUNE][IMMOLATE]
   [SMALL_REMAINS]
   [NOT_BUTCHERABLE]
   [NO_DRINK][NO_EAT][NO_SLEEP]
   [BIOME:ANY_OCEAN]
   [POPULATION_NUMBER:250:500]
   [CLUSTER_NUMBER:1:1]
   [PREFSTRING:mystery]
   [NOPAIN][EXTRAVISION][NOBREATHE][NOSTUN][NONAUSEA][NOEMOTION][NOTHOUGHT]
   [NOBONES]
   [BODY:BASIC_1PARTBODY:BASIC_HEAD:TAIL:2EYES:NOSE:MOUTH:FORKED_TONGUE:GENERIC_TEETH_WITH_FANGS]
   [NO_THOUGHT_CENTER_FOR_MOVEMENT]
   [USE_MATERIAL_TEMPLATE:ICHOR:ICHOR_TEMPLATE]
      [STATE_NAME:ALL_SOLID:frozen ichor]
      [STATE_ADJ:ALL_SOLID:frozen ichor]
      [STATE_NAME:LIQUID:ichor]
      [STATE_ADJ:LIQUID:ichor]
      [STATE_NAME:GAS:boiling ichor]
      [STATE_ADJ:GAS:boiling ichor]
      [PREFIX:NONE]
   [TISSUE:ICHOR]
      [TISSUE_NAME:ichor:NP]
      [TISSUE_MATERIAL:LOCAL_CREATURE_MAT:ICHOR]
      [TISSUE_MAT_STATE:LIQUID]
      [MUSCULAR]
      [FUNCTIONAL]
      [STRUCTURAL]
      [RELATIVE_THICKNESS:1]
      [CONNECTS]
      [TISSUE_SHAPE:LAYER]
   [TISSUE_LAYER:BY_CATEGORY:ALL:ICHOR]   
   [USE_MATERIAL_TEMPLATE:VENOM:ICHOR_TEMPLATE]
      [STATE_NAME:ALL:ichor]
      [STATE_ADJ:ALL:ichor]
      [PREFIX:NONE]
   [EXTRACT:LOCAL_CREATURE_MAT:VENOM]
   [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_PRIORITY:MAIN]
      [ATTACK_FLAG_EDGE]
      [ATTACK_PREPARE_AND_RECOVER:3:3]
      [ATTACK_FLAG_CANLATCH]
      [SPECIALATTACK_INJECT_EXTRACT:LOCAL_CREATURE_MAT:VENOM:LIQUID]
   [BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS]
   [APPLY_CREATURE_VARIATION:STANDARD_WALK_CRAWL_GAITS:3512:2634:1756:878:4900:6900] 10 kph
   [APPLY_CREATURE_VARIATION:STANDARD_CRAWLING_GAITS:9000:8900:8825:8775:9500:9900] 1 kph
   [APPLY_CREATURE_VARIATION:STANDARD_SWIMMING_GAITS:3512:2634:1756:878:4900:6900] 10 kph
   [BODY_SIZE:0:0:1000]
   [BODY_APPEARANCE_MODIFIER:LENGTH:90:95:98:100:102:105:110]
   [ALL_ACTIVE]
   [NO_DIZZINESS]
   [NO_FEVERS]
   [SWIMS_INNATE]
   [CANNOT_JUMP]
   [ODOR_STRING:ichor]
   [ODOR_LEVEL:10]
   [SMELL_TRIGGER:10000]

also I am aware that after [SPECIALATTACK_INJECT_EXTRACT:LOCAL_CREATURE_MAT:VENOM:LIQUID] there can be a :100:100 after LIQUID but the fire snake didn't have that so unless that's the cause it shouldn't be needed here either
Logged

brolol.404

  • Bay Watcher
    • View Profile
Re: creating a custom race
« Reply #22 on: December 27, 2020, 08:30:47 am »

I havent tested this creature, but I would expect every attack to glance away being made put of ichor. The creature has to penetrate with its attack to inject.

You would probably have to change the material qualities of ichor for it to penetrate anything.

Mysterious Tree

  • Bay Watcher
    • View Profile
Re: creating a custom race
« Reply #23 on: December 27, 2020, 08:30:52 pm »

alright thanks! I think I know enough now to fix it
Logged

Mysterious Tree

  • Bay Watcher
    • View Profile
Re: creating a custom race
« Reply #24 on: February 20, 2021, 09:05:42 pm »

I have finally got a new question. I'm trying to create a creature that can encase other creatures with a water - lava combo and I can't get it to work.

So far I have this:

   [CAN_DO_INTERACTION:MATERIAL_EMISSION]
      [CDI:ADV_NAME:Encase creature, Pt1]
      [CDI:USAGE_HINT:ATTACK]
      [CDI:BP_REQUIRED:BY_CATEGORY:HAND]
      [CDI:MATERIAL:WATER:SPATTER_LIQUID]
      [CDI:TARGET:C:LINE_OF_SIGHT]
      [CDI:TARGET_RANGE:C:15]
      [CDI:MAX_TARGET_NUMBER:C:1]
      [CDI:VERB:gesture:gestures:NA]
      [CDI:WAIT_PERIOD:1]
   [CAN_DO_INTERACTION:MATERIAL_EMISSION]
      [CDI:ADV_NAME:Encase creature, Pt2]
      [CDI:USAGE_HINT:ATTACK]
      [CDI:BP_REQUIRED:BY_CATEGORY:HAND]
      [CDI:MATERIAL:INORGANIC:NO_MATGLOSS:SPATTER_LIQUID]
      [CDI:TARGET:C:LINE_OF_SIGHT]
      [CDI:TARGET_RANGE:C:15]
      [CDI:MAX_TARGET_NUMBER:C:1]
      [CDI:VERB:gesture:gestures:NA]
      [CDI:WAIT_PERIOD:1]

I thought it would work but magma behaves a bit weird (not hurting when walking through it and drinking it but causing damage when specifically holding it) and the water also does not react and thus no obsidian is created. I have tried a lot of methods and none so far have worked. (It's fair to say I pleased Armok in more ways than one today because this is not the only interaction and some are pretty fun)

And before I forget, there are no errors in the error log.
« Last Edit: February 20, 2021, 09:07:30 pm by Mysterious Tree »
Logged
Pages: 1 [2]