This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Tag365's profile picture

Social Net Client FIXED (Connect to the unofficial social network for ComputerCraft)

Started by Tag365, 09 April 2015 - 04:17 PM
Tag365 #1
Posted 09 April 2015 - 06:17 PM
[attachment=2223:SocialNet Client.png]

Features
*Visit the Chat Room.
*View and publish tweets and posts.
*View posts by any user.
*Add friends (also broken as you can add only one friend. DannySMc needs to fix it.)
*View profiles of other people, and edit your own profile.

In order to use this you need to sign in to the server. You only need to do this once, unless you sign out using the client in which case you will need to sign in again.

To install this script on to your computer run pastebin get 6GfTES26 SN on your computer.
For information about the Social Net go here.

[attachment=2224:SendingMessage.png]
Edited on 30 July 2015 - 05:20 PM
Creator #2
Posted 09 April 2015 - 07:31 PM
Crash on line 10: attempt to get length of nil
Tag365 #3
Posted 09 April 2015 - 08:32 PM
That means you need to restart the script.
Edited on 09 April 2015 - 06:32 PM
Creator #4
Posted 09 April 2015 - 08:35 PM
Whae I register
Tag365 #5
Posted 09 April 2015 - 08:40 PM
Try deleting the Social Net client and running pastebin get 6GfTES26 SN again. It should work. If not then tell me what version of ComputerCraft are you running.
Edited on 09 April 2015 - 06:42 PM
Tag365 #6
Posted 10 April 2015 - 05:35 PM
I just updated the client. It should have almost all of the features that the Social Net API has to offer.
Konlab #7
Posted 11 April 2015 - 08:08 PM
Wow really cool but It's GUI is a little bit annoying
Please make buttons like "Home" or "Back" or "Exit" everywhere! Thanks
DannySMc #8
Posted 11 April 2015 - 10:01 PM
Yeah I am attempting to fix this now, can you give me a list of the problems that need to be fixed please, thanks!
joeray852 #9
Posted 12 April 2015 - 12:11 AM
You might want to put term.clear() at the end of the program, because if you close using the 'exit' button, the icons still stay on the screen.
Zekka #10
Posted 16 April 2015 - 06:32 AM
You seem to have some security issues. Here are some logs from a quick session in Requests.


>>> s.post(home, {"ccsys":"social", "cccmd":"chat_pm_get", "username": "ganesh", "password": "ganesh", "recipient": "dannysmc95"}).text
u'{}'
>>> s.post(home, {"ccsys":"social", "cccmd":"chat_pm_new", "usernam
e": "ganesh", "password": "ganesh", "recipient": "dannysmc95", "message": "This is just a test of whether I can read your PMs without being you."}).text												
u'true'
>>> s.post(home, {"ccsys":"social", "cccmd":"chat_pm_get", "usernam
e": "ganesh", "password": "ganesh", "recipient": "dannysmc95"}).text
u'{{"1","ganesh","dannysmc95","This is just a test of whether I can read your PMs without being you.","2015-04-16 05:28:24",},}'
DannySMc #11
Posted 16 April 2015 - 12:13 PM
You seem to have some security issues. Here are some logs from a quick session in Requests.


>>> s.post(home, {"ccsys":"social", "cccmd":"chat_pm_get", "username": "ganesh", "password": "ganesh", "recipient": "dannysmc95"}).text
u'{}'
>>> s.post(home, {"ccsys":"social", "cccmd":"chat_pm_new", "usernam
e": "ganesh", "password": "ganesh", "recipient": "dannysmc95", "message": "This is just a test of whether I can read your PMs without being you."}).text												
u'true'
>>> s.post(home, {"ccsys":"social", "cccmd":"chat_pm_get", "usernam
e": "ganesh", "password": "ganesh", "recipient": "dannysmc95"}).text
u'{{"1","ganesh","dannysmc95","This is just a test of whether I can read your PMs without being you.","2015-04-16 05:28:24",},}'

I did say it is being fixed :)/>
Tag365 #12
Posted 30 July 2015 - 05:49 PM
I fixed the bug which causes the freezing. It appears to be a bug with ComputerCraft, as instead of sleeping for no time it appears to halt.

Edit: Oops, that did not fix the problem! What was causing the error is in fact the faulty os.pullevent function. I fixed it.
Edited on 30 July 2015 - 04:03 PM
biggest yikes #13
Posted 30 July 2015 - 06:13 PM
(The official social network for ComputerCraft!)
You mean unofficial, right?
Edited on 30 July 2015 - 04:13 PM
DannySMc #14
Posted 30 July 2015 - 07:09 PM
(The official social network for ComputerCraft!)
You mean unofficial, right?

Eh it is the only currently working client out there….

MKLegoman is making a new one :P/> and I am integrating it in my OS, do you want me to make a client for this?
Tag365 #15
Posted 31 July 2015 - 09:24 PM
I already fixed my client. I just updated it as well.
biggest yikes #16
Posted 01 August 2015 - 12:06 AM
Eh it is the only currently working client out there….
That doesn't mean it's official.
DannySMc #17
Posted 01 August 2015 - 10:29 AM
Eh it is the only currently working client out there….
That doesn't mean it's official.

Indeed…
Waitdev_ #18
Posted 18 September 2015 - 09:12 AM
cool, but a lot of things are still broken.
DannySMc #19
Posted 18 September 2015 - 09:37 AM
cool, but a lot of things are still broken.

Yeah he needs to update it with the new API as well, as in 2 weeks the old API is being deleted.
Tag365 #20
Posted 30 September 2015 - 04:54 PM
What do you mean by the old API being deprecated? Why is the old one being deleted?
DannySMc #21
Posted 30 September 2015 - 08:12 PM
What do you mean by the old API being deprecated? Why is the old one being deleted?

Because we have a new, more secure and easier to use one that is out with more control and better returns so you can get better feedback.