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

#1 2010-03-20 17:22:03

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

[Tutorial] Modifying ScratchApplet.jar

(Note so far, all I can do is modify images)

1. Download http://scratch.mit.edu/static/misc/ScratchApplet.jar to a folder where you can find it.
2. Rename it to "ScratchApplet.zip" (no quotes)
3. Extract ScratchApplet.zip into a folder (easier to handle this way)
4. Go to the folder "skin" within the folder "ScratchApplet" (or the archive "ScratchApplet.zip")
5. There are some image resources that the ScratchApplet uses. You can edit those.
6. Zip back up the ScratchApplet folder, if you did step 3. The rezipped archive should be identical to the original, except for the images.
7. Rename the archive to ScratchApplet.jar, if you did step 6.
8. Use this thread to embed ScratchApplet and a test project, except use your ScratchApplet instead of the one linked to in the thread.

I have done this myself, so it should work..

If you are too lazy to do this yourself: http://scratch.mit.edu/forums/viewtopic.php?id=32542

Last edited by gershmer (2010-03-20 19:55:37)


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#2 2010-03-20 18:06:05

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

Bump. C'mon people this is actually cool.


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#3 2010-03-20 18:26:53

nXIII
Community Moderator
Registered: 2009-04-21
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

Cool! I haven't tried yet, but it sounds promising. Keep working!  smile


nXIII

Offline

 

#4 2010-03-20 18:28:05

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

nXIII wrote:

Cool! I haven't tried yet, but it sounds promising. Keep working!  smile

Yeah. I have decompiled the jar into raw .java files so I can see the source code.

First step:
change the font


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#5 2010-03-20 18:56:37

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

OK. I have done it.
Check it out @ http://www2.gershmer.net/comicsanstest/ (my computer must be on)

It should show up in Comic Sans MS rather than Arial Unicode MS

Tell me what you see

Note:
It requires both ScratchApplet.jar  AND  ScratchApplet.class to be in the directory, even though it only references ScratchApplet.jar in the HTML source code of the page, and the file I changed was  AskPrompter.class, not ScratchApplet.class

Anyway. ENJOY


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#6 2010-03-20 18:59:00

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

I have to ask, though. Does anyone want a tutorial to change the class files (compiled source files found in the .jar)


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#7 2010-03-20 19:01:20

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

Pretty cool! It would be awesome if you could resize the scratch applet for bigger images.... (Hint, hint)

Offline

 

#8 2010-03-20 19:03:28

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

shadow_7283 wrote:

Pretty cool! It would be awesome if you could resize the scratch applet for bigger images.... (Hint, hint)

Are you asking me to examine the source and do that?


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#9 2010-03-20 19:13:33

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

gershmer wrote:

shadow_7283 wrote:

Pretty cool! It would be awesome if you could resize the scratch applet for bigger images.... (Hint, hint)

Are you asking me to examine the source and do that?

Yes please!

Offline

 

#10 2010-03-20 19:21:34

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

shadow_7283 wrote:

gershmer wrote:

shadow_7283 wrote:

Pretty cool! It would be awesome if you could resize the scratch applet for bigger images.... (Hint, hint)

Are you asking me to examine the source and do that?

Yes please!

I'm working on it.

So far, it's not working.


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#11 2010-03-20 19:29:10

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

gershmer wrote:

shadow_7283 wrote:

gershmer wrote:


Are you asking me to examine the source and do that?

Yes please!

I'm working on it.

So far, it's not working.

Shame...

Offline

 

#12 2010-03-20 19:44:15

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

shadow_7283 wrote:

gershmer wrote:

shadow_7283 wrote:

Yes please!

I'm working on it.

So far, it's not working.

Shame...

Yeah.

But what do you see @ http://www2.gershmer.net/large/

It should be a larger ScratchApplet with a "pink" green flag.

Last edited by gershmer (2010-03-20 19:45:17)


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#13 2010-03-20 19:54:47

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

I am doing requests:
http://scratch.mit.edu/forums/viewtopic.php?id=32542


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#14 2010-03-23 17:17:58

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

B. U. M. P.


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#15 2010-03-25 05:27:00

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

I never thought of this... does this mean that we could, theroeticaly... have out own loading bars?


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#16 2010-03-25 15:02:08

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

markyparky56 wrote:

I never thought of this... does this mean that we could, theroeticaly... have out own loading bars?

Yes. But the loading bar is in the Java src, not the images... but... yeah.


I can change the text, and if I poke around more, change the loader bar.


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#17 2010-03-25 19:51:31

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

OK. I changed the text.

http://gershmer.net/LoaderTest


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#18 2010-03-25 19:59:40

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

gershmer wrote:

OK. I changed the text.

http://gershmer.net/LoaderTest

VERY cool! Can you change the loading bar (color, size, etc.)?

Offline

 

#19 2010-03-25 20:01:42

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

Nice! For the /large/ file. The applet frame is large, but the contents are still the same.  hmm


Hai.

Offline

 

#20 2010-03-26 00:12:43

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: [Tutorial] Modifying ScratchApplet.jar

gershmer wrote:

markyparky56 wrote:

I never thought of this... does this mean that we could, theroeticaly... have out own loading bars?

Yes. But the loading bar is in the Java src, not the images... but... yeah.


I can change the text, and if I poke around more, change the loader bar.

The initial loader bar, which not all of us see, is indeed Java source.
However, the blue one is part of the scratch player.


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#21 2010-03-26 08:47:23

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

How did you change the loader bar?

All I get when I try to look at the Class Files is gobbaldeygook.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#22 2010-03-26 14:58:07

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

billyedward wrote:

gershmer wrote:

markyparky56 wrote:

I never thought of this... does this mean that we could, theroeticaly... have out own loading bars?

Yes. But the loading bar is in the Java src, not the images... but... yeah.


I can change the text, and if I poke around more, change the loader bar.

The initial loader bar, which not all of us see, is indeed Java source.
However, the blue one is part of the scratch player.

Oh. lolz. I meant the source code of the applet, not the source of Java.


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#23 2010-03-26 15:05:07

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

markyparky56 wrote:

How did you change the loader bar?

All I get when I try to look at the Class Files is gobbaldeygook.

You need a java decompiler.

The best one costs money, which I am using the free trial of.

There are free alternatives that I will move to when my trial runs out (I get 10 uses, and I always have to close the app  sad )

When I find a good way that's as easy as possible, and I finish http://gershmer.net/large/ , then a full tutorial will be released, with images of how I did it.


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

#24 2010-03-26 15:16:07

waveOSBeta
Scratcher
Registered: 2009-12-08
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

JEdit Lite is pretty good.


http://internetometer.com/image/10202.png]
New signature coming soon!  smile

Offline

 

#25 2010-03-26 15:40:25

gershmer
Scratcher
Registered: 2009-02-12
Posts: 1000+

Re: [Tutorial] Modifying ScratchApplet.jar

waveOSBeta wrote:

JEdit Lite is pretty good.

I'll take a look.


Visit my site, Gershmer.net
Leave me a voicemail at my Google Voice number, [removed]

Offline

 

Board footer