GothicKit / ZenKit

A re-implementation of file formats used by the early 2000's ZenGin
http://zk.gothickit.dev/
MIT License
44 stars 9 forks source link

Parse of "JustWhite" lighting preset resulting in wrong color #69

Closed Try closed 1 year ago

Try commented 1 year ago

Here are values for color_animation_list: "255 (255 255 240) 255 (255 240 255) (240 255 255) 255 "

I'm not 100% sure, but probably syntax is: (255 255 240) = full rgb color 255 = grayscale color

lmichaelis commented 1 year ago

Hi @Try, yeah I can see what you mean. I'll take a look at the decomp hopefully later this week. Thanks for the report.

lmichaelis commented 1 year ago

Yeah looks like you're right. I can't decipher everything with 100% accuracy but this code is run if no '('-char is found between two space chars in the input stream:

bilde

outColor.a is initialized beforehand with 0xff so this seems like the right thing. I've added a patch, could you please test if it does the right thing for you?

Try commented 1 year ago

Tested today: "JustWhite" works as expected