Talk:TLTools

File reading bug

The page says:

"Please note: Do not write compressed strings to a file, since they can't be read correctly by Love 0.7.0 due to a file-reading bug."

What specifically is the bug? is it on the tracker? --Elvashi 13:34, 22 June 2011 (BST)

No booleans

I tried to save a table with a boolean value in it using TSerial, but it didn't appear in the file.

The code:

local DEFAULTS = {
    screen_width = 1024,
    screen_height = 1640,
    fullscreen = true
}

local file = love.filesystem.newFile('settings')
file:open('w')
file:write( TSerial.pack(DEFAULTS) )
file:close()

The resulting file:

{["screen_width"]=1024,fullscreen=true,["screen_height"]=640,}

--Aaronwizard 03:57, 23 May 2012 (BST)