This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Advanced Topics
  •  » Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

#1 2012-08-15 18:32:41

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

For those of you really following everything I'm doing, you know three things. One, I'm building Scratch Space 2 (or the new name 'Little Server That Can' aka 'LSTC'). Two, I'm coding Chat.PY 3.0 and three, I'm creating a live version of Molybdenum's 50 Bits project. (Virtual Space still needs some *serious* planning, so it will be a while till I even have a base for it.)

LSTC

This is very nearly complete. At the moment it is fully functional, and as stable and secure as I can see. Technically, I can release it at this very moment.

Chat.PY 3.0

Very nearly done. I could release it right now, but I feel it's missing some key features (of which I don't know what those are). The differences between 3.0 and 2, is that in 3, you can be in multiple rooms at the same time and that there is no Scratch Authentication (and for me, it feels very different from an admin/developer's point of view).

Bit Art

Bit Art is a live version of Molybdenum's 50 Bits project. But on a larger scale (uses the entire scratch display). A few problems with it at the moment though, is that, for some reason, I can't get the saving and loading to work without errors at the moment.

I could release Bit Art right now (I really want to so I can play/draw with you guys), but that would require taking down Chat.PY 2.0 and releasing Chat.PY 3.0, which at the moment I'm not ready for.

But the reason I make this post, is to prepare for releasing Chat.PY 3.0 and Bit Art. I would like everyone that can, to host a local server for both Chat.PY 3.0 and Bit Art, and I want them to test each one and then report your results and feedback here.

You get download the zip here. It contains LSTC, chat3.py, bit_art.py, and both projects for each of them.

Offline

 

#2 2012-08-15 19:39:00

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

I know this post should be constructive, but...

MAGNIE THIS IS SO AWESOME YOU ARE MY HERO YAYAYAYAYAYAYAYAYAYAYAYAY FOR CHAT.PY 3.0!!!!

Now that I've gotten that taken care of...

Tried Chat.PY 3.0, it works well, I haven't tried blacklisting or anything else, but I connected to the server just fine.


Fork Clamor on GitHub!

Offline

 

#3 2012-08-15 19:52:46

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

Hmm... Seems like it would be good.
But I don't really want to download anything (fear of viruses, nothing about you). Could you post some screenshots, maybe even a video, when its done?

But on a larger scale (uses the entire scratch display).

I'm ok with that. The reason my project was so small was for the ->code to have a relatively short code.


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#4 2012-08-15 20:12:40

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

@ohaider Thanks.  big_smile  I was hoping to have 3.0 be a good advance from 2. Do you think you could just test out everything that would be needed. Find out if I could just release it in a week or not.  smile

Would you also check out Bit Art?  wink

Molybdenum wrote:

Hmm... Seems like it would be good.
But I don't really want to download anything (fear of viruses, nothing about you). Could you post some screenshots, maybe even a video, when its done?

Understandable, but just so you know, as long as you don't run any unknown programs, then viruses are highly unlikely. I'll see about making a video. (I'll need to find some desktop recording software.)

Molybdenum wrote:

But on a larger scale (uses the entire scratch display).

I'm ok with that. The reason my project was so small was for the ->code to have a relatively short code.

Yeah, I figured that. I'm thinking of increasing the pixel size, and adding restrictions so it only adds a pixel if it's on the display (since it adds any clicks outside of the display). Any ideas?

Last edited by Magnie (2012-08-15 20:13:39)

Offline

 

#5 2012-08-15 20:21:00

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

Magnie wrote:

Molybdenum wrote:

Hmm... Seems like it would be good.
But I don't really want to download anything (fear of viruses, nothing about you). Could you post some screenshots, maybe even a video, when its done?

Understandable, but just so you know, as long as you don't run any unknown programs, then viruses are highly unlikely. I'll see about making a video. (I'll need to find some desktop recording software.)

Molybdenum wrote:

But on a larger scale (uses the entire scratch display).

I'm ok with that. The reason my project was so small was for the ->code to have a relatively short code.

Yeah, I figured that. I'm thinking of increasing the pixel size, and adding restrictions so it only adds a pixel if it's on the display (since it adds any clicks outside of the display). Any ideas?

@Vid
Ok.

@Restrictions.
I let the clicks be added outside in case anyone had leftover bits (to waste/discard them without ruining the picture). But if you can add as many bits as you want for your script, then I suppose that would be good.

Last edited by Molybdenum (2012-08-15 20:21:41)


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#6 2012-08-15 20:46:12

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

Molybdenum wrote:

@Restrictions.
I let the clicks be added outside in case anyone had leftover bits (to waste/discard them without ruining the picture). But if you can add as many bits as you want for your script, then I suppose that would be good.

There's technically an "infinite" number of bits on an infinite display field. 99999- xy through 99999 xy.  tongue

The main problem with this though, is initially loading the image (or whenever you click the green flag). To send each pixel at a speed that Scratch can handle, is about 0.1. So it will take from 1 to 5 minutes to load the image (it takes about 30 seconds to load the images I've been testing, which are just random pixels and a single word like "Test" and "Hi!"). So that'll be the only limitation. Otherwise, the speed in placing and removing a pixel is at a pretty comfortable level.

Offline

 

#7 2012-08-15 20:59:06

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

So I'm not the only one discarding thir server, completely rewriting it, and giving it a cooler name? I'd like a bit more info on LSTC.


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#8 2012-08-15 22:17:01

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

bobbybee wrote:

So I'm not the only one discarding thir server, completely rewriting it, and giving it a cooler name? I'd like a bit more info on LSTC.

What sort of info? It has all the same features as Scratch Space, but just a different plugin design so it's more expandable (since Scratch Space's design wouldn't support Virtual Space very easily).

Molybdenum: I actually think I have a fix to the slow initial image loader. I can just create two pixel displays. Cutting the time in half (if I program the server correctly).

Another Thought... I might also be able to make this other game, but it would require a lot of sprites...

Last edited by Magnie (2012-08-16 10:03:37)

Offline

 

#9 2012-08-16 11:48:08

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

Magnie wrote:

Molybdenum wrote:

@Restrictions.
I let the clicks be added outside in case anyone had leftover bits (to waste/discard them without ruining the picture). But if you can add as many bits as you want for your script, then I suppose that would be good.

There's technically an "infinite" number of bits on an infinite display field. 99999- xy through 99999 xy.  tongue

The main problem with this though, is initially loading the image (or whenever you click the green flag). To send each pixel at a speed that Scratch can handle, is about 0.1. So it will take from 1 to 5 minutes to load the image (it takes about 30 seconds to load the images I've been testing, which are just random pixels and a single word like "Test" and "Hi!"). So that'll be the only limitation. Otherwise, the speed in placing and removing a pixel is at a pretty comfortable level.

Hmm... Don't have much to say, but maybe you can tell people to turn on turbo?


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#10 2012-08-16 15:05:42

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

Molybdenum wrote:

Magnie wrote:

There's technically an "infinite" number of bits on an infinite display field. 99999- xy through 99999 xy.  tongue

The main problem with this though, is initially loading the image (or whenever you click the green flag). To send each pixel at a speed that Scratch can handle, is about 0.1. So it will take from 1 to 5 minutes to load the image (it takes about 30 seconds to load the images I've been testing, which are just random pixels and a single word like "Test" and "Hi!"). So that'll be the only limitation. Otherwise, the speed in placing and removing a pixel is at a pretty comfortable level.

Hmm... Don't have much to say, but maybe you can tell people to turn on turbo?

Turbo was actually slower during testing.  tongue

Offline

 

#11 2012-08-16 15:18:02

lallaway12
Scratcher
Registered: 2012-01-04
Posts: 500+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

Magnie wrote:

For those of you really following everything I'm doing, you know three things. One, I'm building Scratch Space 2 (or the new name 'Little Server That Can' aka 'LSTC'). Two, I'm coding Chat.PY 3.0 and three, I'm creating a live version of Molybdenum's 50 Bits project. (Virtual Space still needs some *serious* planning, so it will be a while till I even have a base for it.)

LSTC

This is very nearly complete. At the moment it is fully functional, and as stable and secure as I can see. Technically, I can release it at this very moment.

Chat.PY 3.0

Very nearly done. I could release it right now, but I feel it's missing some key features (of which I don't know what those are). The differences between 3.0 and 2, is that in 3, you can be in multiple rooms at the same time and that there is no Scratch Authentication (and for me, it feels very different from an admin/developer's point of view).

Bit Art

Bit Art is a live version of Molybdenum's 50 Bits project. But on a larger scale (uses the entire scratch display). A few problems with it at the moment though, is that, for some reason, I can't get the saving and loading to work without errors at the moment.

I could release Bit Art right now (I really want to so I can play/draw with you guys), but that would require taking down Chat.PY 2.0 and releasing Chat.PY 3.0, which at the moment I'm not ready for.

But the reason I make this post, is to prepare for releasing Chat.PY 3.0 and Bit Art. I would like everyone that can, to host a local server for both Chat.PY 3.0 and Bit Art, and I want them to test each one and then report your results and feedback here.

You get download the zip here. It contains LSTC, chat3.py, bit_art.py, and both projects for each of them.

How can I host chat 3.0 and bit art?


http://i49.tinypic.com/2re4ied.png

Offline

 

#12 2012-08-16 15:57:17

Molybdenum
Scratcher
Registered: 2012-06-17
Posts: 1000+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

Magnie wrote:

Molybdenum wrote:

Magnie wrote:

There's technically an "infinite" number of bits on an infinite display field. 99999- xy through 99999 xy.  tongue

The main problem with this though, is initially loading the image (or whenever you click the green flag). To send each pixel at a speed that Scratch can handle, is about 0.1. So it will take from 1 to 5 minutes to load the image (it takes about 30 seconds to load the images I've been testing, which are just random pixels and a single word like "Test" and "Hi!"). So that'll be the only limitation. Otherwise, the speed in placing and removing a pixel is at a pretty comfortable level.

Hmm... Don't have much to say, but maybe you can tell people to turn on turbo?

Turbo was actually slower during testing.  tongue

Lol. That happens with some projects  tongue


"The Enrichment Center is required to remind you that you will be baked, and then there will be cake."
(|Balls and Platforms: Stay on!|) (|NaOS-H: An operating system... Or is it?|)

Offline

 

#13 2012-08-16 16:09:02

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

lallaway12 wrote:

How can I host chat 3.0 and bit art?

1. Install Python (if it's not already installed)
2. Download the .zip and extract it
3. Run server.py
4. Test it (open Scratch, enable Mesh, connect to 127.0.0.1) and do some simple tests. Chat.PY 3.0: post a couple messages. Bit Art: Place a few pixels.
5. Find your internal IP address for the computer you are hosting the server on. Windows: Open the command prompt and type 'ipconfig' and look for inet addr and . Remember that. (On Linux and Mac, type 'ifconfig).
6. Open a web-browser, copy your inet address and replace the last number with a '1' (no quotes). Then login.
7. In your router port forward 42001 to the IP you copied. (TCP)
8. Go to http://www.whatismyip.com/ and then you can tell people to connect to that IP.
9. Leave the computer on 24/7 and do maintenance on it at least once a week.  tongue  Unless you are very sure nothing will go wrong (like me).  smile

For security reasons, I suggest looking for a service (domain preferably) that hides your real IP, unless you are hosting the server on a VPS. Like http://no-ip.com.  smile

Since home IP address (generally) change at least once a week, you'll need to either update your IP manually every time it changes or write a script to do so.

Offline

 

#14 2012-08-16 18:18:50

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

Do any of the commands for C2 work for C3? If so, which ones, so that I can test it to my utmost ability.

When I type "/" nothing happens, so I'm not sure what the syntax would be either.


EDIT:
Tried out the Bit Art thingy and I LOVE IT SOOOOOOOO MUCH I CAN'T WAIT TO DRAW WITH EVERYONE!

Last edited by ohaiderstudios (2012-08-16 18:46:26)


Fork Clamor on GitHub!

Offline

 

#15 2012-08-16 19:16:23

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

ohaiderstudios wrote:

Do any of the commands for C2 work for C3? If so, which ones, so that I can test it to my utmost ability.

When I type "/" nothing happens, so I'm not sure what the syntax would be either.

It's /cmd [arg1] [arg2]  smile  No / enter join enter channel enter. Just /join channel.  smile

ohaiderstudios wrote:

EDIT:
Tried out the Bit Art thingy and I LOVE IT SOOOOOOOO MUCH I CAN'T WAIT TO DRAW WITH EVERYONE!

Yeah, lots of thanks to Molybdenum for the idea, now you can see why I want to get this ready ASAP!  big_smile

Offline

 

#16 2012-08-16 22:48:30

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

Magnie wrote:

ohaiderstudios wrote:

EDIT:
Tried out the Bit Art thingy and I LOVE IT SOOOOOOOO MUCH I CAN'T WAIT TO DRAW WITH EVERYONE!

Yeah, lots of thanks to Molybdenum for the idea, now you can see why I want to get this ready ASAP!  big_smile

Can you make it more of a freestyle drawing thing? Because it gets tiring changing the image bit by bit.


Fork Clamor on GitHub!

Offline

 

#17 2012-08-17 14:48:39

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

ohaiderstudios wrote:

Magnie wrote:

ohaiderstudios wrote:

EDIT:
Tried out the Bit Art thingy and I LOVE IT SOOOOOOOO MUCH I CAN'T WAIT TO DRAW WITH EVERYONE!

Yeah, lots of thanks to Molybdenum for the idea, now you can see why I want to get this ready ASAP!  big_smile

Can you make it more of a freestyle drawing thing? Because it gets tiring changing the image bit by bit.

I can change the client to do that, but making a truly freestyle drawing game doesn't work (I tried it with Mesh, and you can't draw circles with it for some weird reason).

Offline

 

#18 2012-08-17 14:56:18

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

Magnie wrote:

ohaiderstudios wrote:

Magnie wrote:


Yeah, lots of thanks to Molybdenum for the idea, now you can see why I want to get this ready ASAP!  big_smile

Can you make it more of a freestyle drawing thing? Because it gets tiring changing the image bit by bit.

I can change the client to do that, but making a truly freestyle drawing game doesn't work (I tried it with Mesh, and you can't draw circles with it for some weird reason).

Hmmm... hmm  Oh well, it's just a little too hard to actually do anything with it. at least make it so that you can change pixels just by dragging and clicking. instead of individual clicking.

Oh, and also, it's kinda lonely over on Chat.PY 2.0, so if anyone would like to join me, we can talk about this in real time!  tongue


Fork Clamor on GitHub!

Offline

 

#19 2012-08-17 19:53:49

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

ohaiderstudios wrote:

Magnie wrote:

ohaiderstudios wrote:


Can you make it more of a freestyle drawing thing? Because it gets tiring changing the image bit by bit.

I can change the client to do that, but making a truly freestyle drawing game doesn't work (I tried it with Mesh, and you can't draw circles with it for some weird reason).

Hmmm... hmm  Oh well, it's just a little too hard to actually do anything with it. at least make it so that you can change pixels just by dragging and clicking. instead of individual clicking.

Oh, and also, it's kinda lonely over on Chat.PY 2.0, so if anyone would like to join me, we can talk about this in real time!  tongue

Yeah, I can probably add that feature.

Offline

 

#20 2012-08-17 21:14:25

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

Magnie wrote:

ohaiderstudios wrote:

Magnie wrote:

I can change the client to do that, but making a truly freestyle drawing game doesn't work (I tried it with Mesh, and you can't draw circles with it for some weird reason).

Hmmm... hmm  Oh well, it's just a little too hard to actually do anything with it. at least make it so that you can change pixels just by dragging and clicking. instead of individual clicking.

Oh, and also, it's kinda lonely over on Chat.PY 2.0, so if anyone would like to join me, we can talk about this in real time!  tongue

Yeah, I can probably add that feature.

You could also make a button that toggles white/black instead of making it so that clicking switches the color

EDIT: Sorry for all the suggestions, but I'm just giving you my honest opinion as a consumer  tongue

Last edited by ohaiderstudios (2012-08-17 21:15:02)


Fork Clamor on GitHub!

Offline

 

#21 2012-08-18 09:46:11

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

ohaiderstudios wrote:

Magnie wrote:

ohaiderstudios wrote:


Hmmm... hmm  Oh well, it's just a little too hard to actually do anything with it. at least make it so that you can change pixels just by dragging and clicking. instead of individual clicking.

Oh, and also, it's kinda lonely over on Chat.PY 2.0, so if anyone would like to join me, we can talk about this in real time!  tongue

Yeah, I can probably add that feature.

You could also make a button that toggles white/black instead of making it so that clicking switches the color

EDIT: Sorry for all the suggestions, but I'm just giving you my honest opinion as a consumer  tongue

It's fine. I needed suggestions.  big_smile

Offline

 

#22 2012-08-18 11:06:07

zippynk
Scratcher
Registered: 2011-07-23
Posts: 500+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

/help isn't working (if I remembered the command right).

p.s.

Ohaider wrote:

Oh, and also, it's kinda lonely over on Chat.PY 2.0


https://dl.dropbox.com/u/60598636/trifocal_interlude_soundcloud_button.png

Offline

 

#23 2012-08-18 11:56:08

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

zippynk wrote:

/help isn't working (if I remembered the command right).

p.s.

Ohaider wrote:

Oh, and also, it's kinda lonely over on Chat.PY 2.0

I'm on now, I'm not sure if you're idling or a ghost  tongue

EDIT: And also, my sig...

Last edited by ohaiderstudios (2012-08-18 11:58:47)


Fork Clamor on GitHub!

Offline

 

#24 2012-08-18 12:15:06

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

zippynk: I haven't made /help yet.

ohaider: Lol...

Also, I've updated Bit Art. You should be able to hold and drag the mouse to draw, but it hasn't exactly been working for me. I've also increased the size of each dot from 4 to 6. Just re-download the zip. I haven't updated any of the server-side code yet.

Offline

 

#25 2012-08-18 18:11:09

ohaiderstudios
Scratcher
Registered: 2010-10-31
Posts: 100+

Re: Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

http://blocks.scratchr.org/API.php?action=random&return=image&link1=https://dl.dropbox.com/u/51363874/BitArt1.gif

Magnie and me on BitArt...random musings.

EDIT:
The thing on your left is a kingdom...but the roads got kinda damaged  tongue

Last edited by ohaiderstudios (2012-08-18 18:17:31)


Fork Clamor on GitHub!

Offline

 
  • Index
  •  » Advanced Topics
  •  » Development of the Little Server That Can (Chat.PY 3.0, Bit Art, etc)

Board footer