Click to visit: JoinUO free shard list
Colors
11 posts
• Page 1 of 2 • 1, 2
|
|
I believe the colors for sandals are black because of what you said and have a hue of 0 send to the client.
I used some breakpoint to track the creation of the sandals (type=5901 or 0x170D):
And I used hardware breakpoints to track where the hue variable is accessed in memory:
Result: the hue was never written to, so it remained 0 all the time. Next: I used the LOGFILE option of uodemo+ to track the messages send from the server to the client:
Some sandals do spawn with a color, but they are part of the random_shoes definition (5901 & 5903). <Derrick> RunUO AI is kind of a functional prototype, which i have hacked into something resembling OSI behavior, but only by complitcating everything
|
|
Wow, thank you. This is really helping me understand the flow of things in the dissassembly.
But, this case whence the hue is never modified, does this then imply that sandals are always black upon creation? Where would "choice" of hue take place, for example the range applied to the random_shoes aggregate? It's much more difficult to find these things without the function labels in place =/ Thanks! |
|
<Derrick> RunUO AI is kind of a functional prototype, which i have hacked into something resembling OSI behavior, but only by complitcating everything
|
|
Hue zero is always the default unhued graphic; so for sandals, hue zero is brown as that's their natural unhued color.
However it looks like NEUTRAL_COLORS is the key here. RANDOM_SHOES { 5903 1 5901 1 } NEUTRAL_COLORS 1801 1887 There is definitely one hue in NEUTRAL_COLORS, 1881 which looks pretty darn black to me when applied to sandals; I suspect this is the source of the black sandals on weavers. This gives a weaver a 1 in 174 chance of spawning sandals in a particular hue, although there may be one or two other hues in the color set that players may have called black. True Black, usually hue 1 does seem to be used for beggar sandals, although it's some pretty unusual syntax, I'd like to verify this via the Demo if we can spawn a few beggars there it should be pretty revealing. Thanks much for this thread. |
|
<Derrick> RunUO AI is kind of a functional prototype, which i have hacked into something resembling OSI behavior, but only by complitcating everything
|
|
|
|
Wow, I missed that entirely, I even copied that equipment line into a comment in my own soure code yesterday and didn't notice neutral_shoes. Thanks!
Can you verify that those are coming out as Hue=1? |
|
Confirmed. Female Jewelers are the only NPC's I've seen with this faulty equip code.
|
|
|
|
11 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 5 guests