Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: First attempt.  (Read 1694 times)

MasterMorality

  • Bay Watcher
    • View Profile
First attempt.
« on: April 05, 2011, 09:45:38 am »

So I'm very new to modding, and I'm screwing around with my first creature, pretty much putting down whatever comes into my head as fitting, browsing the wiki, etc.

I decided to test what I have so far, and while I managed to get them into the game (hooray!) they survive roughly five seconds before dying. I assume I left something out of the bodyparts?


Code: [Select]
creature_borloth

[OBJECT:CREATURE]


[CREATURE:BORLOTH]
[DESCRIPTION:A humanoid of strange aspect.]
[NAME:Borloth:Borloth:Borloth]
[CASTE_NAME:Borloth:Borloth:Borloth]
[CREATURE_TILE:] [COLOR:4:0:0]

[BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:
    THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]
    [BODY_DETAIL_PLAN:STANDARD_MATERIALS]
    [BODY_DETAIL_PLAN:STANDARD_TISSUES]
 [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]

[CASTE:MALE]
[CASTE_NAME:Borloth:Borloth:Borloth]
[POP_RATIO:10000]
[BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:
    THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE:MALEGEN]
[CASTE:FEMALE]
[CASTE_NAME:Borloth:Borloth:Borloth]
[POP_RATIO:10000]
[BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:
    THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE:FEMALEGEN]

[SELECT_CASTE:ALL]
    [BODY_DETAIL_PLAN:STANDARD_MATERIALS]
    [BODY_DETAIL_PLAN:STANDARD_TISSUES]
 [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]

[BIOME:TUNDRA]
[BIOME:MARSH_TEMPERATE_FRESHWATER]
[BIOME:TAIGA]
[BIOME:GRASSLAND_TEMPERATE]
[BIOME:SAVANNA_TEMPERATE]
[BIOME:SUBTERRANEAN_CHASM]

[CAN_LEARN]
[CAN_SPEAK]
[CANOPENDOORS]
[CHILD:12]
[CURIOUSBEAST_ITEM]
[CURIOUSBEAST_GUZZLER]
[CURIOUSBEAST_EATER]
[EQUIPS]
[FLEEQUICK:65]
[GETS_INFECTIONS_FROM_ROT]
[GETS_WOUND_INFECTIONS]
[INTELLIGENT]
[LITTERSIZE:1:3]
[PRONE_TO_RAGE:10]
[SWIMS_LEARNED]
[UNDERGROUNDDEPTH:1]



I think I'd like to get the whole 'spontaneous death' drawback out of the way before I continue with this thing.

Logged

AdeleneDawner

  • Bay Watcher
    • View Profile
Re: First attempt.
« Reply #1 on: April 05, 2011, 10:10:12 am »

You have each creature's body defined twice - once in the main part of the raw and once in the caste. That's probably what's causing your problems.

In general, castes only need to specify what's different about them compared to the standard creature - defining the names in the castes is superfluous, too, since it's the same in each case. You probably want the [MALE] and [FEMALE] tags in the respective castes, though, to enable breeding. (Just naming the castes 'male' and 'female', which is what you're doing with the [CASTE:MALE] and [CASTE:FEMALE] tags, doesn't actually have anything to do that - you could name the castes 'lime' and 'orange' and give them the relevant tags and they'd work exactly the same.)
Logged
Dying (ceasing to be alive) is also not a Moodable skill. Even totally unskilled Dwarves seem to do it correctly.

MasterMorality

  • Bay Watcher
    • View Profile
Re: First attempt.
« Reply #2 on: April 05, 2011, 10:26:39 am »

Ah ok, so the creature bit should look more like so:

Code: [Select]
[CREATURE:BORLOTH]
[DESCRIPTION:A humanoid of strange aspect.]
[NAME:Borloth:Borloth:Borloth]
[CASTE_NAME:Borloth:Borloth:Borloth]
[CREATURE_TILE:] [COLOR:4:0:0]

[BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:
    THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]
    [BODY_DETAIL_PLAN:STANDARD_MATERIALS]
    [BODY_DETAIL_PLAN:STANDARD_TISSUES]
 [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]

[CASTE:MALE]
[MALE]
[POP_RATIO:10000]

[CASTE:FEMALE]
[FEMALE]
[POP_RATIO:10000]
Logged

AdeleneDawner

  • Bay Watcher
    • View Profile
Re: First attempt.
« Reply #3 on: April 05, 2011, 10:33:02 am »

Yep! That's really bare-bones and might be missing some necessary stuff (I don't quite know what the minimum is for creatures), but the only superfluous thing left is the [POP_RATIO] tags, which won't hurt anything.
Logged
Dying (ceasing to be alive) is also not a Moodable skill. Even totally unskilled Dwarves seem to do it correctly.

MasterMorality

  • Bay Watcher
    • View Profile
Re: First attempt.
« Reply #4 on: April 05, 2011, 10:45:14 am »

Cool.
I'll add bits and pieces and flesh this thing out as I get more confident with Modding, no doubt.

I tested them again, no change, still suffocating. I assume I haven't given the poor buggers lungs?
I would have thought they came under 'organs', though.

The code, after taking away all the unnecessary stuff:

Code: [Select]
creature_borloth

[OBJECT:CREATURE]


[CREATURE:BORLOTH]
[DESCRIPTION:A humanoid of strange aspect.]
[NAME:Borloth:Borloth:Borloth]
[CASTE_NAME:Borloth:Borloth:Borloth]
[CREATURE_TILE:] [COLOR:4:0:0]

[BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:
    THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]
    [BODY_DETAIL_PLAN:STANDARD_MATERIALS]
    [BODY_DETAIL_PLAN:STANDARD_TISSUES]
 [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]

[CASTE:MALE]
[MALE]


[CASTE:FEMALE]
[FEMALE]


[BIOME:TUNDRA]
[BIOME:MARSH_TEMPERATE_FRESHWATER]
[BIOME:TAIGA]
[BIOME:GRASSLAND_TEMPERATE]
[BIOME:SAVANNA_TEMPERATE]
[BIOME:SUBTERRANEAN_CHASM]

[CAN_LEARN]
[CAN_SPEAK]
[CANOPENDOORS]
[CHILD:12]
[CURIOUSBEAST_ITEM]
[CURIOUSBEAST_GUZZLER]
[CURIOUSBEAST_EATER]
[EQUIPS]
[FLEEQUICK:65]
[GETS_INFECTIONS_FROM_ROT]
[GETS_WOUND_INFECTIONS]
[INTELLIGENT]
[LITTERSIZE:1:3]
[PRONE_TO_RAGE:10]
[SWIMS_LEARNED]
[UNDERGROUNDDEPTH:1]


Logged

AdeleneDawner

  • Bay Watcher
    • View Profile
Re: First attempt.
« Reply #5 on: April 05, 2011, 11:00:26 am »

They have the 2LUNGS body part in all the versions you've shown so far, so it's not that. What does the error log say, if anything?
Logged
Dying (ceasing to be alive) is also not a Moodable skill. Even totally unskilled Dwarves seem to do it correctly.

TomiTapio

  • Bay Watcher
  • OldGenesis since 2012
    • View Profile
    • My Flickr animal photos
Re: First attempt.
« Reply #6 on: April 05, 2011, 11:02:46 am »

Try adding
[LARGE_ROAMING] --makes it not a vermin
[BIOME:SUBTERRANEAN_CHASM]
[UNDERGROUND_DEPTH:1:3]
[FREQUENCY:15]
[POPULATION_NUMBER:2:7]
[CLUSTER_NUMBER:1:1]

