Bay 12 Games Forum

Please login or register.

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

Author Topic: Separate RAW files for young creatures  (Read 1852 times)

HollowClown

  • Bay Watcher
    • View Profile
Separate RAW files for young creatures
« on: August 13, 2009, 02:30:04 pm »

So, right now, a young creature is specified in the raws as an attribute of the adult creature.  For instance, the [CREATURE:CAT] raw contains:
[CHILD:1][CHILDNAME:kitten:kittens]
The system uses this to handle cat breeding, and seems to automatically handle the kitten maturing, the reduced meat/bone from butchering kittens, etc.

I think it would be a cooler system to have a separate raw entry for each young creature.  This raw would contain all the attributes for the creature, and an attribute showing what adult creature RAW the young creature matured into.  The mature creatures would have an attribute showing which young creature RAW the mature creature gave birth to.  So, the CAT raw would have:
[BREED:1][CREATURE:KITTEN]
And there would be a new KITTEN raw with:
[MATURE:1][CREATURE:CAT]

Among other features, this would allow for:
  • More interesting creature life-cycles;  for instance, a cave spider (currently vermin) which survived for 20 years could turn into a giant cave spider (not vermin, highly dangerous).  This would also allow for multi-stage creature lifestyles, like baby dragon -> dragon -> great wyrm.
  • Different creature attributes for young creatures;  for instance, a baby dragon might need to mature into an adult dragon before it got fire breath.  When milking gets added back in, this would also support allowing milking of adults only.
  • Better division of labor for dealing with creatures;  for instance, trapping kittens could use 'small animal trapping' instead of 'butchering', which would seem to make more sense.
  • Breeding of tame vermin, like purring maggots.  This wouldn't be good for much except pure awesomeness.

Overall, this change would lead to more granular control of creature life-cycles and attributes, as well as moving a lot of the animal handling code from the program to the RAWs.  Any thoughts?
Logged

alfie275

  • Bay Watcher
    • View Profile
Re: Separate RAW files for young creatures
« Reply #1 on: August 13, 2009, 02:43:53 pm »

So like castes but with different ages? Maybe when say an antman lavae gets older it has percentages for different castes? Maybe?
Logged
I do LP of videogames!
See here:
http://www.youtube.com/user/MrAlfie275

HollowClown

  • Bay Watcher
    • View Profile
Re: Separate RAW files for young creatures
« Reply #2 on: August 13, 2009, 02:58:39 pm »

Yes, we'd need something like this in order to introduce antman castes, since there would have to be a separate RAW for each caste.  Instead of having the parent->child relationship be 1->1, the relationship would have to be 1->many with probability ratings for the decision.  Once that was implemented, we could implement all sorts of caste behavior (like only Antman queens and drones being able to breed, and most antman larvae turning into workers or soldiers).   I think it would be pretty cool.
Logged

Silverionmox

  • Bay Watcher
    • View Profile
Re: Separate RAW files for young creatures
« Reply #3 on: August 13, 2009, 04:23:50 pm »

Then I'm going to mod in a huge charcoal golem, that becomes progressively denser and smaller with age, until it is a vermin-sized diamond golem.

There are also myths that would become possible to implement. Eg: frogs into swallows when they hibernate in the mud. Certain kinds of geese are born from mussels. There's a plant on which sheep grow. etc.

Not to mention proper larval and chrysalis stages for insects, of course, or the loose and fixed life phases of sea anemones.
« Last Edit: August 13, 2009, 04:27:25 pm by Silverionmox »
Logged
Dwarf Fortress cured my savescumming.

[NO_THOUGHT]

  • Bay Watcher
  • *cricket*
    • View Profile
Re: Separate RAW files for young creatures
« Reply #4 on: August 13, 2009, 07:00:27 pm »

This is a great idea! Do you think it would allow circular life-cycles? As in
mud puddle -> glop monster -> golem -|
^-------------------------------------------|
That would be cool, waiting for the un-defeat able golem to shed it's earthly skin so that it becomes weaker and your untrained wrestlers can rip it up.
Logged

Bricks

  • Bay Watcher
  • Because you never need one brick.
    • View Profile
Re: Separate RAW files for young creatures
« Reply #5 on: August 13, 2009, 07:32:19 pm »

I feel like you are just inviting someone to mod in all the pokemon. :P

At first I was going to point out the potential tediousness of having to create a separate entry for each stage, but just the small number of ideas in this post has converted me.  I like.

One potential issue is how attributes transfer, which would be necessary for a number of reasons.  Perhaps the game could be made to handle simple moves like child dwarf -> adult dwarf, so if the kid loses an eye, it won't magically grow back when he is 'transformed' into an adult, and other particulars like height should carry over as well.  However, there are some creatures that don't have easy analogues.  For example, the life cycle of a moth.  You move from a larval caterpillar with a huge number of segments and lots of data, to a cocoon with hardly any differentiation, to the complex, fully-formed moth.  If the caterpillar had a missing leg when it went into its cocoon, would that trait carry over into adulthood somehow?  If the cocoon was bruised, what parts of the moth would be deformed?  The best fix, I presume, would be to add some tags handling the transfer of attributes to body parts, and then affixing ratios and probabilities for those attributes that don't transfer well but still should have an impact on the final creature.
Logged
EMPATHY - being able to feel other peoples' stuff.

