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

#1 2012-10-30 09:15:25

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

I made Scratch 2.0 work without javascript or a local server!

First, try opening Scratch_new with 7zip. If it contains another swf, extract it. Using a hex editor, search for the hex code '4f a5 14 02 d0 27 4f a4 01 01' in Scratch_new.swf (or the file you extracted) and change the 27 to 26. You can now open the swf in editor mode. You might need to resize the window to make it work, and then press the 'new button'.

Have fun!

Edit: Code is now '4f be 14 02 d0 27 4f a4 01 01'
Edit 2: Just search for 27 4f a4 01 01. If that doesn't work, find the next one.
Edit 3: If anyone still cares, the code is now 27 4f a5 01 01

Last edited by rubiks_cube_guy238 (2012-11-11 09:57:54)


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#2 2012-10-30 09:23:00

Pitusky12
Scratcher
Registered: 2011-09-21
Posts: 500+

Re: I made Scratch 2.0 work without javascript or a local server!

is there a hex editor for mac ? can i use unarchiver?


Scratch 2.0 Beta Tester  wink

Offline

 

#3 2012-10-30 09:25:23

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: I made Scratch 2.0 work without javascript or a local server!

You can try Hex Fiend

I don't know any programs that support SWF format other than 7-zip (which is only for Windows) so you will need to try running it with WINE.

Last edited by rubiks_cube_guy238 (2012-10-30 09:26:50)


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#4 2012-10-30 15:22:55

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: I made Scratch 2.0 work without javascript or a local server!

I've not tried it, but it MIGHT be possible to use winRAR or winZIP for .SWF too, so yeah. I thought 7Zip was multi-OS, rubiks.


I'm back.
Maybe.

Offline

 

#5 2012-10-30 15:27:58

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: I made Scratch 2.0 work without javascript or a local server!

I tried winRAR; it doesn't work. 7zip does have versions for other operating systems, but those are unofficial. I didn't see the other versions when I downloaded it from the home page.

Last edited by rubiks_cube_guy238 (2012-10-30 15:32:56)


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#6 2012-10-30 16:08:07

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

Re: I made Scratch 2.0 work without javascript or a local server!

nice hack  wink

can't you just change the extension?

Offline

 

#7 2012-10-30 17:22:26

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: I made Scratch 2.0 work without javascript or a local server!

Only if the program you're using is really *. A well-made program will identify the type of file by its header, not by its extension.

Last edited by rubiks_cube_guy238 (2012-10-30 17:22:35)


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#8 2012-10-30 19:40:44

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: I made Scratch 2.0 work without javascript or a local server!

It didn't work for me, it said it could not find 4f a5 14 02 d0 27 4f a4 01 01.


http://i.imgur.com/YBeXc.png

Offline

 

#9 2012-10-30 20:42:32

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: I made Scratch 2.0 work without javascript or a local server!

The swf was modified, so now the code is '4f be 14 02 d0 27 4f a4 01 01'.


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

#10 2012-10-31 01:25:41

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

Re: I made Scratch 2.0 work without javascript or a local server!

A cool thing would be a script that automatically downloads the latest swf when online and hacks the .swf file.


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

Offline

 

#11 2012-10-31 20:11:59

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: I made Scratch 2.0 work without javascript or a local server!

Question. How the heck did you find this??


http://block.site90.net/scratch.mit/text.php?size=30&text=%20A%20signature!&color=333333

Offline

 

#12 2012-11-01 15:21:53

rubiks_cube_guy238
Scratcher
Registered: 2009-07-02
Posts: 100+

Re: I made Scratch 2.0 work without javascript or a local server!

I used Sothink SWF Decompiler. It has a 'Raw Data' option to display the hex codes for each bytecode instruction. '27 4f a4 01 01' means 'push false; call setEditMode with one argument' and 26 means 'push true'.


The glass is never half full nor half empty; it is twice as large as it needs to be.

Offline

 

Board footer