Page 1 of 1

black screen running .love file

Posted: Thu May 17, 2018 8:06 am
by PGUp
running lua file
ss1.png
ss1.png (140.15 KiB) Viewed 4640 times

running .love file
ss2.png
ss2.png (111.49 KiB) Viewed 4640 times
running lua files works just fine like the first pic, but running .love file result in a black screen (second pic). The game is not freezing, just black screen, other .love files that i downloaded also works, but not mine..

Re: black screen running .love file

Posted: Thu May 17, 2018 8:11 am
by Nixola
Since it's your .love file that doesn't work (you said others work), could you upload it so we may check if there's something wrong with it?

Re: black screen running .love file

Posted: Thu May 17, 2018 12:21 pm
by pgimeno
I saw a thread like this one a few days ago, which had a .love file, but when I tried to reply, it was gone.

I tried the .love file in 0.10 and 11.0. It worked fine for me in 11.0, but in 0.10 I got the black screen. Maybe you have both versions installed, and it's calling the wrong one when you try to run the .love file?

Try with a .love file that has this as main.lua, to see if that's the case:

Code: Select all

function love.draw()
  love.graphics.print(table.concat{love.getVersion()})
end

Re: black screen running .love file

Posted: Thu May 17, 2018 1:26 pm
by PGUp
Nixola wrote: Thu May 17, 2018 8:11 am Since it's your .love file that doesn't work (you said others work), could you upload it so we may check if there's something wrong with it?
here:
main.love
(1.41 KiB) Downloaded 169 times

Re: black screen running .love file

Posted: Thu May 17, 2018 1:26 pm
by PGUp
pgimeno wrote: Thu May 17, 2018 12:21 pm I saw a thread like this one a few days ago, which had a .love file, but when I tried to reply, it was gone.

I tried the .love file in 0.10 and 11.0. It worked fine for me in 11.0, but in 0.10 I got the black screen. Maybe you have both versions installed, and it's calling the wrong one when you try to run the .love file?

Try with a .love file that has this as main.lua, to see if that's the case:

Code: Select all

function love.draw()
  love.graphics.print(table.concat{love.getVersion()})
end
i deleted the 11.0 version already.

Re: black screen running .love file

Posted: Thu May 17, 2018 1:49 pm
by pgimeno
PGUp wrote: Thu May 17, 2018 1:26 pm i deleted the 11.0 version already.
Well, in 0.10 I get a black screen. If I edit the setColor / setBackgroundColor calls to make them be in the 0-255 range, it works in 0.10 too.