Help with threads + Script directory

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
Bicentric
Prole
Posts: 28
Joined: Fri Jul 12, 2013 12:17 pm

Help with threads + Script directory

Post by Bicentric »

-
Last edited by Bicentric on Tue Jun 19, 2018 7:25 pm, edited 1 time in total.
User avatar
Azhukar
Party member
Posts: 478
Joined: Fri Oct 26, 2012 11:54 am

Re: Help with threads + Script directory

Post by Azhukar »

You have a typo in your for loop inside your thread code.

"for i, 50000 do" should be "for i=1, 50000 do"

To debug your thread use thread:get("error")

Code: Select all

function love.update(dt)
	if (thread~=nil) then
		local e = thread:get("error")
		if (e~=nil) then error(e) end
	end
end
Bicentric
Prole
Posts: 28
Joined: Fri Jul 12, 2013 12:17 pm

Re: Help with threads + Script directory

Post by Bicentric »

-
Last edited by Bicentric on Tue Jun 19, 2018 7:25 pm, edited 1 time in total.
Bicentric
Prole
Posts: 28
Joined: Fri Jul 12, 2013 12:17 pm

Re: Help with threads + Script directory

Post by Bicentric »

-
Last edited by Bicentric on Tue Jun 19, 2018 7:25 pm, edited 1 time in total.
Bicentric
Prole
Posts: 28
Joined: Fri Jul 12, 2013 12:17 pm

Re: Help with threads + Script directory

Post by Bicentric »

-
Last edited by Bicentric on Tue Jun 19, 2018 7:25 pm, edited 1 time in total.
User avatar
slime
Solid Snayke
Posts: 3166
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Help with threads + Script directory

Post by slime »

Yeah, Thread:start only has arguments like that in 0.9.0.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests