Purchasable Clothes cant change color

Rystbo

-Hotel Owner, -Customs Developer, -Arcturus
Apr 16, 2018
390
200
Hello, so im working on adding new clothing to my catalog. That was no issue. Now i tried comparing to clothing that let me to change colors to see if i had made errors. Now when i purchase a piece of clothing from my catalog, it doesn't let me to change its color. The clothing also doesn't show up in the clothing selector.
The pig hat for example added with zero issue and i can change its color,



Pig hat figuredata: (this item lets me change color, just to compare to the one that doesnt)

<set id="3767" gender="U" club="0" colorable="1" selectable="1" preselectable="0" sellable="1"><part id="3313" type="ha" colorable="1" index="0" colorindex="1"/><part id="3314" type="ha" colorable="0" index="1" colorindex="0"/><hiddenlayers><layer parttype="hrb"/></hiddenlayers></set>

Now here is the messy bun figuredata:

<set id="3782" gender="U" club="0" colorable="1" selectable="1" preselectable="0" sellable="1"><part id="3346" type="hr" colorable="1" index="0" colorindex="1"/><part id="3346" type="hrb" colorable="1" index="0" colorindex="1"/><part id="3347" type="hr" colorable="1" index="1" colorindex="0"/><part id="3347" type="hrb" colorable="0" index="1" colorindex="0"/></set>

Mind you, these figuredata are directly ripped from habbo.

Now also my figuremap is a direct rip from habbo.

Here is my catalog_clothing sql, not sure if that matters but any advice would help. Again my issue is the item wont let me change its color, just stays white.

INSERT INTO `hotel`.`catalog_clothing`(`id`, `clothing_name`, `clothing_parts`) VALUES (10436, 'clothing_r19_messybun', '3346,3346,3347,3347');
 

Zachariah

Active Member
Aug 26, 2017
177
78
i thought so to, but when i do then the clothing item doesnt show on the character at all.
<set id="3782" gender="U" club="0" colorable="1" selectable="1" preselectable="0" sellable="1">
<part id="3346" type="hr" colorable="1" index="0" colorindex="1"/>
<part id="3346" type="hrb" colorable="1" index="0" colorindex="1"/>
<part id="3347" type="hr" colorable="0" index="1" colorindex="0"/>
<part id="3347" type="hrb" colorable="0" index="1" colorindex="0"/>
</set>
Try this code, it should work for the colourable part.

Then in the catalog_clothing change the " '3346,3346,3347,3347' " to '3782' and if that doesn't work, then I'll hop on teamviewer with you.
 

Rystbo

-Hotel Owner, -Customs Developer, -Arcturus
Apr 16, 2018
390
200
<set id="3782" gender="U" club="0" colorable="1" selectable="1" preselectable="0" sellable="1">
<part id="3346" type="hr" colorable="1" index="0" colorindex="1"/>
<part id="3346" type="hrb" colorable="1" index="0" colorindex="1"/>
<part id="3347" type="hr" colorable="0" index="1" colorindex="0"/>
<part id="3347" type="hrb" colorable="0" index="1" colorindex="0"/>
</set>
Try this code, it should work for the colourable part.

Then in the catalog_clothing change the " '3346,3346,3347,3347' " to '3782' and if that doesn't work, then I'll hop on teamviewer with you.


Bro your never going to guess what the issue was so i did some comparing with other furni, now im saying to myself wonder why the color wont work. And why is it that when i enter part ids into the furnidata it shows me a different clothing item? Well after looking turns out that the part ids we see above, 3346 3347 are set ids for another peice of furni. So when you have the catalog clothing part ids 3346,3347 it was showing the correct item because the furni data allowed it BUT the db wouldn't let it to change color because it was linking these ids to the Set ids for other clothing. So what i did was change the part ids to 33460,33460,33467,33647 in both the figuredata and figuremap for that clothing item. Then set the furnidata part id to the set id, then the sql for the clothing parts to the new part ids. Updated mutant, furni and cat. cleared cache and reloaded then it worked.

All fixed close thread please.
 

Users who are viewing this thread

Top