aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Util.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2008-08-18Formatting cleanup.Jeff Ames1-2/+2
2008-08-16Mantis#1965. Thank you kindly, HomerHorwitz for a patch that:Charles Krinke1-0/+19
Places touched: - Added two events for in-packets to LLCLientView: RegionHandleRequest and ParcelInfoRequest - Added sending of two out-packets to LLCLientView: RegionIDAndHandleReply and ParcelInfoReply. - Scene handles the RegionHandleRequest, LandManagementModule the ParcelInfoRequest - Added inter-region request for LandData by RegionHandle and local position. This was implemented as XML-RPC request. The returned LandData isn't complete, it only contains the data necessary for answering the ParcelInfoRequest - Added new CAPS (0009) for RemoteParcelRequest and some methods for LandData handling to LandManagementModule - Added methods for fake parcelID creation and parsing to Util - Fixed missing implementation of interface methods. - Added new file: OpenSim/Framework/Communications/Capabilities/LLSDRemoteParcelResponse.cs NOTE: This is part of the patch, too. Due to the many places touched, I would consider this patch as experimental.
2008-06-27dr scofield's warning safari:Dr Scofield1-1/+1
* commented out [Obsolete(....)] attributes where no replacement feature was available: if we want to attribute code that we think needs to be reworked, we should define a new attribute and use that instead (together with a little tool to retrieve all the attributed code then) * commenting out unused variables
2008-06-26Minor refactoring of POS. Adds a Util.Clamp(x, min, max) function.Jeff Ames1-0/+8
2008-06-25Added support for terrain map to be serialised to xml(as base64 binary). ↵MW1-0/+42
useful for places that the terrain map is needed in a serialised form. Also could add console commands to save and load from files, which should be faster than .raw files (these load/save commands are not included/implemented) Add util functions to compress and uncompress strings. Fixed a couple of modules so they use SceneCommunicationService rather than directly call functions on the CommsManager.
2008-05-16Minor cleanup.Jeff Ames1-4/+3
2008-05-16Formatting cleanup.Jeff Ames1-10/+10
2008-05-09* Minor: Insert utility function to format raw xml strings into indented xml ↵Justin Clarke Casey1-1/+35
for debugging purposes
2008-04-29* Spring cleaning.Adam Frisby1-33/+32
* Added new generic "Location" class to handle 2D integer locations. Going to use it to replace all RegionHandle and X,Y coordinate references throughout the entire project. You have been warned.
2008-04-24replace hard tabs with 4 spaces to be consistant in the source.Sean Dague1-4/+4
Please adjust your editors to not use hard tabs.
2008-04-21* Optimised using statements and namespace references across entire project ↵Adam Frisby1-7/+9
(this took a while to run).
2008-04-14* Get Util.GetHostFromDNS to tell us the dns address it was trying to ↵Justin Clarke Casey1-1/+15
resolve if it fails.
2008-03-24XmlRpcCommand refactoringJohan Berntsson1-0/+13
2008-03-20* First draft resolution of mantis 777, 734, 389 - scripts do not save in ↵Justin Clarke Casey1-22/+0
non-home regions * Should work in multi-region standalone and grid modes * This should also solve other non-home region caps issues (map requests, RC client inventory requests, etc) * We now pass CAPS information on to the destination region on region crossing, and set up a CAPS object when an agent becomes a master * Current limitation is that this will only work if your http_listener_port is 9000 * This is a very early code cut (lots of bad practice, hard coding and inefficiency). However, I wanted to get this out there for feedback and my own sanity. Next few patches will clean up the mess.
2008-03-18Formatting cleanup. Minor refactoring.Jeff Ames1-34/+16
2008-03-18* Added the ability to type the partial name of a region in the start ↵Teravus Ovares1-0/+48
location box and go to that region if it's there. If no close match was found, it sends you home. This is tested on mySQL. There's untested code on grids that are based on sqlite and MSSQL. The SQL statements *should* be right, but your results may very. * Ex, if you want to go to Wright Plaza, you simply need to type Wright Plaza in the start location in the client when you log-in.
2008-03-18Formatting cleanup.Jeff Ames1-26/+25
2008-03-12Applied patch from mantis #610, fixed invalid filenames with ↵MW1-26/+55
dump_assets_to_file set to true. thanks tyre.
2008-03-04Merged 3Di code that provides scene and avatar serialization, and plugin ↵Johan Berntsson1-0/+58
support for region move/split/merge. See ThirdParty/3Di/README.txt. Unless the new modules are used there should be no noticeable changes when running OpenSim.
2008-03-03* Applying Ahzz's profile patch. Thanks Ahzz! Teravus Ovares1-3/+19
* Fixed a few bugs in the patch that are sim crashers. * There's still a bug in mySQL mode/ grid mode where the main userprofile text doesn't save.
2008-02-08* Applying mantis 339 patches round 2 -- Thanks daediusAdam Frisby1-2/+36
2008-01-23* Added ReadEtcIssue to Util Teravus Ovares1-0/+22
* If you have Debian running, you should get a platform line that says, 'Found Debian!' when starting up your sim. * If someone running Debian will confirm this does occur, that would be most helpful.
2008-01-15* Mother of all commits:Adam Frisby1-1/+1
* Cleaned up copyright notices in AssemblyInfo.cs's * Added Copyright headers to a bunch of files missing them * Replaced several common string instances with a static constant to prevent reallocation of the same strings thousands of times. "" -> String.Empty is the first such candidate.
2008-01-10Whitespace cleanup.Jeff Ames1-21/+21
2007-12-31Make it possible for new inventory 'libraries' to be added without changing ↵Justin Clarke Casey1-1/+6
the default OpenSimLibrary files. Additional library folders and items can be added in a separate directory and linked in by an entry to inventory/Libraries.xml
2007-12-29Allow OpenSim operators to specify their own asset sets without needing to ↵Justin Clarke Casey1-0/+5
change the default OpenSim set. Equivalent changes to allow operators to also specify their own standard inventory library directories and items to follow.
2007-12-28* Patch from Melanie provides Util.CleanString and uses it on the prim name ↵Teravus Ovares1-5/+28
and description. Thanks Melanie.
2007-12-28* Added ability to create new prim on existing prim (rezzing prim from ↵Teravus Ovares1-0/+12
inventory on other prim coming soon). No more new prim buried in the ground by accident. * The prim are at the absolute position of the prim you rezzed it on top of + (0,0,0.5) for now.
2007-12-27* Optimized usingslbsa711-8/+9
* shortened references * Removed redundant 'this' * Normalized EOF
2007-12-20Fix up other sqlite db interactions to use non-hyphenated uuidJustin Clarke Casey1-1/+1
Inventory contents retrieval and persistent region storage standalone now appear to work as well as they did before :) This patch will not fix grid problems. May be bugs present due to conversions I didn't spot. I personally probably don't have any more time for this today. I'm also not entirely convinced this is the right way forward so this might be a handy pause for thought. I'll also be delighted if I wake up tommorrow and everything is fine again.
2007-12-20Establish Util.ToRawUuidString to get LLUUIDs in unhyphenated formJustin Clarke Casey1-0/+10
Apply method to UUID crud in SqliteInventoryStore as an initial test This appears now to successfully recover inventory upon login This will almost certainly only work on standalone
2007-12-20Added patch from Johan. First attempt to solve the LibSL.Packet GC problem. ↵Jeff Ames1-1/+1
Works with LibSL rev>1532
2007-12-19Misc. cleanup:Jeff Ames1-0/+10
* added Util.Clip(value, min, max) * modified asset cache's numPackets calculation to use max packet size (600) instead of 1000 * removed a few magic numbers
2007-12-10saved OpenSim source code from the giant rampaging unterminated copyright ↵Jeff Ames1-2/+2
notice of doom
2007-12-07Updates to LibSL revision 1498. Thanks Johan!Adam Johnson1-0/+6
2007-10-31* Moved OpenSim/Framework/General to OpenSim/Framework for great justice.lbsa711-0/+0
2007-10-30* Optimized usingslbsa711-32/+29
* Shortened type references * Removed redundant 'this' qualifier
2007-10-29as per the "Filesystem cleanup for OpenSim repository" mailing list thread. ↵MW1-1/+1
Have flattened the OpenSim.Framework project/namespace. The problem is that the namespace is still wrong as its "OpenSim.Framework" while the directory is "OpenSim\Framework\General" , so we need to decide if we change the directory or correct the namespace. Note this has lead to a big flat project, but I think a lot of the files we most likely don't even use any longer. And others belong in other projects/namespaces anyway.
2007-10-28*Replaced -useexecutepath with an updated -inifile extension. You can now ↵mingchen1-22/+0
specify either a filename (will use the default config path, or you can specify a full path.
2007-10-19*Added -useexecutepath to use the path of the .exe as the path to find ↵mingchen1-0/+24
configuration and libraries and not the current working directory.
2007-09-12Fixed DNS resolve bug for Grid mode on multi-Homer systems.Tedd Hansen1-0/+7
2007-09-10mass update of urls in source code to new websiteSean Dague1-1/+1
2007-09-08Converted the LSL scripting engine into a IRegionModule, so now all ↵MW1-7/+7
"modules" share a common base interface and are loaded from the single loader. (It seems to work fine, but I have left the old scriptengine loader, incase we have to change back). Removed the reference to OpenJpeg in the DynamicTextureModule, to see if that was causing the build problem someone is having. Added a Temporary fix for the "existing connection was forcibly closed by the remote host" exception on windows when a user logs out of a multiregion instance. Some early work to prepare for improving the way clients are updated (about prims etc).
2007-08-15Temporary fix for the region crossing crash, Although we need to start to ↵MW1-1/+24
change and improve how we handle caps.
2007-08-10Some cleaning up and removed a few old files no longer in use.MW1-0/+25
Temporary have had to rename the OpenSim.DataStore.MonoSqlite project to OpenSim.DataStore.MonoSqlite1, as I'm not sure what was done to stop the old project name being included in the VS2005 solution. Also some config changes: OpenSim now has a INI (OpenSim.ini) file that it will read some config settings from (if the ini file exists). Added Mono.Data.SqliteClient.dll so that we can use the same code for sqlite on Windows and mono/linux. (from what I can tell Mono class libraries have a MIT license so there should be no problems with us including this dll). So now to get the basic prim storage working , you need to first create the sqlite database file from the sqlite3-prims.sql in share directory. Then in the OpenSim.ini file, change the storage_plugin so it points to OpenSim.DataStore.MonoSqlite1.dll (storage_plugin = OpenSim.DataStore.MonoSqlite1.dll). Then in your region.xml files change the DataStore value so it is the name of your database file (at the moment you need a different sqlite3 database file for each region).
2007-08-03Changes to prepare for future possible configuration of separate logdir, ↵Brian McBee1-0/+34
configdir, datadir.
2007-08-01* Workaround for Mono not correctly implementing the OperatingSystemVersion ↵Adam Frisby1-2/+1
class.
2007-07-30* Added GetLocalHost() to UtilAdam Frisby1-0/+20
* ExternalHostName supports "SYSTEMIP" again.
2007-07-29* Added new compatibility functions to UtilAdam Frisby1-0/+55
* IsEnvironmentSupported() - returns whether the platform is supported, if not, an error message is specified (at the moment restricts 95/98/ME, Systems that lack HTTPD.SYS and versions of the .NET framework prior to 2.0) * GetFileName() - returns a system valid filename, on windows this places data in the Application Data directory, on UNIX, the folder in which the application is calling from.
2007-07-18* Added "GetHostFromDNS" to Util to replace the various DNS resolution ↵Adam Frisby1-0/+25
methods we use. Favours IPv4 addresses before IPv6 addresses to work around the Vista preference issue.