Page 1 of 1
Freeze when reading a 102kb file?
Posted: Sun Nov 30, 2008 3:52 am
by Kuromeku
Why does it freeze when I read a 102kb file?
Re: Freeze when reading a 102kb file?
Posted: Sun Nov 30, 2008 12:44 pm
by surtic
Don't know what exactly it's choking on, but in line 55 you have a problem:
Code: Select all
53 prop_weapon_shotgun = {
54 s_Class = "prop_weapon_shotgun",
55 t_Tracers = table: 01D9C128,
56 s_Base = "prop_weapon",
57 s_AmmoClass = "Shotgun",
I get this error message:
Code: Select all
wrath.txt:55: malformed number near '01D9C128'
stack traceback:
[C]: in function 'dofile'
stdin:1: in main chunk
[C]: ?
in Lua (haven't tried from LÖVE).
Re: Freeze when reading a 102kb file?
Posted: Sun Nov 30, 2008 4:26 pm
by Kuromeku
Yeah but I just do this:
local data = love.filesystem.read("saves/"..file);
And it still doesn't work (still freezes)?
Re: Freeze when reading a 102kb file?
Posted: Mon Dec 01, 2008 12:12 am
by rude
I don't have time to look into this now (exams), but will definitely check it out later. Meanwile, try using the love.filesystem.lines iterator.