Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 277 278 [279] 280 281 ... 372

Author Topic: [MODDING] CREATURE & ENTITY QUESTIONS THREAD  (Read 699872 times)

Logariter

  • Bay Watcher
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #4170 on: November 20, 2019, 02:31:32 pm »

This creature cannot use its sting attack. Does anyone know why?
Code: [Select]
[CREATURE:SCRAWLER]
[DESCRIPTION:A tiny flying insect found around rotting meat and garbage.  These bugs are widely considered to be a nuisance.]
[NAME:scrawler:scrawlers:scrawler]
[CASTE_NAME:scrawler:scrawlers:scrawler]
[CREATURE_TILE:'S'][COLOR:4:0:1]
[NATURAL]
[BIOME:NOT_FREEZING]
[FREQUENCY:100]
[POPULATION_NUMBER:250:500]
[CLUSTER_NUMBER:100:200]
[PREFSTRING:alien nature]
[FLIER]
[DIURNAL]
[NO_SLEEP]
[APPLY_CREATURE_VARIATION:STANDARD_FLYING_GAITS:2206:1692:1178:585:3400:4900] 15 kph, NO DATA
[APPLY_CREATURE_VARIATION:STANDARD_WALKING_GAITS:2206:1692:1178:585:3400:4900] 1 kph
[APPLY_CREATURE_VARIATION:STANDARD_CRAWLING_GAITS:2206:1692:1178:585:3400:4900] 1 kph
[APPLY_CREATURE_VARIATION:STANDARD_CLIMBING_GAITS:2206:1692:1178:585:3400:4900] 1 kph
[STANCE_CLIMBER][NATURAL_SKILL:CLIMBING:15]
[BODY:SPIDER:TAIL:TAIL_STINGER:3EYES:2EYESTALKS:UPPERBODY_PINCERS:LARGE_MANDIBLES:SIX_TENTACLES:SHELL:GENERIC_TEETH:HEART:GUTS:BRAIN:MOUTH:2WINGS]
[BODY_DETAIL_PLAN:CHITIN_MATERIALS]
[USE_MATERIAL_TEMPLATE:SHELL:SHELL_TEMPLATE]
[BODY_DETAIL_PLAN:CHITIN_TISSUES]
[USE_TISSUE_TEMPLATE:SHELL:SHELL_TEMPLATE]
[BODY_DETAIL_PLAN:EXOSKELETON_TISSUE_LAYERS:CHITIN:FAT:MUSCLE]
[BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS]
[BODY_DETAIL_PLAN:SHELL_POSITIONS]
[USE_MATERIAL_TEMPLATE:VENOM:CREATURE_EXTRACT_TEMPLATE]
[STATE_NAME:ALL_SOLID:frozen scrawler venom]
[STATE_ADJ:ALL_SOLID:frozen scrawler venom]
[STATE_NAME:LIQUID:scrawler venom]
[STATE_ADJ:LIQUID:scrawler venom]
[STATE_NAME:GAS:boiling scrawler venom]
[STATE_ADJ:GAS:boiling scrawler venom]
[PREFIX:NONE]
[SYNDROME]
[SYN_NAME:scrawler sting]
[SYN_AFFECTED_CLASS:GENERAL_POISON]
[SYN_IMMUNE_CREATURE:SCRAWLER:ALL]
[SYN_CONTACT]
[SYN_INJECTED]
[CE_NECROSIS:SEV:1000000:PROB:100:LOCALIZED:VASCULAR_ONLY:START:0:PEAK:0:END:1200]
[USE_MATERIAL_TEMPLATE:EGG:CREATURE_EXTRACT_TEMPLATE]
[STATE_NAME:ALL_SOLID:scrawler jelly]
[STATE_ADJ:ALL_SOLID:scrawler jelly]
[STATE_NAME:LIQUID:melted scrawler jelly]
[STATE_ADJ:LIQUID:melted scrawler jelly]
[STATE_NAME:GAS:boiling scrawler jelly]
[STATE_ADJ:GAS:boiling scrawler jelly]
[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:100]
[BODY_SIZE:1:0:100000]
[MAXAGE:10:1000000000]
[ATTACK:BITE:CHILD_BODYPART_GROUP:BY_CATEGORY:STINGER]
[ATTACK_SKILL:BITE]
[ATTACK_VERB:sting:stings]
[ATTACK_CONTACT_PERC:100]
[ATTACK_PENETRATION_PERC:100]
[ATTACK_PRIORITY:MAIN]
[ATTACK_FLAG_EDGE]
[ATTACK_PREPARE_AND_RECOVER:3:3]
[SPECIALATTACK_INJECT_EXTRACT:LOCAL_CREATURE_MAT:VENOM:LIQUID:100:100]
[CASTE:FEMALE]
[FEMALE]
[LAYS_EGGS]
[EGG_MATERIAL:LOCAL_CREATURE_MAT:EGG:SOLID]
[EGG_SIZE:100]
[CLUTCH_SIZE:200:500]
[CASTE:MALE]
[MALE]
[SELECT_CASTE:ALL]
[SET_TL_GROUP:BY_CATEGORY:ALL:CHITIN]
[TL_COLOR_MODIFIER:BLACK:1]
[TLCM_NOUN:chitin:SINGULAR]
[SET_TL_GROUP:BY_CATEGORY:EYE:EYE]
[TL_COLOR_MODIFIER:BLACK:1]
[TLCM_NOUN:eyes:PLURAL]
Logged

