Hey folks.... this may seems a bit odd.
I need to downgrade a Game from 11.1 to 10.2 ...
why?
I created a little Fishquiz for a Science Museum and the only "free" computer is an old WindowsXP Machine.
So i downloaded 10.2 and technically it runs.... the console gives me the excact same output as in 11.1
but the screen stays black. But there is no Crash...
Have you any idea what is causing this?
thanks for any Help.
Downgrade a Game to 0.10.2
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Party member
- Posts: 509
- Joined: Wed Oct 05, 2016 11:53 am
Re: Downgrade a Game to 0.10.2
Before 11.0 love.graphics.setColor used values in the range of 0-255, and then in 11.0 the range was redefined to 0-1, as explained in the version history. The most likely cause might be that the game is drawing everything extremely dark (passing only "1"s to setColor, resulting in the rgba values to be 1/255), so you can't see what's going on when running in 0.10.2.
You could monkeypatch love.graphics.setColor like the following, and see if it has any effect:
You could monkeypatch love.graphics.setColor like the following, and see if it has any effect:
Code: Select all
local original = love.graphics.setColor
love.graphics.setColor = function ( r, g, b, a )
r,g,b,a = r or 1,
g or 1,
b or 1,
a or 1
-- multiply the color values by 255 to convert them from 0-1 range to 0-255 range
original ( r*255, g*255, b*255, a*255 )
end
Re: Downgrade a Game to 0.10.2
cool. thanks for the advice. Works!
Who is online
Users browsing this forum: Bing [Bot] and 47 guests