Love wont display anything :( [CLOSED]

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
zalander
Citizen
Posts: 75
Joined: Mon Jan 09, 2023 5:58 am
Location: India
Contact:

Love wont display anything :( [CLOSED]

Post 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 ✌️
Attachments
main.lua
main code
(1.71 KiB) Downloaded 290 times
conf.lua
conf file
(186 Bytes) Downloaded 294 times
Last edited by zalander on Sun Nov 19, 2023 7:35 am, edited 2 times in total.
Using LOVE to make everything except games :crazy:

Code: Select all

astring = "pog"
print(astring)
--pog
User avatar
darkfrei
Party member
Posts: 1197
Joined: Sat Feb 08, 2020 11:09 pm

Re: Love wont display anything :(

Post 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
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
User avatar
zalander
Citizen
Posts: 75
Joined: Mon Jan 09, 2023 5:58 am
Location: India
Contact:

Re: Love wont display anything :(

Post by zalander »

still wont work.
i am starting to think its a love issue
Using LOVE to make everything except games :crazy:

Code: Select all

astring = "pog"
print(astring)
--pog
User avatar
slime
Solid Snayke
Posts: 3162
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Love wont display anything :(

Post 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
User avatar
zalander
Citizen
Posts: 75
Joined: Mon Jan 09, 2023 5:58 am
Location: India
Contact:

Re: Love wont display anything :(

Post by zalander »

K thanks ill try running it in a Linux machine.
Using LOVE to make everything except games :crazy:

Code: Select all

astring = "pog"
print(astring)
--pog
User avatar
zalander
Citizen
Posts: 75
Joined: Mon Jan 09, 2023 5:58 am
Location: India
Contact:

Re: Love wont display anything :(

Post by zalander »

Yup its a WSL issue.
Using LOVE to make everything except games :crazy:

Code: Select all

astring = "pog"
print(astring)
--pog
User avatar
darkfrei
Party member
Posts: 1197
Joined: Sat Feb 08, 2020 11:09 pm

Re: Love wont display anything :(

Post 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.
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
User avatar
zalander
Citizen
Posts: 75
Joined: Mon Jan 09, 2023 5:58 am
Location: India
Contact:

Re: Love wont display anything :(

Post 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
Using LOVE to make everything except games :crazy:

Code: Select all

astring = "pog"
print(astring)
--pog
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests