Adding regions in Diva Distro

It looks like I’ll be returning to Diva Distro for my little experimental virtual world after a year of using regular OpenSim, now that I’ve found that it’s ridiculously easy to add regions to Diva.

When I first created a little four region test grid in 2011, I used Diva on a Windows 7 machine with WAMP. It worked well, however I knew it wasn’t secure using WAMP and I wanted more than four regions, but I didn’t see how to expand beyond four regions with Diva.

After building and configuring my own OpenSUSE Linux server, I decided to try regular OpenSim instead of Diva. The challenge of installing a full OpenSim installation appealed to me, and I wanted more than four regions. I installed OpenSim with 10 regions. It went like a breeze. I had no problems. Although it’s a lot more complicated to configure than Diva, it actually installed with fewer problems than my first try with Diva. My only real problem was that I couldn’t get on the Hypergrid, which I assume was a configuration issue.

A year passed in which I had little time to work on my grid. A few friends were logging in and using it, but otherwise I wasn’t doing much with it. When I turned my attention back to it recently, my first order of business was to upgrade from OpenSim to 0.7.4. This turned out to be more of a challenge than I hoped it would be. No matter what I did, the newer version of OpenSim crashed every time I tried to run it. I don’t have a lot of time to put into it, so yesterday I decided to download the latest version of Diva (diva-r20232, which implements OpenSim 0.7.4) and to find out how hard it would be to expand beyond Diva’s basic four regions.

It was easy – trivial in fact – after noticed the following line in config-include/DivaPreferences.ini: “CombineContiguousRegions = true”. The problem is that this line causes Diva Distro to create a megaregion by default. To add regions without dealing with megaregions, all you have to do is modify the file config-include/MyWorld.ini by adding a single line. At the very beginning of the file, in the [Startup] section, add the line “CombineContiguousRegions = false”. Restart Diva and you’re all set. I created a 14 region grid, with no megaregions, using my own coordinates instead of Diva’s default 500x,500x coordinates.

To add regions, you edit Diva’s standard Regions/RegionConfig.ini file.  Copy and paste one of the existing entries to create a new entry.  Change the new entry to add the name, coordinates (Location), UUID, and port for each of your new regions. The following is what the new entry might look like:

[New Region]
RegionUUID = “11111111-2222-3333-4444-555555555554”
Location = “5002,5000”
InternalAddress = “”
InternalPort = 9004
AllowAlternatePorts = False
ExternalHostName = “SYSTEMIP”

Region Name: To add the name for your new region, simply type the new region name between the square brackets, where you see “New Region”

