Dynamic Host

The dynamic host service allows you to give your objects a URL that does not change over the course of time. With this service, objects are accessed with their key. If your object’s key is 00000000-0000-0000-0000-000000000001, then your objects URL will be:

http://services.lewismoten.com/sl/dynamic-host/00000000-0000-0000-0000-000000000001

There are two things you need to do to use the service.

  • Register your objects URL
  1. Requests are sent to http://services.lewismoten.com/sl/dynamic-host/register
  2. The method must be POST
  3. The paramter “url” must be supplied with the url to your object in-world.
  • Handle a ping request
  1. The x-path-info header will be “/ping”
  2. Respond with the text, “pong”
  3. Send a status code of 200
  • Keep your URL’s synchronized with the service
  1. When the region is restarted
  2. When the object changes regions
  3. When the object acquires a new owner
  4. When the object is first placed into the world
  5. When the object changes state

That’s it! Here is a script that will get you started.

http://pastebin.com/kG2qFN5j

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: