ROLZ

zyberpunk

Download Your Data

Legacy dice rooms are being shut down. You can recover your room's data on this page.

About the HTML Data Format

When you download the HTML data, you will get a single file with all of your chat content, encoded in HTML. A single line will look like this:

<div class="line">
  <div class="user">john7775</div>
  <div class="time" data-ts="1289487899">2010-11-11 15:04:59</div>
  <div class="content"><span style="color: green"><span class="dc_dice_a">1</span>
    <span class="dc_dice_d">D20</span> <span style="color: gray">=&gt;</span> </span>
    <span class="resulttext"><a title="Details:  [ 14 ] ">
      14</a></span></div>
</div>

Each line is followed by two line-feed characters (char 10). You can choose how to display the chat line by assigning a CSS style to its components. The entire line's class is called "line", the username part is "user", the timestamp is "time", and the roll/text itself is called "content". The time component also has an attribute called "data-ts", containing the timestamp in Unix seconds.

An example CSS might be set up like this:
.line > .user {
  display: inline-block;
  font-size: 80%;
  color: green;
  margin-right: 12px;
  font-weight: bold;
}
.line > .time {
  display: inline-block;
  font-size: 80%;
  opacity: 0.75;
}
...and this is what the content will look like:
john7775
2010-11-11 15:04:59
1D20 => 14
john7775
2010-11-11 15:08:05
1D20 => 20
udo_api
2010-11-11 15:10:05
1D6 => 3

About the JSON Data Format

If you want to import the data into a database, or if you want to perform other transformations on it, you might be better off using the JSON format. The JSON log contains of individual lines, separated by a linefeed character:

{"key":"33090",
"room":"4261",
"user":"john7775",
"timestamp":"2010-11-11 15:04:59",
"ip":"37eba853",
"text":"<span style=\"color: green\"><span class=\"dc_dice_a\">1<\/span><span class=\"dc_dice_d\">D20<\/span> <span style=\"color: gray\">=&gt;<\/span> <\/span> \r\n <span class=\"resulttext\"><a title=\"Details: [ 14 ] \"> \r\n 14<\/a><\/span>",
"time":1289487899}

It is important to note that the entire file is NOT a JSON object, as that would make most JSON parsers explode if you're importing a large dataset. Instead, you'll need to invoke your JSON parser on each line.

The following fields are being used:

key:        unique key of the chat line
room:       the room ID
user:       name of the user who posted the line
timestamp:  the time when the post was made (UTC)
ip:         a hash of the user's IP address (may be unreliable)
text:       the html content of the post
time:       the time of the post as a Unix timestamp

In Case of Questions

If you have any questions on how to best get the data out of your legacy room, please use the feedback forum or shoot me an email ([email protected])