[NATURAL]
[LIKES_FIGHTING]
[LARGE_ROAMING]
[GRASSTRAMPLE:0]
[MEANDERER]
[PREFSTRING:striking coloration]
[NO_DRINK]
[NO_EAT]
[NO_SLEEP]
[ALL_ACTIVE] --times of day
« Last Edit: April 05, 2011, 11:04:40 am by TomiTapio »
Logged
==OldGenesis mod== by Deon & TomiTapio. Five wood classes, four leather classes. Nine enemy civs. So much fine-tuning.
47.05e release: http://dffd.bay12games.com/who.php?id=1538
OldGenesis screenshots: https://twitter.com/hashtag/OldGenesis?src=hashtag_click&f=image
My Finnish language file: http://dffd.bay12games.com/file.php?id=14884

MasterMorality

  • Bay Watcher
    • View Profile
Re: First attempt.
« Reply #7 on: April 05, 2011, 12:07:55 pm »

Nothing cropped up in the error log.

I took away the other tags just to keep things simple, added in TomITaplo's suggestion to see if they made any difference. Nada.

How strange.

Things now look like this (if a more visual thing helps, although only superficial differences):
Code: [Select]
creature_borloth

[OBJECT:CREATURE]


[CREATURE:BORLOTH]
[DESCRIPTION:A humanoid of strange aspect.]
[NAME:Borloth:Borloth:Borloth]
[CASTE_NAME:Borloth:Borloth:Borloth]
[CREATURE_TILE:] [COLOR:4:0:0]

[BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:
    THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]
    [BODY_DETAIL_PLAN:STANDARD_MATERIALS]
    [BODY_DETAIL_PLAN:STANDARD_TISSUES]
 [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]

[CASTE:MALE]
[MALE]


[CASTE:FEMALE]
[FEMALE]


[LARGE_ROAMING]
[BIOME:SUBTERRANEAN_CHASM]
[UNDERGROUND_DEPTH:1:3]
[FREQUENCY:15]
[POPULATION_NUMBER:2:7]
[CLUSTER_NUMBER:1:1]

[NATURAL]
[LIKES_FIGHTING]
[LARGE_ROAMING]
[GRASSTRAMPLE:0]
[MEANDERER]
[PREFSTRING:striking coloration]
[NO_DRINK]
[NO_EAT]
[NO_SLEEP]
[ALL_ACTIVE]



I'm running this with Genesis mod already installed, I don't know if that makes any drastic changes to how things work?
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: First attempt.
« Reply #8 on: April 05, 2011, 01:05:58 pm »

You forgot [SELECT_CASTE:ALL] after the [CASTE:FEMALE][FEMALE] definition.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

MasterMorality

  • Bay Watcher
    • View Profile
Re: First attempt.
« Reply #9 on: April 05, 2011, 01:14:48 pm »

What does that do?

On another note, with the meat, bone, whatnot, that I have; I assume I'm still missing nerves, arteries, etc?
« Last Edit: April 05, 2011, 01:19:04 pm by MasterMorality »
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: First attempt.
« Reply #10 on: April 05, 2011, 01:45:13 pm »

It selects all castes (both females and males)...

Right now you define males ([CASTE:MALE]) with a single token ([MALE]).

Then you define females ([CASTE:FEMALE]), and since you do NOT select both castes after [FEMALE] (with [SELECT_CASTE:ALL] as I said) it means that EVERYTHING you have under [CASTE:FEMALE] is for females only.

Quote
On another note, with the meat, bone, whatnot, that I have; I assume I'm still missing nerves, arteries, etc?
No you don't, your meat, bone and whatnot all have separate definitions of VASCULAR and PAIN_RECEPTORS which are arteries and nerves.

P.S. [UNDERGROUNDDEPTH:1] is not a valid token.

P.P.S. They also don't have the population number and the frequency settings.
« Last Edit: April 05, 2011, 01:48:15 pm by Deon »
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

neosorcerer

  • Bay Watcher
    • View Profile
Re: First attempt.
« Reply #11 on: April 05, 2011, 01:49:12 pm »

Make sure your [BODY:...] is all one line.
Logged

MasterMorality

  • Bay Watcher
    • View Profile
Re: First attempt.
« Reply #12 on: April 05, 2011, 02:18:03 pm »

