So, this is like a chatroom in scratch? wow.
Offline
bananaman99 wrote:
So, this is like a chatroom in scratch? wow.
Yes, it is.
Soon it'll be an "IRC" chat in Scratch.
Offline
What's the difference?
Offline
bobbybee wrote:
What's the difference?
IRC has channels/rooms, etc. This one is just a single room.
Offline
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
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)
Offline
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).
Offline
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)
Offline
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
Ok.
Offline
Also, do you have the new Chat.PY server up? I need to be able to test the client.
Offline
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
Which file should I run in order to test? Also, how should authentication work?
Offline
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:
self.plugins = ['test', 'virtual_space']
to
self.plugins = ['test', 'chat']
that way it loads the chat.py plugin.
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
Okay.
Offline
I joined the scratch chat. Anyone else on? 'Cuz it would be cool if I could talk to someone...
Offline
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
When are you gonna release VS?
Offline
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.
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.
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. 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
Nice list.
Also, why can only moderators create rooms?
Offline
bobbybee wrote:
Nice list.
Also, why can only moderators create rooms?
Well, moderators and me.
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
Maybe normal Scratchers can make a limited room.
Offline
bobbybee wrote:
Maybe normal Scratchers can make a limited room.
Possibly. I have been thinking about allowing Scratchers to create their own room.
Offline