Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Custom creature body: do I need to edit body detail too?  (Read 2456 times)

Master Catfish

  • Bay Watcher
    • View Profile
Custom creature body: do I need to edit body detail too?
« on: February 18, 2012, 06:17:52 pm »

I'm trying to make a custom body for fungus people.  I don't know if what I have will work at all, and I have a sneaking suspicion that Body Detail might need to get involved.  Help is much appreciated!

Since plump helmet men are too simple for what I want, I'm bringing my question here.  I want these creatures to have no heads, but most of the normal functions.  Instead of a head I'd like a cap which contains a skull and brain.  Eyes and mouth go on the upper body.  The cap can 'smell' and 'hear' with its gills.  I chose not to add in gills, since I'm afraid they would contain skin, muscle, fat, and bone.

Spoiler (click to show/hide)

I'm really confused about how the game knows that the skull is made of bone.  Advice on how to do gills is more than welcome, too!
On a side note, does anyone know a way to kill off a civilization besides modifying genders and pop_ratio?

Thanks again!
« Last Edit: February 18, 2012, 06:34:55 pm by Master Catfish »
Logged

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: Custom creature body: do I need to edit body detail too?
« Reply #1 on: February 18, 2012, 06:50:32 pm »

The body detail plans consist of shortcuts for several commands -- using materials, using tissues, setting layer thicknesses, body part relations and positions...
Relevant to your interests are body part layers --that is, from the vertebrate tissue layers plan:
[BP_LAYERS:BY_CATEGORY:BODY:ARG3:50:ARG2:5:ARG1:1]
When the creatures call this particular plan, they send in arguments as part of the token -- [BODY_DETAIL_PLAN:...:SKIN:FAT:MUSCLE:BONE:CARTILAGE]
In this case, all [CATEGORY:BODY] parts that this pseudo-creature would have are 50 layers of MUSCLE tissue, 5 layers of FAT, and 1 layer of SKIN.

EDIT: Maybe using the term layer there is a bit confusing.  The muscle is the internal 89.3% (50/56) of that body part.

Note that body detail plans don't have to be involved at all, as all of the tags they call are available in some fashion in the creature definitions themselves -- they're meant to simplify having many creatures with the same style, hence the arguments.
« Last Edit: February 18, 2012, 06:53:50 pm by Jay »
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

Master Catfish

  • Bay Watcher
    • View Profile
Re: Custom creature body: do I need to edit body detail too?
« Reply #2 on: February 18, 2012, 07:35:08 pm »

Thanks for the response.  I guess that's how I'd go about making gills.  Nice to know I don't need to edit body detail to get what I want.

Unfortunately, when I tried my creature in the arena, I wasn't able to find it on the list.
Spoiler (click to show/hide)

Any idea why?
Logged

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: Custom creature body: do I need to edit body detail too?
« Reply #3 on: February 18, 2012, 07:38:46 pm »

Presumably your MYCOTA body's parts aren't using the correct CATEGORY definitions, so it's unable to give them tissue layers.
Check errorlog.txt.
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

Master Catfish

  • Bay Watcher
    • View Profile
Re: Custom creature body: do I need to edit body detail too?
« Reply #4 on: February 18, 2012, 07:52:23 pm »

No errors.
EDIT: Tried throwing those raws into creature_standard and body_default, and got plenty of errors.  For some reason when they were in their own files it wasn't registering them, I guess.

*** Error(s) found in the file "raw/objects/body_default.txt"
MYCOTA:SKULL_MYCOTA:Unrecognized Creature Bodypart CONTYPE Token: CAP
MYCOTA:BRAIN:Unrecognized Creature Bodypart CONTYPE Token: CAP
*** Error(s) found in the file "raw/objects/creature_standard.txt"
AAMYCOTA:Unrecognized Creature Caste Body Token: DETAIL_PLAN
AAMYCOTA:Unrecognized Creature Caste Body Token: STANDARD_MATERIALS
AAMYCOTA:Unrecognized Creature Caste Body Token: DETAIL_PLAN
AAMYCOTA:Unrecognized Creature Caste Body Token: STANDARD_TISSUES
*** Error(s) finalizing the creature AAMYCOTA
AAMYCOTA:FEMALE:upper body, layer 1: Tissue SKIN was not found, using first tissue instead
AAMYCOTA:FEMALE:upper body, layer 2: Tissue FAT was not found, using first tissue instead
AAMYCOTA:FEMALE:upper body, layer 3: Tissue MUSCLE was not found, using first tissue instead

I guess I just don't really understand how to fix this.  Is it just the cap that's screwy?  Should I make the cap a LIMB?
« Last Edit: February 18, 2012, 08:09:29 pm by Master Catfish »
Logged

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: Custom creature body: do I need to edit body detail too?
« Reply #5 on: February 18, 2012, 08:27:29 pm »

