Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Tree Saplings - Confusing by design?  (Read 1290 times)

WormSlayer

  • Bay Watcher
    • View Profile
    • WormSlayer.com
Tree Saplings - Confusing by design?
« on: August 05, 2010, 10:31:40 am »

Some trees have a [SAPLING] tag, some dont. But they all produce saplings.

And seemingly only 4 specific trees allow use of the [SAPLING_TILE], [SAPLING_COLOR], and [DEAD_SAPLING_COLOR] tags...

I'm confused... Is this how its supposed to be or is it broken? O.o
« Last Edit: August 05, 2010, 10:34:48 am by WormSlayer »
Logged

dree12

  • Bay Watcher
    • View Profile
Re: Tree Saplings - Confusing by design?
« Reply #1 on: August 05, 2010, 10:39:38 am »

[SAPLING] controls what the tree is called. Tower-caps, for example, are called "young Tower-cap" while Willows are called "Willow sapling". There are default values for each of SAPLING_TILE, SAPLING_COLOR, SAPLING_DROWN_LEVEL or whatever, as well.
Logged

WormSlayer

  • Bay Watcher
    • View Profile
    • WormSlayer.com
Re: Tree Saplings - Confusing by design?
« Reply #2 on: August 05, 2010, 10:56:09 am »

[SAPLING] seems an odd and clunky way of naming young trees... Something like a [NAME_YOUNG] tag would be more logical and flexible to me... But what do I know :D

DROWN_LEVEL isnt anywhere to be found in plant_standard.txt - Is this some sort of hard-coded value we cant change?

So is there any way to change the SAPLING_TILE for trees other than the x-caps?
Logged

dree12

  • Bay Watcher
    • View Profile
Re: Tree Saplings - Confusing by design?
« Reply #3 on: August 05, 2010, 11:15:07 am »

[SAPLING_DROWN_LEVEL] is the level where a sapling drowns. I only pointed that out because I remembered you had 3 sapling stuffs, and I didn't think of DEAD_SAPLING_TILE.

Also, [TREE_TILE], [TREE_COLOR], [SAPLING_TILE], [SAPLING_COLOR], etc. are allowed on all trees. No tree uses SAPLING_TILE by default, but it's allowed.

Edit: I dumped out the tree stuff from the exe:
Spoiler: EXE Dump (click to show/hide)
« Last Edit: August 05, 2010, 11:24:29 am by dree12 »
Logged

WormSlayer

  • Bay Watcher
    • View Profile
    • WormSlayer.com
Re: Tree Saplings - Confusing by design?
« Reply #4 on: August 05, 2010, 11:29:24 am »

Thanks dree :)

Maybe I'm doing it wrong but this is how I have Blood Thorn set and it makes no difference to blood thorn saplings in-game:
Spoiler (click to show/hide)

(Should look like a small red mushroom - Actually looks like a small green tree.)
« Last Edit: August 05, 2010, 11:34:28 am by WormSlayer »
Logged

dree12

  • Bay Watcher
    • View Profile
Re: Tree Saplings - Confusing by design?
« Reply #5 on: August 05, 2010, 12:27:25 pm »

That works for me. Regen your world, see if that works. BTW, the blood thorn is being displayed as a light grey i-grave on a red background :o. You may want to check your tile+colors for that.
Logged

WormSlayer

  • Bay Watcher
    • View Profile
    • WormSlayer.com
Re: Tree Saplings - Confusing by design?
« Reply #6 on: August 05, 2010, 12:30:16 pm »

Oh... Maybe I should have read the giant sticky at the top of the forum a bit more closely... >.o

Yeah colour typo, should be 4:0:1 and the tile number was random just to see if it made any difference! :)
Logged

Untelligent

  • Bay Watcher
  • I eat flesh!
    • View Profile
Re: Tree Saplings - Confusing by design?
« Reply #7 on: August 05, 2010, 01:42:47 pm »

DROWN_LEVEL and SAPLING_DROWN_LEVEL should be valid tags, it's just that none of the vanilla plants use them because they all have default values.
Logged
The World Without Knifebear — A much safer world indeed.
regardless, the slime shooter will be completed, come hell or high water, which are both entirely plausible setbacks at this point.

dree12

  • Bay Watcher
    • View Profile
Re: Tree Saplings - Confusing by design?
« Reply #8 on: August 05, 2010, 02:23:58 pm »

It's TREE_DROWN_LEVEL. But yeah, it's valid.
Logged

ChickenLips

  • Bay Watcher
    • View Profile
Re: Tree Saplings - Confusing by design?
« Reply #9 on: August 06, 2010, 04:23:24 am »

If tree sapling tiling works anything like plant shrub tiling does, it assumes a certain default tile (and color) unless you specify otherwise.  That's why some plants have shrub and dead shrub tiles, and others don't.
Logged
Do not meddle in the affairs of chickens, for you are crunchy and taste like a good seedgrain.

(You are not a seedgrain?  Of course, you and I know that very well.  But does the chicken know it?)

Jay

  • Bay Watcher
  • ☼Not Dead Yet☼
    • View Profile
Re: Tree Saplings - Confusing by design?
« Reply #10 on: August 06, 2010, 10:31:39 am »

TREE_DROWN_LEVEL is a valid tag, but unless something's changed recently (very plausible), it doesn't actually have any effect.
Logged
Mishimanriz: Histories of Pegasi and Dictionaries

dree12

  • Bay Watcher
    • View Profile
Re: Tree Saplings - Confusing by design?
« Reply #11 on: August 06, 2010, 12:05:31 pm »

Really? Testing...

Hmm, trees seem to block water. I think TREE_DROWN_LEVEL was supposed to have effect, but Toady forgot trees block water. Pouring water on top of them doesn't help either.
Logged