Search found 706 matches

by Germanunkol
Thu Jan 17, 2013 8:53 am
Forum: Support and Development
Topic: "Loosing" my thread?
Replies: 19
Views: 2727

Re: "Loosing" my thread?

Thanks for trying! Did you start the server with a short match and cooldown time? -m and -c, minimum is 10... The last message I get is: mapGenerateThread, ID Thread 249 Which is the output of: print("mapGenerateThread, ID", mapGenerateThread, mapGenerateThreadNumber) Interstingly, I just noticed th...
by Germanunkol
Wed Jan 16, 2013 10:31 am
Forum: Support and Development
Topic: "Loosing" my thread?
Replies: 19
Views: 2727

Re: "Loosing" my thread?

I noticed that the lower the -m parameter is (= Match time) the faster the problem seems to occur, and usually around match 240 or 250. This looks to me like some memory overflow or something? But I checked... after the problem occured, the process takes only 3% or my RAM (running on a raspberry-pi,...
by Germanunkol
Tue Jan 15, 2013 6:17 pm
Forum: Support and Development
Topic: "Loosing" my thread?
Replies: 19
Views: 2727

Re: "Loosing" my thread?

Hm... problem is that it really needs to run for multiple hours to get the error to occur. Not sure if anyone wants to do that. It's also quite a large project, and I didn't want to ask anyone to debug it for me, I was hoping for hints on how I could go about debugging it myself. However, if anyone ...
by Germanunkol
Tue Jan 15, 2013 3:02 pm
Forum: Support and Development
Topic: "Loosing" my thread?
Replies: 19
Views: 2727

Re: "Loosing" my thread?

An update: When the problem occurs, it seems the thread doesn't even get to the first: file:write("1\n") Write instruction. I found out by emptying the log file before starting the thread... and it fills it, usually, but not when the problem occurs. So it seems the thread might not even be started c...
by Germanunkol
Tue Jan 15, 2013 3:00 pm
Forum: Support and Development
Topic: [love.thread] Communication between thread and main.lua
Replies: 3
Views: 1118

Re: [love.thread] Communication between thread and main.lua

You can also do it the other way around: Start the thread somewhere in the main thread: myThread = love.thread.newThread('thread', 'thread.lua') myThread:start() myThread:set('some var', 'something') And inside the thread, do: self = love.thread.getThread() self:set("myVar", "hello from inside the t...
by Germanunkol
Mon Jan 14, 2013 9:12 pm
Forum: Support and Development
Topic: "Loosing" my thread?
Replies: 19
Views: 2727

Re: "Loosing" my thread?

I do... this is part of the thread handling. That should do the job, right? -- then, check if there was an error: err = mapGenerateThread:get("error") if err then print("MAP GENERATING THREAD error: " .. err) love.event.quit() end However, the last thing I get on the console is: "mapGenerateThread" ...
by Germanunkol
Mon Jan 14, 2013 5:28 pm
Forum: Support and Development
Topic: "Loosing" my thread?
Replies: 19
Views: 2727

"Loosing" my thread?

Hi, I'm using love.thread to generate a map for my game. It works perfectly - mostly. However, some few times, I am loosing all connectivity to the thread. The thread object is not nil, I get no errors when indexing it to get new data, I just don't get any data. First, I created a "print" function i...
by Germanunkol
Fri Jan 11, 2013 3:31 pm
Forum: Games and Creations
Topic: *NEW* Try my game - Tic Tac Toe with a twist *NEW*
Replies: 11
Views: 2569

Re: *NEW* Try my game - Tic Tac Toe with a twist *NEW*

Very hard game to play with just a touch-pad :D
by Germanunkol
Wed Dec 26, 2012 1:43 pm
Forum: Support and Development
Topic: [SOLVED] Multiple conf.lua files?
Replies: 2
Views: 602

Re: [SOLVED] Multiple conf.lua files?

Perfect. Thank you!

I did not know that arg was a global variable.
It's working just as I wanted it.
by Germanunkol
Wed Dec 26, 2012 11:27 am
Forum: Support and Development
Topic: [SOLVED] Multiple conf.lua files?
Replies: 2
Views: 602

[SOLVED] Multiple conf.lua files?

Hi, I am still working on my game which has a (headless) server and a client side application. Currently, I have the Server and the client in two different folders using different sets scripts. However, lots of functions on the server and on the client are the same and I don't want to keep on changi...