Region UUID: This is a unique identifier for your region. You can get your own unique UUIDs for your regions by going to the Online GUID Generator ( and generating them.

Location: This is the trickiest one.  You need to visualize your regions in a grid, numbered from the bottom up and from the left to the right.  If you start with a Location of 5000,5000 in the lower left, 5000,5001 will be directly on top of 5000,5000 and 5001,5000 will be immediately to the right of 5000,5000.  5002,5000 will be on the right side of 5001,5000, and 5010,5000 will be ten regions to the right of 5000,5000.  Assigning locations is where you’re most likely to make errors in creating your grid. If you’re going to put your grid on the Hypergrid, you probably should choose less common grid locations.

It helps to draw a chart.  It’s how I keep my 14 regions coordinated.  A chart for a basic five region grid based on Diva’s default coordinates might look like this:

My World 2
My World 4
My World 1
My World 3
New Region

Port: These should be numbered consecutively,  The default Diva configuration uses ports 9000, 9001, 9002, and 9003 for the basic four regions.  You should continue this numbering for your added regions.  The first region you add beyond the basic four will be port 9004, the next one  you add will be port 9005, etc.

I haven’t made the final decision yet to stay with Diva Distro.  I like having the full control that using regular OpenSim gives me, but considering that my time for dealing with upgrades is limited, Diva’s more automated upgrade process may make it the better choice for me.

Diva Distro can be downloaded from  The current version is as of today, September 11, 2012.  That’s the only file required to install Diva.  You’ll see a download for wifi, but that’s only for OpenSim installations running Robust.exe. Wifi is included in the Diva Distro.

Display RSS feeds on your webpage

Someone asked me this week how I display RSS feeds from three external sources on my personal website if it’s not a WordPress website.  WordPress after all offers a convenient function, RSSImport(), for reading RSS feeds on a WordPress webpage, but there is no equivalent function that I’m aware of for non-Wordpress webpages.

The answer is that I cheated.  Although doesn’t appear to be a WordPress website, it actually is.  I’m just not using a Theme and I don’t have a blog on that website.  I simply built WordPress into it so I would have access to RSSImport().

It’s a solution that works, but building a website with WordPress underlying it is a lot of work just to have easy access to RSS feeds.  Is there an easier way?

Yes, there is, and I use it on my website, where I display the three most recent posts from my Avatar Planet blog.  I could display RSS feeds from any website, not just my own.  It’s equally as capable as using RSSImport(), and the way I did it is actually easier to implement as long as you don’t mind dealing with a few lines of PHP.

Before I start, there are several caveats you need to be aware of.  In order for this to work, your PHP implementation needs to have PEAR and XML_Parser installed, and allow_url_fopen must be set to “ON”.  Unless you are the system administrator, you probably won’t have control over either of these.  Assuming that your system is configured this way,  you should be able to fairly easily display RSS feeds on your webpage.

The following is how I did it on to read feeds from my blog, and to display the three most recent posts.  The output is in the form of a bulleted (unordered) list in which every line is the headline from the RSS feed that you can click to read the full post :

require_once “XML/RSS.php”;

$rss =& new XML_RSS(“”);

echo “<ul>”;
foreach ($rss->getItems() as $item) {
   if (++$i <= $number_posts) {
      echo “<li><a href=\”” . $item[‘link’] . “\”>” . $item[‘title’] . “</a></li><br>”;
echo “</ul>”;
If you haven’t written PHP before, here are a few basics you need to know:

  1. You insert these lines into your HTML file.  In order for them to work, you’ll  need to change the filename’s extension from .html or .htm to .php.  Be sure to remove the old file from the directory, or there may be unpredictable results, especially if the file is named index.htm or index.html.
  2. You should copy the above lines of PHP and paste them into your HTML where you want it displayed.
  3. “<?php” and “?>” are opening and closing tags that mark the lines as PHP rather than HTML.
  4. You need to copy and paste these lines exactly as they appear here.

There are only two changes you need to make, other than formatting changes (for example if you don’t want it to appear as a bulleted list):

  1. Change “” to the url of whatever RSS feed you want.  For example, if you wanted the New York Times home page RSS feed, you would use the url “’.
  2. This example displays the three most recent items in the RSS feed.  If you want a different number, change the number 3 in the line “$number_posts=3” to whatever number you want.

If you want to display RSS feeds from more than one url, just repeat everything in the above code except the line containing “require_once “XML/RSS.php”;”  All you have to change is the url.

I can’t guarantee this method of displaying RSS feeds will work for you, but as long as your system is configured the way I described above, it should work.

Diva Wifi 7.4 released

Diva Canto has just released Wifi 7.4.  This means that those of us who have been waiting since OpenSim 7.4’s release last week can now upgrade.  Diva’s Wifi provides a convenient user interface for managing OpenSim logins.  To download Wifi 7.4, go to and download You can download OpenSim 7.4 at

If you want to experiment with your own grid but don’t want to contend with the much greater technical challenge of full OpenSim, the Diva distro is a very nice preconfigured package that handles many of the technical details for you in setting up your own standalone OpenSim 7.4 world.  I’ve used it and it worked very well for me.  Diva Wifi is included as part of that package.  Go to and download  It includes the Wifi package.