unstoppable colorization

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
deogo
Wayist
Posts: 17
Joined: Mon Jun 16, 2014 4:32 pm

unstoppable colorization

#1 Post by deogo »

\tome\mod\class\Player.lua:460

Code: Select all

elseif self:attr("unstoppable") then game.fbo_shader:setUniform("colorize", {1,0.2,0,1})
look at 0 value here {1,0.2,0,1}
which is meant to "clear" that value i think, but instead it just ignored and kept from previous call

it can lead to some unexpected screen colorization result
for example if you use stealth and unstoppable talents together (or invisibility and unstoppable) screen will become somewhat greenish
i guess there is some bug in setUniform

i've tried to change 0 to 0.1 (or 0.01) and it seems fixes the problem

Steven Aus
Archmage
Posts: 366
Joined: Sat Dec 13, 2014 3:38 pm

Re: unstoppable colorization

#2 Post by Steven Aus »

I've had some squares in Orbital Fearscape Platforms where the screen goes completely black. Then you move one square and the lights come on again. It is always the same squares that have this issue once you have entered one of these Fearscape Platforms - not sure if this is related to the issue in this thread. I have a save from there if anyone wants it.

deogo
Wayist
Posts: 17
Joined: Mon Jun 16, 2014 4:32 pm

Re: unstoppable colorization

#3 Post by deogo »

may be it related somehow
now after further tests i've found that changing colorize = {0,0,0,0} makes screen green when activating unstoppable talent
it happens for "unstoppable" only
according to comment in Player.lua colorize = {0,0,0,0} should remove any display colorization and it works for other talents like stealth, invisibility and lightning speed
seems like activating unstoppable skill cause screen recolorization from another source rather than Player.lua

Post Reply