Starbound

Starbound

Halo Ultra v2 Tweaks +Frackin Universe
Ere376  [developer] 25 May, 2018 @ 12:03am
Dyeable Armours
So I went and read through a few guides on making armour, and it seems alot of people not just the creators of Halo Ultra v2 just don't quiet know how "colorOptions" work, which is why the armour in the mod isnt dyeable. "colorOptions" is suppose to work with dyes, and the command "colorIndex" but it seems who ever made these armours did not know that.

How the colorIndex command is suppose to work:
/spawnitem florantier6mhead 1 '{"colorIndex":4}' Color index (the colors you get from using dyes): 0.Default 1. Black 2. Grey 3. White 4. Red 5. Orange 6. Yellow 7. Green 8. Blue 9. Purple 10. Pink 11. Brown

seems simple, the numbers relate to what dye, but here is where people get lost or confused, in most/all armour codes there is this.
"colorOptions" : [ // DEFAULT { "ffca8a" : "838383", "e0975c" : "555555", "a85636" : "383838", "6f2919" : "151515" }, // BLACK { "ffca8a" : "838383", "e0975c" : "555555", "a85636" : "383838", "6f2919" : "151515" }, // GREY { "ffca8a" : "b5b5b5", "e0975c" : "808080", "a85636" : "555555", "6f2919" : "303030" }, // WHITE { "ffca8a" : "e6e6e6", "e0975c" : "b6b6b6", "a85636" : "7b7b7b", "6f2919" : "373737" }, // RED { "ffca8a" : "f4988c", "e0975c" : "d93a3a", "a85636" : "932625", "6f2919" : "601119" }, // ORANGE { "ffca8a" : "ffd495", "e0975c" : "ea9931", "a85636" : "af4e00", "6f2919" : "6e2900" }, // YELLOW { "ffca8a" : "ffffa7", "e0975c" : "e2c344", "a85636" : "a46e06", "6f2919" : "642f00" }, // GREEN { "ffca8a" : "b2e89d", "e0975c" : "51bd3b", "a85636" : "247824", "6f2919" : "144216" }, // BLUE { "ffca8a" : "96cbe7", "e0975c" : "5588d4", "a85636" : "344495", "6f2919" : "1a1c51" }, // PURPLE { "ffca8a" : "d29ce7", "e0975c" : "a451c4", "a85636" : "6a2284", "6f2919" : "320c40" }, // PINK { "ffca8a" : "eab3db", "e0975c" : "d35eae", "a85636" : "97276d", "6f2919" : "59163f" }, // BROWN { "ffca8a" : "ccae7c", "e0975c" : "a47844", "a85636" : "754c23", "6f2919" : "472b13" } ]

and people see this and go "ok so the title above (//BLUE) means what dye, however that isn't correct, the line its on represents the dye, the first line, or as the game reads "Line 0" is no dye, the second line or "Line 1" is black dye, the "//green" or what ever is above, is just a label, the "//" tells the game to ignore the text. so now, there are some problems i would like to reveal.

This code is from the "Security Helmet" code:

"colorOptions" : [ /* GREEN */ { "1d260d" : "1d260d", "2d3d15" : "2d3d15", "40531e" : "40531e", "566d29" : "566d29", "7b9b39" : "7b9b39", "8a4e00" : "8a4e00", "ff9907" : "ff9907", "ffc107" : "ffc107" }, /* BLACK */ { "1d260d" : "0a0a0a", "2d3d15" : "101010", "40531e" : "161616", "566d29" : "1e1e1e", "7b9b39" : "2a2a2a" }, /* GREY */ { "1d260d" : "191919", "2d3d15" : "292929", "40531e" : "383838", "566d29" : "4b4b4b", "7b9b39" : "4b4b4b" }, /* WHITE */ { "1d260d" : "333333", "2d3d15" : "515151", "40531e" : "afafaf", "566d29" : "b7b7b7", "7b9b39" : "c3c3c3" }, /* RED */ { "1d260d" : "260e0d", "2d3d15" : "3d1815", "40531e" : "531f1e", "566d29" : "6d2929", "7b9b39" : "9b393a", "8a4e00" : "7c0d0f", "ff9907" : "e6201f", "ffc107" : "e6401f" }, /* ORANGE */ { "1d260d" : "321a00", "2d3d15" : "512e01", "40531e" : "6d3a03", "566d29" : "8e4b07", "7b9b39" : "cb6808", "8a4e00" : "843400", "ff9907" : "f36907", "ffc107" : "f38f07" }, /* YELLOW */ { "1d260d" : "2e2805", "2d3d15" : "4a4308", "40531e" : "64570c", "566d29" : "837113", "7b9b39" : "bb9f19", "8a4e00" : "8a7b00", "ff9907" : "ffeb07", "ffc107" : "eaff07" }, /* BLUE */ { "1d260d" : "0d1926", "2d3d15" : "15263d", "40531e" : "1e3753", "566d29" : "294a6d", "7b9b39" : "396a9b", "8a4e00" : "00808a", "ff9907" : "07e8ff", "ffc107" : "91feff" }, /* PURPLE */ { "1d260d" : "150c26", "2d3d15" : "25143e", "40531e" : "311d54", "566d29" : "3f276e", "7b9b39" : "57369d", "8a4e00" : "4d008a", "ff9907" : "9807ff", "ffc107" : "c007ff" }, /* PINK */ { "1d260d" : "290a19", "2d3d15" : "421025", "40531e" : "591736", "566d29" : "75214a", "7b9b39" : "a72d6a", "8a4e00" : "80085c", "ff9907" : "ef17a9", "ffc107" : "ef1786" }, /* BROWN */ { "1d260d" : "231d0f", "2d3d15" : "393019", "40531e" : "4d4023", "566d29" : "665430", "7b9b39" : "917643" } ]

See a problem? firstly, they put green first, which is not how this works, the labels mean nothing, and secondly there are only 11 lines, when there should be 12, because they are missing default, or option 0, so green is 0 black is 1.... ect.... and tbh, that would still work up until blue, which is suppose to be green, and purple is suppose to be purple.... ect.... and even that would still somewhat work, however you can only have 4 colours changes through this, the game only supports 4 colours being changed through dye, to clearify how these lines work
/* BROWN */ { "1d260d" : "231d0f", "2d3d15" : "393019", "40531e" : "4d4023", "566d29" : "665430", "7b9b39" : "917643" } -or- /* BROWN */ { "original colour1" : "replacement colour1","original colour2" : "replacement colour2","original colour3" : "replacement colour3","original colour4" : "replacement colour4" }

but if you look above the colours for "red","blue" ect.... have more then 4 specified, which resulted in us unable to dye them with dyes.

so the coders work around, make a station that focibally dye the armour like this
{ "output": { "item": "Security_helmet", "count": 1, "data": { "colorIndex": 10 } }, "input": [ { "item": "BrownSpray", "count": 1 }, { "item": "Security_helmet", "count": 1 } ], "groups": [ "SprayStation", "all" ] }

even though this is "brown" because he messed up the colour order for colorIndex (1. Black 2. Grey 3. White 4. Red 5. Orange 6. Yellow 7. Green 8. Blue 9. Purple 10. Pink 11. Brown) he had to use 10 instead of what should of been 11.... and there is the cause of all of this... now im gonna fix this mess haha, and i may keep the station and rename it to "Visor Painter" or something, since as i mention only 4 colours can be changed through dyes, meaning i wont be able to dye the visors and armour, so dyes will be for armour, and paint will be for visors.

On this post a user "Karmos" did a fairly good job on explaining this.
https://community.playstarbound.com/threads/colour-options-editing.59021/
Last edited by Ere376; 25 May, 2018 @ 1:10am
< >
Showing 1-15 of 21 comments
Ere376  [developer] 25 May, 2018 @ 12:32am 
and before someone says anything, i live in canada, here we spell "color" colour and "armor" armour, ect... so please excuse me when i switch from one to the other, the game, and many others i dabble in code for are american games and expect "color", so i am use to using both
Pantherine 26 May, 2018 @ 5:55pm 
I am the original author of this mod.
Ere376  [developer] 26 May, 2018 @ 9:20pm 
Did you write the code that im showing here?
i had to go through alot of guides to find proper information on "colorOptions", and "colorIndex", even then some of this is wrong, like in my testing i found out you can have more then 4 colors changed. so im not trying to target you or who ever changed this code, since there is alot of confussion around all this, and i hope this didn't come across as agressive or offended you in any way
It was dyable for me, just with the specific paint choices in the mod, but not every armor worked with it
So this basically means you made every armor dyable with the regular starbound dye?
Ere376  [developer] 27 May, 2018 @ 1:42pm 
im going to, i have all the armours dyeable in my version, but i want to add dyeing the visors to them, so it will take a bit for me to implement that before i add it to the public version
Awesome, can't wait for updates!
HLFlare 28 May, 2018 @ 7:10pm 
:3
HLFlare 28 May, 2018 @ 11:55pm 
You've made me a happy lad! <3 FU has some elemetal dye's that'd be interesting! lol I'm excited though this is getting worked on more, Already am in my snug helmet. lol

Question. Would in be possible to make it so a specific vanity head item could be transparent to show both? But specifically that hat.. effect. thing. lol Could be interesting to have even a Plasma Grenade as a hat w/effect. lol xD
HLFlare 28 May, 2018 @ 11:58pm 
One issue, the ODST Helmet renames itself to EVA? It is okay? :P
Ere376  [developer] 29 May, 2018 @ 12:00am 
haha, my bad i shall fix this

as for modded dyes, im not sure how they will work on these
HLFlare 29 May, 2018 @ 12:10am 
Well I've been playing with "Percision Dyes" and the helmet and they communicate alright but still act weird a bit with the modded dyes. haha ^_^',
Ere376  [developer] 29 May, 2018 @ 12:42am 
yeah, fixed the names, and just pushed the update out, resub to update it.
btw there is no way (that i could find) to have animated helmets for fire, so i added something i think would work, as a nod to the flame helmets.
HLFlare 29 May, 2018 @ 12:52am 
<3 <3 <3
So much love, Excited to see it once my game starts up! :3

Takes a awhile, I have allot of mods.
But so much Thank you! <3 :balloon:
HLFlare 29 May, 2018 @ 1:56am 
I love you! <3

Recolor the Red crystals into Orange if possible then it'll be just right, maybe a tad more orangey*. <3 *victory pose* hehe x3. No rush just hope work is going well. -^_^-
They came out so well! :3
You are a decent spriter, if I have any fun stuff to offer from my folders I'll let ya know too. <3
Haha It's sweet to have seen it. <3 I'll cherish it, always, what I mean is now I have to play Starbound forever. Not a bad deal at all. haha :3

Ah well The Red does go good with the Edible flares mod. hahaha ^_^',
Hmmm If I made a bunch of random Helmets could be something. lol

Happy with it either way, either color cause you did great. <3 Keep it up. :)
Last edited by HLFlare; 29 May, 2018 @ 3:10am
HLFlare 29 May, 2018 @ 3:11am 
Lol Half asleep, missed what you said about it being a node too, clever and good thinking! haha my bad for not seeing that part. lol

Also should mention that the Descriptions go default after helmet visor being Sprayed at the Spray Station.
Last edited by HLFlare; 29 May, 2018 @ 3:15am
< >
Showing 1-15 of 21 comments
Per page: 1530 50