Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 70 71 [72] 73 74 ... 372

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

Badger Storm

  • Bay Watcher
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #1065 on: February 07, 2015, 06:53:39 am »

I don't know what happened, but the problem came back, and changing the names of creatures didn't help at all.  I knew this would happen.
You are editing in "plain text" mode, correct? (Also, aren't you using OS X 10.6? I thought that system-wide autosave was introduced in 10.7.)
Anyway, any programming-type text editor shouldn't break things - I've used gedit (as Putnam mentioned), TextWrangler, Komodo Edit, and Sublime without problems (and I believe there's even a DF raw syntax-highlighting package available for the latter).

Well, the files get saved in .rtf format, but adding .txt to the end changes it to plain text.  Does this make a difference?

Just installed Sublime Text 2.  A) Does it do autosaves, and if so, is there a way to turn them off?  B)Anything else I need to know?

@Rex Invictus: There's a color article on the wiki with the list of all cosmetic colors.  If you're looking for such for a particular creature, it's in the raws of said creature.  "Clear" seems to be a color choice (as in clear glass and gems).
Logged

fricy

  • Bay Watcher
  • [DFHACK:ZEALOT]
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #1066 on: February 07, 2015, 07:12:05 am »

Well, the files get saved in .rtf format, but adding .txt to the end changes it to plain text.  Does this make a difference?
Yes, huge difference. Adding a txt at the end won't work, you need to resave the file with the proper format.

Quote
Just installed Sublime Text 2.  A) Does it do autosaves, and if so, is there a way to turn them off?  B)Anything else I need to know?
A,
It doesn't do any versioning that'd break the raws, it remembers your unsaved changes if you quit without saving, but that information is saved elsewhere.
B,
Download the DFML package, extract the zip file
Go to: Sublime Text -» Preferences -» Browse packages. Move the just extracted folder to the Packages folder.
Restart Sublime, load any raw file, go to View -» Syntax and select DFML
Select a color scheme that you like: Sublime Text -» Preferences -» Color scheme

mineforce

  • Bay Watcher
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #1067 on: February 07, 2015, 12:35:05 pm »

Civ keeps getting killed by megabeast very early in world gen?

Like a roc is routed to the civs only town in year 13 and wipes them out.
Logged
Who's born in the fortress, die in the fortress

Rex Invictus

  • Bay Watcher
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #1068 on: February 07, 2015, 02:44:49 pm »

I'm having an issue with casteless creatures spawning.

I've removed all members of the "default" type from the castes, but they're still spawning for some unknown reason. I have absolutely no idea why.

Example:

Logged

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #1069 on: February 07, 2015, 03:43:07 pm »

Genetics let two of the others breed as a vanilla kobold?
Logged

Rex Invictus

  • Bay Watcher
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #1070 on: February 07, 2015, 03:52:40 pm »

Genetics let two of the others breed as a vanilla kobold?

It turned out I did a : instead of a _ on one of my CASTES.
Logged

EuropeanDorf

  • Bay Watcher
  • alchemy too stronk pls nerf
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #1071 on: February 07, 2015, 04:53:20 pm »

So there is this one thing. I have created 3 creatures (which may or may not become castes of one larger family).

And there's one problem. They're rather... frail. And can't do much other than bruise other creatures (unless using their special ability). Probably because of what they're made of, and that's where the problem comes in.

Not sure what they're exactly made of, since they're not exactly mine. Probably live organisms covered by gelatinous goo/slime that helps absorb/deflect attacks, so they would be durable (not as tough as bronze colossus, but tougher than many creatures, since they're supposed to be magical or so).

Also, the one that's closest to humanoid cannot hold weapons, even though it has [GRASP] and [LIMB].

This is what I have.

So yeah, since I kinda suck at this... Help? I tried creating some super material, but I don't even how to implement that.
Spoiler (click to show/hide)
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #1072 on: February 07, 2015, 05:05:01 pm »

Density can only be an integer, and it's in kg/m3. Your value is 1/1000 the density of air. .75 g/cm would be 750 kg/m, so 750 is what you want.

EuropeanDorf

  • Bay Watcher
  • alchemy too stronk pls nerf
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #1073 on: February 07, 2015, 05:13:37 pm »

Height is 2m and weight is about 150kg, but it counts in cubic...

Also, it would be 75, not 750 if it were normal. But it's cubed...

...

I don't even know how to apply it to tissues, at least the external ones (as I am assuming it's made of fleshy stuff inside, but it has protective coating outside. Somewhat like skin, except more durable.)
« Last Edit: February 07, 2015, 05:15:45 pm by EuropeanDorf »
Logged

