Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: I try to fix it, it gets more broken... (Badly Functioning Creature)  (Read 1573 times)

Monk321654

  • Bay Watcher
  • [COMPUTER_DEPENDENT]
    • View Profile

So here we are again.
I'm such a failure at modding.

Anyway, I've got this creature I'm trying to mod in, but at the moment it just won't work.
Here's the raws for the moment:
Code: [Select]
[CREATURE:BLOB_VORACIOUS]
[DESCRIPTION:A giant, living blob of toxic goop, with a big toothy mouth. It is immune to all poisons and can eat anything.]
[NAME:voracious blob:voracious blobs:voracious blob]
[CASTE_NAME:voracious blob:voracious blobs:voracious blob]
[CHILD:3][GENERAL_CHILD_NAME:voracious blobbles:voracious blobbles]
[CREATURE_TILE:'O'][COLOR:2:0:0]
[BIOME:SUBTERRANEAN_WATER]
[UNDERGROUND_DEPTH:1:2]
[LARGE_ROAMING][DIFFICULTY:2]
[POPULATION_NUMBER:10:20]
[CARNIVORE][NATURAL]
[NOBREATHE][NOSTUN][NONAUSEA][NOEMOTION]
[NOTHOUGHT][NO_DIZZINESS][NO_FEVERS][NO_SLEEP]
[NOBONES]
[EXTRAVISION]
[LARGE_PREDATOR]
[GRASSTRAMPLE:1000]
[PREFSTRING:horrible acid]
[BODY:BASIC_2PARTBODY:MOUTH_BLOB:GENERIC_TEETH]
[NO_THOUGHT_CENTER_FOR_MOVEMENT]
[TISSUE:GOOP]
[TISSUE_NAME:goop:goop]
[TISSUE_MATERIAL:TISSUE_TEMPLATE:FAT_TEMPLATE]
[MUSCULAR]
[FUNCTIONAL]
[STRUCTURAL]
[RELATIVE_THICKNESS:1]
[CONNECTS]
[TISSUE_SHAPE:LAYER]
[TISSUE_LAYER:BY_CATEGORY:ALL:GOOP]
[BODY_SIZE:0:0:15000]
[BODY_SIZE:1:0:30000]
[BODY_SIZE:2:0:60000]
[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]
[MAXAGE:20:40]
[ATTACK:BITE:CHILD_BODYPART_GROUP:BY_CATEGORY:UPPERBODY:BY_CATEGORY:TOOTH]
[ATTACK_SKILL:BITE]
[ATTACK_VERB:bite:bites]
[ATTACK_CONTACT_PERC:100]
[ATTACK_PENETRATION_PERC:100]
[ATTACK_FLAG_EDGE]
[ATTACK_PRIORITY:MAIN]
[ATTACK_FLAG_CANLATCH]
[ALL_ACTIVE]
[HOMEOTHERM:10040]
[CASTE:FEMALE]
[FEMALE]
[CASTE:MALE]
[MALE]
[SELECT_CASTE:ALL]
[SET_TL_GROUP:BY_CATEGORY:ALL:FAT]
[TL_COLOR_MODIFIER:EMERALD:1]
[TLCM_NOUN:goop:SINGULAR]
Issues:
The creature won't use its mouth to attack. (MOUTH_BLOB is a special body part I made. It's basically just a normal mouth, but size sixty and contype Upper body.)
The Tissue template seems incorrect. (Originally I just used standard tissues, but tried making my own. Big f%^&ing mistake there...)

Any help, please?
Logged
This is a side-effect of dwarven animal training (hit animal with hammer until it forgets that it hates you, then lovingly cuddle it).

I'm not your average Bay12er. I care about my drunken midgets.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: I try to fix it, it gets more broken... (Badly Functioning Creature)
« Reply #1 on: June 16, 2012, 05:25:28 pm »

BASIC_2PARTBODY already has an upper body. You should probably only need MOUTH_BLOB.

Your tissue material is... not right.

Monk321654

  • Bay Watcher
  • [COMPUTER_DEPENDENT]
    • View Profile
Re: I try to fix it, it gets more broken... (Badly Functioning Creature)
« Reply #2 on: June 16, 2012, 05:33:22 pm »

I'll probably replace the custom tissue with standard tissues.
That worked the last time I used it. (Although that was back when it only had one part. It was invincible as far as I could tell.)
As for the mouth, what string should I use? Replacing UPPERBODY with MOUTH does nothing.
Logged
This is a side-effect of dwarven animal training (hit animal with hammer until it forgets that it hates you, then lovingly cuddle it).

I'm not your average Bay12er. I care about my drunken midgets.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: I try to fix it, it gets more broken... (Badly Functioning Creature)
« Reply #3 on: June 16, 2012, 05:42:57 pm »

Upper bodies need the [UPPERBODY] token.