Enemy post

  • Bay Watcher
  • Modder/GM
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #4171 on: November 20, 2019, 03:06:45 pm »

The [ATTACK:BITE:CHILD_BODYPART_GROUP:BY_CATEGORY:STINGER] line is written incorrectly. Try changing it to [ATTACK:STING:BODYPART:BY_CATEGORY:STINGER]
Logged
My mods and forum games.
Enemy post has claimed the title of Dragonsong the Harmonic of Melodious Exaltion!

Logariter

  • Bay Watcher
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #4172 on: November 20, 2019, 03:25:18 pm »

The [ATTACK:BITE:CHILD_BODYPART_GROUP:BY_CATEGORY:STINGER] line is written incorrectly. Try changing it to [ATTACK:STING:BODYPART:BY_CATEGORY:STINGER]
That worked. Do you know how I can make sure that all modded creature attacks work?
Logged

Enemy post

  • Bay Watcher
  • Modder/GM
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #4173 on: November 20, 2019, 03:27:35 pm »

That's too broad to answer, sorry. You could try to use analogous attacks from similar vanilla creatures to increase the chance it'll work by a good deal, but in the long run it's virtually impossible to provide solutions to every possible problem that might arise.
Logged
My mods and forum games.
Enemy post has claimed the title of Dragonsong the Harmonic of Melodious Exaltion!

Logariter

  • Bay Watcher
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #4174 on: November 20, 2019, 03:33:29 pm »

OK

Another question: A creature I made should transform other creatures, but doesn't. Here are the relevent raw files:
Code: [Select]
[INTERACTION:GLARE]

[I_SOURCE:ATTACK]
[IS_HIST_STRING_1: glared at ]
[IS_HIST_STRING_2: and transformed them into a gazer]

[I_TARGET:A:CREATURE]
[IT_LOCATION:CONTEXT_CREATURE]