fricy

  • Bay Watcher
  • [DFHACK:ZEALOT]
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #1074 on: February 07, 2015, 05:33:07 pm »

I'd cuddle them. :)

Quote
Now that's more humanoid-like. Also, it seems to covered in some sticky substance around the hands, but dunno how to program that.
Code: [Select]
[USE_MATERIAL_TEMPLATE:SLIME:GOOMY_SLIME_TEMPLATE]
[SECRETION:CREATURE_MAT:ANIMAL:SLIME:LIQUID:BY_CATEGORY:HAND:SKIN:CONTINUOUS]

Crimson Beard 13

  • Escaped Lunatic
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #1075 on: February 07, 2015, 07:23:04 pm »

thx for directing me to the right place fricy ok so i put the code in creature standard and it worked o-o i have it in object testing arena my question is what token makes it appear on embark i put domestic_animal but i havnt found the embark one XD
Logged

Badger Storm

  • Bay Watcher
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #1076 on: February 08, 2015, 02:34:20 pm »

Good news: It appears that shelled creature populations vary naturally, leading to the conclusion that there was never a problem at all and I'm a moron who needs to calm down.

Bad news: I'm still having trouble with that stupid fairy dragon.  Real manly, I know.

*** Error(s) found in the file "raw/objects/creature_custom_mods.txt"
FAIRY_DRAGON_BSTORM Color Mod Ending With (PINK,1) Was Not Used
*** Error(s) finalizing the creature FAIRY_DRAGON_BSTORM
undefined local creature material set to default: FAIRY_DRAGON_BSTORM CHITIN
*** Error(s) found in the file "data/save/region4/raw/objects/creature_custom_mods.txt"
FAIRY_DRAGON_BSTORM Color Mod Ending With (PINK,1) Was Not Used
*** Error(s) finalizing the creature FAIRY_DRAGON_BSTORM
undefined local creature material set to default: FAIRY_DRAGON_BSTORM CHITIN

It's supposed to have chitinous (i.e. butterfly) wings, but apparently there's a bit of an issue here.

