Jump to content




Craftweb/Craftscape - A browser specification and program for an internet!

computer networking

  • You cannot reply to this topic
4 replies to this topic

#1 Midnightas

  • Members
  • 44 posts

Posted 18 October 2016 - 12:40 PM

Craftweb
Craftweb is a series of specifications made to create a standard for browsers in ComputerCraft.. browsers.
One of these browsers is Craftscape (A reference to Netscape).
Here is the link to the Craftweb specification.

Craftscape
Craftscape is a browser that uses the CWS to browse an internet.
When opening the program, you will see a GUI similar to
this:
Posted Image

Here you will specify a destination computer. This is the ID of a computer that is the host.
Next it will ask you for a page, if you leave it empty, it will open "index.cw".
After that the browser will connect to the computer.
Due to the single-threaded nature of ComputerCraft, you may need to wait if there are too many connections to that server.
After you've waited, you will be greeted with a page.
Congratulations, you've connected to a page on an internet.

Now.. "an" internet? What does that mean?
Unfortunately, every server will have a different set of web pages.
This has it's own advantages and disadvantages.

Pastebin: http://pastebin.com/QSpxrJtM

Craftweb Host
Craftweb Host is a simple program that hosts Craftweb files for browsers (that follow the CWS) to receive.
By opening the program it will freeze the computer and wait for connections.
It will look like this:
Posted Image

Pastebin: http://pastebin.com/ifhQq6NN

#2 クデル

  • Members
  • 349 posts

Posted 18 October 2016 - 01:03 PM

Is this like a lesser version of KristScape, or something different?

#3 Midnightas

  • Members
  • 44 posts

Posted 18 October 2016 - 01:57 PM

View Postコナー デレーニー, on 18 October 2016 - 01:03 PM, said:

Is this like a lesser version of KristScape, or something different?
This is different than Kristscape.

#4 InDieTasten

  • Members
  • 357 posts
  • LocationGermany

Posted 18 October 2016 - 04:26 PM

So this implements a protocol to exchange and query for files, and craftscape is able to enrich the experience of the content of the files, due to the standardized CWS format. Unfortunately, the CWS format only implies to support <full> and <part> content, which are pretty much identical to print() and write() functions. No colors are specified. No background. No layouting for different screensizes. There is no mention of some sort of "user agent string" to determine screensize serverside.

I guess it's proof of concept kind of thing. If you keep adding functionality such as the stuff I mentioned above, this might be a nice http/html clone in computercraft :)

I'd suggest you to put your documentation onto some permanent storage, such as pastebin, or a gist file. Then people in the future don't need to worry about a dead link in case your server goes down for whatever reason. Just in case this takes off. You never know ;D Just some advice

#5 Midnightas

  • Members
  • 44 posts

Posted 18 October 2016 - 06:29 PM

View PostInDieTasten, on 18 October 2016 - 04:26 PM, said:

So this implements a protocol to exchange and query for files, and craftscape is able to enrich the experience of the content of the files, due to the standardized CWS format. Unfortunately, the CWS format only implies to support <full> and <part> content, which are pretty much identical to print() and write() functions. No colors are specified. No background. No layouting for different screensizes. There is no mention of some sort of "user agent string" to determine screensize serverside.

I guess it's proof of concept kind of thing. If you keep adding functionality such as the stuff I mentioned above, this might be a nice http/html clone in computercraft :)

I'd suggest you to put your documentation onto some permanent storage, such as pastebin, or a gist file. Then people in the future don't need to worry about a dead link in case your server goes down for whatever reason. Just in case this takes off. You never know ;D Just some advice

Thank you! Yes, this is pretty much my own version of HTML.
And yes, right now it's pretty much a proof of concept. But I forgot to put in the color and bg attribute in the documentation... :|
I may will add http messages in 1.0.

:)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users