Modding Help materialHueShift

Discussion in 'Starbound Modding' started by Camtire, Jan 15, 2014.

  1. Camtire

    Camtire Phantasmal Quasar

    Many thanks to Mackinz and MrMagic for teaching me about materialHueShift . Using a charactor editor by Gear, one can see the actual 14 digit number values used by the game. For ease of other modders, I am attempting to list all the natural variants found in the game, but the materialHueShift can theoretically be used to shift any material in the 360 degree range.

    Colour names are from this website.
    Note: 0 values are the unmodified version. You do not need to add extra code into a mod to use these.
    Note: Moonstone and Moonrock currently have a bug that their inventory icon does not reflect the tile colour.
    Note: Wood Platforms show variants in their icons, not their tile.
    Note: Cobblestone has variants, but being grey hue shift has little effect on them. Listed for completion purposes.
    Note: A <name> at the end of a line was contributed to this project.
    Note: There will be mistakes. Corrections are welcome.

    Blaststone Block (blaststone)
    000.00000000000 Gunsmoke
    182.11764526367 Hurricane <Mackinz>

    Bone Block (bonematerial)
    000.00000000000 Mongoose
    345.88235473633 Mongoose <Mackinz>

    Cobblestone (cobblestonematerial)
    000.00000000000 Dusty Gray
    182.11764526367 <Mackinz>
    296.47058105469 <Mackinz>

    Dirt (dirtmaterial)
    000.00000000000 Dallas
    43.764705657959 Crete
    88.941177368164 Sea Green
    134.11764526367 Paradiso
    179.29412841797 Astronaut
    182.11764526367 Astronaut
    227.29412841797 Minsk
    272.47058105469 Plum
    296.47058105469 Camelot
    317.64706420898 Solid Pink

    Dry Dirt(drydirt)
    000.00000000000 Antique Brass
    134.11764526367 Downy <Mackinz>
    182.11764526367 Danube

    Dry Sand (drysand)
    000.00000000000 Calico
    43.764705657959 Deco <Mackinz>
    179.29412841797 Regent St Blue <Mackinz>
    182.11764526367 Regent St Blue
    227.29412841797 Dull Lavender
    272.47058105469 Light Orchid <Mackinz>

    Junk Tech (junktech)
    000.00000000000 Tom Thumb
    134.11764526367 Martinique
    182.11764526367 Voodoo
    227.29412841797 Woody Brown

    Light Metal (lightmetal)
    000.00000000000 Loblolly
    134.11764526367 Maverick

    Magmarock (magmarock)
    000.00000000000 Russett
    19.764705657959 Roman Coffee
    134.11764526367 Spring Leaves <Mackinz>
    182.11764526367 Cutty Sark

    Meteorite Rock (meteoriterock)
    000.00000000000 Tobacco Brown
    24.000000000000 Go Ben
    182.11764526367 Fiord

    Moondust (moondust)
    000.00000000000 Calico
    88.941177368164 Granny Smith Apple
    182.11764526367 Regent St Blue

    Moonrock (moonrock)
    000.00000000000 Coral Reef

    Moonstone (moonstone)
    000.00000000000 Bermuda Grat

    Mud (mud)
    000.00000000000 Pablo
    227.29412841797 Rum

    Obsidian (obsidian)
    000.00000000000 Antique Brass
    88.941177368164 Mantis
    272.47058105469 Amethyst

    Sand (sand2)
    000.00000000000 Chenin
    59.294120788574 Pastel Green <Mackinz>
    302.11764526367 Tonys Pink <Mackinz>
    306.35293579102 Tonys Pink<Mackinz>
    317.64706420898 New York Pink
    336.00000000000 Gold Sand <Mackinz>
    345.88235473633 Putty <Mackinz>

    Sandstone Block (sandstonematerial)
    000.00000000000 Straw
    182.11764526367 Chetwode Blue <Mackinz>
    227.29412841797 Lavender
    306.35293579102 My Pink <Mackinz>
    317.64706420898 My Pink
    345.88235473633 Straw <Mackinz>

    Sewage Block (sewage)
    000.00000000000 Mondo
    317.64706420898 Woody Brown
    336.00000000000 Mondo <Mackinz>

    Snow (snow)
    000.00000000000 Link Water
    29.647060394287 White Lilac <Mackinz>
    43.764705657959 White Lilac <Mackinz>

    Tar (tar)
    000.00000000000 East Bay
    336.00000000000 East Bay

    Unrefined Wood (fullwood2)
    000.00000000000 Paarl
    317.64706420898 Stiletto

    Wood Planks (darkwoodmaterial)
    000.00000000000 Shadow
    306.35293579102 Copper Rust <Mackinz>
    317.64706420898 Spicy Mix

    Wood Platform (platform)
    000.00000000000 Yellow Metal
    317.64706420898 Spice

    Wood Platform (platform2)
    000.00000000000 Yellow Metal
    317.64706420898 Lotus

    Edit Feb 28, 2014: I have not forgotten or given up on this project, I've run into some difficulties lately and hope to solve them soon to continue posting varieties. As a note, recent updates have fixed colours bleeding from the biomes so some of these on this list may no longer be valid as a 'natural' variant. Which is too bad, it's a bug I actually liked :)
     
    Last edited: Feb 28, 2014
  2. Mackinz

    Mackinz The Waste of Time

    This sounds like a handy project for many a modder. Good luck, sir!
     
    Camtire likes this.
  3. Camtire

    Camtire Phantasmal Quasar

    Thank you Mackinz. I intend to update this as much as I can before the wipe, after the wipe it might take a little bit for me to build back up my collection to continue it.
     
    Mackinz likes this.
  4. Mackinz

    Mackinz The Waste of Time

    That's okay. Even if you don't finish now, what you have here is fantastic.

    Also, I found some weird PURPLE wooden planks in the structure of a large Wizard house. How would I go about helping you find that color?
     
    Camtire likes this.
  5. bluecollarart

    bluecollarart Big Damn Hero

    Camtire, you're great. Keep up the good work, this is a worthwhile project!

    Use Camtire's link in the original post to the character editor. That post should have instructions, but basically you need to upload your .player file from your Steam/steamapps/common/starbound/players folder. If you're not sure which .player file is the character you want, you can just load into the game with that character first - that will make sure that the most recently changed .player file is for that character. :)
     
    Camtire likes this.
  6. Camtire

    Camtire Phantasmal Quasar

    You could also give me the coordinates for the planet if that would be easier on you.
     
  7. Mackinz

    Mackinz The Waste of Time

    Actually, it's all good. Right now, I'm more worried about finding my buried storage where I might have some other colored blocks.
     
    Camtire likes this.
  8. Mackinz

    Mackinz The Waste of Time

    I've gone through all of my chests, labratory lockers, and, I believe, every planet I've stored stuff on.

    Here's my list of shift codes:
    Code:
    Dirt
    000.00000000000
    43.764705657959
    88.941177368164
    134.11764526367
    179.29412841797
    182.11764526367
    227.29412841797
    272.47058105469
    296.47058105469
    
    Sandstone
    000.00000000000
    182.11764526367
    306.35293579102
    317.64706420898
    345.88235473633
    
    Sand
    000.00000000000
    59.294120788574
    302.11764526367
    306.35293579102
    317.64706420898
    336
    345.88235473633
    
    Blast Stone
    182.11764526367
    
    Dry Sand
    182.11764526367
    227.29412841797
    000.00000000000
    179.29412841797
    272.47058105469
    43.764705657959
    
    Dry Dirt
    000.00000000000
    134.11764526367
    
    Sewage
    000.00000000000
    336
    
    Wood Planks
    000.00000000000
    306.35293579102
    
    Magmarock
    000.00000000000
    134.11764526367
    
    Snow
    000.00000000000
    29.647060394287
    43.764705657959
    
    Bone Block
    000.00000000000
    345.88235473633
    
    Cobblestone (Does not display different colors)
    000.00000000000
    182.11764526367
    296.47058105469
    
    I've cleaned out the blocks which did not have a code. I also did not test Cobblestone... though there might be a few variants because I have multiple non-homogenous stacks.

    Might be a good idea to include a 000.00000000000 code for all blocks by default.

    Edit: Added in Cobblestone, Bone Blocks, and another Snow block. Cobblestone does not seem to vary in color when placed or viewed in the inventory, but these do have a materialHueShift on it.
     
    Last edited: Jan 18, 2014
    lornlynx and Camtire like this.
  9. Camtire

    Camtire Phantasmal Quasar

    Awesome stuff, thanks Mackinz. Give me a little bit and I'll get your stuff added to the list :) Thank you for helping with this project.
     
  10. Mackinz

    Mackinz The Waste of Time

    Started a new character for the heck of it, and found myself on a Forest planet with a Mushroom Village directly to the left of my spawn (it seems there is always good stuff to the left...).

    I found some green Wood Planks there. Really interesting looking.

    Code:
    DarkWoodMaterial
    43.764705657959
    I'm gonna add that to my mod's Carpenter now. :D
     
  11. Camtire

    Camtire Phantasmal Quasar

    Thank you for that again :) Now that the patch is out I'm going to work on everything again in full force.
     
  12. Camtire

    Camtire Phantasmal Quasar

    After studying several of the files, I seem to be on to something that may make this thread obsolete as it currently is. I may shortly be rewriting the whole thing if I figure it out. I see some numbers in the biome files that show what hues things can have, I just need to figure out why -45(or 315) on a hue shift ends up being 317.64706420898 on the actual item.

    Using dirt as an example, left side is hue shift in biome files, right side is what the shift ends up being on the item:
    Shift: -45 (315) On Item: 317.64706420898
    Shift: -66 (294) On Item: 296.47058105469
    Shift: -90 (270) On Item: 272.47058105469
    Shift: -135 (225) On Item: 227.29412841797
    Shift: -180 (180) On Item: 182.11764526367
    Shift: 45 On Item: 43.764705657959
    Shift: 90 On Item: 88.941177368164
    Shift: 135 On Item: 134.11764526367
    Shift: 180 On Item: 179.29412841797
     
  13. Mackinz

    Mackinz The Waste of Time

    If I may interject, I believe I mentioned the weirdness of how those numbers are determined in this or your earlier question thread. The weirdness was why I did not rely on the biome files, besides how boring it is to just examine existing coding. Exploration is much more fun, and yields the same result, albeit taking longer to obtaining a full listing.

    In addition, I believe I read somewhere that Furious Koala fixed the materialHueShift issue, though I can't find a link by googling. Might be productive to test some collected blocks for color changes and see if they are whole numbers... Idk about you, but the colors seem to different to me this patch.

    Edit: Reviewing the numbers listed, I've come to the conclusion that a lot of the numbers are shared between materials. It may be worthwhile to note that as you did with other things.
     
    Last edited: Jan 27, 2014
  14. Camtire

    Camtire Phantasmal Quasar

    My apologies, I don't recall you saying that so I either misread it or didn't see it. I agree with you on the joy of discovery, I have just been searching for some rhyme and reason as to why things work the way they do. The numbers being shared between different items is what got me to looking through the biomes in the first place. The numbers do link, but for some reason they're +2.xxxx off for negative values and -2.xxxx off for positive values.

    As for materialHueShift, it still does 15 digits and they seem to be the same as they have always been. At least the few that I have checked thus far. I am taking time to build my character back up so I can collect more variants. Perhaps the fixed issue was terrain colour bleeding onto the dungeon blocks? If so, I will be a little sad. I liked the unique coloured things you could get from that bleed effect.
     
  15. Your Buddy Bill

    Your Buddy Bill Existential Complex

    Furious Koala did change the MaterialHueShift. In particular, they did prevent the terrain color bleeding onto dungeon blocks. I, too, will miss such uniquely colored things. I had a big collection of dark blue sewage back in Angry Koala.
     
  16. Mackinz

    Mackinz The Waste of Time

    Darn it! I considered that a feature, not a bug. D:

    Oh well. I'll just make an Artisan Carpenter that sells wood with various hue shifts..
     
  17. Your Buddy Bill

    Your Buddy Bill Existential Complex

    Agreed wholeheartedly. I liked it so much.

    Also, I've noticed that the Hue Shift values in the biome files are represented as angular degrees. 45 would indicate a hue shift 1/8th of the "RGB color wheel" across, 90 would be 1/4, and so on, up to 180, which is (presumably) the same as -180 and wraps around from there. This system adds up to a total of the "0 to 360" degrees in a circle, but I'm guessing that it converts it into the "0 to 255" or "0 to 100" Hue values that most traditional image editing programs use (or possibly some other odd set), which would result in rounding errors pretty close to those seen as the discrepancies.

    There is a reason for this, I think.
    My current guess is that the spawn is right around the "start" of the world. From there, it generates a world out to the right, which eventually hits a line (the location depends on planet size) that tells it to try to loop back around. The game is set up to TRY to avoid spawning structures anywhere near your initial spawn point. This results in said structures being spawned waaay off to one side, which, while it seems to hit around the half-way point on larger planets, results in an absurdly shorter trip by going to the left on smaller planets.
     
  18. Mackinz

    Mackinz The Waste of Time

    Okay, I'm bumping this thread for two reasons.

    1) I have new goodies to find the materialHueShift codes for.

    2) StarReader sucks for this purpose as it rounds off numbers after a certain point. This causes issues where placing a block, with codes found by StarReader, and then mining it creates a new stack with an almost imperceptible difference. However, StarCheat works fantastically for finding whole codes from what I've seen. Much better than StarReader for these purposes, and can do other stuff too!

    I will edit in materialHueShift codes, obtained by StarCheat, I have collected thus far, unless someone replies to this thread first.
     
  19. Your Buddy Bill

    Your Buddy Bill Existential Complex

    reply
    please do add them i am quite curious
     
  20. Mackinz

    Mackinz The Waste of Time

    Thanks for replying as I was typing, @Your Buddy Bill ! :)

    Code:
    Dirt
    43.764705657958984
    88.94117736816406
    134.11764526367188
    182.11764526367188
    272.4705810546875
    296.4705810546875
    
    Corrupt Dirt
    43.764705657958984
    317.6470642089844
    
    Sand
    306.3529357910156
    317.6470642089844
    336
    
    Dry Sand
    227.29412841796875
    272.4705810546875
    
    Sandstone
    306.3529357910156
    317.6470642089844
    
    Snow
    29.64706039428711
    43.764705657958984
    
    Cobblestone
    182.11764526367188
    272.4705810546875
    296.4705810546875
    
    Magmarock
    19.764705657958984
    
    Obsidian
    344.4706115722656
    
    Meteorite Rock
    24
    
    Moondust
    179.29412841796875
    If you see a similar value in the un-updated OP as to the ones I posted here, use the value I posted instead as it may be much more exact.
     

Share This Page