Page 1 of 2

(REOPENED) Issue booting love2d 9.0 or later builds of love2d.

Posted: Fri Jan 26, 2018 5:29 pm
by Nukley
My friend is making this cool game, upon trying to boot it in the latest version of love2d (0.10.2) i get an error stating i need Opengl 2.1. I downloaded glviewer because i could've SWORN i had opengl 2.1, and behold i was right. The error is contradictory to what my computer igpu has to offer. Please help me try to resolve this error, and just to be clear its a laptop. So no easy gpu swapping can occur... I dont believe this is an error with my friends game, but an error with love itself. So i will refrain from posting a .love file in this instance of reporting an error.

ReOpen Edit: I have reopened this for a few reasons, i want to start off that yes the mesa3d pre-compiled libraries work like a charm! However these libraries are software rasterizers, and tend to run VERY slow compared to if they were to run normally. A̶n̶o̶t̶h̶e̶r̶ ̶r̶e̶a̶s̶o̶n̶ ̶i̶s̶,̶ ̶m̶y̶ ̶c̶o̶m̶p̶u̶t̶e̶r̶ ̶h̶a̶s̶ ̶t̶r̶o̶u̶b̶l̶e̶ ̶r̶u̶n̶n̶i̶n̶g̶ ̶s̶o̶m̶e̶ ̶l̶o̶v̶e̶ ̶1̶1̶.̶0̶ ̶b̶u̶i̶l̶d̶s̶ ̶t̶o̶o̶.̶ ̶ ̶I̶ ̶h̶a̶v̶e̶ ̶d̶e̶t̶e̶r̶m̶i̶n̶e̶d̶ ̶a̶n̶y̶ ̶b̶u̶i̶l̶d̶ ̶a̶f̶t̶e̶r̶ ̶1̶0̶.̶2̶.̶5̶0̶0̶ ̶[̶u̶r̶l̶]̶h̶t̶t̶p̶s̶:̶/̶/̶c̶i̶.̶a̶p̶p̶v̶e̶y̶o̶r̶.̶c̶o̶m̶/̶p̶r̶o̶j̶e̶c̶t̶/̶A̶l̶e̶x̶S̶z̶p̶a̶k̶o̶w̶s̶k̶i̶/̶l̶o̶v̶e̶/̶b̶u̶i̶l̶d̶/̶0̶.̶1̶0̶.̶2̶.̶5̶0̶0̶/̶a̶r̶t̶i̶f̶a̶c̶t̶s̶[̶/̶u̶r̶l̶]̶ ̶D̶o̶e̶s̶ ̶n̶o̶t̶ ̶r̶u̶n̶ ̶a̶t̶ ̶a̶l̶l̶,̶ ̶a̶n̶d̶ ̶c̶r̶a̶s̶h̶e̶s̶.̶ ̶ ̶S̶o̶m̶e̶ ̶b̶u̶i̶l̶d̶s̶ ̶o̶p̶e̶n̶ ̶f̶o̶r̶ ̶o̶n̶e̶ ̶f̶r̶a̶m̶e̶ ̶a̶n̶d̶ ̶t̶h̶e̶ ̶v̶e̶r̶y̶ ̶n̶e̶x̶t̶ ̶f̶r̶a̶m̶e̶ ̶i̶t̶ ̶d̶i̶s̶a̶p̶p̶e̶a̶r̶s̶,̶ ̶b̶u̶t̶ ̶t̶h̶e̶ ̶l̶o̶v̶e̶2̶d̶ ̶p̶r̶o̶c̶e̶s̶s̶ ̶w̶o̶u̶l̶d̶ ̶s̶t̶i̶l̶l̶ ̶b̶e̶ ̶r̶u̶n̶n̶i̶n̶g̶ ̶i̶f̶ ̶i̶t̶ ̶d̶i̶s̶a̶p̶p̶e̶a̶r̶s̶.̶.̶.̶ ̶W̶e̶i̶r̶d̶.̶.̶.̶ EDIT: I got it to run somehow, i don't know how, it just runs now. I was made aware of a library known as ANGLE but i cannot seem to find any documentation on how to use it, thus i cant really use it just yet until i figure it out...

Re: Issues booting love2d 9.0 or later builds of love2d.

Posted: Fri Jan 26, 2018 10:42 pm
by MrFariator
If it's a laptop with two graphics card (one integrated, and the other is a dedicated one), you might have to tell your operating system to use the dedicated one, or use an accelerated graphics mode. On Windows (7 and up) should be right-click on the application, and from the context menu find and choose your card.

If that doesn't work, you'll have to post your laptop model and the driver you're using.

