aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Object update prioritization by Jim Greensky of Intel Labs, part one. This ↵John Hurliman2009-10-151-2/+2
| | | | implements a simple distance prioritizer based on initial agent positions. Re-prioritizing and more advanced priority algorithms will follow soon
* Merge branch 'diva-textures-osgrid'Melanie2009-10-041-1/+1
|\
| * * Creates Util.UTF8 and switches some references of Encoding.UTF8 to ↵John Hurliman2009-10-021-1/+1
| | | | | | | | | | | | Util.UTF8 (not all references were switched since not all OpenSim libraries reference OpenSim.Framework) * Shrinks the largest in-memory object, the LLRAW.HeightmapLookupValue struct (only used for exporting to LLRAW terrain files), to the minimum possible size. This seems to have the odd side effect of cutting the size of the two double[256,256] terrain objects in half. Possibly an alignment optimization?
* | - cleaning up LandData/ILandObject capitalization issuesdr scofield (aka dirk husemann)2009-10-021-5/+5
| | | | | | | | - adding LandDataSerializer to OAR mechanics
* | First pass at the heart surgery for grid services. Compiles and runs ↵Diva Canto2009-09-261-10/+15
| | | | | | | | minimally. A few bugs to catch now.
* | addition of a new script function osSetParcelSIPAddress(string SIPAddress), ↵Rob Smart2009-09-181-0/+29
|/ | | | | | | | now including iVoiceModule This patch allows the land owner to dynamically set the SIP address of a particular land parcel from script. This allows predetermined SIP addresses to be used, making it easier to allow non OpenSim users to join a regions voice channel. Signed-off-by: dr scofield (aka dirk husemann) <drscofield@xyzzyxyzzy.net>
* fix: unicode notecards not surviving script treatment (fixes #4119 ---dr scofield (aka dirk husemann)2009-09-091-4/+4
| | | | perhaps).
* - making font name used by VectorRenderModule configurable: can be setdr scofield (aka dirk husemann)2009-08-311-0/+9
| | | | | | | | | | | via [VectorRender] font_name = "Comic Sans MS" in OpenSim.ini - adding osSetFontName OSSL function
* Implements osDrawPolygon, similar to already implemented osDrawFilledPolygonArthur Valadares2009-08-281-0/+19
|
* Implemented osPenCap, that sets EndCap and StartCap to Pen. This allows ↵Arthur Valadares2009-08-251-0/+9
| | | | | | using arrow, diamond, round and flat caps. * Made image request safer, if it can't find an image for any reason, draws a square where the image should be and a message alerting the user.
* Adds osDrawPolygon to OSSL. Works a little different then other OS Drawing ↵Arthur Valadares2009-08-211-0/+19
| | | | | | functions, this one has no start and end point, but a number of points that will form the desired polygon. Only FilledPolygon implemented so far. * Also added some LSL transparent type conversion, as it's done in LSL scripting (string to integer, float to string, etc)
* * Moves NPC Creation across AppDomains to prevent a major perfomance issue.Adam Frisby2009-08-211-0/+2
|
* * Fleshes more of NPCModule out.Adam Frisby2009-08-211-0/+52
| | | | | | | | | * Implements some OSSL commands: key osNpcCreate(string user, string name, vector position, key cloneFrom); void osNpcMoveTo(key npc, vector position); void osNpcSay(key npc, string message); void osNpcRemove(key npc); * Untested. Requires ThreatLevel.High.
* 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.