From: Daniel A. <dan...@us...> - 2004-08-07 03:29:49
|
This evil bug has taken me 6 hours to track down :-( So sorry hellcat, I'm now behind schedule :-( I *really* need help fixing it. I have classes 'Node' and 'SubNode' defined in the attached fixers.py If I create one Node, add some SubNodes to it, and create a new Node, the new Node will be created with all the SubNodes of the one created previously! ie straight after importing the classes: >>> one = Node() >>> len(one.subnodes) 0 >>> one.addSubNode(SubNode("test1")) >>> one.addSubNode(SubNode("test2")) >>> one.addSubNode(SubNode("test3")) >>> len(one.subnodes) 3 >>> two = Node() >>> len(two.subnodes) 3 AARRGGHH! :-( Hopefully someone has some more insight into this than I... :-/ If it is needed, the stuff is in a state to be checked in apart from this....there's lots of debug output (as below) which might help..... Dan.a In case I missed something, here is the full case from running in VS: The attached file: fixers.py contains the classes (at the bottom) quest_intro.py contains the function getJenekConversation(), which it where the output comes from Here is the console output: *-- Validation --* 0 -4 4 -5 5 -6 6 -7 7 -10 10 -11 +++++++ Node "forgetjump"+++++++ -- Subnode -- Ahh, that's right. You're here about the jump drive! -- Subnode -- So you're interested in the jump drive now? -- Subnode -- Well, what are you waiting for? Go and give it a spin! -- Subnode -- You're back! Quite a party that was the other night, if it wasn't for my reminder I would have forgotten you! You still interested in that jump drive I've got? -- Subnode -- Well, I can't say I'm surprised ... not with the amount of Tripezian Premium you downed! Anyway, I've come across a few 'spare' jump drives, and your ship, last you spoke about it, was one short. Are you still as interested as you were then? -- Subnode -- Great! I can let you have one for just 7000. Do you want it now? -- Subnode -- If it's not about the jump drive I don't have the time. Come back later. -- Subnode -- I'll send some mechanics to fit it for you now. Nice to see you again! -- Subnode -- You idiot, you already have a jumpdrive! -- Subnode -- Sorry, it looks like your account is a little dry. Come back when you've got 7000 credit. -- Subnode -- Fine. I may not be around for much longer though. +++++++ Node "rejectdrive"+++++++ -- Subnode -- Ahh, that's right. You're here about the jump drive! -- Subnode -- So you're interested in the jump drive now? -- Subnode -- Well, what are you waiting for? Go and give it a spin! -- Subnode -- You're back! Quite a party that was the other night, if it wasn't for my reminder I would have forgotten you! You still interested in that jump drive I've got? -- Subnode -- Well, I can't say I'm surprised ... not with the amount of Tripezian Premium you downed! Anyway, I've come across a few 'spare' jump drives, and your ship, last you spoke about it, was one short. Are you still as interested as you were then? -- Subnode -- Great! I can let you have one for just 7000. Do you want it now? -- Subnode -- If it's not about the jump drive I don't have the time. Come back later. -- Subnode -- I'll send some mechanics to fit it for you now. Nice to see you again! -- Subnode -- You idiot, you already have a jumpdrive! -- Subnode -- Sorry, it looks like your account is a little dry. Come back when you've got 7000 credit. -- Subnode -- Fine. I may not be around for much longer though. +++++++ Node "yesjump"+++++++ -- Subnode -- Ahh, that's right. You're here about the jump drive! -- Subnode -- So you're interested in the jump drive now? -- Subnode -- Well, what are you waiting for? Go and give it a spin! -- Subnode -- You're back! Quite a party that was the other night, if it wasn't for my reminder I would have forgotten you! You still interested in that jump drive I've got? -- Subnode -- Well, I can't say I'm surprised ... not with the amount of Tripezian Premium you downed! Anyway, I've come across a few 'spare' jump drives, and your ship, last you spoke about it, was one short. Are you still as interested as you were then? -- Subnode -- Great! I can let you have one for just 7000. Do you want it now? -- Subnode -- If it's not about the jump drive I don't have the time. Come back later. -- Subnode -- I'll send some mechanics to fit it for you now. Nice to see you again! -- Subnode -- You idiot, you already have a jumpdrive! -- Subnode -- Sorry, it looks like your account is a little dry. Come back when you've got 7000 credit. -- Subnode -- Fine. I may not be around for much longer though. +++++++ Node "Root"+++++++ -- Subnode -- Ahh, that's right. You're here about the jump drive! -- Subnode -- So you're interested in the jump drive now? -- Subnode -- Well, what are you waiting for? Go and give it a spin! -- Subnode -- You're back! Quite a party that was the other night, if it wasn't for my reminder I would have forgotten you! You still interested in that jump drive I've got? -- Subnode -- Well, I can't say I'm surprised ... not with the amount of Tripezian Premium you downed! Anyway, I've come across a few 'spare' jump drives, and your ship, last you spoke about it, was one short. Are you still as interested as you were then? -- Subnode -- Great! I can let you have one for just 7000. Do you want it now? -- Subnode -- If it's not about the jump drive I don't have the time. Come back later. -- Subnode -- I'll send some mechanics to fit it for you now. Nice to see you again! -- Subnode -- You idiot, you already have a jumpdrive! -- Subnode -- Sorry, it looks like your account is a little dry. Come back when you've got 7000 credit. -- Subnode -- Fine. I may not be around for much longer though. +++++++ Node "takedrive"+++++++ -- Subnode -- Ahh, that's right. You're here about the jump drive! -- Subnode -- So you're interested in the jump drive now? -- Subnode -- Well, what are you waiting for? Go and give it a spin! -- Subnode -- You're back! Quite a party that was the other night, if it wasn't for my reminder I would have forgotten you! You still interested in that jump drive I've got? -- Subnode -- Well, I can't say I'm surprised ... not with the amount of Tripezian Premium you downed! Anyway, I've come across a few 'spare' jump drives, and your ship, last you spoke about it, was one short. Are you still as interested as you were then? -- Subnode -- Great! I can let you have one for just 7000. Do you want it now? -- Subnode -- If it's not about the jump drive I don't have the time. Come back later. -- Subnode -- I'll send some mechanics to fit it for you now. Nice to see you again! -- Subnode -- You idiot, you already have a jumpdrive! -- Subnode -- Sorry, it looks like your account is a little dry. Come back when you've got 7000 credit. -- Subnode -- Fine. I may not be around for much longer though. +++++++ Node "nojump"+++++++ -- Subnode -- Ahh, that's right. You're here about the jump drive! -- Subnode -- So you're interested in the jump drive now? -- Subnode -- Well, what are you waiting for? Go and give it a spin! -- Subnode -- You're back! Quite a party that was the other night, if it wasn't for my reminder I would have forgotten you! You still interested in that jump drive I've got? -- Subnode -- Well, I can't say I'm surprised ... not with the amount of Tripezian Premium you downed! Anyway, I've come across a few 'spare' jump drives, and your ship, last you spoke about it, was one short. Are you still as interested as you were then? -- Subnode -- Great! I can let you have one for just 7000. Do you want it now? -- Subnode -- If it's not about the jump drive I don't have the time. Come back later. -- Subnode -- I'll send some mechanics to fit it for you now. Nice to see you again! -- Subnode -- You idiot, you already have a jumpdrive! -- Subnode -- Sorry, it looks like your account is a little dry. Come back when you've got 7000 credit. -- Subnode -- Fine. I may not be around for much longer though. |