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)

#51 2012-08-20 10:32:07

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

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

MathWizz wrote:

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 )

I think Magnie is using an infinite grid, so it has to specify where points are, you can't just say x=infinity, y=infinity.

Last edited by Molybdenum (2012-08-20 10:59:58)


"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

 

#52 2012-08-20 10:44:41

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

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

Molybdenum wrote:

MathWizz wrote:

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 )

I think Magnie is using an infinite grid, so it has to specify where points are, you can't just say x=infinity, y=infinity.

That changes things...  hmm


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

Offline

 

#53 2012-08-20 14:08:21

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

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

blob8108: I wanted it to be flexible, but oh well. 80x60 Black & White (possibly colored later in the future) image it is. The main problem is loading it on Scratch.

MathWizz wrote:

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

Cool! I tried copying and got this:

Code:

javascript: and data: URIs typed or pasted in the address bar are disabled to prevent social engineering attacks.
Developers can enable them for testing purposes by toggling the "noscript.allowURLBarJS" preference.

xD

2nd Post: Doing that was one of the ideas that came up, but I want to send as little information as possible to Scratch. So if there is a blank column, I want it to skip that, not go through 60 zeros in a string. So what I had done with the new "format" was use these characters:

Code:

1234567890-=qwertyuiopasdfghjklzxcvbnm!@#$%^&*()_+{}|:"<>?~`

So 1 would be 180y, 2 would be 174y, etc. All the way down to -180y. Then a space would mean "change x by 6" and "set y to 180" and go through that same set of characters for each column.

Molybdenum: I was using an infinite grid, but now I think I'm going to be stuck with 80x60 grid.  hmm

Offline

 

#54 2012-08-20 14:17:09

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:

blob8108: I wanted it to be flexible, but oh well. 80x60 Black & White (possibly colored later in the future) image it is. The main problem is loading it on Scratch.

MathWizz wrote:

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

Cool! I tried copying and got this:

Code:

javascript: and data: URIs typed or pasted in the address bar are disabled to prevent social engineering attacks.
Developers can enable them for testing purposes by toggling the "noscript.allowURLBarJS" preference.

xD

2nd Post: Doing that was one of the ideas that came up, but I want to send as little information as possible to Scratch. So if there is a blank column, I want it to skip that, not go through 60 zeros in a string. So what I had done with the new "format" was use these characters:

Code:

1234567890-=qwertyuiopasdfghjklzxcvbnm!@#$%^&*()_+{}|:"<>?~`

So 1 would be 180y, 2 would be 174y, etc. All the way down to -180y. Then a space would mean "change x by 6" and "set y to 180" and go through that same set of characters for each column.

Molybdenum: I was using an infinite grid, but now I think I'm going to be stuck with 80x60 grid.  hmm

That's still alright, I guess.


"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

 

#55 2012-08-23 15:53:27

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

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?

when gf clicked
forever add infinity!!!!!!!!!


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

Offline

 

#56 2012-08-24 15:54:47

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

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

Is there a chatbomb test room in chat py 3?


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

Offline

 

#57 2012-08-24 17:16:41

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

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

playzooki wrote:

Is there a chatbomb test room in chat py 3?

No.

Offline

 

#58 2012-08-27 15:18:19

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

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

The thing is is that any old hacker could chatbomb this and it needs testing for that.


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

Offline

 

#59 2012-08-27 16:33:20

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

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

playzooki wrote:

The thing is is that any old hacker could chatbomb this and it needs testing for that.

I'll only be doing local chatbomb testing.

How are you guys bombing the server anyways?

Last edited by Magnie (2012-08-27 17:11:34)

Offline

 

#60 2012-08-27 23:58:51

thebriculator
Scratcher
Registered: 2011-07-11
Posts: 500+

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

You should be able to make a private room in Chat.PY for conferences and collabs and stuff. You'd only be able to get in if you knew the name.


And... I don't know if this counts as a chatbomb, but here's what I tried on danger:

repeat (100)//or alot
broadcast (join [:send ](item (any v) of [words v]))
end
where "words" is just a 250-word word bank

Last edited by thebriculator (2012-08-27 23:59:05)


.     http://tiny.cc/2cwgpw    http://tiny.cc/viwgpw    http://tiny.cc/iwwgpw

Offline

 

#61 2012-08-28 01:03:06

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

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

thebriculator wrote:

You should be able to make a private room in Chat.PY for conferences and collabs and stuff. You'd only be able to get in if you knew the name.

There is a feature that allows you to use a whitelist mode or blacklist mode. Whitelist meaning only specific people can join (can be used for conferences, etc), and blacklist for banning specific people from joining.

Offline

 

#62 2012-08-28 10:42:37

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

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

Bit Art news: I've solved (I think) the initial loading problem. There is still a chance (very small) that some pixels might be missing when loading (I'll need to fill the entire stage to do a full test). It's not the way I wanted to solve this, but it works.

Chat.PY 3.0 news: It is very nearly ready. (Suspension!)  wink

Offline

 

#63 2012-08-28 11:43:12

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:

Bit Art news: I've solved (I think) the initial loading problem.

big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile  big_smile


Fork Clamor on GitHub!

Offline

 

#64 2012-08-28 11:47:58

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:

Chat.PY 3.0 news: It is very nearly ready. (Suspension!)  wink

Are you sure you don't mean "suspense"...?  tongue


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

Offline

 

#65 2012-08-28 14:57:19

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

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

blob8108 wrote:

Magnie wrote:

Chat.PY 3.0 news: It is very nearly ready. (Suspension!)  wink

Are you sure you don't mean "suspense"...?  tongue

Oh no! Magnie is going to tie me to a fishing pole and fish over a mountain!


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

Offline

 

#66 2012-08-28 15:19:12

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

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

Magnie wrote:

playzooki wrote:

The thing is is that any old hacker could chatbomb this and it needs testing for that.

I'll only be doing local chatbomb testing.

How are you guys bombing the server anyways?

Its easy, you just look at the chat.py script.
In theory, I could do 165messages/second but it would freeze the server.
BTW 2.0 chat.py is not working.

Last edited by playzooki (2012-08-28 15:20:15)


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

Offline

 

#67 2012-08-28 18:25:04

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

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

playzooki wrote:

BTW 2.0 chat.py is not working.

I wonder why??????  roll


Fork Clamor on GitHub!

Offline

 

#68 2012-08-28 18:48:02

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

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

Speaking of chatbombs, has anyone ever though about BitBombs? Basically they would quickly ruin a BitArt room, or quickly build or erase something. They can be both good and bad!


"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

 

#69 2012-08-28 21:07:46

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:

Speaking of chatbombs, has anyone ever though about BitBombs? Basically they would quickly ruin a BitArt room, or quickly build or erase something. They can be both good and bad!

Depending on how they build it, it would just reverse all the dots.  tongue  So instead of black on white, it'll be white on black.

Last edited by Magnie (2012-08-28 21:08:13)

Offline

 

#70 2012-08-28 23:20:06

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:

Molybdenum wrote:

Speaking of chatbombs, has anyone ever though about BitBombs? Basically they would quickly ruin a BitArt room, or quickly build or erase something. They can be both good and bad!

Depending on how they build it, it would just reverse all the dots.  tongue  So instead of black on white, it'll be white on black.

unless you used conditionals!


Fork Clamor on GitHub!

Offline

 

#71 2012-08-29 00:18:13

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:

Molybdenum wrote:

Speaking of chatbombs, has anyone ever though about BitBombs? Basically they would quickly ruin a BitArt room, or quickly build or erase something. They can be both good and bad!

Depending on how they build it, it would just reverse all the dots.  tongue  So instead of black on white, it'll be white on black.

unless you used conditionals!

"Depending on how they build it"

Offline

 

#72 2012-08-29 16:36:42

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:

ohaiderstudios wrote:

Magnie wrote:


Depending on how they build it, it would just reverse all the dots.  tongue  So instead of black on white, it'll be white on black.

unless you used conditionals!

"Depending on how they build it"

I was thinking that they would detect an area's bits, then send edits so that it quickly becomes something else.


"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

 

#73 2012-08-29 23:41:18

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:

ohaiderstudios wrote:


unless you used conditionals!

"Depending on how they build it"

I was thinking that they would detect an area's bits, then send edits so that it quickly becomes something else.

Yeah, that's the way around it.  tongue

Offline

 

#74 2012-08-31 16:43:21

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

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

ohaiderstudios wrote:

playzooki wrote:

BTW 2.0 chat.py is not working.

I wonder why??????  roll

IS YOU BLAMING ME?
Otherwise, so do I.


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

Offline

 

#75 2012-08-31 20:21:07

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

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

playzooki wrote:

ohaiderstudios wrote:

playzooki wrote:

BTW 2.0 chat.py is not working.

I wonder why??????  roll

IS YOU BLAMING ME?
Otherwise, so do I.

I am.  tongue


Fork Clamor on GitHub!

Offline

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

Board footer