Page 1 of 1

Love wont display anything :( [CLOSED]

Posted: Mon Nov 13, 2023 5:24 pm
by zalander
Hey there !
Is uh been some time anyways
I was making a screen saver because i was bored and i ran into this problem.
When i use WSL to run my code it wont display anything.
I am using Love 11.3 for WSL and Love 11.4 for Windows.
It works fine if i use love that i have for windows.
I have attached the files.
Peace ✌️

Re: Love wont display anything :(

Posted: Mon Nov 13, 2023 5:55 pm
by darkfrei

Code: Select all

-- wrong:
	for i = 1, sel-1 do
		love.graphics.circle("line", ar[i], ar[i+1], 30)
	end

-- rigth:
	for i = 1, sel-1, 2 do
		love.graphics.circle("line", ar[i], ar[i+1], 30)
	end
Also be sure where you insert values:

Code: Select all

function mk()
		ar[#ar+1] = love.math.random(0, love.graphics.getWidth())
		ar[#ar+1] = love.math.random(0, love.graphics.getHeight())
		sel = #ar
	end
removing two last values:

Code: Select all

function rm()
		ar[#ar] = nil
		ar[#ar] = nil
		sel = #ar
	end

Re: Love wont display anything :(

Posted: Mon Nov 13, 2023 11:27 pm
by zalander
still wont work.
i am starting to think its a love issue

Re: Love wont display anything :(

Posted: Mon Nov 13, 2023 11:36 pm
by slime
I'm not sure WSL properly supports what love requires in order to render. At the very least you might need to do some tinkering with it to get it to work. Either way a VM like that is not going to be officially supported and may have a number of issues that don't happen in a real OS environment.

Here's one of the first results of a quick google search for WSL and opengl: https://github.com/microsoft/WSL/issues/2855
And another one: https://gist.github.com/Mluckydwyer/8df ... 5222149f3c

Re: Love wont display anything :(

Posted: Tue Nov 14, 2023 4:09 am
by zalander
K thanks ill try running it in a Linux machine.

Re: Love wont display anything :(

Posted: Wed Nov 15, 2023 10:37 am
by zalander
Yup its a WSL issue.

Re: Love wont display anything :(

Posted: Thu Nov 16, 2023 8:13 am
by darkfrei
zalander wrote: Wed Nov 15, 2023 10:37 am Yup its a WSL issue.
If you solved the problem then explain how and the next one can google it.

Re: Love wont display anything :(

Posted: Sun Nov 19, 2023 7:28 am
by zalander
darkfrei wrote: Thu Nov 16, 2023 8:13 am
zalander wrote: Wed Nov 15, 2023 10:37 am Yup its a WSL issue.
If you solved the problem then explain how and the next one can google it.
I just ran the code in a Linux machine instead of WSL. And the end user is not going to use WSL to run a program.
When using Love with WSL, Love cant access Open GL though it detects that it is installed. (I think)
Slime told about it above
slime wrote: Mon Nov 13, 2023 11:36 pm I'm not sure WSL properly supports what love requires in order to render. At the very least you might need to do some tinkering with it to get it to work. Either way a VM like that is not going to be officially supported and may have a number of issues that don't happen in a real OS environment.

Here's one of the first results of a quick google search for WSL and opengl: https://github.com/microsoft/WSL/issues/2855
And another one: https://gist.github.com/Mluckydwyer/8df ... 5222149f3c