Search found 33 matches

by Astusvis
Tue Aug 09, 2011 2:31 pm
Forum: Support and Development
Topic: Ipairs
Replies: 17
Views: 7470

Re: Ipairs

I usually use the normal

Code: Select all

for i,v in pairs(t)
by Astusvis
Mon Aug 08, 2011 9:02 pm
Forum: Support and Development
Topic: Multiple threads from one file?
Replies: 24
Views: 12639

Re: Multiple threads from one file?

Wait, what?
I think you think I know what your talking about.

What is that first piece of code?
And how would I "un-concat" the string?
by Astusvis
Mon Aug 08, 2011 7:55 pm
Forum: Games and Creations
Topic: [WIP] My Basic RTS : Codename NaW
Replies: 28
Views: 14656

Re: [WIP] My Basic RTS : Codename NaW

Possible improvement: Make the green bars centred to the resource.
by Astusvis
Mon Aug 08, 2011 7:41 pm
Forum: Support and Development
Topic: Multiple threads from one file?
Replies: 24
Views: 12639

Re: Multiple threads from one file?

Here's the thread code, to save a back and forth of questions.
by Astusvis
Mon Aug 08, 2011 7:10 pm
Forum: Support and Development
Topic: Multiple threads from one file?
Replies: 24
Views: 12639

Re: Multiple threads from one file?

Woah, that helped alot. Do threads happen to be copied over to a different folder before being run, by any chance? Because that MUST be happening. Basically, the thread of genimage.lua can't find TSerial.lua, although main.lua can... Also, I'd put another reference to the error retrieving in Thread:...
by Astusvis
Mon Aug 08, 2011 6:05 pm
Forum: General
Topic: Anybody good with batteries?
Replies: 2
Views: 2257

Re: Anybody good with batteries?

It probably has something to-do with cycling the battery. (Charging, then discharging to <50%, charging, then discharging to <50%, etc.)

Keeps the battery in a better condition.
by Astusvis
Mon Aug 08, 2011 2:45 pm
Forum: Support and Development
Topic: Multiple threads from one file?
Replies: 24
Views: 12639

Re: Multiple threads from one file?

Oh, I forgot that I'd removed the any image references and used TSerial along with a table to just gather pixel data.
I've also put it into a loop.

The thing is the code isn't even being run; I put a print("Thread loaded") at the top and the console was blank.
by Astusvis
Mon Aug 08, 2011 9:29 am
Forum: Support and Development
Topic: Multiple threads from one file?
Replies: 24
Views: 12639

Re: Multiple threads from one file?

Can't you put the bulk of the code in a big loop instead? me == stupid EDIT: Why won't this code start the thread? The thread code itself has no problems in it. for i=1, threads do thread[i] = {thread = love.thread.newThread("genimage" .. i, "genimage.lua"), image = nil, depth =...
by Astusvis
Mon Aug 08, 2011 9:11 am
Forum: Support and Development
Topic: Multiple threads from one file?
Replies: 24
Views: 12639

Re: Multiple threads from one file?

Sorry, do you have a problem with logic?