Re: Issues booting love2d 9.0 or later builds of love2d.

Posted: Sat Jan 27, 2018 1:01 am
by pgimeno
I'd say the most likely cause is that the driver reports supporting OpenGL 2.1 but it doesn't actually fully support it, and that in particular it lacks some features that Löve needs.

Re: Issues booting love2d 9.0 or later builds of love2d.

Posted: Sat Jan 27, 2018 5:27 am
by Nukley
It is a windows 7 computer, and specifically the model is an hp g50-126nr. More details can be found by searching for the model number.

Re: Issues booting love2d 9.0 or later builds of love2d.

Posted: Sat Jan 27, 2018 1:45 pm
by zorg
Nukley wrote: Sat Jan 27, 2018 5:27 am It is a windows 7 computer, and specifically the model is an hp g50-126nr. More details can be found by searching for the model number.
It's still a laptop. It probably has an integrated graphics chip as well as one that's more capable.

Do us a favor, and create a conf.lua and main.lua with this code:

Code: Select all

--conf.lua
function love.conf(t)
    t.identity = nil                    -- The name of the save directory (string)
    t.version = "0.10.2"                -- The LÖVE version this game was made for (string)
    t.console = true                   -- Attach a console (boolean, Windows only)
    t.accelerometerjoystick = true      -- Enable the accelerometer on iOS and Android by exposing it as a Joystick (boolean)
    t.externalstorage = false           -- True to save files (and read from the save directory) in external storage on Android (boolean) 
    t.gammacorrect = false              -- Enable gamma-correct rendering, when supported by the system (boolean)
 
    t.window = false
 
    t.modules.audio = true              -- Enable the audio module (boolean)
    t.modules.event = true              -- Enable the event module (boolean)
    t.modules.graphics = true           -- Enable the graphics module (boolean)
    t.modules.image = true              -- Enable the image module (boolean)
    t.modules.joystick = true           -- Enable the joystick module (boolean)
    t.modules.keyboard = true           -- Enable the keyboard module (boolean)
    t.modules.math = true               -- Enable the math module (boolean)
    t.modules.mouse = true              -- Enable the mouse module (boolean)
    t.modules.physics = true            -- Enable the physics module (boolean)
    t.modules.sound = true              -- Enable the sound module (boolean)
    t.modules.system = true             -- Enable the system module (boolean)
    t.modules.timer = true              -- Enable the timer module (boolean), Disabling it will result 0 delta time in love.update
    t.modules.touch = true              -- Enable the touch module (boolean)
    t.modules.video = true              -- Enable the video module (boolean)
    t.modules.window = true             -- Enable the window module (boolean)
    t.modules.thread = true             -- Enable the thread module (boolean)
end

Code: Select all

--main.lua
name, version, vendor, device = love.graphics.getRendererInfo( )
print(('%s %s\n%s %s'):format(name,version,vendor,device)
And try to run it; if it doesn't work, try setting t.modules.window = false, and then try it again. It should print the detected gpu's info onto the console window; if it doesn't match your dedicated card, then there's the problem, and it can be fixed; if it does say that, then unfortunately the issue is what pgimeno said, that not even your dedicated supports the minimum opengl level that that specific Löve version needs.

Edit: Also, after a bit of googling, i found out that your laptop's Intel GMA 4500 GPU should support OpenGL 2.1

Re: Issues booting love2d 9.0 or later builds of love2d.

Posted: Sat Jan 27, 2018 2:24 pm
by Nukley
No dice... I had ran it with and without the t.modules.window Boolean set to true, it didn't seem to work either way... Oddly, i did accidently at first make both main.lua and conf.lua just conf.lua. It booted to a blank love console, no errors to be seen.

Re: Issues booting love2d 9.0 or later builds of love2d.

Posted: Sat Jan 27, 2018 2:29 pm
by Nukley
Here is the error in specific...
Image

Re: Issues booting love2d 9.0 or later builds of love2d.

Posted: Sat Jan 27, 2018 4:11 pm
by grump
Install the proper driver for your graphics chip..

Re: Issues booting love2d 9.0 or later builds of love2d.

Posted: Sat Jan 27, 2018 6:06 pm
by Nukley
I have definitely tried installing the latest graphics drivers, but to no avail. I have even gone as far as getting modded drivers! No dice with graphical drivers, but i feel like we're on the right track with the graphics drivers.

Re: Issues booting love2d 9.0 or later builds of love2d.

Posted: Sat Jan 27, 2018 6:18 pm
by grump
Locate the graphics card in the Windows device manager. It will tell if something is wrong about the driver. Post a screenshot of the device entry.