Code: [Select]
[CREATURE:FAIRY_DRAGON_BSTORM]
[DESCRIPTION:A distant relative of the true dragon, this colorful, horse-sized creature lives only in enchanted wetlands.  Its wings are too small for flight, but their bright patterns help scare away enemies.]
[NAME:fairy dragon:fairy dragons:fairy dragon]
[CASTE_NAME:fairy dragon:fairy dragons:fairy dragon]
[CHILD:2][GENERAL_CHILD_NAME:fairy dragon hatchling:fairy dragon hatchling]
[CREATURE_TILE:'D'][COLOR:3:5:1]
[FREQUENCY:50][POPULATION_NUMBER:5:10][CLUSTER_NUMBER:1:2]
[BIOME:ANY_WETLAND]
[GOOD][FANCIFUL][PET_EXOTIC][MOUNT_EXOTIC]
[LARGE_ROAMING][NATURAL][MEANDERER]
[PETVALUE:1250]
[PREFSTRING:vibrant colors]
[BODY:QUADRUPED_NECK:TAIL:2WINGS:2EYES:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:SKULL:5TOES_FQ_REG:5TOES_RQ_REG:MOUTH:TONGUE:GENERIC_TEETH_WITH_LARGE_EYE_TEETH:RIBCAGE]
[BODY_DETAIL_PLAN:STANDARD_MATERIALS]
[REMOVE_MATERIAL:SKIN]
[REMOVE_MATERIAL:LEATHER]
[REMOVE_MATERIAL:HAIR]
[USE_MATERIAL_TEMPLATE:SCALE:SCALE_TEMPLATE]
[BODY_DETAIL_PLAN:STANDARD_TISSUES]
[REMOVE_TISSUE:SKIN]
[REMOVE_TISSUE:HAIR]
[USE_TISSUE_TEMPLATE:SCALE:SCALE_TEMPLATE]
[BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SCALE:FAT:MUSCLE:BONE:CARTILAGE]
[USE_MATERIAL_TEMPLATE:CHITIN_CHITIN_TEMPLATE]
[USE_TISSUE_TEMPLATE:CHITIN:CHITIN_TEMPLATE]
[TISSUE_LAYER:BY_CATEGORY:WING]
[USE_MATERIAL_TEMPLATE:CLAW:NAIL_TEMPLATE]
[USE_TISSUE_TEMPLATE:CLAW:CLAW_TEMPLATE]
[TISSUE_LAYER:BY_CATEGORY:TOE: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: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:50000]
[BODY_SIZE:1:0:100000]
[BODY_SIZE:2:0:250000]
[BODY_SIZE:3:0:500000]
[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:100]
[ATTACK_PENETRATION_PERC:100]
[ATTACK_FLAG_EDGE]
[ATTACK_PREPARE_AND_RECOVER:3:3]
[ATTACK_PRIORITY:MAIN]
[ATTACK_FLAG_CANLATCH]
[ATTACK:CLAW:CHILD_TISSUE_LAYER_GROUP:BY_TYPE:STANCE:BY_CATEGORY:ALL:CLAW]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:claw:claws]
[ATTACK_CONTACT_PERC:100]
[ATTACK_PENETRATION_PERC:100]
[ATTACK_FLAG_EDGE]
[ATTACK_PREPARE_AND_RECOVER:3:3]
[ATTACK_PRIORITY:MAIN]
[DIURNAL]
[APPLY_CREATURE_VARIATION:STANDARD_QUADRUPED_GAITS:900:750:600:439:1900:2900] 20 kph
[APPLY_CREATURE_VARIATION:STANDARD_SWIMMING_GAITS:6561:6115:5683:1755:7456:8567] 5 kph
[APPLY_CREATURE_VARIATION:STANDARD_CRAWLING_GAITS:6561:6115:5683:1755:7456:8567] 5 kph
[SWIMS_INNATE]
[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:2000]
[CLUTCH_SIZE:1:4]
[CASTE:MALE]
[MALE]
[SELECT_CASTE:ALL]
[SET_TL_GROUP:BY_CATEGORY:ALL:SCALE]
[TL_COLOR_MODIFIER:AZURE:1:AQUA:1:BLUE:1]
[SET_TL_GROUP:BY_CATEGORY:WING:CHITIN]
[TL_COLOR_MODIFIER:DARK_PINK:1:HELIOTROPE:1:FUCHSIA:1:PINK:1]
[TLCM_NOUN:wings:PLURAL]
[SET_TL_GROUP:BY_CATEGORY:EYE:EYE]
[TL_COLOR_MODIFIER:IRIS_EYE_AZURE:1:EMERALD:1:AMETHYST:1:SAFFRON:1:TURQUOISE:1:HELIOTROPE:1:CARDINAL:1:SPRING_GREEN:1:JADE:1:SCARLET:1:GOLDEN_YELLOW:1:FUCHSIA:1:DARK_PINK:1:AQUA:1]
[TLCM_NOUN:eyes:PLURAL]
[SELECT_MATERIAL:ALL]
[MULTIPLY_VALUE:4]

There's the code.
Logged

scamtank

  • Bay Watcher
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #1077 on: February 08, 2015, 02:39:34 pm »

That's a simple typo. Look at the USE_MATERIAL_TEMPLATE about chitin and check your colons.
Logged

EuropeanDorf

  • Bay Watcher
  • alchemy too stronk pls nerf
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #1078 on: February 08, 2015, 04:08:17 pm »

So after some research, I've come to conclusion that the slime's density might be 660kg/m3 or so (500 at worst)

For comparision, steel is set as 7800kg/m3 and wood as 500kg/m3. Water is apparently twice as dense as wood, by the way.

Yeah, it's not super dense... is it good enough?

Also, how to make it use that stuff?! ._.
Logged

Badger Storm

  • Bay Watcher
    • View Profile
Re: [MODDING] CREATURE & ENTITY QUESTIONS THREAD
« Reply #1079 on: February 08, 2015, 06:56:09 pm »

More troubles with this creature:  Instead of "its scales are [color]," I get "its tongue's scale is [color]".  WTF man.  I'm pretty sure this is after I fixed the little typo too.
Logged
Pages: 1 ... 70 71 [72] 73 74 ... 372