Ah ha! That was what the problem was. I thought text edit was just realigning the text to fit the window, but it was on a different line!
I now have two healthy Borloth pushing each other to death in the arena, with a bit of random wrestling thrown in.

Ok, that's good to know I have something to work with now. I added a bunch of traits and tags to them.

Deon: do you mean put the pop number and frequency in the castes?

Next up - how to make them punch and kick.
Is it simply a matter of giving them a natural skill in striking and kicking, or is it more advanced than that?

Also, I want to give them tusks. Do I simply add '2TUSKS' into the 'body' description?
I assume that after that, goring would require a custom attack?
« Last Edit: April 05, 2011, 02:28:50 pm by MasterMorality »
Logged

Zaerosz

  • Bay Watcher
  • ☼sperm whale leather thong☼
    • View Profile
Re: First attempt.
« Reply #13 on: April 05, 2011, 06:16:43 pm »

You don't have a [SIZE:x] token in there, as far as I can tell. That is probably a bad thing.
Logged
くコ:彡

MasterMorality

  • Bay Watcher
    • View Profile
Re: First attempt.
« Reply #14 on: April 06, 2011, 11:20:47 am »

This is the updated version:
Code: [Select]
creature_borloth

[OBJECT:CREATURE]


[CREATURE:BORLOTH]
[DESCRIPTION:A humanoid of strange aspect.]
[NAME:Borloth:Borloth:Borloth]
[CASTE_NAME:Borloth:Borloth:Borloth]
[CREATURE_TILE:255] [COLOR:7:0:0]

[BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:5TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]
    [BODY_DETAIL_PLAN:STANDARD_MATERIALS]
    [BODY_DETAIL_PLAN:STANDARD_TISSUES]
 [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]

[CASTE:MALE]
[MALE]


[CASTE:FEMALE]
[FEMALE]

[SELECT_CASTE:ALL]

[LARGE_ROAMING]
[BIOME:SUBTERRANEAN_CHASM]
[FREQUENCY:35]
[POPULATION_NUMBER:2:7]
[CLUSTER_NUMBER:1:10]
[LITTERSIZE:1:3]
[BABY]
[CHILD:10]
[BODY_SIZE:0:0:5000]
[BODY_SIZE:2:140:22000]
[BODY_SIZE:11:0:160000]

[INTELLIGENT]
[CAN_LEARN]
[CAN_SPEAK]
[CANOPENDOORS]
[GETS_INFECTIONS_FROM_ROT]
[GETS_WOUND_INFECTIONS]
[HAS_NERVES]

[NATURAL]
[LIKES_FIGHTING]
[EQUIPS]
[FLEEQUICK:70]
[LARGE_ROAMING]
[VIEWRANGE:30]
[GRASSTRAMPLE:0]
[MEANDERER]
[PREFSTRING:striking coloration]
[NO_DRINK]
[NO_EAT]
[NO_SLEEP]
[ALL_ACTIVE]

[PERSONALITY:ADVENTUROUSNESS:20:58:82]
[PERSONALITY:ANGER:25:45:68]
[PERSONALITY:ASSERTIVENESS:32:60:87]
[PERSONALITY:CAUTIOUSNESS:18:43:62]
[PERSONALITY:COOPERATION:20:50:63]
[PERSONALITY:STRAIGHTFORWARDNESS:35:65:93]
[PERSONALITY:SYMPATHY:10:40:62]
[PERSONALITY:TRUST:10:38:63]

[NATURAL_SKILL:MELEE_COMBAT:4]
[NATURAL_SKILL:WRESTLING:2]
[NATURAL_SKILL:BITE:3]
[NATURAL_SKILL:GRASP_STRIKE:2]
[NATURAL_SKILL:DODGING:3]
[NATURAL_SKILL:SNEAK:2]
[NATURAL_SKILL:TRACKING:2]
[NATURAL_SKILL:BUTCHER:4]
[NATURAL_SKILL:ANIMALTRAIN:3]




Logged
Pages: [1] 2