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

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
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

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

Post by zac352 » Sat Dec 25, 2010 6:52 pm

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? :(
Hello, I am not dead.

User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

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

Post by TechnoCat » Sat Dec 25, 2010 7:17 pm

Try this instead

Code: Select all

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

Code: Select all

love.thread.newThread(name, file)

User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

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

Post by zac352 » Sat Dec 25, 2010 7:41 pm

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:
Hello, I am not dead.

User avatar
thelinx
The Strongest
Posts: 847
Joined: Fri Sep 26, 2008 3:56 pm
Location: Sweden

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

Post by thelinx » Sat Dec 25, 2010 8:03 pm

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.

User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

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

Post by bartbes » Sun Dec 26, 2010 9:22 am

I just love the way it said 404.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 8 guests