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

#1 2011-05-04 15:29:31

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

How to hack BYOB 3.0 and later

Hello Scratchers!
Are you all wondering how to hack BYOB for custom blocks? Well then, you've come to the right place. This thread will have simple instructions to hack BYOB easily.
Just follow these:
1. Open BYOB-development.bat [this is the only BYOB that can be hacked]
2. Shift-click Edit.
3. Click turn fill screen off.
And at 4 you're done- you can now reach the browser and mod BYOB!
As easy as 1-2-3!

Not much to fit in this post, eh... and I am not going anywhere... I'll just say...
...Hope you like it!

Offline

 

#2 2011-05-04 18:14:40

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: How to hack BYOB 3.0 and later

rdococ wrote:

Hello Scratchers!
Are you all wondering how to hack BYOB for custom blocks? Well then, you've come to the right place. This thread will have simple instructions to hack BYOB easily.
Just follow these:
1. Open BYOB-development.bat [this is the only BYOB that can be hacked]
2. Shift-click Edit.
3. Click turn fill screen off.
And at 4 you're done- you can now reach the browser and mod BYOB!
As easy as 1-2-3!

Not much to fit in this post, eh... and I am not going anywhere... I'll just say...
...Hope you like it!

The regular BYOB can be hacked easily, open a block (can't be a custom block) in edit elements. Click the purple class button. Drag any block into the block insert. Now click save.  Now there should be a syntax error massage. Left click the red letters near the top, and then click browse full, you now have opened the system browser. Now to make it permanant, go to Scratch-UI-Panes > ScratchFrameMorph > menu/button actions, and past the code:

Code:

developersMenu
    | t1 |
    self world activeHand toolType: nil.
    Cursor normal show.
    t1 _ CustomMenu new.
    fillScreenFlag
        ifTrue: [t1 add: 'turn fill screen off' action: #fillScreenOff]
        ifFalse: [t1 add: 'turn fill screen on' action: #fillScreenOn].
    UseErrorCatcher
        ifTrue: [t1 add: 'turn error catching off' action: #toggleErrorCatcher]
        ifFalse: [t1 add: 'turn error catching on' action: #toggleErrorCatcher].
    t1 addLine.
    t1 add: 'save image for end-user' action: #saveImageForEndUser.
    t1 invokeOn: self

Now go to event handling, mousDown:
replace the code with

Code:

mouseDown: t1 
    "Revert to normal cursor, and thanks to Pecola1, if shift is pressed and the 'Y' is clicked, open the developers menu" 
| t2 |
    t1 hand toolType: nil.
    t2 _ self position + (ScratchFrameMorph isXO
                    ifTrue: [72 @ 26]
                    ifFalse: [38 @ 10]).
    (((t2 extent: 10 @ 12)
        containsPoint: t1 cursorPoint)
        and: [t1 shiftPressed])
        ifTrue: [^ self developersMenu].
    t1 cursorPoint y - self top < topPane height
        ifTrue: [fillScreenFlag ifFalse: [t1 hand grabMorph: self]]

Now accept, shift click the tip of the right side of the 'Y' in BYOB, and click save image for end user.


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

#3 2011-05-05 02:13:57

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: How to hack BYOB 3.0 and later

Pecola1 wrote:

long stuffs

I know an easier way to hack BYOB, but I will not say how in fear of it getting removed.

Then again, if I will not say how to do it, what is the point in mentioning it at all?  hmm


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

#4 2011-05-05 05:44:46

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: How to hack BYOB 3.0 and later

Hmmm, hacking BYOB is supposed to be easy, you know. Any suggestions how we can make it easier for you yet?


Jens Mönig

Offline

 

#5 2011-05-05 05:55:41

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

Re: How to hack BYOB 3.0 and later

Jens wrote:

Hmmm, hacking BYOB is supposed to be easy, you know. Any suggestions how we can make it easier for you yet?

Yeah, Make it Shift+alt+click green flag or something ridiculous like that -_-


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

Offline

 

#7 2011-05-08 10:56:51

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: How to hack BYOB 3.0 and later

Bump. The main piority of modding is mostly adding blocks, so a shift-click the make-a-block button would be a good addition.

Offline

 

#8 2011-05-09 04:13:44

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: How to hack BYOB 3.0 and later

But it is just shift+click on the EDIT menu. How can it be any simpler than that?


Jens Mönig

Offline

 

#9 2011-05-09 04:37:10

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: How to hack BYOB 3.0 and later

Simpler: Just a click, not any shiftclick.

EDIT: Quite offtopic, but I have more posts than Jens.

Last edited by rdococ (2011-05-09 16:33:22)

Offline

 

#10 2011-08-16 17:26:12

tpaley
Scratcher
Registered: 2011-05-22
Posts: 100+

Re: How to hack BYOB 3.0 and later

nice!


http://i49.tinypic.com/2z82h3d.gif

Offline

 

#11 2011-09-06 06:27:52

origami3
Scratcher
Registered: 2011-08-11
Posts: 28

Re: How to hack BYOB 3.0 and later

rdococ wrote:

Hello Scratchers!
Are you all wondering how to hack BYOB for custom blocks? Well then, you've come to the right place. This thread will have simple instructions to hack BYOB easily.
Just follow these:
1. Open BYOB-development.bat [this is the only BYOB that can be hacked]
2. Shift-click Edit.
3. Click turn fill screen off.
And at 4 you're done- you can now reach the browser and mod BYOB!
As easy as 1-2-3!

Not much to fit in this post, eh... and I am not going anywhere... I'll just say...
...Hope you like it!

Can you help It does not work on  BYOB 3.1.1


I am awesome

Offline

 

#12 2011-09-06 06:39:14

fanofcena
Scratcher
Registered: 2008-07-03
Posts: 1000+

Re: How to hack BYOB 3.0 and later

floppy_gunk wrote:

Pecola1 wrote:

long stuffs

I know an easier way to hack BYOB, but I will not say how in fear of it getting removed.

Then again, if I will not say how to do it, what is the point in mentioning it at all?  hmm

this is off topic .. but firefox is on 6 and awaiting launch of 7 soon x)


http://i53.tinypic.com/2vxr2c0.png Click whats above u might make a cute planet happy ^_^

Offline

 

#13 2011-09-06 09:34:58

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

Re: How to hack BYOB 3.0 and later

Jens wrote:

But it is just shift+click on the EDIT menu. How can it be any simpler than that?

make the BYOB-development file findable in linux for example  smile

Offline

 

#14 2011-09-06 10:06:23

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: How to hack BYOB 3.0 and later

roijac wrote:

Jens wrote:

But it is just shift+click on the EDIT menu. How can it be any simpler than that?

make the BYOB-development file findable in linux for example  smile

Or just include it in the regular version. XD

Offline

 

#15 2011-09-06 10:19:08

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

Re: How to hack BYOB 3.0 and later

scimonster wrote:

roijac wrote:

...

Or just include it in the regular version. XD

yeah, that's also an idea...  big_smile

Offline

 

#16 2012-02-03 21:49:48

cocolover76
Scratcher
Registered: 2011-10-09
Posts: 500+

Re: How to hack BYOB 3.0 and later

when flag clicked
forever
say [BUMP]
'Cause it's [A GOOD RESOURCE]
end

Last edited by cocolover76 (2012-02-03 21:51:41)


http://i.imgur.com/HfEPZ.gifhttp://i.imgur.com/pvKb6.png

Offline

 

#17 2012-02-04 03:15:40

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: How to hack BYOB 3.0 and later

cocolover76 wrote:

when flag clicked
forever
say [BUMP]
'Cause it's [A GOOD RESOURCE]
end

I think that was a necropost, but yeah, you're right.  tongue

Offline

 

#18 2012-02-04 11:59:55

cocolover76
Scratcher
Registered: 2011-10-09
Posts: 500+

Re: How to hack BYOB 3.0 and later

rdococ wrote:

cocolover76 wrote:

when flag clicked
forever
say [BUMP]
'Cause it's [A GOOD RESOURCE]
end

I think that was a necropost, but yeah, you're right.  tongue

Somebody linked me to it.
Then I posted, thinking it was on the first page already.


http://i.imgur.com/HfEPZ.gifhttp://i.imgur.com/pvKb6.png

Offline

 

#20 2012-02-05 07:36:53

wilsonbiggs
Scratcher
Registered: 2011-10-08
Posts: 71

Re: How to hack BYOB 3.0 and later

Helpful, but I have one question with hacking: In the System Browser, where an I change:
1. The top-left logo
2. The title (at the top)
3. The default project

Thanks!


http://i196.photobucket.com/albums/aa122/wilsonbiggs/Screenshot2012-02-04at11552PM.pnghttp://dragcave.net/image/S0uKJ.gifhttp://dragcave.net/image/bQId9.gif

Offline

 

#21 2012-02-05 08:59:40

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: How to hack BYOB 3.0 and later

wilsonbiggs wrote:

Helpful, but I have one question with hacking: In the System Browser, where an I change:
1. The top-left logo
2. The title (at the top)
3. The default project

Thanks!

1. While full-screen is off and you can hack, alt-click it until the halo of buttons circle the logo only. Then select the dark grey "draw me" button.

2. Not sure.  hmm

3. I think you need to rename a project "defaultproj.sb" or something like that in Windows Explorer and not Squeak and then move the file? Not sure.

Offline

 

#22 2012-02-05 09:09:13

wilsonbiggs
Scratcher
Registered: 2011-10-08
Posts: 71

Re: How to hack BYOB 3.0 and later

rdococ wrote:

wilsonbiggs wrote:

Helpful, but I have one question with hacking: In the System Browser, where an I change:
1. The top-left logo
2. The title (at the top)
3. The default project

Thanks!

1. While full-screen is off and you can hack, alt-click it until the halo of buttons circle the logo only. Then select the dark grey "draw me" button.

2. Not sure.  hmm

3. I think you need to rename a project "defaultproj.sb" or something like that in Windows Explorer and not Squeak and then move the file? Not sure.

What do you mean by the halo of buttons?


http://i196.photobucket.com/albums/aa122/wilsonbiggs/Screenshot2012-02-04at11552PM.pnghttp://dragcave.net/image/S0uKJ.gifhttp://dragcave.net/image/bQId9.gif

Offline

 

#23 2012-02-05 12:48:41

danwoodski
Scratcher
Registered: 2009-12-23
Posts: 100+

Re: How to hack BYOB 3.0 and later

wilsonbiggs wrote:

rdococ wrote:

wilsonbiggs wrote:

Helpful, but I have one question with hacking: In the System Browser, where an I change:
1. The top-left logo
2. The title (at the top)
3. The default project

Thanks!

1. While full-screen is off and you can hack, alt-click it until the halo of buttons circle the logo only. Then select the dark grey "draw me" button.

2. Not sure.  hmm

3. I think you need to rename a project "defaultproj.sb" or something like that in Windows Explorer and not Squeak and then move the file? Not sure.

What do you mean by the halo of buttons?

The "halo of buttons" is just a bunch of small circular buttons that appears around the logo.

For the default project, I'm not sure there is a default project, I think it just makes a blank project, with the logo image (which you can change)...but if you could change it, it would be in ScratchUIPanes--ScratchFrameMorph--Startup--Startup

To change the title, in the browser, go to ScratchUIPanes--Scratch Frame Morph--All--UpdateProjectName
*You'll probably want to change the title on both the "if true" and "if false" lines...I think the if true is just when it's loading or something, but I'm not sure...


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://dl.dropbox.com/u/12506914/Pics/p2e-2.png&amp;link2=http://dl.dropbox.com/u/12506914/Pics/ms.png&amp;link3=http://dl.dropbox.com/u/12506914/Pics/block%20lib.png
Starting to move on to other languages, but I'll still be around from time to time  smile

Offline

 

#24 2012-02-05 15:25:25

wilsonbiggs
Scratcher
Registered: 2011-10-08
Posts: 71

Re: How to hack BYOB 3.0 and later

Okay. It looks like the opening project can be changed by editing some of these lines:

Code:

 startup

    | startupFileNames fileName arg presentationMode |

    HostSystemMenus startUp.
    HostSystemMenus menuBarControler reviseHostMenus.

    ScriptableScratchMorph randomInit.
    ScratchTranslator detectRenderPlugin.
    ScratchTranslator importLanguagesList.

    ScratchFrameMorph readShareServerEntry.
    BlockMorph contrastStrong.
    self keepSpritesOnStage: 1.
    EventHatMorph threadSafeMode: false.
    HandMorph translucentWhenDragging: true.
    VariableFrame scopeContrast: false.
    self processSettingsFile.
    self readDefaultNotes.

    BlockEditorFrameMorph resetDimensions.
    ElementsEditorFrameMorph resetDimensions.
    DebuggerFrameMorph resetDimensions.

    self updateProjectName.
    shuffledCostumeNames _ nil.
    author _ ''.
    loginName _ ''.
    loginPassword _ ''.
    justSaved _ true.
    presentationMode _ false.

    startupFileNames _ InputSensor startupFileNames asOrderedCollection.
    2 to: 10 do: [:i |
        arg _ Smalltalk getSystemAttribute: i.
        (arg notNil and: [arg size > 0]) ifTrue: [
            startupFileNames addLast: (ScratchPlugin primShortToLongPath: arg)]].

    startupFileNames do: [:n |
        (n asLowercase = 'presentation') ifTrue: [
            quitFlag _ true. 
            presentationMode _ true.
            self isHidden: true.
            Display fillBlack].
        (n asLowercase = 'fullscreen') ifTrue: [TakeOverScreen _ true]].

    TakeOverScreen ifTrue: [
        Smalltalk fullScreenMode: true.
        World restoreDisplay].

    self enterQuarterModeIfSmallScreen.

    fileName _ startupFileNames
        detect: [:fn |
            (fn asLowercase endsWith: '.sb') or: [(fn asLowercase endsWith: '.scratch') or: [fn asLowercase endsWith: '.ypr']]]
        ifNone: [presentationMode ifTrue: [self randomProjectName]]. "this is BYOB's screensaver feature -jens"
    fileName ifNotNil: [
        presentationMode ifTrue: [Display fillColor: Color black].
        self openScratchProjectNamed: fileName.
        presentationMode ifTrue: [self enterPresentationMode; shoutGo].
        ^ self].

    viewerPane currentCategory: 'motion'.
    self setDefaultSprite.
    self newScratchProject.

    fileName _ startupFileNames
        detect: [:fn | (fn asLowercase endsWith: '.sprite') or: [fn asLowercase endsWith: '.ysp']]
        ifNone: [^ self].

    "open a .sprite file"
    workPane submorphs do: [:m | (m isKindOf: ScratchSpriteMorph) ifTrue: [m deleteSprite]].
    self importSpriteOrProject: fileName.

But where is the file? What is arg?


http://i196.photobucket.com/albums/aa122/wilsonbiggs/Screenshot2012-02-04at11552PM.pnghttp://dragcave.net/image/S0uKJ.gifhttp://dragcave.net/image/bQId9.gif

Offline

 

#25 2012-02-05 16:56:32

wilsonbiggs
Scratcher
Registered: 2011-10-08
Posts: 71

Re: How to hack BYOB 3.0 and later

hheelloo??


http://i196.photobucket.com/albums/aa122/wilsonbiggs/Screenshot2012-02-04at11552PM.pnghttp://dragcave.net/image/S0uKJ.gifhttp://dragcave.net/image/bQId9.gif

Offline

 

Board footer