nXIII made Scratch Patches.
Someone at the block library decided to make a block patch.
You would import a block, easy shmeezy.
But we need help making BLOCK files.
Several times people have posted saying that it doesn't work.
I want to fix that.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
We have to create a BLOCK file, which contains the blockspec and code for the block, as well as where it goes.
That's pretty much it.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Whizzer has been a big help, creating the first prototype for us to work off of.
Last edited by scimonster (2011-09-07 15:00:06)
Offline
I just added a devs list.
Offline
Possibly LiquidMetal.
Offline
If Squeak has proper string finding stuff, you could just find the proper block category in the blockspecs area and add the blockspec at the end (by the closing parentheses). Then simply use the regular patcher system to put a new method for the block in the proper ops are. Adding additional code would just be a little trickier.
Offline
meowmeow55 wrote:
If Squeak has proper string finding stuff, you could just find the proper block category in the blockspecs area and add the blockspec at the end (by the closing parentheses). Then simply use the regular patcher system to put a new method for the block in the proper ops are. Adding additional code would just be a little trickier.
Probably...
Offline
That's not just it. It also has to specify where the code goes.
And you need to specify the image locations in your sig.
Offline
Panther has block adding capabilities. nXIII programmed that and it goes waaaay beyond my understanding of smalltalk but if you can find it in the Panther browser we might be able to find a way to "file in" the code responsible for it, then use the code for the panther "import block $Number$ from the library" block to react to a .BLOCK file you choose with a file browser?
Offline
sparks wrote:
Panther has block adding capabilities. nXIII programmed that and it goes waaaay beyond my understanding of smalltalk but if you can find it in the Panther browser we might be able to find a way to "file in" the code responsible for it, then use the code for the panther "import block $Number$ from the library" block to react to a .BLOCK file you choose with a file browser?
I know about Panther.
I'll try... but I'm sure it's waaaaaay beyond my understanding of Smalltalk!
Offline
Still lost here.
Offline
I'll help
Offline
bbbeb wrote:
...you can't export as XML and rename it with the code?
You could save a animated gif as a .exe if you wanted to, it just wouldn't run, so you shouldn't even need two steps.
Offline
Offline
Ill start delving into Panther, and start to understand it....
LS97 should be able to help...
And where is nXIII these days?
Offline
Panther does it by:
Having an array of blockspecs, which render themselves into the variable tab when requested. Much like adding a variable. Then when run it looks for the saved code (which I think is stored in another array)
By array I mean an OrderedCollection.
Offline
whizzer wrote:
*Laughs* I think the code is like when you put stuff in the workspace and file-it-in. Just put the code in and save it as a .block file!
Does anyone value my opinion?
Offline