*** Error(s) found in the file "raw/objects/body_default.txt"
MYCOTA:SKULL_MYCOTA:Unrecognized Creature Bodypart CONTYPE Token: CAP
MYCOTA:BRAIN:Unrecognized Creature Bodypart CONTYPE Token: CAP
CONTYPE refers to a hardcoded type, as defined by the [UPPERBODY]/etc tags.  Use [CON:BP_TOKEN] for those connections.
Quote
*** Error(s) found in the file "raw/objects/creature_standard.txt"
AAMYCOTA:Unrecognized Creature Caste Body Token: DETAIL_PLAN
AAMYCOTA:Unrecognized Creature Caste Body Token: STANDARD_MATERIALS
AAMYCOTA:Unrecognized Creature Caste Body Token: DETAIL_PLAN
AAMYCOTA:Unrecognized Creature Caste Body Token: STANDARD_TISSUES
*** Error(s) finalizing the creature AAMYCOTA
AAMYCOTA:FEMALE:upper body, layer 1: Tissue SKIN was not found, using first tissue instead
AAMYCOTA:FEMALE:upper body, layer 2: Tissue FAT was not found, using first tissue instead
AAMYCOTA:FEMALE:upper body, layer 3: Tissue MUSCLE was not found, using first tissue instead
I didn't notice because I wasn't looking for this, but..
[BODY:DETAIL_PLAN:STANDARD_MATERIALS]
[BODY:DETAIL_PLAN:STANDARD_TISSUES]
Those definitely have to be underscores.

Make sure your files start with body_ and creature_, make sure the first line matches the entire filename except the extension, and make sure that the third line is [OBJECT:BODY] and [OBJECT:CREATURE] respectively.  Using your own files is definitely possible, and highly recommended.
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

Master Catfish

  • Bay Watcher
    • View Profile
Re: Custom creature body: do I need to edit body detail too?
« Reply #6 on: February 18, 2012, 08:59:40 pm »

Great! Now they at least appear in the arena, and there's no crashing.

The errorlog only gave me this:
Spoiler (click to show/hide)
Do I need to specify thickness with an argument?

Also, they suffocate right away. Is that because they don't have a throat?

Jay, you've been a fantastic help so far. I really appreciate that you've taken time out of your day to help me with my mod.
Logged

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: Custom creature body: do I need to edit body detail too?
« Reply #7 on: February 18, 2012, 09:06:49 pm »

*** Error(s) finalizing the creature AAMYCOTA
AAMYCOTA:FEMALE:cap: No tissue thickness
AAMYCOTA:MALE:cap: No tissue thickness
That's that layers thing I was talking about.
Your cap body part isn't a standard CATEGORY that the body detail plans know about, so it's being comprised of zero tissues, with a total thickness of zero; ergo no tissue thickness.
You can define the layers used for that yourself using the very same syntax, as I tried to explain above.
They're suffocating right away because they're generating without caps, because the cap isn't finalizing.
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

Master Catfish

  • Bay Watcher
    • View Profile
Re: Custom creature body: do I need to edit body detail too?
« Reply #8 on: February 19, 2012, 12:24:05 pm »


Tried entering:
[BP_LAYERS:BY_CATEGORY:CAP:ARG4:7:ARG2:1:ARG1:1]
In the creature, and that didn't seem to do anything.  Didn't help in the body either.  Is there a tag I need to put before and after it?  I'm sorry this stuff doesn't come easy to me; it's been a while since I did any modding, and never like this.
Logged

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: Custom creature body: do I need to edit body detail too?
« Reply #9 on: February 19, 2012, 12:46:55 pm »


Tried entering:
[BP_LAYERS:BY_CATEGORY:CAP:ARG4:7:ARG2:1:ARG1:1]
In the creature, and that didn't seem to do anything.  Didn't help in the body either.  Is there a tag I need to put before and after it?  I'm sorry this stuff doesn't come easy to me; it's been a while since I did any modding, and never like this.
Okay, I'm not fully experienced in this myself.  Reading the error log would tell you that that tag isn't valid in those locations.
[BP_LAYERS:...] is apparently only used in body detail plans.  The arguments (ARG1, etc) are definitely only used there, being replaced with whatever arguments you supply the detail plan tag with on the creature level.
Putting that tag in the relevant location in the detail plan will work, though I was hoping to find a way to do it without editing those...
You could make your own detail plan, too, I suppose.
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

Master Catfish

  • Bay Watcher
    • View Profile
Re: Custom creature body: do I need to edit body detail too?
« Reply #10 on: February 19, 2012, 02:39:16 pm »

Put this in my raws.  It's still saying there's no tissue thickness. :-\

Spoiler (click to show/hide)
Logged

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: Custom creature body: do I need to edit body detail too?
« Reply #11 on: February 19, 2012, 05:01:33 pm »

Put this in my raws.  It's still saying there's no tissue thickness. :-\

Spoiler (click to show/hide)
...Well, yeah, because that's not an object.  That's just a tag.  Look at how the regular VERTEBRATE_TISSUE_LAYERS detail plan works, for example.
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Custom creature body: do I need to edit body detail too?
« Reply #12 on: February 19, 2012, 05:08:50 pm »

You need to add that to every type (like VERTEBRATE_TISSUE_LAYERS) which your CAP using creatures may use.

For example:
Code: [Select]
[BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS]
    [BP_LAYERS:BY_CATEGORY:BODY:ARG3:50:ARG2:5:ARG1:1]
    ....
    ....
    ....
    [BP_LAYERS:BY_CATEGORY:CAP:ARG4:7:ARG2:1:ARG1:1]

Or you could add
   [BP_LAYERS:BY_CATEGORY:LUNG:SKIN:7:FAT:1:MUSCLE:1]

or something like that.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Master Catfish

  • Bay Watcher
    • View Profile
Re: Custom creature body: do I need to edit body detail too?
« Reply #13 on: February 19, 2012, 06:33:54 pm »

Ok, the tissues appear to be working now.  I tried it out in the arena, and got no errors.  However, they still suffocate.  Also, I tested chopping off the cap with a dwarf, and it did not kill the mycota.  What's going on now? 

Creature
Spoiler (click to show/hide)

Body
Spoiler (click to show/hide)

Body detail plans
Spoiler (click to show/hide)
Logged