![]() |
Hyriu color - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Hyriu color (/Thread-Hyriu-color) |
Hyriu color - Coruja - 11-28-2014 01:28 AM today I found something interesting on hiryu mount I set color=08032 (light gold) but when I mount it, strangely it changes to another similar color (dark gold). And when I dismount, it return to correct color (light gold) ![]() to confirm if this is really a bug, I made some tests on RunUO (on the same PC using same UO setup), but on RUO it works fine, this problem only occours on sphere I have no idea what it can be, maybe 'char update' packet sending wrong color to client? mount memory item changing to another color? hues.mul problem? magic? aliens? so I'm opening this thread to get some feedback and find the real cause of this problem, to later fix it on sphere source ![]() RE: Hyriu color - darksun84 - 11-28-2014 02:02 AM I tried with other mounts The horse get colored like the mounted hiryu The beetle instead doesn't change the color at all until you mount it (and get the same color of the mounted hyriu) Same with polar bear and reptalon RE: Hyriu color - Feeh - 11-28-2014 10:10 AM Hues does have flags, you can see them by looking at your naked character. You can see its underwear, but if you use the .underwear command you can't. If you use .show color on both cases you will see (for default uo skin hue) 0x83ea and 0x3ea. They look exactly the same but the 0x8000 flag will tell the client to hue only white pixels. (human anim is white/grayscale with slight beige underwear) I don't know where sphere filter this nor what are the hue flags exactly but here is what I can say about hue flags 0x8000 - Hue only grayscale pixels on characters / world tems will be black / no difference on paperdoll 0x4000 - Anims will be translucid for non-zero hues / world items and paperdoll will be black (there are other flags, but they act strange and some may even crash the client) (Are those rainbow hues meant to work with these flags?) (Can we these flags combined?) Sphere is filtering the 0x8000 flag when you ride the hiryu. My bet is that the filter is located at packet level RE: Hyriu color - Coruja - 11-28-2014 03:58 PM bingo ![]() I'm quite sure that it's something packet related on the hyriu example, the 08032 is the normal color (dark gold) and if I change it to 010032 (08032+08000) it will enable the underwear flag and will fix the color (light gold with stripes) so probably sphere is sending this hue packet without the "underwear flag", and it can be fixed if we add +08000 to enable the underwear flag manually EDIT: I found and fixed the problem, it just need a few more tests to check if this thing won't break anything, but for now it's working fine RE: Hyriu color - Coruja - 11-30-2014 11:33 AM fixed on latest 30 nov 2014 build (thx for the hue mask explanation Feeh) ![]() ![]() RE: Hyriu color - darksun84 - 11-30-2014 01:53 PM goood job coruva and feej |