Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Raw Help: Modding Eye Color  (Read 619 times)

Bronzebeard

  • Bay Watcher
    • View Profile
Raw Help: Modding Eye Color
« on: July 24, 2010, 02:18:38 pm »

H'lo.

I decided to spice my wolves up a little bit and, for one thing, replace the default eye color, orange, with yellow as well as add a few more colors. The raw is:

[SET_TL_GROUP:BY_CATEGORY:EYE:EYE]
         [TL_COLOR_MODIFIER:IRIS_EYE_YELLOW:1BLUE:1:SILVER:1]

I've done this with dragons, but their eye color raws don't seem to be interchangeable and now wolves only have yellow eyes. Am I supposed to put "IRIS_EYE_" before the other colors?
Logged

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Raw Help: Modding Eye Color
« Reply #1 on: July 24, 2010, 02:23:47 pm »

You have a type

1BLUE should be 1:BLUE
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Bronzebeard

  • Bay Watcher
    • View Profile
Re: Raw Help: Modding Eye Color
« Reply #2 on: July 24, 2010, 02:27:30 pm »

You have a type

1BLUE should be 1:BLUE

Should it be,

IRIS_EYE_YELLOW1:BLUE:1:SILVER:1] or,

IRIS_EYE_YELLOW:1:BLUE:1:SILVER:1] ?
Logged

3

  • Bay Watcher
    • View Profile
Re: Raw Help: Modding Eye Color
« Reply #3 on: July 24, 2010, 02:32:53 pm »

The latter. You are first selecting the pattern to be used, then determining how common or not it is (frequency relative to any other patterns).

Secondly, if you haven't added new pattern definitions called "BLUE" and "SILVER", then yes, you should put "IRIS_EYE_" before the other colours.
Logged

Bronzebeard

  • Bay Watcher
    • View Profile
Re: Raw Help: Modding Eye Color
« Reply #4 on: July 24, 2010, 02:55:43 pm »

Alright, I refined the colors a little bit and added the colon. Now, though, every wolf's eyes are brass, instead of yellow, so nothing's changed.

I put "IRIS_EYE_" before every color, making it,

[TL_COLOR_MODIFIER:IRIS_EYE_BRASS:1:IRIS_EYE_LIGHT_BLUE:1:IRIS_EYE_PALE_BLUE:1:IRIS_EYE_SKY_BLUE:1:IRIS_EYE_SLATE_GRAY:1]

Tell me if that looks right or not.
Logged

soul4hdwn

  • Bay Watcher
  • make due with what you have
    • View Profile
Re: Raw Help: Modding Eye Color
« Reply #5 on: July 24, 2010, 03:01:18 pm »

there was a problem of the randomness which caused whatever was first in the list to be most often. and my most often was nearly like 90%
Logged

3

  • Bay Watcher
    • View Profile
Re: Raw Help: Modding Eye Color
« Reply #6 on: July 24, 2010, 03:09:20 pm »

Quote
there was a problem of the randomness which caused whatever was first in the list to be most often. and my most often was nearly like 90%

I haven't noticed that at all. But there doesn't seem to be anything wrong with the syntax, so it's feasible. I would test it but I appear to be having trouble actually finding any wolves at the moment.

Edit: No, seems random enough to me. Did you edit the wolf entry in any other way?
« Last Edit: July 24, 2010, 03:15:16 pm by 3 »
Logged

soul4hdwn

  • Bay Watcher
  • make due with what you have
    • View Profile
Re: Raw Help: Modding Eye Color
« Reply #7 on: July 24, 2010, 03:38:13 pm »

maybe it was "fixed" but there was a forum only report of color only showing whatever was the first of the the list of descriptors. i checked version 0.31.10 and it is properly random now so my words are officially air =p

edit: you can use the arena for testing
« Last Edit: July 24, 2010, 06:21:59 pm by soul4hdwn »
Logged

Bronzebeard

  • Bay Watcher
    • View Profile
Re: Raw Help: Modding Eye Color
« Reply #8 on: July 24, 2010, 03:58:19 pm »

Yup, indeed--adding "IRIS_EYE_" to the prospective colors did it! Thank you, 3.

I'm not sure if it means anything but brass appears to be the eye color of four of the six wolves in a local pack I have, so it may be that the first entry somehow comes up the most common. Anyhow, thanks again.
Logged

Daywalkah

  • Bay Watcher
    • View Profile
Re: Raw Help: Modding Eye Color
« Reply #9 on: July 24, 2010, 04:47:18 pm »

If you desire more randomness, the fix was to have consecutive numbers instead of just the #1.

[TL_COLOR_MODIFIER:IRIS_EYE_BRASS:1:IRIS_EYE_LIGHT_BLUE:2:IRIS_EYE_PALE_BLUE:3:IRIS_EYE_SKY_BLUE:4...

Etc.
Logged
Magma cancels flow; interrupted by Ironblood.