[Opensim-users] Creating oar file from folder
Christopher Yeoh
cyeoh at ozlabs.org
Mon Apr 27 06:37:47 UTC 2009
On Sat, 25 Apr 2009 12:00:55 +0100
Tom Willans <tom.willans at bessacarr.com> wrote:
> I am trying to generate a oar file based upon the folder from a
> decompressed file. I am using the command
>
> tar cvzf myoarfile.tar.gz * from with the folder itself ( this is now
> readable). What am I doing wrong?
Try instead:
tar cvfz myoarfile.tar.gz */*
when you're in the directory.
This under most circumstances avoids including directory entries into the
archive. At one stage the dearchiver was made to be a bit more tolerant
of the input like that but the code appears to have regressed a bit.
Occasionally you'll have oar files with deeper directory hierarchies and you'll need
to firstly produce a file list and get send that to tar directly to avoid
all the directories being included in the archive.
Regards,
Chris.
> 11:37:55 - [ARCHIVER]: Could not find extension information in asset
> path assets/ since it's missing the separator _. Skipping
> 11:37:55 - [ARCHIVER]: Could not parse region settings file
> settings/. Ignoring. Exception was System.Xml.XmlException:
> Document element did not appear. Line 1, position 1.
> at Mono.Xml2.XmlTextReader.Read () [0x00000]
> at System.Xml.XmlTextReader.Read () [0x00000]
> at System.Xml.XmlReader.MoveToContent () [0x00000]
> at System.Xml.XmlReader.ReadStartElement (System.String name)
> [0x00000]
> at
> OpenSim.Framework.Serialization.External.RegionSettingsSerializer.Deseri
> alize (System.String serializedSettings) [0x00000]
> at
> OpenSim.Framework.Serialization.External.RegionSettingsSerializer.Deseri
> alize (System.Byte[] serializedSettings) [0x00000]
> at
> OpenSim.Region.CoreModules.World.Archiver.ArchiveReadRequest.LoadRegionS
> ettings (System.String settingsPath, System.Byte[] data) [0x00000]
> 11:37:55 - [TERRAIN]: Unable to load heightmap, no file loader
> available for that format.
> 11:37:55 - [ARCHIVER]: Error loading oar file. Exception was:
> OpenSim.Region.CoreModules.World.Terrain.TerrainException: unable to
> load heightmap from file terrains/: no loader available for that format
> at
> OpenSim.Region.CoreModules.World.Terrain.TerrainModule.LoadFromStream
> (System.String filename, System.IO.Stream stream) [0x00000]
> at
> OpenSim.Region.CoreModules.World.Archiver.ArchiveReadRequest.LoadTerrain
> (System.String terrainPath, System.Byte[] data) [0x00000]
> at
> OpenSim.Region.CoreModules.World.Archiver.ArchiveReadRequest.DearchiveRe
> gion0DotStar () [0x00000]
>
> I have also tried tar cvzf myoarfile.tar.gz oldoarfolder/ It then
> ignore all the folders within the oar file.
>
> Thanks
> Tom
>
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-users
--
Christopher Yeoh <cyeoh at ozlabs.org>
More information about the Opensim-users
mailing list