KnownBugs

KnownBugs

PicassoCT's stunning mixture of game design and psychedelia, for your enjoyment!

Moderators: Moderators, Content Developer

Post Reply
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10224
Joined: 24 Jan 2006, 21:12

KnownBugs

Post by PicassoCT » 22 Sep 2011, 13:50

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.
0 x

User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: KnownBugs

Post by jK » 22 Sep 2011, 13:58

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
0 x

Google_Frog
Moderator
Posts: 2436
Joined: 12 Oct 2007, 09:24

Re: KnownBugs

Post by Google_Frog » 22 Sep 2011, 14:55

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...
0 x

User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10224
Joined: 24 Jan 2006, 21:12

Re: KnownBugs

Post by PicassoCT » 22 Sep 2011, 15:23

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.
0 x

User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: KnownBugs

Post by jK » 22 Sep 2011, 15:28

k just a missunderstanding then :mrgreen:
0 x

User avatar
smoth
Posts: 22298
Joined: 13 Jan 2005, 00:46

Re: KnownBugs

Post by smoth » 22 Sep 2011, 16:53

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.
0 x

User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10224
Joined: 24 Jan 2006, 21:12

Re: KnownBugs

Post by PicassoCT » 22 Sep 2011, 17:16

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
0 x

Post Reply

Return to “Journeywar”