Page 1 of 1

KnownBugs

Posted: 22 Sep 2011, 13:50
by PicassoCT

Code: Select all

[C]: in function 'co_create'
	[string "LuaGadgets/Gadgets/unit_script.lua"]:335: in function 'StartThread'
	[string "scripts/csniper.lua"]:168: in function <[string "scripts/csniper.lua"]:164>


I experienced this error far to often so i did a little experiment on it. I put a StartThread into the StartMoving of the UnitScript. I got the error when i attempted to thread this function with StartThread(test1)

Code: Select all

function test1()
Spring.Echo("This is a global function")
a=1
if a==1 then
StartThread(test2)
Spring.Echo("Attempt to start a local function from a global one")
end
a=a+1
end

local function test2()
Spring.Echo("This is a local function")
i=1
if i==1 then
StartThread(test1)
Spring.Echo("Attempt to start a global function from a local one")
end
i=i+1
end

Ware,ware,wa:

If is Threaded a local function - and from this one threaded the function. It worked perfectly.

Code: Select all

local function test1()
Spring.Echo("This is a global function")
a=1
if a==1 then
StartThread(test2)
Spring.Echo("Attempt to start a local function from a global one")
end
a=a+1
end

 function test2()
Spring.Echo("This is a local function")
i=1
if i==1 then
StartThread(test1)
Spring.Echo("Attempt to start a global function from a local one")
end
i=i+1
end
Will Post more errormessages and threats in here.

Re: KnownBugs

Posted: 22 Sep 2011, 13:58
by jK
Why do you name the title "KnownBugs"???? This isn't a bug. It is just that you use things that you don't understand.

read (IIRC it was posted already in one of your threads)
http://www.lua.org/pil/6.2.html

Re: KnownBugs

Posted: 22 Sep 2011, 14:55
by Google_Frog
Seems like a perfectly reasonable thread. I think he is posting known bugs with the game as opposed to bugs in the engine. A ticket system would be a bit more appropriate for this...

Re: KnownBugs

Posted: 22 Sep 2011, 15:23
by PicassoCT
Google_Frog wrote:Seems like a perfectly reasonable thread. I think he is posting known bugs with the game as opposed to bugs in the engine. A ticket system would be a bit more appropriate for this...
This. Not every post i do is a attack. I just had others - like Automatics who came across this bug in there Games, and so i attempted to find out on my own. Idea was that if i post every error-message i ever solved, you could find them with the search function...

Some are self-explaining, but this is quite diffrent. No reason to feel insulted. And yes, there are a thousand an one Offsite Ways to do that . And no im not using them.

Re: KnownBugs

Posted: 22 Sep 2011, 15:28
by jK
k just a missunderstanding then :mrgreen:

Re: KnownBugs

Posted: 22 Sep 2011, 16:53
by smoth
PicassoCT wrote:This. Not every post i do is a attack.
why do you attack posts? their life sucks as much as it is being that they have to sit in the ground all day.

Re: KnownBugs

Posted: 22 Sep 2011, 17:16
by PicassoCT
Posts are the unwanted children of the intertubes. Just because you forgot to put out your click in last minute, you ruined your live for the years to cum. ;)

Srsly, lets keep this on-topic, otherwise i will have to work on the re-railroad, singing Bertha, Bertha.

http://www.youtube.com/watch?v=32WzZqlN1h4