Jump to content




WIP CC WebTerminal - Online ComputerCraft Terminal/Monitor system.


10 replies to this topic

#1 Wojbie

  • Members
  • 631 posts
  • LocationKinda lost

Posted 03 July 2015 - 06:47 PM

Just wanted to showcase front (graphical) part of small project i am working on and off in free time.
I present you: ComputerCraft WebTerminal.

Plan is to create CC API that will communicate using http with a php file on server saving contents of terminal object.
This page is example of how this data can be then visualized.
It may not be all professional like but it works.
Hope you like it.

https://wojbie.net/we...m/javascale.php

EDIT: The red-yellow-red frame on the part of screen is currently saved click event. Plan is to store one click event until its retrieved by cc api. It is global so if it changes for you that means someone else is clicking screen :lol:
Also bottom line is made from random characters and part of debug code so stuff changes between ajax updates. Everything over bottom line is read from saved file.

EDIT2: Someone is clicking :ph34r:

EDIT3: Screenshot in case it breaks:
Posted Image

EDIT: Changed the link to correct one.

Edited by Wojbie, 02 May 2017 - 10:24 PM.


#2 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 04 July 2015 - 02:50 AM

Well this is pretty cool. Just for giggles, would you care to try running this through it?:

pastebin get cUYTGbpb package
pastebin get 5uk9uRjC GIF
package get wZfpq9h8
slideshow


#3 Wojbie

  • Members
  • 631 posts
  • LocationKinda lost

Posted 04 July 2015 - 02:58 AM

Sadly CC api part is unfinished. Semi-operational but needs some work before its 100% usable. Right now i messed something up with php code and its not getting all updates correctly. This showcase thing is kinda semi manually made using code snippets. But when i get it working you can sure expect me to be running that thing ;p Will need some CC Server to host computer that will be messaging WebTerminal but i will find a "volunteer".

Edited by wojbie, 04 July 2015 - 02:58 AM.


#4 biggest yikes

  • Members
  • 573 posts

Posted 06 July 2015 - 03:59 PM

Neat!

#5 Wojbie

  • Members
  • 631 posts
  • LocationKinda lost

Posted 03 September 2015 - 03:42 PM

View PostBomb Bloke, on 04 July 2015 - 02:50 AM, said:

Well this is pretty cool. Just for giggles, would you care to try running this through it?:

pastebin get cUYTGbpb package
pastebin get 5uk9uRjC GIF
package get wZfpq9h8
slideshow

I got it running ok! You wanted sideshow?
Here you go!
http://wojbie.net/we...vatest.html#rel

It will not show any animation due the fact that CC api updates server every 5 sec so its more like stills from animation. But it works!. If it's not updating then server that was running CC computer went under.

Screen-shot of it in action:
Posted Image

EDIT2:
Showcase code removed due to abuse.

Edited by wojbie, 09 September 2015 - 10:03 PM.


#6 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 04 September 2015 - 01:22 AM

Neat! Good job, dude! :)

#7 funzrey_

  • Members
  • 6 posts

Posted 17 September 2015 - 10:38 PM

Awesome! This could actually become a multiplayer game in ComputerCraft if you did it right! You could even make a chat!

#8 DannySMc

  • Members
  • 1,808 posts
  • Location/home/dannysmc95

Posted 21 December 2015 - 12:20 AM

Hey, if you are still working on this, can I help out? I do web development, and really want one of these working! :D

#9 Wojbie

  • Members
  • 631 posts
  • LocationKinda lost

Posted 21 December 2015 - 12:23 AM

Development is paused until 1.8 release. I am working on creating custom font file cause of all new letters added. Also i am testing better way to pass almost live events there and back. Currently its running on temp system that checks every 5 sec for update. So basicly with 1.8 going on it went from 80% done to 60-70% done :D

EDIT: Oh and i completely forgot to add 2px border stuff and i am waiting for border situation to clarify for 1.8.

Edited by Wojbie, 21 December 2015 - 12:25 AM.


#10 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 21 December 2015 - 06:21 AM

Why don't you have a javascript that runs on the client? Will be much faster. Like mimic does it.

#11 Wojbie

  • Members
  • 631 posts
  • LocationKinda lost

Posted 21 December 2015 - 07:11 AM

Well its plenty fast for what i designed it to do. All slowdowns in this versions are delibirate ones that are there for debugging purposes. When i am done with it it will be almost instantaneous both ways.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users