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

#1 2010-05-22 05:07:17

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

A few questions..

Could somebody please explain these.

How does Scratch become the online player ( in to Java )?

It has a .jar file, in which it reads the binary of the Scratch project and converts it into the player.

Could you recode Scratch to only run in the Java player?

It may be possible.

Can you change the player?

Yes, you need to know java though. You change the .jar extention to .zip and then extract. You then import this in to a Java editing program.

I also belive that Panther has done this.

Can you put it on a mobile phone, especialy touch screen. As it is coded in .jar?

No answer.

Last edited by johnnydean1 (2010-05-23 15:56:28)


You can now reach me on Twitter @johnnydean1_

Offline

 

#2 2010-05-22 05:12:03

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

Re: A few questions..

Try reading this: http://scratch.mit.edu/forums/viewtopic.php?id=191 its not directly about your question, but it may answer one of your questions.


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

 

#3 2010-05-22 12:41:18

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

Re: A few questions..

Oh, the scratch player is made in Java dn LOGO, which is sort of linked. If mathwhizz will come here he should be able to explain.


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

 

#4 2010-05-22 12:53:07

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: A few questions..

The java player just reads the actual Scratch project file in binary, just like Scratch does.


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#5 2010-05-22 12:55:58

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: A few questions..

JSO wrote:

The java player just reads the actual Scratch project file in binary, just like Scratch does.

To put it simply in the topic post:

Read as binary.


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#6 2010-05-22 13:03:38

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: A few questions..

Ok so anyway to recode it to only run in player?
And
Anyway to edit the player?


You can now reach me on Twitter @johnnydean1_

Offline

 

#7 2010-05-22 13:42:58

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

Re: A few questions..

johnnydean1 wrote:

Ok so anyway to recode it to only run in player?
And
Anyway to edit the player?

Yeah, download the javaplayer from that link i gave you. change the file extension to .zip, extract the contents and find a good java decompiler. Hope you know java and LOGO.


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

 

#8 2010-05-22 14:05:42

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: A few questions..

Ok I know a bit so Ill try


You can now reach me on Twitter @johnnydean1_

Offline

 

#9 2010-05-22 14:10:23

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

Re: A few questions..

johnnydean1 wrote:

Ok I know a bit so Ill try

Java, not javascript. Javascript is for webpages.


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

 

#10 2010-05-22 14:22:19

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: A few questions..

I can do it, but can I keep it this way perminatly?


You can now reach me on Twitter @johnnydean1_

Offline

 

#11 2010-05-22 14:29:01

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

Re: A few questions..

johnnydean1 wrote:

I can do it, but can I keep it this way perminatly?

Just remember to save the file, then you add the file extension .jar to the end of it. then it should work.


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

 

#12 2010-05-22 16:27:45

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: A few questions..

Ok cool. Could we then make this into flash?


You can now reach me on Twitter @johnnydean1_

Offline

 

#13 2010-05-22 16:45:24

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: A few questions..

johnnydean1 wrote:

Ok cool. Could we then make this into flash?

That's not possible as of now, though I do seem to remember somebody programming a beta of a Flash player for Scratch projects a while back. I'm not sure what happened to that.

However, Scratch 2.0 - an upcoming version of Scratch - will be entirely Flash-based.

Last edited by coolstuff (2010-05-22 16:45:38)

Offline

 

#14 2010-05-22 16:53:59

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: A few questions..

I understand that, but is there no java to flash converter?


You can now reach me on Twitter @johnnydean1_

Offline

 

#15 2010-05-22 17:23:03

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: A few questions..

johnnydean1 wrote:

I understand that, but is there no java to flash converter?

Nope. You'll have to stick with Java for now.

And it should be noted that each project doesn't convert to Java. It converts to a format which the Java applet reads, and then executes.

Last edited by coolstuff (2010-05-22 17:23:13)

Offline

 

#16 2010-05-22 17:50:10

krackers
Scratcher
Registered: 2010-05-08
Posts: 61

Re: A few questions..

can you give directions on how you changed it to jar?

Offline

 

#17 2010-05-22 18:00:28

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: A few questions..

krackers wrote:

can you give directions on how you changed it to jar?

You can't. The online player is the same for all projects - it just runs the Scratch file, a bit like an application opening a file. If you want to put it on another site, you can always embed it (there's a link in the sidebar).

Offline

 

#18 2010-05-22 18:13:21

krackers
Scratcher
Registered: 2010-05-08
Posts: 61

Re: A few questions..

Is there any way to run it as a jar file on your computer?

Offline

 

#19 2010-05-22 18:19:27

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: A few questions..

krackers wrote:

Is there any way to run it as a jar file on your computer?

Maybe this topic will answer your question:
http://scratch.mit.edu/forums/viewtopic.php?pid=763#p763
It shows how to embed it without actually uploading it to the website first. You might be able to tweak that to make it run directly from your computer - maybe you could make a webpage? I'm afraid that's the extent of my knowledge, but you may want to contact the Scratch team for more information. While the topic doesn't address your question directly, it may be very helpful.

Offline

 

#20 2010-05-23 12:38:15

krackers
Scratcher
Registered: 2010-05-08
Posts: 61

Re: A few questions..

Any way to make it use panther instead of scratch to run? They're both technically the same, but panther has blocks that scratch can't interpret...

Offline

 

#21 2010-05-23 12:58:57

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: A few questions..

krackers wrote:

Any way to make it use panther instead of scratch to run? They're both technically the same, but panther has blocks that scratch can't interpret...

That's a good question, maybe the Panther team can work on that.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#22 2010-05-23 13:04:45

krackers
Scratcher
Registered: 2010-05-08
Posts: 61

Re: A few questions..

In fact, I would rather an exe that a jar file...

Offline

 

#23 2010-05-23 15:52:07

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: A few questions..

Well with .jar you may be able to change the code slightly to fit the screen, and then use it on phones.

Can you imagine Scratch on your phone, maybe touchscreen?

Would it work??


You can now reach me on Twitter @johnnydean1_

Offline

 

#24 2010-05-23 15:57:19

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: A few questions..

MATHWIZZ are you able to help?


You can now reach me on Twitter @johnnydean1_

Offline

 

#25 2010-05-24 11:10:36

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: A few questions..

H
e
y

M
A
T
H
W
I
Z
Z
!


You can now reach me on Twitter @johnnydean1_

Offline

 

Board footer