[Opensim-dev] Implemented oar merge facility

Adelle Fitzgerald Adelle at DreamTechnologies.co.uk
Mon Nov 30 02:12:12 UTC 2009


I have quite happily saved and loaded OARs in excess of 500Mb from a DSL
connection to a local region (on my DSL in the UK) running on OSgrid.
They take a long time due to my connection; in excess of a few hours,
but I have not yet had an OAR fail on save or load (great work Justin
CC!)

This is however the traditional load/save OAR, I have yet to try the OAR
merge.

-----Original Message-----
From: opensim-dev-bounces at lists.berlios.de
[mailto:opensim-dev-bounces at lists.berlios.de] On Behalf Of Justin
Clark-Casey
Sent: 28 November 2009 13:43
To: opensim-dev at lists.berlios.de
Subject: Re: [Opensim-dev] Implemented oar merge facility

Jeroen van Veen wrote:
> awesome! is there a maximum filesize for this? I can imagine that
20mb+ oar 
> files may cause problems? I would like to implement an oar template 
> loader/saver into a webinterface. This would really make things
easier. Any 
> suggestions how to make save-oar work in a centralized infrastructure?

I tried the opensim-openvce.oar file at
http://openvce.net/resources/downloads/ 
which is 24Mb and this worked fine - I don't think there will be any
limit on size.

I made a blog post about this at

http://justincc.org/blog/2009/11/27/load-opensim-regions-oars-directly-f
rom-the-web/

but forgot to announce it here, so thanks Chris!

And Chris is right - this has actually been in the code for a long
while, at 
least since 0.6.6.  I'm always astounded that people put this stuff in
but don't 
announce it (I didn't write the original code).  Indeed, I'd completely 
forgotten about it until I had a bout of laziness today when I wanted to
try out 
the new OpenVCE/Clever Zebra OAR.

And when I did try it I found that it didn't work initially because that
OAR 
wasn't registered with the MIME type "application/x-oar" on the
webserver.  So 
the tweak I made yesterday (and backported to 0.6.8.RC1) was to disable
the 
check - I don't think that it's particularly important since with "load
oar" 
we're always trying to load an OAR - we don't need to perform different
actions 
depending on what the file actually is.

So as Chris said, this should also work on older OpenSim versions (at
least 
0.6.6 and perhaps earlier).  The reason why I didn't really publicize
this fact 
is that I wanted to avoid problems where people tried to download an OAR
with an 
older version of OpenSim and found that they couldn't because a MIME
type on the 
webserver hadn't been set appropriately, particularly since 0.6.8 will
remove 
this issue.  But that's just a personal judgement - if people do want to
talk 
about then don't let me stop you :)

> 
> Jeroen
> 
> Op vrijdag 27 november 2009 22:54:48 schreef Chris Hart:
>> Partially in response to this thread, and in response to Justin's
latest
>> commit to implement web loading of OAR files (which he also kindly
added
>> to 0.6.8-post-fixes) - Justin enabled the following as valid syntax:
>>
>> Load oar http://path.to/oarfile.oar
>>
>> So you can host OAR files on a web server and now load them without
>> having them locally.
>>
>> That said, from looking at the code changes, this has actually been
>> possible for a long time if you have registered the mime type for
.oar
>> on your web server.
>>
>> On a website hosted on a Windows server with IIS7 I just added the
file
>> extension .oar and set it to serve up "application/x-oar" and
>> successfully loaded an OAR file from the web onto an OpenSim 0.6.6
>> system. Those of you out there familiar with registering mime types
on
>> other web application platforms such as Apache can likely do the
same.
>>
>> Just thought I'd drop this in here in case it helps anyone :)
>>
>> Chris
>>
>> -----Original Message-----
>> From: opensim-dev-bounces at lists.berlios.de
>> [mailto:opensim-dev-bounces at lists.berlios.de] On Behalf Of Justin
>> Clark-Casey
>> Sent: 25 November 2009 8:21 PM
>> To: opensim-dev at lists.berlios.de
>> Subject: [Opensim-dev] Implemented oar merge facility
>>
>> Today I implemented an oar merge facility on OpenSim trunk.  A merge
can
>> be
>> specified using a --merge switch like so
>>
>> load oar --merge my.oar
>>
>> more details at
>>
>> http://opensimulator.org/wiki/OpenSim_Archives#Usage
>>
>> The merge will leave the existing objects, terrain, region settings
and
>> land
>> parcels in place.
>>
>> I'm not sure how useful merging is without a way to save parts of a
>> region
>> (either via parcel or possibly owner id).  Feedback appreciated as
>> always.
>>
> _______________________________________________
> Opensim-dev mailing list
> Opensim-dev at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-dev
> 


-- 
Justin Clark-Casey (justincc)
http://justincc.org
http://twitter.com/justincc
_______________________________________________
Opensim-dev mailing list
Opensim-dev at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/opensim-dev



More information about the Opensim-dev mailing list