Runs peachy in Löve 0.9.2 on OS X Mavericks but fails on OS X High Sierra as an executable app. Dropping the game folder over Löve 11.2 spits the error below unlike over 0.9.2.
Error
lua/loader.lua:220: love.graphics cannot function without a window!
Traceback
[C]: in function 'LGNI'
lua/loader.lua:220: in main chunk
[C]: in function 'require'
main.lua:26: in main chunk
[C]: in function 'require'
[C]: in function 'xpcall'
[C]: in function ‘xpcall’
I have just started the port to 11.2 — color definitions, stencil, and mouse changes yet to be done. conf.lua is
A quick look at Config_Files will tell you that you're missing at least two things; t.modules.window = true and t.modules.graphics = true.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
In that case, it might be that because of some inexplicable design decision on löve's part, you can no longer use love.graphics functions without creating an actual graphical window (even if some functions did work without it previously); i'm not sure on this one, though i do remember something like this faintly.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
It never worked to use love.graphics without a window, since the window has always created an OpenGL context (partly since an SDL OpenGL context requires a window to be created in the first place - because on various platforms an OpenGL context and a renderable backbuffer are tied together, and the latter requires a window).
Before love 0.10 or so, it would just randomly crash or corrupt your memory in that case. Now it causes a Lua error instead (when some functions are called, at least.)
I’m very rusty at the löve functions, and I worked everything out by trial and error. A window always launched at the start in 0.9.2, and I considered a config file the first time after noticing it started at some default dimension ( 800 x 600? ) before I could resize it with love.window.setMode. If in 11.2 the window is not automatically created, who does so and how? I can see a love.window.close at the top of the list, but not a love.window.open or anything intuitively similar.
The window is automatically created by default in love 11. Your love.conf has the line "t.window = nil" in it, which stops that from happening. If you remove that line it should be automatically created.
You can also call love.window.setMode to (re)create the window in main.lua (before calling any love.graphics function).
There are also various t.window fields documented in the love.conf wiki page to set the size of the window, etc. when it's created the first time after love.conf is loaded, so you don't need to call setMode to set the initial size.