[I_EFFECT:ADD_SYNDROME]
[IE_TARGET:A]
[IE_IMMEDIATE]
[SYNDROME]
[SYN_CLASS:WERECURSE]
[CE_BODY_TRANSFORMATION:START:0]
[CE:CREATURE:GAZER:DEFAULT]
Code: [Select]
[CREATURE:GAZER]
[DESCRIPTION:A humanoid with a glowing eye.]
[NAME:gazer:gazers:gazer]
[CASTE_NAME:gazer:gazers:gazer]
[OUTSIDER_CONTROLLABLE]
[CREATURE_TILE:'G'][COLOR:3:0:0]
[CREATURE_SOLDIER_TILE:154]
[INTELLIGENT]
[CANOPENDOORS]
[BENIGN]
[NO_DRINK]
[NO_EAT]
[NO_SLEEP]
[NO_FEVERS]
[NOBREATHE]
[NOPAIN]
[NOEXERT]
[NOFEAR]
[NONAUSEA]
[NOSTUN]
[PREFSTRING:unnerving gaze]
[BODY:HUMANOID_NECK:1EYE:SMHEART]
[BODY_DETAIL_PLAN:STANDARD_MATERIALS]
[REMOVE_MATERIAL:BONE]
[REMOVE_MATERIAL:CARTILIGE]
[BODY_DETAIL_PLAN:STANDARD_TISSUES]
[REMOVE_TISSUE:BONE]
[REMOVE_TISSUE:CARTILIGE]
[BODY_DETAIL_PLAN:MOLLUSC_TISSUE_LAYERS:SKIN:FAT:MUSCLE]
[BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS]
[BODY_DETAIL_PLAN:HUMANOID_HEAD_POSITIONS]
[BODY_DETAIL_PLAN:HUMANOID_RELSIZES]
[BODY_SIZE:0:0:4000]
[BODY_SIZE:1:168:17500]
[BODY_SIZE:12:0:70000]
[BODY_APPEARANCE_MODIFIER:HEIGHT:75:95:98:100:102:105:125]
[APP_MOD_IMPORTANCE:500]
[BODY_APPEARANCE_MODIFIER:BROADNESS:75:95:98:100:102:105:125]
[APP_MOD_IMPORTANCE:500]
[SET_BP_GROUP:BY_CATEGORY:EYE]
[BP_APPEARANCE_MODIFIER:CLOSE_SET:0:70:90:100:110:130:200]
[APP_MOD_NOUN:eyes:PLURAL]
[BP_APPEARANCE_MODIFIER:DEEP_SET:0:70:90:100:110:130:200]
[APP_MOD_NOUN:eyes:PLURAL]
[BP_APPEARANCE_MODIFIER:ROUND_VS_NARROW:0:70:90:100:110:130:200]
[APP_MOD_NOUN:eyes:PLURAL]
[BP_APPEARANCE_MODIFIER:LARGE_IRIS:25:70:90:100:110:130:200]
[APP_MOD_NOUN:eyes:PLURAL]
[APP_MOD_DESC_RANGE:30:60:90:110:150:190]
[ATTACK:PUNCH:BODYPART:BY_CATEGORY:EYE]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:glare at:glares at]
[ATTACK_CONTACT_PERC:100]
[ATTACK_PENETRATION_PERC:1000]
[ATTACK_PREPARE_AND_RECOVER:3:3]
[ATTACK_FLAG_EDGE]
[ATTACK_VELOCITY_MULTIPLIER:1000000]
[ATTACK_PRIORITY:MAIN]
[SPECIALATTACK_INTERACTION:GLARE]
[EQUIPS]
[SMELL_TRIGGER:90]
[HOMEOTHERM:10067]
[APPLY_CREATURE_VARIATION:STANDARD_BIPED_GAITS:900:675:450:225:1900:2900] 39 kph
[APPLY_CREATURE_VARIATION:STANDARD_CLIMBING_GAITS:6561:6115:5683:1755:7456:8567] 5 kph, NO DATA
[APPLY_CREATURE_VARIATION:STANDARD_SWIMMING_GAITS:5341:4723:4112:1254:6433:7900] 7 kph
[APPLY_CREATURE_VARIATION:STANDARD_CRAWLING_GAITS:2990:2257:1525:731:4300:6100] 12 kph, NO DATA
[SWIMS_LEARNED]
« Last Edit: November 20, 2019, 04:30:29 pm by Logariter »
Logged

Enemy post

  • Bay Watcher
  • Modder/GM
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #4175 on: November 20, 2019, 09:36:19 pm »

What does your errorlog say?
Logged
My mods and forum games.
Enemy post has claimed the title of Dragonsong the Harmonic of Melodious Exaltion!

Logariter

  • Bay Watcher
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #4176 on: November 21, 2019, 02:57:20 am »

My errorlog says this about the gazer creature, but I think I fixed these problems.
Code: [Select]
*** Error(s) found in the file "raw/objects/creature_bug.txt"
GAZER:Unrecognized Creature Token: ATTACK_VELOCITY_MULTIPLIER
*** Error(s) finalizing the creature GAZER
DEFAULT : PUNCH : Special attack interaction token not recognized : INTERACTION
Logged

Ulfarr

  • Bay Watcher
  • Going on a pilgrimage to Mars
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #4177 on: November 21, 2019, 09:38:32 am »

The first error is due to a typo, it's "ATTACK_VELOCITY_MODIFIER" not "ATTACK_VELOCITY_MULTIPLIER". I don't know about the second error.
Logged
Bring Kobold Kamp to LNP! graphics compatibility fix.

So the conclusion I'm getting here is that we use QSPs because dwarves can't pilot submarines.

Logariter

  • Bay Watcher
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #4178 on: November 21, 2019, 10:18:07 am »

OK
Logged

Dragula

  • Bay Watcher
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #4179 on: November 21, 2019, 11:06:48 am »

Does anyone have a mammoth creature with a graphical tile that I can use? I want mammoths in my fortresses. :(
Logged

Enemy post

  • Bay Watcher
  • Modder/GM
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #4180 on: November 21, 2019, 11:22:32 am »

I have a mammoth (among other things), but not a tile.

You can get it here, if you like.
Logged
My mods and forum games.
Enemy post has claimed the title of Dragonsong the Harmonic of Melodious Exaltion!

Dragula

  • Bay Watcher
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #4181 on: November 21, 2019, 11:25:38 am »

I have a mammoth (among other things), but not a tile.

You can get it here, if you like.
Many thanks <3

Years ago I made my own mammoth with useable wool and stuff, but that creature is long gone and I am too lazy to make a new one.
Logged

Enemy post

  • Bay Watcher
  • Modder/GM
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #4182 on: November 21, 2019, 12:27:28 pm »

Too bad about your other mammoth, Dragula. These new ones can also be sheared for wool, so at least there's that.

My errorlog says this about the gazer creature, but I think I fixed these problems.
Code: [Select]
*** Error(s) found in the file "raw/objects/creature_bug.txt"
GAZER:Unrecognized Creature Token: ATTACK_VELOCITY_MULTIPLIER
*** Error(s) finalizing the creature GAZER
DEFAULT : PUNCH : Special attack interaction token not recognized : INTERACTION

I looked at your creature. It works on my end, my guess is that there's something wrong with the file your interaction is stored in. Does it have a normally-formatted OBJECT_INTERACTION tag at the top? Also, the bit of plaintext at the top actually does need to be there.

I did notice that it couldn't think or attack because it was missing a bodypart with the THOUGHT tag. Is that what the SMHEART is for?

They also have some difficulty piercing skin with their eye attack. I reworked it a bit and now they can turn people more consistently with this new pattern:

Code: [Select]
[ATTACK:PUNCH:BODYPART:BY_CATEGORY:EYE]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:glare at:glares at]
[ATTACK_CONTACT_PERC:10]
[ATTACK_PENETRATION_PERC:1000]
[ATTACK_PREPARE_AND_RECOVER:3:3]
[ATTACK_FLAG_EDGE]
[ATTACK_PRIORITY:MAIN]
[SPECIALATTACK_INTERACTION:GLARE]

I also had an incident of the gazers crashing the game after some conversions. That likely stems from an existing issue where transformations crash the game if not handled carefully. I generally avoid them for that reason, but it can be worked around. They seem to be primarily triggered by the new form either having random elements that change the creature's description, or the transformation happening to a non-historical figure.
Logged
My mods and forum games.
Enemy post has claimed the title of Dragonsong the Harmonic of Melodious Exaltion!

Dragula

  • Bay Watcher
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #4183 on: November 21, 2019, 12:50:44 pm »

Too bad about your other mammoth, Dragula. These new ones can also be sheared for wool, so at least there's that.
Your mod also has dinosaurs so it is obviously superior in every way. Now off to shear mammoths and capture spinosauruses.
Logged

Enemy post

  • Bay Watcher
  • Modder/GM
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #4184 on: November 21, 2019, 12:56:09 pm »

I hope you enjoy it! If you want to catch a Spinosaurus, you need to embark on a Savage savanna, wetland, tropical shrubland, or lake. If they're in the area, the elves also might have some.

Dwarves can embark with mammoths, so finding those shouldn't be an issue. Wild ones live in mountains, glaciers, tundras, and taiga forests.
« Last Edit: November 21, 2019, 01:43:32 pm by Enemy post »
Logged
My mods and forum games.
Enemy post has claimed the title of Dragonsong the Harmonic of Melodious Exaltion!
Pages: 1 ... 277 278 [279] 280 281 ... 372