Page 1 of 1

Uh... I think I have a faulty love, or found a nasty glitch.

Posted: Sat Dec 25, 2010 6:52 pm
by zac352
I have narrowed it down that:

Code: Select all

resp=love.thread.newThread(love.filesystem.read("responder.lua"))
causes:

Code: Select all

$ love irc_bot
terminate called after throwing an instance of 'love::Exception'
  what():  Could not open file 404. Does not exist.
Aborted
I can assure you that responder.lua exists:

Code: Select all

$ ls irc_bot
conf.lua  main.lua  responder.lua
And yes, I have tried

Code: Select all

resp=love.thread.newThread(love.filesystem.read("irc_bot/responder.lua"))
It just gives file not found errors.

Can anyone help? :(

Re: Uh... I think I have a faulty love, or found a nasty gli

Posted: Sat Dec 25, 2010 7:17 pm
by TechnoCat
Try this instead

Code: Select all

resp = love.thread.newThread("responder", "irc_bot/responder.lua")

Code: Select all

love.thread.newThread(name, file)

Re: Uh... I think I have a faulty love, or found a nasty gli

Posted: Sat Dec 25, 2010 7:41 pm
by zac352
TechnoCat wrote:Try this instead

Code: Select all

resp = love.thread.newThread("responder", "irc_bot/responder.lua")

Code: Select all

love.thread.newThread(name, file)
Oh. *wallface*

Love should really give a better error for that. :roll:

Re: Uh... I think I have a faulty love, or found a nasty gli

Posted: Sat Dec 25, 2010 8:03 pm
by thelinx
It tried to make a thread of a file with the filename you set to be the contents of the actual fault.

It's not LÖVE's fault you didn't read the love.thread.newThread docs. A "file not found" message is good enough.

Re: Uh... I think I have a faulty love, or found a nasty gli

Posted: Sun Dec 26, 2010 9:22 am
by bartbes
I just love the way it said 404.