aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove the script sponsor logic because scripts are timing out again.Melanie2009-08-141-3/+3
| | | | | | This needs to be looked into. This commit, unfortunately, reinstates a memory leak in regions that see significant script fluctuation, e.g. lots of scripted attachments, or script development.
* Formatting cleanup.Jeff Ames2009-08-091-5/+5
|
* Merge branch 'master' of ssh://melanie@opensimulator.org/var/git/opensimMelanie2009-08-081-2/+2
|\
| * This is the second part of the 'not crash on regionsize changes'. This ↵Teravus Ovares (Dan Olivares)2009-08-071-2/+2
| | | | | | | | lets you configure region sizes to be smaller without crashing the region. I remind you that regions are still square, must be a multiple of 4, and the Linden client doesn't like anything other then 256. If you set it bigger or smaller, the terrain doesn't load in the client, the map has issues, and god forbid you connect it to a grid that expects 256m regions.
* | Update threat level descriptionMelanie2009-08-081-0/+1
|/
* Thank you, Godfrey, for a patch that implements osGetLinkPrimitiveParamsMelanie2009-08-071-0/+20
| | | | | | | Fixes Mantis #3979 Applied with changes. Changed ThreatLevel to High since all discovery functions are a high threat. Overriding that is the responsibility of the grid owner.
* Another stab at cmickeyb's patch for script GC.Melanie2009-08-071-4/+3
| | | | | Moved the Close() for the appdomain-hosted parts into a new destructor on ScriptInstance.
* Add a method to init the OSSL Api's m_LSL_Api member back to the OSSL ApiMelanie2009-08-071-1/+9
|
* Revert the XEngine memleak patch, it causes premature GC.Melanie2009-08-071-3/+4
| | | | | This matches behavior seen with an earlier attempt to do this, apparently the sponsor mechanism does't work in Mono
* |From: James J Greensky <jame.j.greensky@intel.com>Melanie2009-08-061-4/+3
| | | | | | | | | | | | | | | | | | | |Date: Wed, 5 Aug 2009 09:51:52 -0700 |Subject: [PATCH] Closed two major memory leaks for scripted objects | |Two major memory leaks for the scripted objects were fixed |- One leak had to do with remoting acrossing app domains. When a script and | its controlling agent communicate across an application boundary, it calls | functions on a stub proxy object that then invokes the remote method on | the object in the other app domain. These stub objects (two for each script) | were setup to have infinate lifetimes and were never being garbage collected. |- The second leak was the result of adding a scene object part instance method | to a scene event and never removing it. This cause the event's delegate list | to maintain a link to that object which is then never freed as the scene event | object is never destroyed. Patch applied, please direct feedback to me. Possible issue: Longtime idle scripts like vendors may fail.
* Restore the functionality that was removed in r9928. This lets the loadMelanie Thielker2009-07-011-1/+1
| | | | | | | | | balancer plugin work again. Create a new method, GetClientEP, to retrieve only the EndPoint for script usage. Marked the purpose of the method in IClientAPI.cs with a warning. Also restored the corresponding SetClientInfo functionality.
* Formatting cleanup.Jeff Ames2009-06-101-1/+1
|
* From: Alan Webb <alan_webb@us.ibm.com>Dr Scofield2009-06-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change addresses two issues: [1] It adds a flag field to the blendface call which allows the caller to indicate whether or not the generated asset is temporary, and whether or not the asset being replaced should be explicitly retired fromt the memory cache. The decimal values correspond to: 0 - Permanent asset, do not expire old asset 1 - Permanent asset, expire old asset 2 - Temporary asset, do not expire old asset 3 - Temporary asset, expire old asset '3' corresponds to the default behavior seen today, and is the continued behavior of the non-blendface calls. [2] The dynamic texture routines are highly-asynchronous and can be scheduled simultaneously on a multi-core machine. The nature of the texture management interfaece is such that updates may be lost, and the nature of asynchornous operation means that they may be processed out of order. A lock has been added to ensure that updates are at least atomic. No attempt has been made to enforce ordering. The lock applies to the SceneObjectPart being updated and is held for the lifetime of the TextureEntry used to carry texture updates (the one instance carries all faces supported by the prim). Users of these services should remember that the dynamic texture call is asynchronous and control will be returned *before* the texture update has actually occurred. As a result, a isubsequent GetTexture call may not return the expected asset id. A script must wait for the corresponding TEXTURE_CHANGED event before retrieving any texture information.
* From: Chris Yeoh <yeohc@au1.ibm.com>Dr Scofield2009-06-031-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds oar file date and time (UTC) meta data to an oar file when it is created. It also adds a unique ID, though this id does not in anyway identify the machine that the oar file was created on. When an oar file with this meta data is loaded this extra information is saved with the region settings and available via LSL through: - osLoadedCreationDate() - osLoadedCreationTime() - osLoadedCreationID() If there is no meta data these fields will be blank. Subsequent oar file loads will erase the information for the previous oar file load. Persistence has only been implemented for MySQL, the other backends need updating. Overall this allows us to much more easily identify the specific version of software that clients are using. Its very straightforward to edit the oar file to change the ID string to be something more human friendly. Included in the patch is a new file OpenSim/Data/MySQL/Resources/030_RegionStore.sql required for the MySQL DB migration. btw I had a chat with justincc about this a few weeks ago since he wrote the oar file import/export and he sounded happy to accept something that included date/time information but didn't want anything that would silently leak private information like machine names.
* Minor: Change OpenSim to OpenSimulator in older copyright headers and ↵Jeff Ames2009-06-011-1/+1
| | | | LICENSE.txt.
* From: Alan Webb <alan_webb@us.ibm.com>Dr Scofield2009-05-221-0/+51
| | | | | | | | | | Changes to support client-side image pre-caching in the region. This commit adds an additional calling sequence to the DynamicTexture data and URL calls. The new interface allows a dynamic image to be loaded into a specific object face (rather than the mandatory ALL_SIDES supported today. This is in part fulfilment of ticket #458.
* Heart surgery on asset service code bits. Affects OpenSim.ini configuration ↵diva2009-05-151-4/+4
| | | | | | | | | | | | -- please see the example. Affects region servers only. This may break a lot of things, but it needs to go in. It was tested in standalone and the UCI grid, but it needs a lot more testing. Known problems: * HG asset transfers are borked for now * missing texture is missing * 3 unit tests commented out for now
* Fixed handling of inventory a bitHomer Horwitz2009-05-091-2/+2
| | | | | | | | | - AssetType isn't InventoryType. Those enums contain different numbers. Use AssetType for the asset type, InventoryType for the inventory type. - The ToString method (or ToLower) of AssetType/InventoryType doesn't necessarily return the correct LLSD string. - Replaced several magic numbers by their corresponding enum. - Fixed the invType for gestures and animations in the library. This should fix Mantis #3610 and the non-terminating inventory loading
* Thank you, Orion_Shamroy, for a patch to expand notecard readingMelanie Thielker2009-04-271-31/+130
| | | | | | | capabilities in OSSL. Fixes Mantis #3543
* Thank you, Orion_Shamroy, for a patch that adds osGetNotecardLine andMelanie Thielker2009-04-271-0/+79
| | | | | | | osGetNumberOfNotecardLines Fixes Mantis #2942
* Terrain changes done via osTerrainSetHeight aren't shown immediately to the ↵Homer Horwitz2009-04-191-32/+40
| | | | | | | | | | clients in that region. I decided against sending the terrain on every call to osTerrainSetHeight (which makes it abysmally slow), and added a osTerrainFlush instead, which should be called after all the terrain-changes have been done. Changed some return types to LSL types, too, and removed some end-of-line spaces.
* * Also use the profile cache for osKey2Name()Justin Clarke Casey2009-04-171-4/+4
|
* * Use cached user profiles in osAvatarName2Key()Justin Clarke Casey2009-04-171-4/+5
|
* From: Christopher Yeoh <yeohc@au1.ibm.com>Sean Dague2009-04-091-0/+41
| | | | | | | | | | | The attached patch implements osKey2Name and osName2Key which converts between a UUID key for an avatar and an avatar name and vice-versa. osKey2Name is similar to llKey2Name except that it will work even if the avatar being looked up is not in the same region as the script.
* Add copyright headers, formatting cleanup.Jeff Ames2009-04-061-19/+19
|
* Thanks BlueWall for a patch that adds Hypergrid dynamic linking to ↵diva2009-04-051-0/+20
| | | | osTeleportAgent. Fixes mantis #3408.
* Thank you kindly, MCortez for a patch that:Charles Krinke2009-03-311-1/+44
| | | | | | | | | | | | With some support from HomerH, this patch adds support for Wind Model plugins via the mono.Addin framework. * Adds console & OSSL access to Wind Parameters * Adds plug-in support for custom wind models * Provides two example Wind Model plug-ins Documentation for the wind module is temporarily located at http://code.google.com/p/flotsam/wiki/CoreWindModule [^] -- will move this documentation to http://opensimulator.org [^] after the patch has been committed.
* - adding osGetAgents() which returns a list of all avatars in the regionDr Scofield2009-03-261-46/+73
| | | | | | | | in which the script is running. - found a bag of space characters under my desk, thought i'd donate them to the JSON OSSL function (aka clean up)
* Thank you, mcortez, for patch to add functionality to the sun module.Melanie Thielker2009-03-201-0/+88
| | | | | | Fixes Mantis #3313
* Fixes Mantis #3294. Thank you kindly, Godfrey, for a patch that:Charles Krinke2009-03-151-2/+40
| | | | | | | | | Attached is a patch which provides osAvatarPlayAnimation() the ability to also trigger animations contained within the same prim as the script, as llStartAnimation() does. (It also modifies osAvatarStopAnimation(), otherwise the script wouldn't be able to stop animations it had started.)
* Thank you, mcortez, for a patch that fixes a number of long standingMelanie Thielker2009-03-131-0/+27
| | | | | | | issues with the sun module. Fixes Mantis #3295
* * refactor: Remove GetLandOwner function from SceneJustin Clarke Casey2009-03-061-12/+12
| | | | | | * Simplify since the land is never null
* * refactor: move media and music url setting from scene into LandObjectJustin Clarke Casey2009-03-051-1/+1
|
* After another heroic and bloody battle, OpenSim Dino Expedition 1, killed ↵MW2009-03-021-14/+0
| | | | off OsSetParcelMediaTime, which was only ever added for testing. And all the logic code of it has been commented out for a long time.
* This adds a new osGetAgentIP function with threat level set to High. ItSean Dague2009-02-261-0/+29
| | | | | | | isn't tested, but it doesn't break anything else. The reason for this function is to let in world tools be used to coordiante out of world network services that need access to client ip addresses.
* Mantis#3218. Thank you kindly, TLaukkan (Tommil) for a patch that:Charles Krinke2009-02-221-1/+1
| | | | | | | | | * Added log4net dependency to physxplugin in prebuild.xml. * Added missing m_log fields to classes. * Replaced Console.WriteLine with appropriate m_log.Xxxx * Tested that nant test target runs succesfully. * Tested that local opensim sandbox starts up without errors.
* From: Christopher Yeoh <yeohc@au1.ibm.com>Sean Dague2009-02-181-0/+18
| | | | | | | | | | | | | | The attached patch implements osGetDrawStringSize that looks like: vector osGetDrawStringSize(string contentType, string text, string fontName, int fontSize) in LSL. It is meant to be used in conjunction with the osDraw* functions. It returns accurate information on the size that a given string will be rendered given the specified font and font size. This allows for nicely formatted and positioned text on the generated image.
* Re-add the objectID field to the anim pack, that was deemed unneccessaryMelanie Thielker2009-02-171-1/+1
| | | | | | | | and dropped nonths ago, because it is required to get smooth region crossings with AO running. Without it, in some corner cases, anims will continue to run in an unstoppable state.
* - remove the Metadata property from AssetBase and return all previousMike Mazur2009-02-171-7/+7
| | | | | | | | | properties as before - prefix private variables with m_ in AssetBase.cs - related to Mantis #3122, as mentioned in https://lists.berlios.de/pipermail/opensim-dev/2009-February/005088.html - all services will likely need to be upgraded after this commit
* * refactor: remove AssetCache field hanging off SceneJustin Clarke Casey2009-02-161-1/+1
| | | | | | * This is always available at Scene.CommsManager.AssetCache
* Thank you, cmickeyb, for a patch to ass two string functionsMelanie Thielker2009-02-161-0/+49
| | | | | | | to OSSL. Fixes Mantis #3173
* Thank you, patnad, for a patch that adds 3 new discovery functionsMelanie Thielker2009-02-161-0/+39
| | | | | | | | to OSSL. Applied with changes. Fixes Mantis #3172
* This changeset is the step 1 of 2 in refactoringDr Scofield2009-02-061-2/+2
| | | | | | | | | | | | | | | | | | | | OpenSim.Region.Environment into a "framework" part and a modules only part. This first changeset refactors OpenSim.Region.Environment.Scenes, OpenSim.Region.Environment.Interfaces, and OpenSim.Region.Interfaces into OpenSim.Region.Framework.{Interfaces,Scenes} leaving only region modules in OpenSim.Region.Environment. The next step will be to move region modules up from OpenSim.Region.Environment.Modules to OpenSim.Region.CoreModules and then sort out which modules are really core modules and which should move out to forge. I've been very careful to NOT BREAK anything. i hope i've succeeded. as this is the work of a whole week i hope i managed to keep track with the applied patches of the last week --- could any of you that did check in stuff have a look at whether it survived? thx!
* - add OpenSim.Framework.AssetMetadata class. AssetBase is now composed of itMike Mazur2009-02-041-62/+62
| | | | | - trim trailing whitespace
* Thank you kindly, TLaukkan (Tommil) for a patch that:Charles Krinke2009-02-011-0/+29
| | | | | | Added osTeleportAgent with region coordinates to support hyper grid scripted teleports.
* * minor: just a few formatting changes and log quieteningJustin Clarke Casey2009-01-291-1/+1
|
* * Add direct stream loading and saving methods to the archive module.Justin Clarke Casey2009-01-231-3/+2
| | | | | | * The async stream method does not yet signal completion to interested calling code
* * Move general alert code to DialogModule.Justin Clarke Casey2009-01-071-1/+5
| | | | | | * Should be a clean build - last failure looked like a mantis hiccup
* Some refactoring from about a week ago that I forgot to commit, of ↵MW2008-11-241-1/+1
| | | | AssetTransactionModule to cut down on number of classes and to work towards having a base AssetXferUploader class than can be shared with EstateTerrainXferHandler
* Refactor: Scene.ExternalChecks -> Scene.Permissions. Also make allMelanie Thielker2008-11-211-4/+4
| | | | | | the internals of the permissions module adapter sane