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)

#26 2012-08-18 18:17:48

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

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

I'd like to clarify, that it was not that broken until we decided to click the green flag.

Offline

 

#27 2012-08-18 18:18:33

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:

I'd like to clarify, that it was not that broken until we decided to click the green flag.

True. But we're fixing that now. (And by we I mean magnie)


Fork Clamor on GitHub!

Offline

 

#28 2012-08-18 18:20:32

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:

I'd like to clarify, that it was not that broken until we decided to click the green flag.

True. But we're fixing that now. (And by we I mean magnie)

Fixing the loading problem, not our creations. Cause they, technically, never broke.

Offline

 

#29 2012-08-18 18:31:33

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

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

ohaiderstudios wrote:

http://blocks.scratchr.org/API.php?acti … itArt1.gif

Magnie and me on BitArt...random musings.

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

Woah. That is cool.

EDIT:

Magnie wrote:

ohaiderstudios wrote:

Magnie wrote:

I'd like to clarify, that it was not that broken until we decided to click the green flag.

True. But we're fixing that now. (And by we I mean magnie)

Fixing the loading problem, not our creations. Cause they, technically, never broke.

Well, ohai said that roads were damaged  tongue

Last edited by Molybdenum (2012-08-18 18:32:50)


"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

 

#30 2012-08-18 18:42:58

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

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

Molybdenum wrote:

ohaiderstudios wrote:

http://blocks.scratchr.org/API.php?acti … itArt1.gif

Magnie and me on BitArt...random musings.

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

Woah. That is cool.

EDIT:

Magnie wrote:

ohaiderstudios wrote:


True. But we're fixing that now. (And by we I mean magnie)

Fixing the loading problem, not our creations. Cause they, technically, never broke.

Well, ohai said that roads were damaged  tongue

It appears that the roads are damaged  tongue


Fork Clamor on GitHub!

Offline

 

#31 2012-08-18 18:45:01

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

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

By the way, what do you think of this project: Here
(Its not mine) This is basically the same thing as my 50 Bits. Its got positive replies, and even got into the SDS!


"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

 

#32 2012-08-18 19:16:54

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:

By the way, what do you think of this project: Here
(Its not mine) This is basically the same thing as my 50 Bits. Its got positive replies, and even got into the SDS!

Technically it's a remix of your's.  smile

Offline

 

#33 2012-08-18 19:24:50

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:

By the way, what do you think of this project: Here
(Its not mine) This is basically the same thing as my 50 Bits. Its got positive replies, and even got into the SDS!

Technically it's a remix of your's.  smile

Technically, but not functionally.

This could be 1s1s, but I didn't want to make a HUGE script, so I broke it into smaller pieces.

He probably just did it to get into SDS.
Anyway, back on-topic. Would it be possible to make a players online thing? Or maybe a list version of it?


"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

 

#34 2012-08-18 20:08:50

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:

Molybdenum wrote:

By the way, what do you think of this project: Here
(Its not mine) This is basically the same thing as my 50 Bits. Its got positive replies, and even got into the SDS!

Technically it's a remix of your's.  smile

Technically, but not functionally.

This could be 1s1s, but I didn't want to make a HUGE script, so I broke it into smaller pieces.

He probably just did it to get into SDS.
Anyway, back on-topic. Would it be possible to make a players online thing? Or maybe a list version of it?

It would be, but there isn't any practical reason to do so.

Offline

 

#35 2012-08-18 22:20:05

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

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

BitArt is soooo addicting! Magnie had to keep telling me to do my schoolwork because I was drawing faces on it.

I CAAAAN'T WAAAAIT UNTTIIIIIL IT IS OFFFFFFFICCIALLLLY RELLLLLLLEEEEEASED!


Fork Clamor on GitHub!

Offline

 

#36 2012-08-18 23:34:00

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

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

I can't use chat.PY 3.0 or bit art for some reason.

p.s. like ohaider said at a different time, chat.py 2.0 is lonely right now


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

Offline

 

#37 2012-08-19 07:18:27

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

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

What if you could play bit art in 3.0 rooms, and talk as you draw?


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

Offline

 

#38 2012-08-19 09:25:18

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

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

bobbybee wrote:

What if you could play bit art in 3.0 rooms, and talk as you draw?

+42

ohaiderstudios wrote:

BitArt is soooo addicting! Magnie had to keep telling me to do my schoolwork because I was drawing faces on it.

I CAAAAN'T WAAAAIT UNTTIIIIIL IT IS OFFFFFFFICCIALLLLY RELLLLLLLEEEEEASED!

Lol?


"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

 

#39 2012-08-19 10:41:03

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

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

bobbybee wrote:

What if you could play bit art in 3.0 rooms, and talk as you draw?

+inf


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

Offline

 

#40 2012-08-19 10:49:27

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

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

zippynk wrote:

bobbybee wrote:

What if you could play bit art in 3.0 rooms, and talk as you draw?

+inf

+Ack(G64,G64)
(let's start a mathematical support thing  tongue )

By the way, someone should make a video of BitArt to get more people to play it (but we need a lot of people on at the time).

Last edited by Molybdenum (2012-08-19 10:50:40)


"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

 

#41 2012-08-19 15:20:47

playzooki
Scratcher
Registered: 2012-02-07
Posts: 100+

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

the server is giving an error


I iz a sig. So there. CLICK ME ITS SO IMPORTANT!!!!

Offline

 

#42 2012-08-20 09:29:37

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

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

I think the server is down for Bit Art and Chat.PY 3.0. It wasn't meant to be on 24/7...

Also, I've been trying for hours, and I can't seem to write a script to create a decent image loader in Python. I've got the Scratch one made (but it could be modified to run faster). If you could help, the zip is here.

Offline

 

#43 2012-08-20 09:50:14

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

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

Are you trying to load real, live image files? For Kurt I used the PyPNG module, which is reasonably easy to use, and you can get tuple (r, g, b [, a]) values for each pixel. Is that the kind of thing you're looking for?

Last edited by blob8108 (2012-08-20 09:50:32)


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#44 2012-08-20 09:57:45

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

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

*reads code*
Interesting image structure: self.art = {'0' : {'0' : 1}} # {'x' : {'y' : int}}

Dealing with infinite images is *hard*. I'm not surprised you're not finding it easy. Although I'm not sure I quite understand what you're trying to do...


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#45 2012-08-20 09:58:29

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

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

blob8108 wrote:

Are you trying to load real, live image files? For Kurt I used the PyPNG module, which is reasonably easy to use, and you can get tuple (r, g, b [, a]) values for each pixel. Is that the kind of thing you're looking for?

I'm trying to send an image from Python to Scratch and have Scratch display it. So no, not real images.  smile

Last edited by Magnie (2012-08-20 09:59:54)

Offline

 

#46 2012-08-20 10:00:16

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

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

Ah, okay.

Why not send it as a single variable update?

user['send_sensor']('whole', '0101111100011110000001...'), or something like that. You could even compress it as base64, or something like that...

Magnie wrote:

So no, not real images.  smile

Shame. It would be quite a nice way of storing them...

Last edited by blob8108 (2012-08-20 10:00:46)


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#47 2012-08-20 10:02:51

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

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

blob8108 wrote:

Ah, okay.

Why not send it as a single variable update?

user['send_sensor']('whole', '0101111100011110000001...'), or something like that. You could even compress it as base64, or something like that...

But how would I tell Scratch where each pixel is (and get it to load 100+ pixels in less than a minute)?

blob8108 wrote:

Magnie wrote:

So no, not real images.  smile

Shame. It would be quite a nice way of storing them...

Storing them might be an interesting idea. I haven't done much with images other than with Pygame.

Offline

 

#48 2012-08-20 10:09:22

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

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

Magnie wrote:

blob8108 wrote:

Why not send it as a single variable update?

user['send_sensor']('whole', '0101111100011110000001...'), or something like that. You could even compress it as base64, or something like that...

But how would I tell Scratch where each pixel is (and get it to load 100+ pixels in less than a minute)?

The stage is a fixed size, so why can't you only store/send an 80x60 image?


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#49 2012-08-20 10:09:33

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

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

This is quite interesting because I was making this last week. xD


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

Offline

 

#50 2012-08-20 10:18:22

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

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

I don't think you understand how (most) image formats formats work. Images do not specify where pixels are with x and y coords, they infer it from the index in the array. For example:

Code:

2 // width
2 // height

//r   g   b
0   127 255
255 0   0  
0   255 0  
0   0   255

This would be a list of bytes: array = [2, 2, 0, 127, 255, 255, 0, 0, 0, 255, 0, 0, 0, 255]
The values of the first pixel are stored from items 3 - 6 (the list starts at index 1).
This could be converted into binary, base64, or sent raw (decoded with a little hack I found.  wink )

Last edited by MathWizz (2012-08-20 10:18:48)


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

Offline

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

Board footer