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: 10450
Joined: 24 Jan 2006, 21:12

KnownBugs

Post 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.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: KnownBugs

Post 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
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: KnownBugs

Post 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...
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Re: KnownBugs

Post 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.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: KnownBugs

Post by jK »

k just a missunderstanding then :mrgreen:
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: KnownBugs

Post 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.
User avatar
PicassoCT
Journeywar Developer & Mapper
Posts: 10450
Joined: 24 Jan 2006, 21:12

Re: KnownBugs

Post 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
Post Reply

Return to “Journeywar”