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

Hello, I am not dead.
-
TechnoCat
- Inner party member
- Posts: 1612
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
-
Contact:
Post
by TechnoCat »
Try this instead
Code: Select all
resp = love.thread.newThread("responder", "irc_bot/responder.lua")
-
zac352
- Party member
- Posts: 496
- Joined: Sat Aug 28, 2010 8:13 pm
- Location: In your head.
-
Contact:
Post
by zac352 »
TechnoCat wrote:Try this instead
Code: Select all
resp = love.thread.newThread("responder", "irc_bot/responder.lua")
Oh. *wallface*
Love should really give a better error for that.

Hello, I am not dead.
-
thelinx
- The Strongest
- Posts: 857
- Joined: Fri Sep 26, 2008 3:56 pm
- Location: Sweden
Post
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.
-
bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
-
Contact:
Post
by bartbes »
I just love the way it said 404.
Users browsing this forum: Ahrefs [Bot] and 5 guests