[Tutorial - Compile to exe with custom blocks]
1. Download latest BYOB
2. go to BYOB folder
3. Look for BYOB Development.BAT
4. change shortcut to open that file
5. open BYOB via shortcut of batch file
6. Shift click edit
7. turn fill screen off
8. add all your custom blocks and use BYOBS compiler to compile your projects
Offline
chippo wrote:
you know, I think that in the next scratch there should be only one hat block, which would be: _________
/ \___________
| When < >___________|
\_/
and then all the other hat blocks would be condensed into Boolean.
for example, to use [blocks]<when green flag clicked>[/blocks]
you would put a <Green Flag Clicked?> Boolean into the only hat block.
If you look, in blockspecs, there is a type of block for that (as in W, b, etc.) but it says it is obsolete.
Offline
I've seen this kind of block all over the place as a request, and I think it would be very useful. I do, however think that it could cause a lot of problems in the same way as a "when stop sign clicked" hat - especially in a mod like Panther, where you could open a project and the moment it opens, a "when <not<mouse down?>>" hat activates a script that creates a ton of clones or starts clearing files on your computer or runs some other deviously malicious block before you have the chance to read through the code.
Offline
Hi guys! Sorry for not doing anything on here for a while. What are people's thoughts to having a block requests section to this thread?
◙ If you are a block coder - would you consider making blocks that people have requested?
◙ If you are a library user, would you like to be able to request blocks?
Thanks, yout input helps me make improvements to the library
Offline
sparks wrote:
Hi guys! Sorry for not doing anything on here for a while. What are people's thoughts to having a block requests section to this thread?
◙ If you are a block coder - would you consider making blocks that people have requested?
◙ If you are a library user, would you like to be able to request blocks?
Thanks, yout input helps me make improvements to the library
Great idea! I'll help with anyone who has BYOB block.
Offline
Requested blocks
Here's a list of blocks people have asked for! If you think you can make one of them work, help fill the library with useful blocks by submitting the code as a comment! If you want to request a block or vote for a block that's already there, post a comment with a name and description and if there's no problem with it, I'll post it here for all to see!
Previously answered and solved requests:[4]
block name:
|Run]
|
|but if < >, pause]
Requested for:
BYOB
block name:
<saying [s]?>
Requested for:
Scratch
block name:
(last broadcast sent)
Requested for:
Scratch
block name:
[save costume (n) to file: [s]]
Requested for:
Panther
________________________________
^ home
Last edited by sparks (2011-01-03 13:41:18)
Offline
[set single stepping] I made!
blockspec:
('set single stepping' #- #setSpeed)
setSpeed | t1 t2 | t1 _ CustomMenu new title: 'Single-step speed?'. t1 add: 'Turbo speed' action: 0. t1 add: 'Normal' action: 1. t1 add: 'Flash blocks (fast)' action: 30. t1 add: 'Flash blocks (slow)' action: 200. t2 _ t1 localize startUp. t2 ifNil: [^ self]. ScratchProcess blockHighlightMSecs: t2
What it does: It opens a drop down of single step speeds. You select it, and the program switches to that mode.
Last edited by zorket (2010-11-16 18:43:21)
Offline
I think we should have a convention for blocks, as follows:
[ and ] denote command block start/finish
ex: [if on edge, bounce]
( and ) denote reporter block start/finish (when used at lowest level)
ex: (mouse x)
< and > denote predicate start/finish
ex: <true>
( and ) denote argument start/end
ex: [wait (Time:Number=1) secs]
(ArgName:Type=Default) denotes an argument with name ArgName, type Type and default value Default
ex: [wait (Time:Number=1) secs]
(ArgName:Opt1, Opt2, Op3=Default) denotes a dropdown (enumerated) argument with Opt1, Opt2, and Opt3 items and default value Default
ex: [switch to cursor (CursorName:Normal, Busy, None=Normal)]
(ArgName:Type:Opt1, Opt2, Op3=Default) denotes a dropdown + editable argument of type Type with Opt1, Opt2, and Opt3 items and default value Default
ex: [delete (Item:Number:all, first, last, any=1) of (ListName:List)]
List of types: (tell me if I forgot any)
Attribute
Boolean
Color (accepts additional argument Palette (=Palette/Screen), i.e. (C:Color:Palette))
Drum
Event
Sensor
BooleanSensor
Instrument
Key
List
Costume
Sprite
String
Number
Note
Sound
Var
Scene
You can add some if you have custom types, for example a Boolean reporter slot might be Predicate. You might want to include a description of the type if you do this.
Offline
sparks wrote:
I've seen this kind of block all over the place as a request, and I think it would be very useful. I do, however think that it could cause a lot of problems in the same way as a "when stop sign clicked" hat - especially in a mod like Panther, where you could open a project and the moment it opens, a "when <not<mouse down?>>" hat activates a script that creates a ton of clones or starts clearing files on your computer or runs some other deviously malicious block before you have the chance to read through the code.
? you can do that in squeak?
Offline
Zorket, thanks for filling out one of the request blocks, I will add it to the scratch section. You should have noted, however, that the block was requested for Panther not scratch It's still useful though, I'll have a go at converting it to Panther too
nXIII, It is useful to have a standard and conventional method for representing a block, however a lot of users won't understand the post above It's pretty complicated. A lot of people use that layout anyway Thanks for the post.
16skittles, Yes, Squeak can do things like clear files on your computer, potentially very dangerous, which is why I check all the projects submitted to the site before posting them up
Offline
Ok, I have turned the stepping speed block by Zorket into three Panther blocks (as custom blocks in Panther don't support dropdowns.
[turn on turbo speed]
ScratchProcess blockHighlightMSecs: 0
[turn off turbo speed]
ScratchProcess blockHighlightMSecs: 1
[set stepping speed to (number=10)]
ScratchProcess blockHighlightMSecs: t1
The last one can essentially replace the first two, but hey. also, using nXIII's block layout, I would normally put number=1 for the number argument but panther seems to default all custom block number arguments to 10
Offline
actually, you know what, nXIII, I think I might link your "how to lay out a block" post if you could turn it into more of a tutorial It would be very useful for everyone to use the same method
Offline
^home
Block Library Statistics.
GREEN numbers are shared blocks, PURPLE numbers are shared blocks that were requested. so in this example: "User [3] [2]", the person has shared a total of 5 blocks.
Blocks
total blocks: [82]
Motion [4]
Control [13]
Looks [13]
Sensing [3]
Sound [2]
Operators [17]
Pen [4]
Variables [1]
Contributors
total Scratch block contributors: [18]
MarioBlender [1]
sparks [2]
Billybob-Mario [1]
bbeb [1]
Zorket [10] [2]
rubiks_cube_guy238 [1]
midnightleopard [1]
Jwosty [3]
sonicjosh [1]
LS97 [1]
PlayWithFire [1]
nXIII [1]
jonathanpb [1]
Hardmath123 [6]
Pecola1 [20]
coupdegrace [1]
ESN [1]
MathWizz [1]
Jens Mönig [1]
Top Scratch blocks Contributor: Pecola1 [20]
^home
Blocks
total blocks: [73]
Motion [7]
Control [11]
Looks [12]
Sensing [7]
Sound [1]
Operators [20]
Pen [8]
Variables [5]
Contributors
total BYOB block contributors: [17]
jonathanpb [5]
PlayWithFire [8]
SSBBM [25]
Guinea_Pig_Girl [2]
midnightleopard [2]
meowmeow55 [6]
TheSuccessor [1]
rdococ [4]
bbeb [1]
Chrischb [2]
nXIII [1]
owetre18 [3]
subzerostig [4]
ScratchReallyROCKS [2]
sid_the_great [4]
Sparks [3]
Pecola1 [1]
Top BYOB Block Contributor: SSBBM [25]
^home
Blocks
total blocks: [35]
Motion [0]
Control [10]
Looks [1]
Sensing [4]
Sound [2]
Operators [4]
Pen [0]
Variables [4]
Files [9]
Colors [1]
Contributors
total Panther block contributors: [6]
Sparks [7] [3]
BillyEdward [1]
Billybob-Mario [1]
PlayWithFire [1]
nXIII [2]
bbeb [1]
johnnydean1 [15] [2]
Top Panther Block Contributor: johnnydean1 [17]
^home
Last edited by sparks (2011-01-03 13:41:28)
Offline
.
Scratch blocks added: [1]
[set stepping speed to [turbo speed]] Shared by Zorket
Panther blocks added: [3]
[set stepping speed to (1)] Shared by Sparks
[turn on turbo speed] Shared by Sparks
[turn off turbo speed] Shared by Sparks
Other Updates:
♦ New update posts! Woo!
♦Block requests section added! (see first post for permanent link)
♦New Block Library Statistics section added! (see first post for permanent link and simple stats)
_____________________________________________________________________________
^home
^updates archive
Last edited by sparks (2010-11-19 05:27:45)
Offline
Alright sparks, Now I have brought along a bunch of rage on making blocks, now I'm gonna be blowing blocks down the streets! Please prepare yourself, while I prepare the army!
Offline
sparks wrote:
sounds good Zorket You're already top scratch block contributor!
here's a challange for you, can you make any of these?
[clear line (n) or file [s]]
[write [s] to line (n) in file [s]]
?
Oh, you got me. But I'm gonna be working on blocks like [if touching [sprite], delete self]
Offline