Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Animal Modding  (Read 1142 times)

DrSazar

  • Bay Watcher
  • He is in a constant state of internal rage.
    • View Profile
Animal Modding
« on: March 19, 2011, 09:14:11 am »

I'm sure it's been discussed before, but I couldn't find it anywhere.

What is the simplest way of creating a new creature in DF?

For example, a wooly mammoth. I started with the elephant raws and did some adjusting with the size, habitat, and such, but in the testing arena I couldn't find it on the creature list. I kept the new creature raws in the "creature_large_tropical" file, would that mess things up?
Logged

Captain Mayday

  • Bay Watcher
  • A Special Kind of Terrible
    • View Profile
Re: Animal Modding
« Reply #1 on: March 19, 2011, 09:19:15 am »

It wouldn't mess that up, no.

Please post the raws you have made here in [ code ][ /code ] formatting.
Logged
Why not join us on IRC? irc.newnet.net #bay12games

ArKFallen

  • Bay Watcher
  • Bohandean Desserter
    • View Profile
Re: Animal Modding
« Reply #2 on: March 19, 2011, 09:26:11 am »

What often happens is the person modifies the raw and forgets to create a duplicate with a different name is if you just modified the elephant raw without modding the tag or name then it will likely still pop up as "elephant". If you made a duplicate and didn't change the creature name and tag one of 2 things can happen: 1) you end up with two elephant entries n the arena   or 2) the game doesn't show it do to extensive errors.
Be sure to check the error log constantly when modding :P.
Logged
Hm, have you considered murder?  It's either that or letting it go.
SigText
I logged back on ;_;

DrSazar

  • Bay Watcher
  • He is in a constant state of internal rage.
    • View Profile
Re: Animal Modding
« Reply #3 on: March 19, 2011, 09:38:45 am »

[CREATURE:WOOLY MAMMOTH]
   [DESCRIPTION: A huge tundra herbivore. It bares thick, curving tusks and dense fur for warmth. It poses a great threat when its herd is endangered.]
   [NAME:wooly mammoth:wooly mammoths:wooly mammoth]
   [CASTE_NAME:wooly mammoth:wooly mammoths:wooly mammoth]
   [CHILD:10][GENERAL_CHILD_NAME:wooly mammoth calf:wooly mammoth calves]
   [CREATURE_TILE:'W'][COLOR:6:0:0]
   [PETVALUE:1000]
   [PET]
   [GRAZER:12] don't have browsing trees yet
   [MOUNT_EXOTIC]
   [TRAINABLE]
   [LARGE_ROAMING]
   [BIOME:TUNDRA]
   [POPULATION_NUMBER:15:30]
   [CLUSTER_NUMBER:3:7]
   [BENIGN][MEANDERER][NATURAL]
   [PREFSTRING:thick fur]
   [BODY:QUADRUPED:TAIL:2EYES:2EARS:TRUNK:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:SKULL:MOUTH:2TUSKS:GENERIC_TEETH:RIBCAGE]
   [BODY_DETAIL_PLAN:STANDARD_MATERIALS]
      [USE_MATERIAL_TEMPLATE:IVORY:TOOTH_TEMPLATE]
         [STATE_NAME:ALL_SOLID:ivory]
         [STATE_ADJ:ALL_SOLID:ivory]
   [BODY_DETAIL_PLAN:STANDARD_TISSUES]
      [USE_TISSUE_TEMPLATE:IVORY:IVORY_TEMPLATE]
         [TISSUE_NAME:ivory:NP]
   [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]
   [SELECT_TISSUE_LAYER:HEART:BY_CATEGORY:HEART]
    [PLUS_TISSUE_LAYER:SKIN: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:750000]
   [BODY_SIZE:2:0:5000000]
   [BODY_SIZE:5:0:7500000]
   [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:50:70]
   [ATTACK:KICK:BODYPART:BY_CATEGORY:FOOT_FRONT]
      [ATTACK_SKILL:STANCE_STRIKE]
      [ATTACK_VERB:kick:kicks]
      [ATTACK_CONTACT_PERC:100]
      [ATTACK_PRIORITY:MAIN]
      [ATTACK_FLAG_WITH]
   [ATTACK:GORE:BODYPART:BY_CATEGORY:TUSK]
      [ATTACK_SKILL:BITE]
      [ATTACK_VERB:gore:gores]
      [ATTACK_CONTACT_PERC:100]
      [ATTACK_PRIORITY:MAIN]
      [ATTACK_FLAG_WITH]
   [DIURNAL]
   [HOMEOTHERM:10066]
   [SWIMS_INNATE][SWIM_SPEED:1500]
   [MUNDANE]
   [CASTE:FEMALE]
      [FEMALE]
   [CASTE:MALE]
      [MALE]
   [SELECT_CASTE:ALL]
      [SET_TL_GROUP:BY_CATEGORY:ALL:SKIN]
         [TL_COLOR_MODIFIER:BROWN:1]
            [TLCM_NOUN:skin:SINGULAR]
      [SET_TL_GROUP:BY_CATEGORY:EYE:EYE]
         [TL_COLOR_MODIFIER:IRIS_EYE_BROWN:1:IRIS_EYE_GOLD:1:IRIS_EYE_YELLOW:1]
            [TLCM_NOUN:eyes:PLURAL]
   [SELECT_MATERIAL:ALL]
      [MULTIPLY_VALUE:8]
