Search found 27 matches

by logoliv
Thu Feb 06, 2014 12:17 am
Forum: Support and Development
Topic: no more way to kill a thread since 0.9.0 ?
Replies: 2
Views: 1134

no more way to kill a thread since 0.9.0 ?

Hi, title says it all.
I want be able to stop a long and heavy calculation thread if I want to change params before it ends.
I can't send it a message because it's already sending a lot of messages (with push) to main thread...
Any solution guys ? Thanks in advance.
by logoliv
Mon Feb 03, 2014 9:21 pm
Forum: Support and Development
Topic: Impossible to use functions in a thread ?
Replies: 7
Views: 2692

Re: Impossible to use functions in a thread ?

thanks slime, I didn't see this callback in the tutorials... I have debugged all my thread code without visibility (only with print, step by step) and will now appreciate to have this function !
by logoliv
Mon Feb 03, 2014 3:19 pm
Forum: Support and Development
Topic: Impossible to use functions in a thread ?
Replies: 7
Views: 2692

Re: Impossible to use functions in a thread ?

It works, thanks ! As my primary thread code (which is executed with the thread:start() command) is not in a function, I was keeping it on top on file, thinking that otherwise Löve would not find it... Is there a way to put that primary code in a generic function too, as start() or run() like in C# ...
by logoliv
Mon Feb 03, 2014 3:09 pm
Forum: Support and Development
Topic: Impossible to use functions in a thread ?
Replies: 7
Views: 2692

Re: Impossible to use functions in a thread ?

I'm not trying to access functions in another file, but functions that are defined in my thread lua file. Here is the code : main.lua function love.load() width, height = love.window.getDimensions() count = 0 love.graphics.setBackgroundColor(192, 192, 192) canvas = love.graphics.newCanvas(width, hei...
by logoliv
Mon Feb 03, 2014 2:45 pm
Forum: Support and Development
Topic: Impossible to use functions in a thread ?
Replies: 7
Views: 2692

Impossible to use functions in a thread ?

Hi all,

Like the title says, i'm trying to code a thread with functions in the same lua source, and it doesn't seem to work...
Is it impossible ? Thanks in advance for any help, the site lacks some good example with thread usage.

Olivier
by logoliv
Mon Jan 27, 2014 5:28 pm
Forum: Support and Development
Topic: noob question
Replies: 2
Views: 1243

Re: noob question

thanks a lot, it was effectively simple !
by logoliv
Mon Jan 27, 2014 3:15 pm
Forum: Support and Development
Topic: noob question
Replies: 2
Views: 1243

noob question

Hi all, Sorry for the dumb question, I'm new and can't find an answer on this site or the internet... How do you include lua source files in the project (other than main.lua and conf.lua) ? I've coded a function in a file named util.lua (which is in the same directory than main.lua) and when I call ...