←  Media

ComputerCraft | Programmable Computers for Minecraft

»

WIP CC WebTerminal - Online ComputerCraft...

Wojbie's Photo Wojbie 03 Jul 2015

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.
Quote

Bomb Bloke's Photo Bomb Bloke 04 Jul 2015

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
Quote

Wojbie's Photo Wojbie 04 Jul 2015

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.
Quote

biggest yikes's Photo biggest yikes 06 Jul 2015

Neat!
Quote

Wojbie's Photo Wojbie 03 Sep 2015

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.
Quote

Bomb Bloke's Photo Bomb Bloke 04 Sep 2015

Neat! Good job, dude! :)
Quote

funzrey_'s Photo funzrey_ 17 Sep 2015

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

Dahknee's Photo Dahknee 21 Dec 2015

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

Wojbie's Photo Wojbie 21 Dec 2015

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.
Quote

Creator's Photo Creator 21 Dec 2015

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

Wojbie's Photo Wojbie 21 Dec 2015

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.
Quote