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
Love wont display anything :( [CLOSED]
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Love wont display anything :( [CLOSED]
- 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
Code: Select all
astring = "pog"
print(astring)
--pog
Re: Love wont display anything :(
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
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
Code: Select all
function rm()
ar[#ar] = nil
ar[#ar] = nil
sel = #ar
end
Re: Love wont display anything :(
still wont work.
i am starting to think its a love issue
i am starting to think its a love issue
Using LOVE to make everything except games
Code: Select all
astring = "pog"
print(astring)
--pog
- slime
- Solid Snayke
- Posts: 3162
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Love wont display anything :(
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
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 :(
K thanks ill try running it in a Linux machine.
Using LOVE to make everything except games
Code: Select all
astring = "pog"
print(astring)
--pog
Re: Love wont display anything :(
Yup its a WSL issue.
Using LOVE to make everything except games
Code: Select all
astring = "pog"
print(astring)
--pog
Re: Love wont display anything :(
If you solved the problem then explain how and the next one can google it.
Re: Love wont display anything :(
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
Code: Select all
astring = "pog"
print(astring)
--pog
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests