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

#351 2012-02-23 17:43:25

bananaman99
New Scratcher
Registered: 2012-02-04
Posts: 100+

Re: Chat.PY and Other Features

So, this is like a chatroom in scratch? wow.

Offline

 

#352 2012-02-23 17:46:07

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

Re: Chat.PY and Other Features

bananaman99 wrote:

So, this is like a chatroom in scratch? wow.

Yes, it is.  smile

Soon it'll be an "IRC" chat in Scratch.

Offline

 

#353 2012-02-23 18:02:55

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

Re: Chat.PY and Other Features

What's the difference?


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

Offline

 

#354 2012-02-23 18:26:29

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

Re: Chat.PY and Other Features

bobbybee wrote:

What's the difference?

IRC has channels/rooms, etc. This one is just a single room.

Offline

 

#355 2012-02-24 15:42:56

Mokat
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: Chat.PY and Other Features

Wow! Great job! How'd you do it?


http://www.eggcave.com/egg/977371.pnghttp://www.eggcave.com/egg/977376.pnghttp://www.eggcave.com/egg/1005291.pnghttp://www.eggcave.com/egg/996745.png

Offline

 

#356 2012-02-24 16:16:06

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

Re: Chat.PY and Other Features

Mokat wrote:

Wow! Great job! How'd you do it?

I created a server in Python and then hosted it on a VPS. Then thanks to Scratch's Remote Sensor Connections feature I connect a mirror to Scratch and to the server. Then it continues on from there to just building the client and adding some more code to the server to add the ability to chat.

Offline

 

#357 2012-02-25 13:09:59

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

Re: Chat.PY and Other Features

What is an example broadcast that would set request to a certain value? Is it with a slash or without? (I think I remember commands being prefixed in the last version)


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

Offline

 

#358 2012-02-25 13:26:30

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

Re: Chat.PY and Other Features

bobbybee wrote:

What is an example broadcast that would set request to a certain value? Is it with a slash or without? (I think I remember commands being prefixed in the last version)

Oh yeah, I forgot to mention that.

< loads a plugin for the user from the server. So the first broadcast would be "<chat" (no quotes) then to send messages to the server you would use : (colons) like ":name Magnie" (no quotes) would set my name to Magnie. The server removes the colon from the message then sends it to the chat.py plugin. So a basic script would be:

when gf clicked
delete [all v] of [log v]
broadcast [<chat v]
ask [What is your name?] and wait
broadcast <join [:name ] (answer)>
forever
    ask [Send] and wait
    broadcast <join [:send ] (answer)>

When I Receive [new_message v]
add <[chat v] sensor value> to [log v]
play sound [pop v]
Hmm, for some reason sensor value doesn't work. Oh well, you get the point (I hope).  smile

Offline

 

#359 2012-02-25 13:28:39

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

Re: Chat.PY and Other Features

So start the program by broadcasting <chat, and then prefix commands with colons. Sound simple enough to me.

(do you want me to build off the existing client, or just start a new project entirely?)

Last edited by bobbybee (2012-02-25 13:30:21)


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

Offline

 

#360 2012-02-25 13:32:07

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

Re: Chat.PY and Other Features

bobbybee wrote:

So start the program by broadcasting <chat, and then prefix commands with colons. Sound simple enough to me.

(do you want me to build off the existing client, or just start a new project entirely?)

Preferably a new project. It'll be easier.

Offline

 

#361 2012-02-25 13:32:50

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

Re: Chat.PY and Other Features

Ok.


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

Offline

 

#362 2012-02-25 14:57:44

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

Re: Chat.PY and Other Features

Also, do you have the new Chat.PY server up? I need to be able to test the client.


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

Offline

 

#363 2012-02-25 15:18:56

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

Re: Chat.PY and Other Features

bobbybee wrote:

Also, do you have the new Chat.PY server up? I need to be able to test the client.

I want the server/plugins to be finished before I host the server. I was hoping you could do some local testing since you have Python.

Offline

 

#364 2012-02-25 15:23:20

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

Re: Chat.PY and Other Features

Which file should I run in order to test? Also, how should authentication work?


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

Offline

 

#365 2012-02-25 15:44:43

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

Re: Chat.PY and Other Features

bobbybee wrote:

Which file should I run in order to test? Also, how should authentication work?

Open server.py and then go to line 24 and change it from:

Code:

self.plugins = ['test', 'virtual_space']

to

Code:

self.plugins = ['test', 'chat']

that way it loads the chat.py plugin.  smile

Authentication is currently through the Scratch site (the command format is ':scratch-auth username password' no quotes) and I plan on adding Authentication through the server later.

Last edited by Magnie (2012-02-25 15:46:38)

Offline

 

#366 2012-02-25 15:53:09

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

Re: Chat.PY and Other Features

Okay.


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

Offline

 

#367 2012-03-24 00:31:32

Lightseeker
Scratcher
Registered: 2011-07-30
Posts: 74

Re: Chat.PY and Other Features

I joined the scratch chat. Anyone else on? 'Cuz it would be cool if I could talk to someone...


dA: paragonGamer Skype: fallentheangel Tumblr: obligatoryeverything
"Haha! Friends! Who the HECK needs them?" ~Caught Like A Fly by Falling in Reverse

Offline

 

#368 2012-03-24 10:00:06

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

Re: Chat.PY and Other Features

Lightseeker wrote:

I joined the scratch chat. Anyone else on? 'Cuz it would be cool if I could talk to someone...

Since many of us are busy will our real-life, it is unlikely to see anyone online. I'm am finishing up Chat.PY 2.0 at the moment. I plan to release it when there is another holiday (because people are more likely to stay online after they view the project), which will probably be Spring Break (for me, it's April 2nd through April 6th). So unless there are a lot of people who want it to come out (maybe 15?), then I'll probably release it on April 2nd or March 31st.

Offline

 

#369 2012-03-24 10:09:06

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

Re: Chat.PY and Other Features

When are you gonna release VS?


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

Offline

 

#370 2012-03-31 17:17:57

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

Re: Chat.PY and Other Features

bobbybee wrote:

When are you gonna release VS?

(Sorry for late reply) I don't have any set date. It'll probably be after Scratch 2.0 since the current version is so slow.

Anyway, the Chat.PY server, version 1.4, has been released! https://sourceforge.net/projects/scratchspace/!

Chat.PY 2.0 is planned to be up and running on Monday (April 2nd) around 12:00 PM.  big_smile

Current features: usernames/nicknames, room (sorry, only moderators can create rooms), Room Flags (specify which ranks can talk or join, the censorship level, etc) Scratch Auth, Server-side Auth, Channel Ranks (^Admin, @Mod, %Scratcher, +Voice, -Normal, !Failed Login, #Muted), Global Ranks (*Awesome Owner, ~Global Moderator, and all Channel Ranks), renaming, changing ranks, nearly all data is saved (so I can close the server and start it up again and all the settings, ranks, accounts, etc are saved).

I'll admit, there isn't much difference from the original, but everything is much more stable, and all the admin stuff is simplified and slightly extended. I'm willing to create chat rooms for collabs and other groups. So if you want, contact me and I'll create those for anyone that asks.

I would also prefer if you create a server-side account (with a different password than your Scratch one) and authenticate through that instead of through Scratch. I would prefer to not deal with any passwords, if you know what I mean.  smile

Another thing to mention is that connections to the server are planned to be done through port 42001, so you will be able to connect through Mesh as well as through the mirror (if needed). I'm also going to have the Project accessible from the browser with ZeroLuck's Mesh Java Player (and maybe later in the future, bobbybee's Mesh Flash Player?).

My goal is to make it as easy as possible to connect the project to the server. If you have any ideas that could make it simpler, I would be grateful if you could give them to me.  smile  I might make another client in Panther and bundle-it into an exe. I might also do the same and make it into a .jar as well. Though that's in the future!

If you have any suggestions, I will take them and hopefully implement them. (I don't  I will be able to make it possible to be in multiple rooms at once though, sorry.)

Offline

 

#371 2012-03-31 17:31:08

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

Re: Chat.PY and Other Features

Nice list.  tongue
Also, why can only moderators create rooms?


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

Offline

 

#372 2012-03-31 17:35:43

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

Re: Chat.PY and Other Features

bobbybee wrote:

Nice list.  tongue
Also, why can only moderators create rooms?

Well, moderators and me.  tongue

It's because I don't want people to create their own rooms and remove the censorship level just so they can swear. It's mostly for moderation purposes.

Offline

 

#373 2012-03-31 17:38:15

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

Re: Chat.PY and Other Features

Maybe normal Scratchers can make a limited room.


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

Offline

 

#374 2012-03-31 17:43:57

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

Re: Chat.PY and Other Features

bobbybee wrote:

Maybe normal Scratchers can make a limited room.

Possibly. I have been thinking about allowing Scratchers to create their own room.

Offline

 

#375 2012-04-01 05:00:35

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: Chat.PY and Other Features

One question: Why is everyone a pony on this thread (It's weird, but funny)


I'm back.
Maybe.

Offline

 

Board footer