Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: children not growing up after raw edit  (Read 1597 times)

Ter13

  • Bay Watcher
  • Oh wait... Dwarves like food, don't they?
    • View Profile
children not growing up after raw edit
« on: April 02, 2012, 02:58:09 pm »

I started a new world running masterwork DF last night, I decided to mod my dwarves a bit, to live a touch longer, as I only have one female in my party, and I am running the island world, so there will be no migrants. I started messing around with the age setting for children and babies. I first, set babies to 1 and children to 1, and noticed that my children weren't growing up after 2 yyears. Then I went back in, and tweaked child to 2. Now, I have an 8 year old child, a seven year old child, and a six and five year old...

It's passed each of their birthdays. What's going on? Are my children born after I fixed the raws perma-stunted, or did I miss a setting to turn them into adults, and they are aging regularly?
Logged
Murderhold - A story about a fortress closed off from the world, attempting to survive a zombie-infested wilderness.
Murderhold Discussion thread

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: children not growing up after raw edit
« Reply #1 on: April 02, 2012, 03:20:53 pm »

Having both [CHILD:1] and [BABY:1] is exactly the same as having [CHILD:1] (the baby token is not required). Basically having the two of them like that will mean the creature will be a baby for one year and then instantly become an adult. I suggest try removing the baby token and seeing if that helps.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

Exponent

  • Bay Watcher
    • View Profile
Re: children not growing up after raw edit
« Reply #2 on: April 02, 2012, 03:22:11 pm »

Did you edit the raws under the <df-root>/raws/objects, or the raws under <df-root>/init/saves/<save>/raws/objects?  You'll need to edit the latter if it was the former you were modifying.
Logged

khearn

  • Bay Watcher
    • View Profile
Re: children not growing up after raw edit
« Reply #3 on: April 02, 2012, 03:24:29 pm »

This is just a guess, but maybe it checks on each "birthday" to see if the dwarf is equal to the CHILD + 1. If so, and if you had a 3-year old child when you set CHILD to 2, then on his next birthday he'd be 4, which is not equal to 2+1, so he wouldn't become an adult. And next year 5 would not be equal to 3, and so forth. So he'd be a dwarven Peter Pan. Try setting CHILD higher than teh oldest child and see if it becomes an adult when it reaches the correct age.
Logged
Have them killed. Nothing solves a problem quite as effectively as simply having it killed.

Ter13

  • Bay Watcher
  • Oh wait... Dwarves like food, don't they?
    • View Profile
Re: children not growing up after raw edit
« Reply #4 on: April 02, 2012, 03:40:48 pm »

Did you edit the raws under the <df-root>/raws/objects, or the raws under <df-root>/init/saves/<save>/raws/objects?  You'll need to edit the latter if it was the former you were modifying.

Yes. Thank you. I kind of figured it was disregarding my changes, because they seemed to be going at std rate.

Now I know each world clones the base raws after generation. This was the bit I was missing.

And now, fun will be had. Also, another question: setting a creature to be immortal? Is it possible, or do I just have to use an arbitrarily large number for the maxage?
Logged
Murderhold - A story about a fortress closed off from the world, attempting to survive a zombie-infested wilderness.
Murderhold Discussion thread

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: children not growing up after raw edit
« Reply #5 on: April 02, 2012, 03:43:28 pm »

Just leave off the maxage token and they will be immortal similar to elves or goblins.

Also a note here, you are more likely to get good answers to your modding questions over in the modding sub forum.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

Garath

  • Bay Watcher
  • Helping to deforest the world
    • View Profile
Re: children not growing up after raw edit
« Reply #6 on: April 02, 2012, 04:42:20 pm »

this is quite basic though, but yes, modding questions are best asked in mod sub-forum.
Logged
Quote from: Urist Imiknorris
Jam a door with its corpse and let all the goblins in. Hey, nobody said it had to be a weapon against your enemies.
Quote from: Frogwarrior
And then everyone melted.