How would I convert this into a table?
{
["fX"] = 94,
["sY"] = 1,
["sX"] = 44,
["background_color"] = 1,
["fY"] = 19,
["blueprint"] = {
[1] = " CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC ",
[2] = " C CCCCCCC ",
[3] = " C CCCCCCC ",
[4] = " C ^ CCCCCCC ",
[5] = " C C CC ",
[6] = " C CC CCCCC ",
[7] = " C @ C CCC CCCCC^ ",
[8] = " C C C C _ ^^ CCCCCCC ",
[9] = " C C C C C <CCCCCCCCC> CC CC CC CC C4 CC CCCCCCCCCC ",
[10] = " C C C C C C C C <C> C CC^^CC^^CC CC^^CC^^CC CCCCCCCCCC^ ",
[11] = " C C^C^C CCCCCC C^C^C C v C CCCCCCCCCC^ _ CCCCCCCCCC CCCCCCCCCCCCCC ",
[12] = " CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ",
[13] = " CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ",
[14] = " CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA ",
[15] = " CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC ",
[16] = " ",
[17] = " ",
[18] = " ",
[19] = " ",
}
NOTE: This is the map itself, Let's say it's saved into the file asdf.levelAnd I've tried todo this
local map = {}
local file = fs.open( "asdf.level", "r" )
map = textutils.unserialize( file.readAll() )
file.close()
print( type( map ) ) --# I've done this to check what type it is, It always prints nil! D: And the file exists and everything..
So please help me with this (probably super simple ) problem :P/>