Freeze when reading a 102kb file?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Kuromeku
Party member
Posts: 166
Joined: Sun Jul 20, 2008 5:45 pm

Freeze when reading a 102kb file?

Post by Kuromeku »

Why does it freeze when I read a 102kb file?
Attachments
wrath.txt
(101.78 KiB) Downloaded 121 times
surtic
Citizen
Posts: 74
Joined: Sat Jul 12, 2008 12:18 am

Re: Freeze when reading a 102kb file?

Post 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).
User avatar
Kuromeku
Party member
Posts: 166
Joined: Sun Jul 20, 2008 5:45 pm

Re: Freeze when reading a 102kb file?

Post by Kuromeku »

Yeah but I just do this:

local data = love.filesystem.read("saves/"..file);

And it still doesn't work (still freezes)?
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Freeze when reading a 102kb file?

Post 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.
Post Reply

Who is online

Users browsing this forum: pgimeno and 12 guests