markyparky56 wrote:
Two things: Found an error/glitch
1. When you try to open more than 1 panther you get this error:
http://img121.imageshack.us/img121/713/panthererror.png
And
2. Whats the point of all those colour blocks? (P.s. you spelt colour wrong on the tabs.)
Answer to 2: some of them fit im the %c (i'm guessing) and can be quite useful if the colour (or color) you want is not availiable for the colour (or color) picker.
EDIT:
@markyparky: Yup!
Last edited by Sperry (2010-04-11 12:16:14)
Offline
Sperry wrote:
SeptimusHeap wrote:
Sperry wrote:
Is it something to do with the blocks I suggested earlier?Yes. It SHOULD add all numbers in a list.
Then I'm going to divide it by the list length. DUHDUH! Average!Can you run me through what it does? Then I'll understand it better and be able to help you.
@markyparky:
Yes, but there was also "average of items in list [list]"
OK, first is sets the t's, and it repeats this the length of the list (t2). It subtracts 1 from t2 so it doesn't repeat forever, and it adds the number in the list. Then it adds t4 (which number on the list you are at.)
Sorry it's confusing.
Offline
SeptimusHeap wrote:
Sperry wrote:
SeptimusHeap wrote:
Yes. It SHOULD add all numbers in a list.
Then I'm going to divide it by the list length. DUHDUH! Average!Can you run me through what it does? Then I'll understand it better and be able to help you.
@markyparky:
Yes, but there was also "average of items in list [list]"OK, first is sets the t's, and it repeats this the length of the list (t2). It subtracts 1 from t2 so it doesn't repeat forever, and it adds the number in the list. Then it adds t4 (which number on the list you are at.)
Sorry it's confusing.
Err......right. *puts thinking cap on*
Q: Whats t3 for?
I am really confused right now!!!!!!
Offline
Sperry wrote:
SeptimusHeap wrote:
Sperry wrote:
Can you run me through what it does? Then I'll understand it better and be able to help you.
@markyparky:
Yes, but there was also "average of items in list [list]"OK, first is sets the t's, and it repeats this the length of the list (t2). It subtracts 1 from t2 so it doesn't repeat forever, and it adds the number in the list. Then it adds t4 (which number on the list you are at.)
Sorry it's confusing.Err......right. *puts thinking cap on*
Q: Whats t3 for?
I am really confused right now!!!!!!
t3 holds the added up numbers, t4 the number on the list you are on, like 1, 2, etc.
t2 is the length of the list.
Offline
Sperry wrote:
markyparky56 wrote:
Two things: Found an error/glitch
1. When you try to open more than 1 panther you get this error:
http://img121.imageshack.us/img121/713/panthererror.png
And
2. Whats the point of all those colour blocks? (P.s. you spelt colour wrong on the tabs.)
Answer to 2: some of them fit im the %c (i'm guessing) and can be quite useful if the colour (or color) you want is not availiable for the colour (or color) picker.
EDIT:
@markyparky: Yup!![]()
yay! another UK person who spells colour colour not color or farbe!
Offline
SeptimusHeap wrote:
SeptimusHeap wrote:
I get this error from whiletrue.
Code:
(t2 >= 0) whileTrue: [^t2 _ t2 - 1 <- receiver of whileTrue: must be a block or variable ->].Help nXIII!
Sorry, my mistake; it should be:
[t2 >= 0] whileTrue: []
but you do realize that the ^ returns a value and ends the code, right? You can't loop with it >.>
Offline
sparks wrote:
Sperry wrote:
markyparky56 wrote:
Two things: Found an error/glitch
1. When you try to open more than 1 panther you get this error:
http://img121.imageshack.us/img121/713/panthererror.png
And
2. Whats the point of all those colour blocks? (P.s. you spelt colour wrong on the tabs.)
Answer to 2: some of them fit im the %c (i'm guessing) and can be quite useful if the colour (or color) you want is not availiable for the colour (or color) picker.
EDIT:
@markyparky: Yup!![]()
yay! another UK person who spells colour colour not color or farbe!
Lol! I'm British!!!
Offline
Sperry wrote:
Can't see anything wrong with the code> BUT!!!!!
whats in your blockspecs? could it be this?:
listaverage: t1
SHOULD BE:
listAverage: t1
When I try to save the file, it comes up with an error. I havent even TRIED the block.
The error says argument expected\ before the LineAt part.
Last edited by SeptimusHeap (2010-04-11 12:33:43)
Offline
SeptimusHeap wrote:
Sperry wrote:
Can't see anything wrong with the code> BUT!!!!!
whats in your blockspecs? could it be this?:
listaverage: t1
SHOULD BE:
listAverage: t1When I try to save the file, it comes up with an error. I havent even TRIED the block.
Oh.........................
What error code do you get? And dont use ^ in the whileTrue: [HERE] as nXIII said
Offline
Sperry wrote:
Lol! I'm British!!!
![]()
... I have taken a sudden and completely unrelated liking to you... yeah... unrelated... naw, I thought you were awesome before I knew you were british... Now if a Swiss person started commenting, THAT would be awesome!
Offline
markyparky56 wrote:
Two things: Found an error/glitch
1. When you try to open more than 1 panther you get this error:
http://img121.imageshack.us/img121/713/panthererror.png
And
2. Whats the point of all those colour blocks? (P.s. you spelt colour wrong on the tabs.)
Just ignore the changes error.
The color blocks (as someone said) go in the color reporters (%c or %C). For example, see the sample 'color picker'
sparks wrote:
NXIIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXII er, you know that's not password protected, right?NXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXIINXII
What are you talking about?
Last edited by nXIII (2010-04-11 12:35:45)
Offline
nXIII wrote:
markyparky56 wrote:
Two things: Found an error/glitch
1. When you try to open more than 1 panther you get this error:
http://img121.imageshack.us/img121/713/panthererror.png
And
2. Whats the point of all those colour blocks? (P.s. you spelt colour wrong on the tabs.)
Just ignore the changes error.
The color blocks (as someone said) go in the color reporters (%c or %C). For example, see the sample 'color picker'
but..but... I can't even get the new version to show! it's still the old one :'(
Offline
sparks wrote:
Sperry wrote:
Lol! I'm British!!!
![]()
... I have taken a sudden and completely unrelated liking to you... yeah... unrelated...
naw, I thought you were awesome before I knew you were british... Now if a Swiss person started commenting, THAT would be awesome!
![]()
Thanks! That means alot.
nXIII wrote:
Just ignore the changes error.
The color blocks (as someone said) go in the color reporters (%c or %C). For example, see the sample 'color picker'
Yeah, I said that
Offline
sparks wrote:
nXIII wrote:
markyparky56 wrote:
Two things: Found an error/glitch
1. When you try to open more than 1 panther you get this error:
http://img121.imageshack.us/img121/713/panthererror.png
And
2. Whats the point of all those colour blocks? (P.s. you spelt colour wrong on the tabs.)
Just ignore the changes error.
The color blocks (as someone said) go in the color reporters (%c or %C). For example, see the sample 'color picker'but..but... I can't even get the new version to show! it's still the old one :'(
I really don't know why that happens...
Offline
Sperry wrote:
SeptimusHeap wrote:
Sperry wrote:
Can't see anything wrong with the code> BUT!!!!!
whats in your blockspecs? could it be this?:
listaverage: t1
SHOULD BE:
listAverage: t1When I try to save the file, it comes up with an error. I havent even TRIED the block.
Oh.........................
![]()
What error code do you get? And dont use ^ in the whileTrue: [HERE] as nXIII said
I didn't use ^ at all.
The error line:
whileTrue: [t2 _ t2 - 1. t3 _ t3 + Argument expected ->lineAt: (self lineNum: t4 forList: t3). t4 _ t4 + 1.]
Offline
May I ask NXIII how you changed MISC to colour?
Offline
SeptimusHeap wrote:
Sperry wrote:
SeptimusHeap wrote:
When I try to save the file, it comes up with an error. I havent even TRIED the block.Oh.........................
![]()
What error code do you get? And dont use ^ in the whileTrue: [HERE] as nXIII saidI didn't use ^ at all.
The error line:
whileTrue: [t2 _ t2 - 1. t3 _ t3 + Argument expected ->lineAt: (self lineNum: t4 forList: t3). t4 _ t4 + 1.]
Ah ha.
Its. complicated to explain but, try this:
t5 _ lineAt: (self lineNum: t4 forList: t3)
whileTrue: [t2 _ t2 - 1. t3 _ t3 + t5. t4 _ t4 + 1.]
@sparks:
Does this make sense to you?
Meine Lieblingsfarbe ist blau.
Offline
Your fav colour is blue?
Offline
Sperry wrote:
SeptimusHeap wrote:
Sperry wrote:
Oh.........................![]()
What error code do you get? And dont use ^ in the whileTrue: [HERE] as nXIII saidI didn't use ^ at all.
The error line:
whileTrue: [t2 _ t2 - 1. t3 _ t3 + Argument expected ->lineAt: (self lineNum: t4 forList: t3). t4 _ t4 + 1.]Ah ha.
Its. complicated to explain but, try this:
t5 _ lineAt: (self lineNum: t4 forList: t3)
whileTrue: [t2 _ t2 - 1. t3 _ t3 + t5. t4 _ t4 + 1.]
@sparks:
Does this make sense to you?
Meine Lieblingsfarbe ist blau.
But then t5 would need to be constantly changed, because t4 constantly changes.
Offline
SeptimusHeap wrote:
Sperry wrote:
SeptimusHeap wrote:
I didn't use ^ at all.
The error line:
whileTrue: [t2 _ t2 - 1. t3 _ t3 + Argument expected ->lineAt: (self lineNum: t4 forList: t3). t4 _ t4 + 1.]Ah ha.
Its. complicated to explain but, try this:
t5 _ lineAt: (self lineNum: t4 forList: t3)
whileTrue: [t2 _ t2 - 1. t3 _ t3 + t5. t4 _ t4 + 1.]
@sparks:
Does this make sense to you?
Meine Lieblingsfarbe ist blau.But then t5 would need to be constantly changed, because t4 constantly changes.
Then how about:
whileTrue: [t2 _ t2 - 1. t5 _ lineAt: (self lineNum: t4 forList: t3). t3 _ t3 + t5. t4 _ t4 + 1.]
Offline
Sperry wrote:
@sparks:
Does this make sense to you?
Meine Lieblingsfarbe ist blau.
Haha, Wirklich? Meine Lieblingsfarbe WAR blau, aber jetzt ist es violet!... Das ist halt Deutsch, ich mach das in der Abitur...
Offline
SeptimusHeap wrote:
Sperry wrote:
SeptimusHeap wrote:
When I try to save the file, it comes up with an error. I havent even TRIED the block.Oh.........................
![]()
What error code do you get? And dont use ^ in the whileTrue: [HERE] as nXIII saidI didn't use ^ at all.
The error line:
whileTrue: [t2 _ t2 - 1. t3 _ t3 + Argument expected ->lineAt: (self lineNum: t4 forList: t3). t4 _ t4 + 1.]
You need something like
whileTrue: [
t2 _ t2 - 1.
t3 _ t3 + self getLine: (self lineNum: t4 forList: t1) ofList: t1.
]
Offline
Now it does:
whileTrue: [t2 _ t2 - 1. t5 _ expression expected -> lineAt: (self lineNum: t4 forList: t3). t3 _ t3 + t5. t4 _ t4 + 1.]
Offline