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

#1 2010-10-28 15:07:51

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

Scratch MMOG with JAVA

I have made a Scratch Applet that connects to Scratch and you can see variables and broadcast messages. I will soon make the applet connect to other ones and make a MMOG with it. The applet is here. You need to enable sensor connections for it to work.


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

Offline

 

#2 2010-10-28 15:13:38

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Scratch MMOG with JAVA

nice!
p.s. whats a MMOG

Offline

 

#3 2010-10-28 15:14:39

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Scratch MMOG with JAVA

Hey, MathWizz, can you tell me how to connect to a MySQL database with Java? It would be useful for something I'm working on at the moment.


/* No comment */

Offline

 

#4 2010-10-28 15:16:12

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

Re: Scratch MMOG with JAVA

ProgrammingFreak wrote:

nice!
p.s. whats a MMOG

Massively Multilayer Online Game


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

Offline

 

#5 2010-10-28 15:19:49

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Scratch MMOG with JAVA

It works!
[blocks]<when I receive[ java says hi ] >
<say[ Hello Java! ] >[/blocks]

Broadcast:
java says hi

EDIT: I'm not spamming, that's actually what I did.

Last edited by TheSuccessor (2010-10-28 15:20:55)


/* No comment */

Offline

 

#6 2010-10-28 15:20:25

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: Scratch MMOG with JAVA

can someone teach me java?

Offline

 

#7 2010-10-28 15:21:48

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Scratch MMOG with JAVA

ProgrammingFreak wrote:

can someone teach me java?

Library books can. That's where I learnt almost all of the programming languages I know.


/* No comment */

Offline

 

#8 2010-10-28 15:22:01

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

Re: Scratch MMOG with JAVA

TheSuccessor wrote:

Hey, MathWizz, can you tell me how to connect to a MySQL database with Java? It would be useful for something I'm working on at the moment.

Hmm... Try this.


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

Offline

 

#9 2010-10-28 15:23:42

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

Re: Scratch MMOG with JAVA

MathWizz could you make this using PHP/JScript/HTML4?

Also I could use some instructions.

BUG:
on IE I cant get it loading properly


You can now reach me on Twitter @johnnydean1_

Offline

 

#10 2010-10-28 15:23:53

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Scratch MMOG with JAVA

Thanks.  smile


/* No comment */

Offline

 

#11 2010-10-28 15:24:58

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

Re: Scratch MMOG with JAVA

ProgrammingFreak wrote:

can someone teach me java?

Google it!


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

Offline

 

#12 2010-10-28 15:26:43

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

Re: Scratch MMOG with JAVA

johnnydean1 wrote:

MathWizz could you make this using PHP/JScript/HTML4?

Also I could use some instructions.

BUG:
on IE I cant get it loading properly

I tried with PHP but I couldn't get it to connect. I'll try JS sometime...


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

Offline

 

#13 2010-10-28 15:29:32

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

Re: Scratch MMOG with JAVA

Ok. What does Update: do?


You can now reach me on Twitter @johnnydean1_

Offline

 

#14 2010-10-28 15:30:57

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

Re: Scratch MMOG with JAVA

Oh, can you post your applet as a file please. I would like to see how it works.


You can now reach me on Twitter @johnnydean1_

Offline

 

#15 2010-10-28 15:36:15

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Scratch MMOG with JAVA


/* No comment */

Offline

 

#16 2010-10-28 17:47:29

s_federici
Scratcher
Registered: 2007-12-18
Posts: 500+

Re: Scratch MMOG with JAVA

Would you mind sharing the source code of your very nice applet? Thanks in advance  smile

Offline

 

#17 2010-10-28 18:37:53

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

Re: Scratch MMOG with JAVA

s_federici wrote:

Would you mind sharing the source code of your very nice applet? Thanks in advance  smile

Not yet... I'm still working on it.  smile

EDIT: Fixed the glitch in IE!

Last edited by MathWizz (2010-10-28 20:18:00)


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

Offline

 

#18 2010-10-29 03:10:05

s_federici
Scratcher
Registered: 2007-12-18
Posts: 500+

Re: Scratch MMOG with JAVA

MathWizz wrote:

Not yet... I'm still working on it.  smile

Ok. I can wait  smile

Offline

 

#19 2010-10-29 09:19:32

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Scratch MMOG with JAVA

TheSuccessor wrote:

Go here


/* No comment */

Offline

 

#20 2010-10-29 12:31:40

s_federici
Scratcher
Registered: 2007-12-18
Posts: 500+

Re: Scratch MMOG with JAVA

TheSuccessor wrote:

TheSuccessor wrote:

Go here

Ok, but this is only the compiled version (class files) that I can run locally. I would like to look inside the code  smile

Offline

 

#21 2010-10-29 12:34:59

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Scratch MMOG with JAVA

Use JD-GUI.


/* No comment */

Offline

 

#22 2010-10-29 18:31:45

s_federici
Scratcher
Registered: 2007-12-18
Posts: 500+

Re: Scratch MMOG with JAVA

TheSuccessor wrote:

Use JD-GUI.

VERY nice...!

Offline

 

#23 2010-10-31 22:45:13

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

Re: Scratch MMOG with JAVA

*BUMP* Most of the bugs are gone and the source is released.


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

Offline

 

#24 2010-11-01 05:01:58

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

Re: Scratch MMOG with JAVA

Nice but can you make it into a MMOG server?


You can now reach me on Twitter @johnnydean1_

Offline

 

#25 2010-11-01 09:28:20

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

Re: Scratch MMOG with JAVA

johnnydean1 wrote:

Nice but can you make it into a MMOG server?

I just got the part that communicates with scratch done. Now for the server...  smile


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

Offline

 

Board footer