Page 1 of 1

mac config.lua

Posted: Fri Dec 27, 2013 6:43 pm
by pielago
for some weird reason my config doesn't work? i switch from windows to mac so far i place all my stuff under finder the lua the love etc..
and when i compress the file in to .love it seem like everything works but config

i can't change the tittle or size wonder why? can someone give me an idea why if went through the same problem? i copied the config for 0.9.0 ?????? or do i still need to use 0.8.0??? like i did for windows????

Re: mac config.lua

Posted: Fri Dec 27, 2013 8:00 pm
by DaedalusYoung
It's conf.lua, not config?

[]

Posted: Fri Dec 27, 2013 9:02 pm
by bekey
-snip-

Re: mac config.lua

Posted: Sat Dec 28, 2013 7:34 am
by pielago
NO more 0.8.0 ????
sorry for spelling...

[]

Posted: Sat Dec 28, 2013 11:12 am
by bekey
-snip-

Re: mac config.lua

Posted: Sun Dec 29, 2013 8:37 pm
by pielago
i am seriously confuse now :?
0.8.0 its for windows and
0.9.0 for mac and etc???

Re: mac config.lua

Posted: Sun Dec 29, 2013 8:52 pm
by DaedalusYoung
Which version of LÖVE are you using? What do you see if you just run love.app on its own?

Re: mac config.lua

Posted: Mon Dec 30, 2013 6:24 pm
by iPoisonxL
Mac and Windows both have 0.8 and 0.9.

0.8 and 0.9 have different config files, because many modules were renamed (like t.screen to t.window).

If you're using the 0.8 config, make a file called conf.lua in the same directory as your main.lua and use these values:

Code: Select all

function love.conf(t)
    t.title = "Untitled"        -- The title of the window the game is in (string)
    t.author = "Unnamed"        -- The author of the game (string)
    t.url = nil                 -- The website of the game (string)
    t.identity = nil            -- The name of the save directory (string)
    t.version = "0.8.0"         -- The LÖVE version this game was made for (string)
    t.console = false           -- Attach a console (boolean, Windows only)
    t.release = false           -- Enable release mode (boolean)
    t.screen.width = 800        -- The window width (number)
    t.screen.height = 600       -- The window height (number)
    t.screen.fullscreen = false -- Enable fullscreen (boolean)
    t.screen.vsync = true       -- Enable vertical sync (boolean)
    t.screen.fsaa = 0           -- The number of FSAA-buffers (number)
    t.modules.joystick = true   -- Enable the joystick module (boolean)
    t.modules.audio = true      -- Enable the audio module (boolean)
    t.modules.keyboard = true   -- Enable the keyboard module (boolean)
    t.modules.event = true      -- Enable the event module (boolean)
    t.modules.image = true      -- Enable the image module (boolean)
    t.modules.graphics = true   -- Enable the graphics module (boolean)
    t.modules.timer = true      -- Enable the timer module (boolean)
    t.modules.mouse = true      -- Enable the mouse module (boolean)
    t.modules.sound = true      -- Enable the sound module (boolean)
    t.modules.physics = true    -- Enable the physics module (boolean)
end
If you're using 0.9, make a file called conf.lua in the same directory as your main.lua and use these values:

Code: Select all

function love.conf(t)
    t.identity = nil                   -- The name of the save directory (string)
    t.version = "0.9.0"                -- The LÖVE version this game was made for (string)
    t.console = false                  -- Attach a console (boolean, Windows only)

    t.window.title = "Untitled"        -- The window title (string)
    t.window.icon = nil                -- Filepath to an image to use as the window's icon (string)
    t.window.width = 800               -- The window width (number)
    t.window.height = 600              -- The window height (number)
    t.window.borderless = false        -- Remove all border visuals from the window (boolean)
    t.window.resizable = false         -- Let the window be user-resizable (boolean)
    t.window.minwidth = 1              -- Minimum window width if the window is resizable (number)
    t.window.minheight = 1             -- Minimum window height if the window is resizable (number)
    t.window.fullscreen = false        -- Enable fullscreen (boolean)
    t.window.fullscreentype = "normal" -- Standard fullscreen or desktop fullscreen mode (string)
    t.window.vsync = true              -- Enable vertical sync (boolean)
    t.window.fsaa = 0                  -- The number of samples to use with multi-sampled antialiasing (number)
    t.window.display = 1               -- Index of the monitor to show the window in (number)

    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)
    t.modules.window = true            -- Enable the window module (boolean)
end
I recommend you use 0.9, you can download it here.

More information on the config file