Skip to content
Kwadroke of "The Wired edited this page Mar 1, 2016 · 8 revisions

HTTP Server

WORK IN PROGRESS!

the HTTPServer allows you to access certain functions of the game through a Web Browser connected to the server

##Enabling HTTPServer

Edit options.ini file with your favorite text editor. Change the line shown below.

httpserver=

to

httpserver=8080

Save the file, and start EmptyEpsilon.

Accessing the Server

By default there are not any pages to view. This is for accessing the API. See Serving Webpages for accessing webpages from the HTTPServer.

API

get.lua

http://serverip:8080/get.lua?

set.lua

http://serverip:8080/set.lua?commandSetShields(1)

exec.lua

Serving Webpages

Create a directory called www in the EmptyEpislon Directory. Your html, css, images, & javascript files can be placed there. If you have an index.html file, you can browse to http://serverip:8080 and see your index page.

Clone this wiki locally