This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-02-29 19:13:49

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Ran out of args options, what do I do?

I have pretty much run out of %* options for creating block arguments (e.g. ('do %s')).
Is there a way I can change the format to allow for more? Any help would be appreciated.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#2 2012-02-29 19:24:26

ssss
Scratcher
Registered: 2007-07-29
Posts: 1000+

Re: Ran out of args options, what do I do?

use Panther?  tongue


Hey.  It's me SSSS, back from the dead!  smile

Offline

 

#3 2012-02-29 19:36:59

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: Ran out of args options, what do I do?

Use upper and lower case?


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#4 2012-02-29 19:45:24

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Ran out of args options, what do I do?

bobbybee wrote:

Use upper and lower case?

I'm starting to run out in that respect too. Does anyone know the code that Panther used to make the args work differently?

Last edited by jvvg (2012-02-29 19:50:13)


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#5 2012-02-29 19:51:50

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: Ran out of args options, what do I do?

Seriously though, why do you need so many arg options  tongue


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#6 2012-02-29 19:58:18

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Ran out of args options, what do I do?

bobbybee wrote:

Seriously though, why do you need so many arg options  tongue

I have a lot of blocks that use menus. I also have copied a few other types of arg types.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#7 2012-02-29 20:03:43

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Ran out of args options, what do I do?

I would not suggest doing what I did in Panther; it leads to overly verbose block specs. However, you can slightly modify the spec-parsing code to consume multiple letters after each % sign, so for example.

CommandBlockMorph parseCommandSpec: 'set %si to %inp' -> ('set' '%si' 'to' '%inp')

with just a little tweaking of CommandBlockMorph class >> parseCommandSpec:

(k+1 <= len) and: [(spec at: k+1) isDigit | (spec at: k+1) isLetter]

Then just compare against specString rather than code at the top of CommandBlockMorph >> uncoloredArgMorphFor:, e.g.

| code |
specString = '%inp' ifTrue: ["..."].
code := specString at: 2.
"..."


nXIII

Offline

 

#8 2012-02-29 21:45:45

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Ran out of args options, what do I do?

Thank you, I will try that next time I get the chance and let you know how it works.

So far, it is giving me a "Message not understood: isSeperator" when I try to edit UncoloredArgMorphFor

Last edited by jvvg (2012-02-29 22:01:42)


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#9 2012-02-29 22:58:39

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: Ran out of args options, what do I do?

jvvg wrote:

So far, it is giving me a "Message not understood: isSeperator" when I try to edit UncoloredArgMorphFor

Are you modding another mod?


nXIII

Offline

 

#10 2012-03-01 00:17:03

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Ran out of args options, what do I do?

[offtopic]
@nXIII Can I please have a copy of the Panther skin? Please Please Pleaaaaaaasssssssseee?
[/offtopic]

Last edited by nathanprocks (2012-03-01 00:17:23)


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&amp;display=small

Offline

 

#11 2012-03-01 10:32:43

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: Ran out of args options, what do I do?

can't you get it from image?

Offline

 

#12 2012-03-01 11:34:03

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Ran out of args options, what do I do?

nXIII wrote:

jvvg wrote:

So far, it is giving me a "Message not understood: isSeperator" when I try to edit UncoloredArgMorphFor

Are you modding another mod?

No, I'm just modding the Scratch Source Code.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#13 2012-03-01 12:00:51

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Ran out of args options, what do I do?

nathanprocks wrote:

[offtopic]
@nXIII Can I please have a copy of the Panther skin? Please Please Pleaaaaaaasssssssseee?
[/offtopic]

How'd you get the [offtopic] images?


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#14 2012-03-01 12:11:45

muppetds
Scratcher
Registered: 2011-02-11
Posts: 1000+

Re: Ran out of args options, what do I do?

Hardmath123 wrote:

nathanprocks wrote:

[offtopic]
@nXIII Can I please have a copy of the Panther skin? Please Please Pleaaaaaaasssssssseee?
[/offtopic]

How'd you get the [offtopic] images?

put off topic inside a scratch blocks tag


SCRATCH'S PARTLY INSANE RESIDENT 
http://internetometer.com/imagesmall/31691.pnghttp://bluetetrarpg.x10.mx/usercard/?name=muppetds

Offline

 

#15 2012-03-01 12:13:23

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Ran out of args options, what do I do?

muppetds wrote:

Hardmath123 wrote:

nathanprocks wrote:

[offtopic]
@nXIII Can I please have a copy of the Panther skin? Please Please Pleaaaaaaasssssssseee?
[/offtopic]

How'd you get the [offtopic] images?

put off topic inside a scratch blocks tag

[offtopic]
[otherText]
Cool!

[/offtopic]
tongue

Last edited by Hardmath123 (2012-03-01 12:14:18)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#16 2012-03-01 18:59:49

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Ran out of args options, what do I do?

nXIII, I got it working (accidentally used instance instead of class)  tongue
Thanks!


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#17 2012-03-01 19:08:07

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Ran out of args options, what do I do?

Closed by request of the topic owner.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

Board footer