Monk321654

  • Bay Watcher
  • [COMPUTER_DEPENDENT]
    • View Profile
Re: I try to fix it, it gets more broken... (Badly Functioning Creature)
« Reply #4 on: June 16, 2012, 05:52:41 pm »

Upper bodies need the [UPPERBODY] token.
Well, yes, UPPERBODY is present in BASIC_2PARTBODY.
What do you mean?
Logged
This is a side-effect of dwarven animal training (hit animal with hammer until it forgets that it hates you, then lovingly cuddle it).

I'm not your average Bay12er. I care about my drunken midgets.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: I try to fix it, it gets more broken... (Badly Functioning Creature)
« Reply #5 on: June 16, 2012, 06:05:37 pm »

Ooh, read wrong.

How isn't it working, precisely? Crash on viewing? Only attackis push?

Monk321654

  • Bay Watcher
  • [COMPUTER_DEPENDENT]
    • View Profile
Re: I try to fix it, it gets more broken... (Badly Functioning Creature)
« Reply #6 on: June 16, 2012, 06:09:49 pm »

The last option.
The only attack is indeed push.
Also, I replaced my goop tissue with standard materials (I'll need a Body Gloss) and that's working again.
So, half the problem is finished.
Logged
This is a side-effect of dwarven animal training (hit animal with hammer until it forgets that it hates you, then lovingly cuddle it).

I'm not your average Bay12er. I care about my drunken midgets.

Steele

  • Bay Watcher
    • View Profile
Re: I try to fix it, it gets more broken... (Badly Functioning Creature)
« Reply #7 on: June 16, 2012, 06:12:18 pm »

I had a go of it, got it working.

Code: [Select]
[CREATURE:BLOB_VORACIOUS]
[DESCRIPTION:A giant, living blob of toxic goop, with a big toothy mouth. It is immune to all poisons and can eat anything.]
[NAME:voracious blob:voracious blobs:voracious blob]
[CASTE_NAME:voracious blob:voracious blobs:voracious blob]
[CHILD:3][GENERAL_CHILD_NAME:voracious blobbles:voracious blobbles]
[CREATURE_TILE:'O'][COLOR:2:0:0]
[BIOME:SUBTERRANEAN_WATER]
[UNDERGROUND_DEPTH:1:2]
[LARGE_ROAMING][DIFFICULTY:2]
[POPULATION_NUMBER:10:20]
[CARNIVORE][NATURAL]
[NOBREATHE][NOSTUN][NONAUSEA][NOEMOTION]
[NOTHOUGHT][NO_DIZZINESS][NO_FEVERS][NO_SLEEP]
[NOBONES]
[EXTRAVISION]
[LARGE_PREDATOR]
[GRASSTRAMPLE:1000]
[PREFSTRING:horrible acid]
[BODY:BASIC_2PARTBODY:MOUTH_BLOB:TEETH_BLOB]
[NO_THOUGHT_CENTER_FOR_MOVEMENT]
[USE_MATERIAL_TEMPLATE:FAT:FAT_TEMPLATE]
[STATE_NAME:ALL_SOLID:frozen goop]
[STATE_ADJ:ALL_SOLID:frozen goop]
[STATE_NAME:LIQUID:liquid goop]
[STATE_ADJ:LIQUID:liquid goop]
[STATE_NAME:GAS:boiling goop]
[STATE_ADJ:GAS:boiling goop]
[PREFIX:NONE]
[TISSUE:FAT]
[TISSUE_NAME:goop:goop]
[TISSUE_MATERIAL:LOCAL_CREATURE_MAT:FAT]
[MUSCULAR]
[FUNCTIONAL]
[STRUCTURAL]
[RELATIVE_THICKNESS:1]
[CONNECTS]
[TISSUE_SHAPE:LAYER]
[TISSUE_LAYER:BY_CATEGORY:ALL:FAT]
[BODY_SIZE:0:0:15000]
[BODY_SIZE:1:0:30000]
[BODY_SIZE:2:0:60000]
[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]
[MAXAGE:20:40]
[ATTACK:BITE:CHILD_BODYPART_GROUP:BY_CATEGORY:BODY_UPPER:BY_CATEGORY:TOOTH]
[ATTACK_SKILL:BITE]
[ATTACK_VERB:bite:bites]
[ATTACK_CONTACT_PERC:100]
[ATTACK_PENETRATION_PERC:100]
[ATTACK_FLAG_EDGE]
[ATTACK_PRIORITY:MAIN]
[ATTACK_FLAG_CANLATCH]
[ALL_ACTIVE]
[HOMEOTHERM:10040]
[CASTE:FEMALE]
[FEMALE]
[CASTE:MALE]
[MALE]
[SELECT_CASTE:ALL]
[SET_TL_GROUP:BY_CATEGORY:ALL:FAT]
[TL_COLOR_MODIFIER:EMERALD:1]
[TLCM_NOUN:goop:SINGULAR]

TEETH_BLOB is just GENERIC_TEETH with [CONTYPE:UPPERBODY].
Did you read the errorlog? It had some useful information.
Logged

Monk321654

  • Bay Watcher
  • [COMPUTER_DEPENDENT]
    • View Profile
Re: I try to fix it, it gets more broken... (Badly Functioning Creature)
« Reply #8 on: June 16, 2012, 06:23:03 pm »

Hey, it works!
Thank you so much!
Although it does mention the teeth and the mouth as being two separate parts...
Also, I think I'll need to insert a Tooth material template.
The teeth keep glancing off stuff, and I'm pretty sure it's because they're using the fat template.
But regardless, my greatest thanks.

Also... Errorlog?
I'm particularly incompetent, where would I find this?
Logged
This is a side-effect of dwarven animal training (hit animal with hammer until it forgets that it hates you, then lovingly cuddle it).

I'm not your average Bay12er. I care about my drunken midgets.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: I try to fix it, it gets more broken... (Badly Functioning Creature)
« Reply #9 on: June 16, 2012, 06:30:49 pm »

errorlog.txt right under your DF executable.

It is literally the most important thing to have when modding. Only the wiki has gotten more use from me when it comes to modding.

Monk321654

  • Bay Watcher
  • [COMPUTER_DEPENDENT]
    • View Profile
Re: I try to fix it, it gets more broken... (Badly Functioning Creature)
« Reply #10 on: June 16, 2012, 06:38:23 pm »

Oh.
Wow.
This thing is filled with errors. (And as proof of my incompetence, all of them are from my custom creatures.)
Apparently it says that Bite is a registered attack, but no BP connects, so it cancels out...
I'll do some experiments, but other then that...
Thank you very much for your time!
Logged
This is a side-effect of dwarven animal training (hit animal with hammer until it forgets that it hates you, then lovingly cuddle it).

I'm not your average Bay12er. I care about my drunken midgets.

Steele

  • Bay Watcher
    • View Profile
Re: I try to fix it, it gets more broken... (Badly Functioning Creature)
« Reply #11 on: June 16, 2012, 06:43:40 pm »

Edit: Well that didn't work right either. Hoped it would, but it looks like it'd need more work than I have time for right now to do it up properly.
« Last Edit: June 16, 2012, 06:56:28 pm by Steele »
Logged

Monk321654

  • Bay Watcher
  • [COMPUTER_DEPENDENT]
    • View Profile
Re: I try to fix it, it gets more broken... (Badly Functioning Creature)
« Reply #12 on: June 16, 2012, 06:59:52 pm »

Well, that helps a lot.
I think it's working fine now.
Thanks!
In my last test, I had two blobs fight.
One attacked the other in the teeth, and knocked every single one out.
They scattered EVERYWHERE.
(For some reason they were orange, but I don't mind that much. Sorta fitting actually.)
Thanks!
Logged
This is a side-effect of dwarven animal training (hit animal with hammer until it forgets that it hates you, then lovingly cuddle it).

I'm not your average Bay12er. I care about my drunken midgets.

Steele

  • Bay Watcher
    • View Profile
Re: I try to fix it, it gets more broken... (Badly Functioning Creature)
« Reply #13 on: June 16, 2012, 09:20:58 pm »

Had some free time so I went ahead and addressed the issues I ran into earlier.
I've also made a new version of the mouth, with 30 individual teeth defined.
Now you'd have to knock out all 30 before it becomes unable to bite, although this means it can now latch on 30 times to various body parts which is a bit silly.. I'll leave it up to you to decide if that's acceptable or not.

Code: [Select]
[BODY:MOUTH_BLOB]
[BP:MOUTH:mouth:STP][CONTYPE:UPPERBODY][MOUTH][SMALL][EMBEDDED][APERTURE][CATEGORY:MOUTH]
[DEFAULT_RELSIZE:60]
[BP:TOOTH1:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH2:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH3:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH4:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH5:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH6:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH7:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH8:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH9:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH10:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH11:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH12:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH13:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH14:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH15:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH16:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH17:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH18:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH19:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH20:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH21:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH22:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH23:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH24:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH25:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH26:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH27:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH28:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH29:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[BP:TOOTH30:tooth:teeth][CON:MOUTH][CATEGORY:TOOTH][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]

Code: [Select]
[CREATURE:BLOB_VORACIOUS]
[DESCRIPTION:A giant, living blob of toxic goop, with a big toothy mouth. It is immune to all poisons and can eat anything.]
[NAME:voracious blob:voracious blobs:voracious blob]
[CASTE_NAME:voracious blob:voracious blobs:voracious blob]
[CHILD:3][GENERAL_CHILD_NAME:voracious blobbles:voracious blobbles]
[CREATURE_TILE:'O'][COLOR:2:0:0]
[BIOME:SUBTERRANEAN_WATER]
[UNDERGROUND_DEPTH:1:2]
[LARGE_ROAMING][DIFFICULTY:2]
[POPULATION_NUMBER:10:20]
[CARNIVORE][NATURAL]
[NOBREATHE][NOSTUN][NONAUSEA][NOEMOTION][NOPAIN]
[NOTHOUGHT][NO_DIZZINESS][NO_FEVERS][NO_SLEEP]
[NOBONES]
[EXTRAVISION]
[LARGE_PREDATOR]
[GRASSTRAMPLE:1000]
[PREFSTRING:horrible acid]
[BODY:BASIC_2PARTBODY:MOUTH_BLOB]
[NO_THOUGHT_CENTER_FOR_MOVEMENT]
[BLOOD:LOCAL_CREATURE_MAT:FAT:LIQUID]
[USE_MATERIAL_TEMPLATE:TOOTH:TOOTH_TEMPLATE]
[USE_MATERIAL_TEMPLATE:FAT:FAT_TEMPLATE]
[STATE_NAME:ALL_SOLID:goop]
[STATE_ADJ:ALL_SOLID:goop]
[STATE_NAME:LIQUID:goop]
[STATE_ADJ:LIQUID:goop]
[STATE_NAME:GAS:boiling goop]
[STATE_ADJ:GAS:boiling goop]
[PREFIX:NONE]
[TISSUE:GOOP]
    [TISSUE_NAME:goop:NP]
    [THICKENS_ON_ENERGY_STORAGE]
    [SCARS]
    [TISSUE_MATERIAL:LOCAL_CREATURE_MAT:FAT]
    [RELATIVE_THICKNESS:1]
    [HEALING_RATE:100]
    [VASCULAR:3]
    [CONNECTS]
    [INSULATION:100]
    [TISSUE_SHAPE:LAYER]
[TISSUE_LAYER:BY_CATEGORY:BODY_UPPER:GOOP]
[TISSUE_LAYER:BY_CATEGORY:BODY_LOWER:GOOP]
[TISSUE_LAYER:BY_CATEGORY:MOUTH:GOOP]
[TISSUE:TOOTH]
    [TISSUE_NAME:tooth:NP]
    [STRUCTURAL]
    [TISSUE_MATERIAL:LOCAL_CREATURE_MAT:TOOTH]
    [RELATIVE_THICKNESS:2]
    [VASCULAR:1]
    [CONNECTS]
    [TISSUE_SHAPE:LAYER]
[TISSUE_LAYER:BY_CATEGORY:TOOTH:TOOTH]
[BODY_SIZE:0:0:15000]
[BODY_SIZE:1:0:30000]
[BODY_SIZE:2:0:60000]
[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]
[MAXAGE:20:40]
[ATTACK:BITE:CHILD_BODYPART_GROUP:BY_CATEGORY:MOUTH:BY_CATEGORY:TOOTH]
[ATTACK_SKILL:BITE]
[ATTACK_VERB:bite:bites]
[ATTACK_CONTACT_PERC:100]
[ATTACK_PENETRATION_PERC:100]
[ATTACK_FLAG_EDGE]
[ATTACK_PRIORITY:MAIN]
[ATTACK_FLAG_CANLATCH]
[ALL_ACTIVE]
[HOMEOTHERM:10040]
[CASTE:FEMALE]
[FEMALE]
[CASTE:MALE]
[MALE]
[SELECT_CASTE:ALL]
[SET_TL_GROUP:BY_CATEGORY:ALL:GOOP]
[TL_COLOR_MODIFIER:EMERALD:1]
[TLCM_NOUN:goop:SINGULAR]

Didn't take as much work as I thought, just a few quick changes.
For fun I've given them blood made of goop, so they can now "bleed" to death.
If you don't want them to bleed, simply remove [BLOOD:LOCAL_CREATURE_MAT:FAT:LIQUID] from them.
« Last Edit: June 16, 2012, 09:23:47 pm by Steele »
Logged

Monk321654

  • Bay Watcher
  • [COMPUTER_DEPENDENT]
    • View Profile
Re: I try to fix it, it gets more broken... (Badly Functioning Creature)
« Reply #14 on: June 16, 2012, 10:43:38 pm »

Thanks for that, but sadly I don't think I'll be using it.
Besides, the idea of punching out every single tooth in one hit is too good to pass up.
I think I'll put the blood in, but they usually get chopped in half before they get a chance to bleed.
Regardless, my thanks to you!
Logged
This is a side-effect of dwarven animal training (hit animal with hammer until it forgets that it hates you, then lovingly cuddle it).

I'm not your average Bay12er. I care about my drunken midgets.