Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • Announcements

    • Lizzy Trickster

      Latest Stable OpenComputers Version   11/26/16

      The latest released version of OpenComputers is version 1.7 for MC 1.7.10, 1.8.9, 1.9.4, 1.10.2, 1.11.2 & 1.12.1. See more information here! Beta/Dev builds can be found at the Jenkins Build Server (ci.cil.li)
tpzker

OpenNet - Webpages inside Minecraft

Recommended Posts

The OpenNet: Internet like simulation in Minecraft 

REQUIRES WIRELESS NETWORK CARD

Not tested with wired network card

This is very WIP, but it still works well for what it does.

The OpenNet requires one computer to be running at all times as DNS. This allows for DNS lookup and not having to type things like "af4c71b5-c3be-4da1-b595-4d0afd40359d" to go to a page. It also requires a computer to be running all the time for each web server.

The client and web server need to know the DNS server's address, so if this is implemented on a server, it is best to have one central DNS server.

Downloads:

DNS Server
pastebin get 1pp05ryR opennet-dns.lua
OpenNet Web Server (configure dns network card address inside file)
pastebin get PRTmhN1a opennet-server.lua
OpenNet Web Browser (configure dns network card address inside file)
pastebin get jMNz5Bej OpenNet.lua

Screenshots:

OpenNet DNS

2017-02-21_09.22.20.png

OpenNet Server:

2017-02-21_09.24.05.png

OpenNet Client:

2017-02-21_09.22.47.png

ONML:

ONML (OpenNet Markup Language) is a simple web page language (not many features yet) that allows you to change the background and foreground color of the site. The colors are cleared after displaying them.

To change the color of text, prefix the color with one of these colors (use three letter name): "RED", "ORA"(orange), "YEL"(yellow),"GRE"(green),"BLU"(blue),"PUR"(purple),"WHI"(white),"BLA"(black)

To change the color of the background, type "BACK <COLOR NAME>". <COLOR NAME> is one of the colors shown above (use three letter name)

 

Example ONML file:

BACK RED
WHI The OpenNet: Internet for OpenComputers
YEL The OpenNet is an open source wireless communication system made with Lua for OpenComputers.
WHI It includes a 8 color (red "RED", orange "ORA", yellow "YEL", green "GRE", blue "BLU", purple "PUR", white "WHI". black "BLA") foreground and background system, along with things similar to DNS

Demonstration of the shown ONML file:

 2017-02-21_09.23.41.png

Roadmap (in no order):

Real Internet ONML

ONML links/interaction

More pages than just the main page

Share this post


Link to post
Share on other sites

I did the same thing, but with a sophisticated browser that has it's own GUI, and higher security.
I'd love to cooperate with you, since you're into that kind of things!

Share this post


Link to post
Share on other sites

This has given me some ideas for a project I have been working on here lately. I wonder how well our code would run on the same network... chances are there'd be many... many... routing issues. Lol.

I'm very curious as to how this might turn out, it looks promising so far; I wish you the best of luck! I'll check back in on update!

Share this post


Link to post
Share on other sites
On 3/10/2017 at 1:43 PM, cindayra said:

Does this need to be run on a computer, or can you run it on servers?

And how do you set up webpages?

 

This can be run on servers, as long as they have a network card.

To set up webpages, add your code to a file in the same directory named index.onml, as this is the default page. Sorry for the late reply, I forgot about this post a little bit ;)

Share this post


Link to post
Share on other sites
Posted (edited)
5 hours ago, _block_master187 said:

This is confusing to me. Can you explain it in a bit more detail? Like what EXACTLY you have to do step by step? Thanks!

I'm currently working on a new version, so when that comes out, I will make a more detailed tutorial (maybe even a small video tutorial)

EDIT: OpenNet 2.0 will be much more secure, and more versatile.

P.S. Along with a complete change, OpenNet 2.0 will come with Lua scripting on pages (will ask for user permission first, for security) or possibly a whole different scripting language.

Edited by tpzker
Add some data

Share this post


Link to post
Share on other sites
13 hours ago, tpzker said:

I'm currently working on a new version, so when that comes out, I will make a more detailed tutorial (maybe even a small video tutorial)

EDIT: OpenNet 2.0 will be much more secure, and more versatile.

P.S. Along with a complete change, OpenNet 2.0 will come with Lua scripting on pages (will ask for user permission first, for security) or possibly a whole different scripting language.

Simplified html, or something of that nature would likely be best, but the idea of hosted lua scripts is nice too.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×