Strictly speaking, it should now be called “OpenSimulator”. However, it still gets called “OpenSim” and in fact that is the name of the executable file, so we’ll stick with OpenSim.
Most importantly, understand that XorLabs Research does not claim to be an OpenSim expert. There is plenty of programming experience here, much of it in recent years with Visual Studio, in C++ and more recently, C#. All the required hardware and software are available here at the RL location. But, we just started with OpenSim, and what you will see here is a chronicle of our progress. You will see the problems we encountered and how we solved them. Reading this blog will let you learn as we learn. Also, understand that we are not insiders at OpenSimulator.org, merely folks like you readers who learned about OpenSim and wanted to try it. Their documentation is a bit disorganized, but in fairness that is to be expected in a project which is being made public in the course of being developed. Some hardworking folks are developing it and we, the public, are getting it partially finished as the OpenSimulator.org folks finish it.
It is possible to run OpenSim on a variety of processors and operating systems. Additionally, you can build it from source, or download an executable. We aren’t going to elaborate on all these options, we are going to elaborate on how we are in the process of doing it. Specifically, our RL system will run OpenSim on a Dell PowerEdge 400SC running Windows Server 2003 for Small Business Server. The initial build was done over the network using Visual Studio 2005 running under Vista Business on a Dell Latitude D820 laptop. That rather cumbersome arrangement resulted from problems getting Visual Studio to load on the PowerEdge, with which we need not burden you with here.
With all those provisos and caveats, let’s begin.
The first step is to get the source code. The starting point is the OpenSim website. An open source version control system known as Subversion is being used there to maintain the latest version of OpenSim available for download. Version control is quite common in projects which have multiple programmers working on the project. We don’t plan to use version control due to the way we work on things. However, we did download and install Subversion primarily to get the client tool svn to simplify downloading.
A version control system allows programmers to check out parts of the code to work on in a way that prevents other programmers on the project from trying to work on the same piece of code. OpenSimulator.org maintains a repository on their site from which you can check out the latest build. You can run the client application svn on your own computer and it will automatically download everything you need to do a build of OpenSim. So, our first step was to download and install Subversion.
We found a zipped Subversion executable for Windows on the Tigris.org site here. It was downloaded to our PowerEdge server. unzipped and installed. The location of svn is automatically entered in the PATH environment variable during installation, so you won’t have to add the path to it when you run svn with the Command Prompt. The location to the latest build of OpenSim can be accessed starting at the main OpenSimulator.org webpage by clicking on the “User Docs” link at the top of the page, then clicking on “Download” under the Initial Setup section at the top of the page. The “Download” like will take you to a page where download information ia available for both source code and complete executables. In the first section of this last page, labeled “Source” you will see “Latest Subversion revision (Bleeding edge” and a link under it. Don’t click on it, just write the link down. You will use svn to do the download.
The svn application is accessed from the Command Prompt. Note that if you will be downloading to a Vista computer you will probably have to run the Command Prompt as Administrator. You need to supply two command line arguments, the link where to get the code, and the path on your computer where you want it downloaded to. The link is the one mentioned in the paragraph above. The location on your computer where you want it to be loaded is your choice. Here is the command we used:
svn checkout http://opensimulator.org/svn/opensim/trunk/ C:/OpenSim
Yes, we used the forward slash for the destination even though it’s on Windows.
After the mass of files has been downloaded, you will need to create a Viaual Studio project file. In the main directory where you downloaded OpenSim, there is a batch file named runprebuild.bat. Run that on the command prompt to create the the project file. The project file is OpenSim.sln and it will be on the same directory as the batch file.
If you don’t run Visual Studio 2005, you can always use Visual Studio Express. It’s free and can be downloaded at the Microsoft.com site. Visual Studio Express can be downloaded with all its languages, but you can just download it with C# only, since that is the only language you will need. Also, be sure that your computer has the .NET Framework 2.0 or later. With all this in place, click on the project file to open the project, and do a build. The initial build will take a while so be patient.
If all the foregoing went well, you should have a working version of OpenSim. There is some configuring to do, which will be covered in the next post. However, you might check to see that the executable will run. Open Windows Explorer to the bin subdirectory of your OpenSim directory and just click on OpenSim.exe. A Command Prompt will come up and an incredible amount of verbage will start to flow onto it. Once you see that, you can be satisfied that your build worked. Once OpenSim is configured, and we’ll talk about that next time, you will log on to it using the Second Life viewer.