What does your parse_args function do? It just reads the args and whether or not there is a `--server` flag, then set the variable isServer to true. local function parse_args(args) for i, arg in pairs(args) do if arg == "--server" or arg == "-s" then _G.isServer = true elseif ar...
You can delay window creation by setting the window module to false in conf.lua, and then calling love.window.setMode later (if you want to create a window). At the end of love.load, for example. So, you could just have a separate configuration file, maybe with a boolean field that is checked to us...
I recommend structuring your project so that main.lua is at the root There's only one slight problem. I use a different configuration for the server to disable the display and not show a window. How can I split `conf.lua` in that case? Specially because `love.conf` runs before `love.load` does...
I recommend structuring your project so that main.lua is at the root, and then you pick whether to load client or server files from there based on a command-line parameter parsed from that main.lua (or something similar). I see. I investigated how to do so, it means changing some of my code structu...
The finding Originally I was going to make a post about how I couldn't get modules that have a init.lua to work, even though it worked for lua 5.4. But miraculously, I decided to check the `package.path` and compared love's luajit to lua 5.4's It just so happed that Löve (or luajit) is missing a ce...