Page 1 of 1

unstoppable colorization

Posted: Fri Jun 16, 2017 12:50 pm
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

Re: unstoppable colorization

Posted: Fri Jun 16, 2017 1:19 pm
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.

Re: unstoppable colorization

Posted: Fri Jun 16, 2017 2:40 pm
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