bigreader wrote:
nXIII wrote:
TheSuccessor wrote:
Would you mind me using this in my mod if I only used the installer, gave you credit for the installer code and the entire idea, and wrote all the patches for my mod myself? And give you a load of code in return?
A load of code?
![]()
Sure, I don't mind. Except, I don't think I ever put the code to save Squeak when you add a patch into it...a little challenge for you, I guess!![]()
Me too?
I'm hoping to implement a update system (and maybe some custom patches) in my mod, Zing! (you may have heard about it. sorry! that code is now gone.)
Please?
Offline
Dang! It worked when I tried it with something else, but it doesn't seem to work after some time...
Offline
I remember when you first talked about the "patching" idea, nXIII.
You first talked about it in a topic for someone else's mod, and they thought that you were offering to help them.
Glad that the idea turned out, it sounded like a really cool concept.
Offline
cds56 wrote:
I remember when you first talked about the "patching" idea, nXIII.
You first talked about it in a topic for someone else's mod, and they thought that you were offering to help them.
Glad that the idea turned out, it sounded like a really cool concept.
I remember that, I was part of that.
Offline
When will the downloads be available? We want it for the Block Library.
Offline
sparks wrote:
Billybob-Mario wrote:
climber59 wrote:
Rapidshare is bad unless you have a paid account, Mediafire is working fine for me though so I wonder why it isn't for you.
Slash uses dropbox.
dropbox isn't a file hosting site, you need a password to access the contents and you also need to install it.
no you don't, and when you put it in the public folder, you right click the name of the file, choose copy public link, and paste it wherever you want. when someone clicks on the file (and it isn't an html, javascript, text, or picture file) it will start downloading.
Offline
nXIII wrote:
Scratch Patches by nXIII
These little guys can help you customize and improve your own version of Scratch. The best part: none involve new blocks, so the projects you create will be no different that normal Scratch projects.
_________________________________
Notes- download links temporarily unavailable
- these patches are not for use in mods; they are exclusively for customizing the Scratch application itself
- please post suggestions and/or bugs and glitches
- thanks to ScratchReallyROCKS, Mac keyboard shortcuts are now available_________________________________
The PatcherInstalling the patcher is the hardest (but not very hard) thing you must do in order to install patches. Simply follow these instructions:
Step 1: Open Scratch
Step 2: Press and hold the "shift" key while clicking the loop of the "R" in the Scratch logo
Step 3: Select "turn fill-screen off" from the popup menu which shows up
Not showing up? Make sure you're clicking inside the loop of the "R"; the "logo" referred to is the one in the top-left corner.
Step 4: Click anywhere in the "white space" which shows up at the bottom and right sides of the window
Step 5: Select "open..." from the popup menu
Step 6: Select "workspace" from the subsequent popup menu
Step 7: Copy the following text and paste it into the textbox-like window with (Windows) Alt+V or (Mac) Command+V, or by clicking the "-" button above the scrollbar (appears when the mouse is over the "workspace" window) and selecting "paste (v)"'From MIT Squeak 0.9.4 (June 1, 2003) [No updates present.] on 18 June 2010 at 5:06:17 pm'!
!ScratchFileChooserDialog methodsFor: 'initialization'!
createPatchFileChooserFor: t1
scratchFrame _ nil.
readingScratchFile _ true.
list _ ScratchFilePicker new extensions: #(#patch ).
self removeAllMorphs.
bottomSpacer delete.
bottomSpacer _ nil.
mainColumn addMorphBack: list.
self title: 'Add Patch'.
list scratchInfoClient: nil.
mainColumn addMorphBack: (Morph new extent: 5 @ 9;
color: Color transparent);
addMorphBack: newTitleBin.
fileInfoColumn addMorphBack: buttonRow.
self addMorphBack: shortcutColumn;
addMorphBack: mainColumn;
addMorphBack: fileInfoColumn! !
!ScratchFrameMorph methodsFor: 'menu/button actions'!
addPatch
| t1 t2 t3 t4 |
t1 _ ScratchFileChooserDialog new createPatchFileChooserFor: self;
type: #patch.
t2 _ t1 getUserResponse.
t2 = #cancelled ifTrue: [^ self].
t3 _ (FileDirectory forFileName: t2)
oldFileNamed: t2.
t4 _ t3 contentsOfEntireFile.
(ReadWriteStream
on: t4
from: 1
to: t4 size) fileIn! !
!ScratchFrameMorph methodsFor: 'menu/button actions'!
fileMenu: t1
| t2 |
t2 _ CustomMenu new.
t2 add: 'New' action: #newScratchProject.
t2 add: 'Open' action: #openScratchProject.
t2 add: 'Save' action: #saveScratchProjectNoDialog.
t2 add: 'Save As' action: #saveScratchProject.
t2 addLine.
t2 add: 'Import Project' action: #importScratchProject.
t2 add: 'Export Sprite' action: #exportSprite.
t2 addLine.
t2 add: 'Add Patch' action: #addPatch.
t2 addLine.
t2 add: 'Project Notes' action: #editNotes.
Sensor shiftPressed
ifTrue:
[t2 addLine.
t2 add: 'Write Project Summary' action: #writeSummaryFile.
t2 add: 'Write Multiple Project Summaries' action: #writeMultipleSummaries].
t2 addLine.
t2 add: 'Quit' action: #quitScratch.
t2 localize.
#(2 4 5 6 7 8 ) do: [:t3 | t2 labels at: t3 put: ((t2 labels at: t3)
copyFrom: 1 to: (t2 labels at: t3) size - 1)
, ScratchTranslator ellipsesSuffix].
t2 invokeOn: self at: t1 bottomLeft + (0 @ 10)! !Step 8: Select all the text by click-and-drag or by pressing (Windows) Alt+A or (Mac) Command+A
Step 9: File in the selection by right-clicking (Mac option+click) the selection and clicking "more..." then "file it in"
Step 10: Shift-click the loop of the "R" in the Scratch logo again and select "save image for end-user" then select "yes" when prompted. Scratch should close, and when restarted you will see a new option in the file menu: "Add Patch..."_________________________________
Installing a PatchOnce you have installed the patcher, simply select "Add Patch" from the file menu, navigate to the file (ends with .patch) and select "OK". The patch will be installed and can be used immediately.
_________________________________
Available Patches
note: make sure you have installed the patcher before downloading and installing any of these patchesFeedback Enhancements
This patch modifies Scratch's "feedback" methods for dropping and deleting blocks and comments. Features:
- Colored reporter block drop feedback - for example a variable block has an orange-tinted feedback
- Shadowed command block feedback - instead of a line to indicate where blocks will go, you get a nice little shadow of the blocks
- Shaded comment/deletion feedback - the feedback for comments and reporters now look like those for reporters
DownloadDeletion Fixes
This patch makes deletion of embedded command blocks possible, as well as fixing Scratch's deletion of reporters - if they have embedded blocks, the embedded blocks will be kept in the editor. Features:
- Updated "cut" tool for blocks
- All blocks now have a delete menu item in their context menu
DownloadMore coming soon!
_________________________________
You can't same image, because the patch doesn't support the dev menu, if your using the scratch source 1.4. You need to edit it and support the dev menu!
Offline
Why can we not have them in mods? That's silly, I mean, my mod wouldn't be good without patches! PLEASE REPLY TO THSI POST ON ONE OF MY PROJECTS.
Offline
nXIII wrote:
ScratchReallyROCKS wrote:
nXIII wrote:
Yes, they're written in Squeak.
Cool! Does this mean that we could make a code in squeak and change the extension to .patch?
or leave it as a .cs, the patcher accepts them, too.
EDIT: Oh, nvm, my version does. If you want to, just add "#cs" next to "#patch" in the first method.
So just saving the code as .block will make it a BLOCK file, what we want to make?
~~Scimonster
Offline
YourLocalBlockLib wrote:
nXIII wrote:
ScratchReallyROCKS wrote:
Cool! Does this mean that we could make a code in squeak and change the extension to .patch?or leave it as a .cs, the patcher accepts them, too.
EDIT: Oh, nvm, my version does. If you want to, just add "#cs" next to "#patch" in the first method.So just saving the code as .block will make it a BLOCK file, what we want to make?
~~Scimonster
1. nXIII isn't active anymore.
2. I had already added that in the code.
Offline
Offline
This worked for me...
1. Open notepad, or another text editor
2. Enter the squeak code
e.g.
!BlockMorph methodsFor: 'class' stamp: ' '!
methodName
| variable |
codeJust like when you code in your workspace.
3. Click [save as...]
4. Enter the file name
5. For the save as type field click other and then add .patch at the end of the filename, making the file have a custom extension
6. You should be able to import it now!
Offline
WindowsExplorer wrote:
This worked for me...
1. Open notepad, or another text editor
2. Enter the squeak code
e.g.Code:
!BlockMorph methodsFor: 'class' stamp: ' '! methodName | variable | codeJust like when you code in your workspace.
3. Click [save as...]
4. Enter the file name
5. For the save as type field click other and then add .patch at the end of the filename, making the file have a custom extension
6. You should be able to import it now!
cool
Offline
I've made a patch that lets you not have to shift click the share menu to get to mesh :3 : download here < 506 B
Last edited by comp500 (2011-09-10 06:15:03)
Offline
It's been FOREVER since anyone posted here, but I made a version of your patch that also activates mesh - yours only disabled shift-clicking it.
Download!
comp500 wrote:
I've made a patch that lets you not have to shift click the share menu to get to mesh :3 : download here < 506 B
Offline
Dominic1 wrote:
It's been FOREVER since anyone posted here, but I made a version of your patch that also activates mesh - yours only disabled shift-clicking it.
Download!comp500 wrote:
I've made a patch that lets you not have to shift click the share menu to get to mesh :3 : download here < 506 B
The topic was inactive, that's why no one posted. Please don't necropost.
Offline
I have a patch that works with import block and add patch! why? cuz i had the "add patch" patch and added the import block patch that overwrote the "add patch" patch so i wrote a new patch that adds both to the menu! install like you would install the "add patch" patch! enjoy!
'From MIT Squeak 0.9.4 (June 1, 2003) [No updates present.] on 18 June 2010 at 5:06:17 pm'!
!ScratchFileChooserDialog methodsFor: 'initialization'!
createBlockFileChooserFor: t1
scratchFrame _ nil.
readingScratchFile _ true.
list _ ScratchFilePicker new extensions: #(#block ).
self removeAllMorphs.
bottomSpacer delete.
bottomSpacer _ nil.
mainColumn addMorphBack: list.
self title: 'Import Block'.
list scratchInfoClient: nil.
mainColumn addMorphBack: (Morph new extent: 5 @ 9;
color: Color transparent);
addMorphBack: newTitleBin.
fileInfoColumn addMorphBack: buttonRow.
self addMorphBack: shortcutColumn;
addMorphBack: mainColumn;
addMorphBack: fileInfoColumn! !
!ScratchFileChooserDialog methodsFor: 'initialization'!
createPatchFileChooserFor: t1
scratchFrame _ nil.
readingScratchFile _ true.
list _ ScratchFilePicker new extensions: #(#patch ).
self removeAllMorphs.
bottomSpacer delete.
bottomSpacer _ nil.
mainColumn addMorphBack: list.
self title: 'Import Patch'.
list scratchInfoClient: nil.
mainColumn addMorphBack: (Morph new extent: 5 @ 9;
color: Color transparent);
addMorphBack: newTitleBin.
fileInfoColumn addMorphBack: buttonRow.
self addMorphBack: shortcutColumn;
addMorphBack: mainColumn;
addMorphBack: fileInfoColumn! !
!ScratchFrameMorph methodsFor: 'menu/button actions'!
addPatch
| t1 t2 t3 t4 |
t1 _ ScratchFileChooserDialog new createPatchFileChooserFor: self;
type: #patch.
t2 _ t1 getUserResponse.
t2 = #cancelled ifTrue: [^ self].
t3 _ (FileDirectory forFileName: t2)
oldFileNamed: t2.
t4 _ t3 contentsOfEntireFile.
(ReadWriteStream
on: t4
from: 1
to: t4 size) fileIn! !
!ScratchFrameMorph methodsFor: 'menu/button actions'!
addBlock
| t1 t2 t3 t4 |
t1 _ ScratchFileChooserDialog new createPatchFileChooserFor: self;
type: #block.
t2 _ t1 getUserResponse.
t2 = #cancelled ifTrue: [^ self].
t3 _ (FileDirectory forFileName: t2)
oldFileNamed: t2.
t4 _ t3 contentsOfEntireFile.
(ReadWriteStream
on: t4
from: 1
to: t4 size) fileIn! !
!ScratchFrameMorph methodsFor: 'menu/button actions'!
fileMenu: t1
| t2 |
t2 _ CustomMenu new.
t2 add: 'New' action: #newScratchProject.
t2 add: 'Open' action: #openScratchProject.
t2 add: 'Save' action: #saveScratchProjectNoDialog.
t2 add: 'Save As' action: #saveScratchProject.
t2 addLine.
t2 add: 'Import Project' action: #importScratchProject.
t2 add: 'Export Sprite' action: #exportSprite.
t2 addLine.
t2 add: 'Import Patch' action: #addPatch.
t2 add: 'Import Block' action: #addBlock.
t2 addLine.
t2 add: 'Project Notes' action: #editNotes.
Sensor shiftPressed
ifTrue:
[t2 addLine.
t2 add: 'Write Project Summary' action: #writeSummaryFile.
t2 add: 'Write Multiple Project Summaries' action: #writeMultipleSummaries].
t2 addLine.
t2 add: 'Quit' action: #quitScratch.
t2 localize.
#(2 4 5 6 7 8 ) do: [:t3 | t2 labels at: t3 put: ((t2 labels at: t3)
copyFrom: 1 to: (t2 labels at: t3) size - 1)
, ScratchTranslator ellipsesSuffix].
t2 invokeOn: self at: t1 bottomLeft + (0 @ 10)! !Last edited by PopTarties (2012-07-20 15:11:37)
Offline