Logged

Captain Mayday

  • Bay Watcher
  • A Special Kind of Terrible
    • View Profile
Re: Animal Modding
« Reply #4 on: March 19, 2011, 09:46:32 am »

does your error log.txt file show anything? This, if it exists, is located in the root DF directory.
Logged
Why not join us on IRC? irc.newnet.net #bay12games

DrSazar

  • Bay Watcher
  • He is in a constant state of internal rage.
    • View Profile
Re: Animal Modding
« Reply #5 on: March 19, 2011, 09:54:12 am »

I don't think so. The errorlog.txt in the DF folder has this at the top:

loop path fail: <same square> elephant,160,79,30 -> 156,76,30: Id #5173:Path Goal Seek Station:Station Owner at 136,65,33

But I think that's from my game, not the arena.
Logged

DrSazar

  • Bay Watcher
  • He is in a constant state of internal rage.
    • View Profile
Re: Animal Modding
« Reply #6 on: March 19, 2011, 09:59:03 am »

 It's showing up now. :-[

 Thank you for responding and helping, though, I appreciate it :D
Logged

Captain Mayday

  • Bay Watcher
  • A Special Kind of Terrible
    • View Profile
Re: Animal Modding
« Reply #7 on: March 19, 2011, 09:59:46 am »

this shouldn't matter, but please adjust [CREATURE:WOOLY MAMMOTH] to [CREATURE:WOOLY_MAMMOTH] Edit: No need to do this now.

As an aside, it's spelled 'woolly', so you can fix that too if you'd like.

Edit: Any idea what was wrong?
Logged
Why not join us on IRC? irc.newnet.net #bay12games

DrSazar

  • Bay Watcher
  • He is in a constant state of internal rage.
    • View Profile
Re: Animal Modding
« Reply #8 on: March 19, 2011, 10:12:29 am »

When I originally did this it was probably be the entering spaces between creature raws. The raws for the mammoth were two spaces away from the animal below it instead of one. If it wasn't that I couldn't say.

P.S. If I made a new text file (ex. ice_age_creatures.txt) with the new creatues I made, would it work with the game?
Logged

Captain Mayday

  • Bay Watcher
  • A Special Kind of Terrible
    • View Profile
Re: Animal Modding
« Reply #9 on: March 19, 2011, 10:20:24 am »

When I originally did this it was probably be the entering spaces between creature raws. The raws for the mammoth were two spaces away from the animal below it instead of one. If it wasn't that I couldn't say.

P.S. If I made a new text file (ex. ice_age_creatures.txt) with the new creatues I made, would it work with the game?

Yes, but the first lines of that file would have to be
ice_age_creatures

[OBJECT:CREATURE]
Logged
Why not join us on IRC? irc.newnet.net #bay12games

Girlinhat

  • Bay Watcher
  • [PREFSTRING:large ears]
    • View Profile
Re: Animal Modding
« Reply #10 on: March 19, 2011, 10:28:27 am »

You may wanna tinker with the tissue plans a bit.  By default, it uses a fairly basic tissue selection.  For example, a dog and a cow have the same distribution of fat and muscle by size.  You can manually change things, so that your woolly mammoth would could have thick layers of blubber and thick mats of hair.  Default is fine for normal use, no shame in using it, but you can always change it.