The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hyriu color
Author Message
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #1
Hyriu color
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)
[Image: tFi2IV5.png]

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 Smile
11-28-2014 01:28 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Hyriu color
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
11-28-2014 02:02 AM
Find all posts by this user Like Post Quote this message in a reply
Feeh
Sphere Developer
*****

Posts: 156
Likes Given: 6
Likes Received: 40 in 29 posts
Joined: Sep 2012
Reputation: 4



Post: #3
RE: Hyriu color
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

Feeh/Epila - Nightly releases / SphereWiki / Github Issues / Sphere's GitHub
(This post was last modified: 11-28-2014 10:35 AM by Feeh.)
11-28-2014 10:10 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #4
RE: Hyriu color
bingo Smile
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
(This post was last modified: 11-28-2014 04:23 PM by Coruja.)
11-28-2014 03:58 PM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #5
RE: Hyriu color
fixed on latest 30 nov 2014 build (thx for the hue mask explanation Feeh) Smile
[Image: iQr3l9N.png]
(This post was last modified: 11-30-2014 11:45 AM by Coruja.)
11-30-2014 11:33 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Coruja's post
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #6
RE: Hyriu color
goood job coruva and feej
11-30-2014 01:53 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)