Funk

  • Bay Watcher
    • View Profile
Re: Separate RAW files for young creatures
« Reply #6 on: August 13, 2009, 07:45:27 pm »

can we keep it under the same entery but in sepreat life stage
i.e. butterflies
# Egg
# Larva, known as a caterpillar
# Pupa (chrysalis)
# Adult butterfly 

stages;larva,or nymph,pupa,adult
trigered by time?,kills?number of the oppersit sex?
Logged
Agree, plus that's about the LAST thing *I* want to see from this kind of game - author spending valuable development time on useless graphics.

Unofficial slogan of Bay 12 Games.  

Death to the false emperor a warhammer40k SG

Bricks

  • Bay Watcher
  • Because you never need one brick.
    • View Profile
Re: Separate RAW files for young creatures
« Reply #7 on: August 13, 2009, 09:03:29 pm »

can we keep it under the same entery but in sepreat life stage

Yeah, that could work.  I was just thinking about branching systems, which would look messy if all under one entry.
Logged
EMPATHY - being able to feel other peoples' stuff.

lordcooper

  • Bay Watcher
  • I'm a number!
    • View Profile
Re: Separate RAW files for young creatures
« Reply #8 on: August 14, 2009, 10:40:31 am »

This would solve EVERYTHING easily.

Kitten -> Dwarf :)
Logged
Santorum leaves a bad taste in my mouth

Bricks

  • Bay Watcher
  • Because you never need one brick.
    • View Profile
Re: Separate RAW files for young creatures
« Reply #9 on: August 14, 2009, 01:58:25 pm »

This would solve EVERYTHING easily.

Kitten -> Dwarf :)

I can't imagine what horrible consequences that would have.  Especially weird when a kitten adopts an owner, and then matures, or when you drag a kitten to the butcher and it suddenly becomes a dwarf while you are dropping the knife.  Also, any kitten that has lost its tail should turn into a dwarf without a beard.
Logged
EMPATHY - being able to feel other peoples' stuff.

lordcooper

  • Bay Watcher
  • I'm a number!
    • View Profile
Re: Separate RAW files for young creatures
« Reply #10 on: August 14, 2009, 03:44:19 pm »

This would solve EVERYTHING easily.

Kitten -> Dwarf :)

I can't imagine what horrible consequences that would have.  Especially weird when a kitten adopts an owner, and then matures, or when you drag a kitten to the butcher and it suddenly becomes a dwarf while you are dropping the knife.  Also, any kitten that has lost its tail should turn into a dwarf without a beard.

Show me a mod better than that  ;D
Logged
Santorum leaves a bad taste in my mouth

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Separate RAW files for young creatures
« Reply #11 on: August 14, 2009, 04:16:28 pm »

This would solve EVERYTHING easily.

Kitten -> Dwarf :)

I can't imagine what horrible consequences that would have.  Especially weird when a kitten adopts an owner, and then matures, or when you drag a kitten to the butcher and it suddenly becomes a dwarf while you are dropping the knife.

Stray Dwarf (Tame) has been struck down.

I'd definitely play with such a mod.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

MC Dirty

  • Bay Watcher
    • View Profile
Re: Separate RAW files for young creatures
« Reply #12 on: August 14, 2009, 04:48:12 pm »

Secretly, you all just want kittens to grow into giant, poisonous war elephants with tentacles and fire breath...
Well, it's an awesome idea, but, like Bricks pointed out, handling wounds and such would be hell on earth.
Butterflies are a very special case, but seriously: Who cares about butterflies? I think that some kind of parameter or metatag called "ONLY_ADULT" would solve most problems. You could add it to a tag and the creature will only gain this property when it's adult.
So, only adult dragons will be able to fly and breathe fire and only adult cows can be milked. That wouldn't be exactly what you're looking for, but it would allow for some crazy modding.
Logged

Silverionmox

  • Bay Watcher
    • View Profile
Re: Separate RAW files for young creatures
« Reply #13 on: August 14, 2009, 06:23:20 pm »

It's rather simple: bodyparts that have an equivalent carry over their wound status. Those that haven't, are ignored (since they either disappear, are rebuilt, or only appear in that stage). It's merely a link between two, for all other purposes, normally functioning creatures.

There have been experiments with caterpillars where they tied a tight thread around the middle of it. The result was that the imago (adult insect) had a dent in the middle where the thread was. So there is a certain carryover, but that's more detailed than necessary. (Where they tied the thread extra tight, the hormones couldn't reach that part of the caterpillar so it stayed in caterpillar form, while the rest of the body transformed into moth. Weird.)
Logged
Dwarf Fortress cured my savescumming.

Bricks

  • Bay Watcher
  • Because you never need one brick.
    • View Profile
Re: Separate RAW files for young creatures
« Reply #14 on: August 14, 2009, 06:54:43 pm »

I can't really think of a super-compelling example for this, so you are probably right, Silverionmox.  Either way, it seems like the framework for the simpler cases could be adapted for the weirder situations.
Logged
EMPATHY - being able to feel other peoples' stuff.
Pages: [1] 2