aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-03-17Add regression test for http inventory fetch.Justin Clark-Casey (justincc)3-7/+198
Involved some restructuring to allow regression tests to dequeue inventory requests and perform poll responses synchronously rather than async
2014-03-13Implement osForceBreakAllLinks().Justin Clark-Casey (justincc)4-0/+25
Identical to llBreakAllLinks() except that it doesn't require the script to have link permissions.
2014-03-12Only allow llBreakAllLinks() to work if script has received ↵Justin Clark-Casey (justincc)2-0/+50
PERMISSION_CHANGE_LINKS As per http://wiki.secondlife.com/wiki/LlBreakAllLinks Same as existing llCreateLink() and llBreakLink()
2014-03-12Implement osForceCreateLink() and osForceBreakLink()Justin Clark-Casey (justincc)4-8/+62
These are identical to llCreateLink() and llBreakLink() except that they don't require script permissions. However, osForceCreateLink() still requires that linked and linkee still have the same owner. There's also an AutomaticLinkPermission setting in [XEngine] that could be set to true to prevent the LSL function checks. But this doesn't allow the finer control over which users/scripts, etc. can do this that the OSSL functions provide.
2014-03-12When sending group notices through group messaging, allow the agent ID to ↵Justin Clark-Casey (justincc)3-7/+12
use for fetching group data to be different from im.fromAgentID This is because xmlrpcgroups currently always checks visibility for the requesting agent ID (unlike Groups v2, which can accept UUID.Zero) But group notice IMs have a from agent which is the group rather than the sending agent. Further addresses http://opensimulator.org/mantis/view.php?id=7037
2014-03-11Enable MapImageServiceModule with no refreshDev Random1-12/+22
2014-03-11Instead of auto-creating a parcel on request if one doesn't cover a given ↵Justin Clark-Casey (justincc)2-67/+211
location, fill in gaps or extend existing parcel right after initial data load. This is in line with simpler and still existing behaviour where a default parcel is created if no parcels are in storage at all. Making this change as another step to address current problems with spurious parcels occasionally being created. Also adds regression tests for different load behaviours depending on existing stored parcel data. Relates to http://opensimulator.org/mantis/view.php?id=7035
2014-03-11varregion: remove serialization of region terrain to floats when sending ↵Robert Adams1-2/+6
patches. This should eliminate much memory thrashing and CPU usage while sending initial terrain. The old way of passing terrain was to convert it to an array of floats. This is really bad for large terrain (think 4096x4096 floats). This change passes a dummy float array since the real region info is used anyway and the floats are ignored. (The ignoring the terrain floats is a kludge so as to not change IClientAPI.)
2014-03-10Change terrain update sending to be triggered by frame tick ratherRobert Adams2-61/+93
than everytime terrain is changed. The TerrainModule now hooks the frame event and, if terrain has changed, sends terrain updates to the clients. This polling pattern replaces the previous push on change pattern and will make it easier to do per client throttling and per scene presence terrain update ordering.
2014-03-11Don't start KeyframeMotion timers until all the regions are ready. This ↵Oren Hurvitz1-2/+28
prevents problems in megaregions (prims that think they've crossed over to other regions).
2014-03-11After an object with KeyframeMotion is copied into inventory, resume the ↵Oren Hurvitz1-2/+15
motion (previously it remained stopped)
2014-03-11Send group notices through the same messaging module mechanism used to send ↵Justin Clark-Casey (justincc)4-92/+171
group chat to avoid timeout issues when sending messages to large groups. Only implementing for XmlRpcGroups initially to test. May require MessageOnlineUsersOnly = true in [Groups] to be effective. In relation to http://opensimulator.org/mantis/view.php?id=7037
2014-03-07Add Varregion support to osGetRegionSize OSSL functionDev Random1-1/+3
Signed-off-by: Michael Cerquoni <nebadon2025@gmail.com>
2014-03-07Remove try/catch in LandManagmentModule.GetLandObject() - this is very old ↵Justin Clark-Casey (justincc)1-70/+51
code and the caught exceptions can no longer occur.
2014-03-07Lock m_landlist whilst loading parcels from storage to prevent a race ↵Justin Clark-Casey (justincc)1-7/+18
against any parcel auto-creation in GetLandObject()
2014-03-07Only auto-create a land parcel when there is none in a specified tile if ↵Justin Clark-Casey (justincc)1-1/+13
there is more than 1 existing land parcel. This is because there are still issues with bad parcels being generated in http://opensimulator.org/mantis/view.php?id=7035 Theorizing now that it's possible that something is calling GetParcel() before any parcel data has been loaded from persistence.
2014-03-07Add regression test for sending group notices via xmlrpc groups connector.Justin Clark-Casey (justincc)2-0/+56
2014-03-06Add scene name to bad parcel add loggingJustin Clark-Casey (justincc)1-2/+3
2014-03-06refactor: Simplify land object by using c# get/set auto-properties where ↵Justin Clark-Casey (justincc)1-23/+13
applicable.
2014-03-06minor: slightly simplify code in LandObject.ContainsPoint()Justin Clark-Casey (justincc)1-1/+1
2014-03-06Remove array initialize calls in LMM - these are unnecessary as the VM ↵Justin Clark-Casey (justincc)1-4/+0
already does this.
2014-03-06minor: Increase size of parcel name field in "land show" console command ↵Justin Clark-Casey (justincc)1-12/+12
output. Construct table using CDT rather than string formats
2014-03-06Prevent adding a land object if it overlaps any existing objects that have ↵Justin Clark-Casey (justincc)4-30/+215
not had their bitmaps adjusted. This is to prevent an immediate problem in http://opensimulator.org/mantis/view.php?id=7035 where a development code bug occasionally overlays all the existing parcels with a blank parcel owned by the estate manager and to gather more data. My guess is that this parcel is being created by the new code in LandManagementModule.GetLandObject(), probably some race between threads since this only happens occasionally. Adds regression tests for this case and for parcel subdivide.
2014-03-05Add UUID and ready status (whether region has finished starting up) to "show ↵Justin Clark-Casey (justincc)1-10/+17
regions" console output.
2014-03-05Don't request a terse update after local teleport - this will be done by the ↵Justin Clark-Casey (justincc)1-6/+0
main frame loop anyway and has the potential to race that thread.
2014-03-05If an avatar is sitting, send out position updates to clients for any ↵Justin Clark-Casey (justincc)3-5/+45
change, not just those outside the usual tolerances. This is to allow small adjustments of less than 0.05m in functions such as llSetPrimitiveLinkParams() to work This is another fix for http://opensimulator.org/mantis/view.php?id=7044 Extends regression test for this case.
2014-03-03When positioning agent with PRIM_ROTATION in llSetLinkPrimitiveParams(), set ↵Justin Clark-Casey (justincc)2-12/+38
the global rotation rather than the local rotation Functionally the same as the patch in http://opensimulator.org/mantis/view.php?id=7044, thanks Aleric. This commit also extends the regression test
2014-02-28Maybe slightly reduce warp3d memory leakage by disposing of decoded bitmap ↵Justin Clark-Casey (justincc)1-8/+6
in Warp3DImageModule.GetTexture() However, this still appears to be leaking massively, at least for me. Possible cause is warp3D using GDI objects internally and not disposing of them.
2014-02-27Stop LSL_Api.GetLinkEntities() from creating an unused list on every ↵Justin Clark-Casey (justincc)1-9/+6
parameter except LINK_THIS. Simplify code.
2014-02-27minor: remove unused variable from recent commit 0e23374Justin Clark-Casey (justincc)1-2/+0
2014-02-27refactor: Make osGetPrimtiveParams() and soSetPrimitiveParams() use common ↵Justin Clark-Casey (justincc)1-33/+12
get/set params code in LSL_Api rather than an old copy&pasted section.
2014-02-26Add Util method to load OpSys env varsDev Random1-19/+5
2014-02-26Add some regression tests for previous commit 0e23374Justin Clark-Casey (justincc)1-0/+115
2014-02-26Implement PRIM_ROTATION, PRIM_ROT_LOCAL, PRIM_POSITION and PRIM_POS_LOCAL ↵Justin Clark-Casey (justincc)1-17/+128
when manipulating avatars via llSetLinkPrimitiveParams() Combination of core parts of Freaky's patch at https://github.com/ft-/opensim-patches/blob/master/opensim-llsetlinkprimitive-agent-fix.patch plus further adjustments from myself. Resolves Mantises 6121, 6421, 6573, 6657
2014-02-24Improve regression test TestSetAppearance()Justin Clark-Casey (justincc)1-42/+69
2014-02-24Re-enable regression TestSaveBakedTextures()Justin Clark-Casey (justincc)1-4/+2
2014-02-24Stop mesh avatars that specify the alpha texture in their bake slots from ↵Justin Clark-Casey (justincc)2-38/+67
causing the simulator to continually request that they rebake This is because the alpha texture is not in the cache, we must continue to have the fallback of looking for these and other persisted bakes in the asset service. Relates to http://opensimulator.org/mantis/view.php?id=6927
2014-02-23Make Scene.DefaultDrawDistance to be the max of the region size and theRobert Adams1-1/+3
user setting. Seems this parameter has many side effects.
2014-02-22Fix problem of hurricane speed winds. Thanks Vegaslon.Robert Adams2-11/+6
2014-02-20If texture decode fails in Warp3D map maker, log uuid of asset that failed ↵Justin Clark-Casey (justincc)1-1/+14
to decode along with exception
2014-02-20minor: Add some method doc to AFM,SetAppearanceAssets()Justin Clark-Casey (justincc)1-0/+6
2014-02-20For now, do not replacing missing wearables with default wearables if itme ↵Justin Clark-Casey (justincc)1-144/+190
details cannot be found. This is causing many issues on OSGrid, possibly due to teleporting timing differences with simulators hosted in different places or HG teleports Added a bit more logging for debug purposes. See http://opensimulator.org/mantis/view.php?id=6939
2014-02-20add newRegion parameter to CrossAgentToNewRegion event and trigger the event ↵dahlia3-4/+5
after crossing thread is invoked
2014-02-19add EventManager event OnCrossAgentToNewRegiondahlia2-0/+25
2014-02-19varregion: make scene default draw distance to be the maximum size of theRobert Adams1-1/+8
region. This is a temp fix for the use of draw distance to compute child regions. Eventually must use the draw distance from the viewer for the computation.
2014-02-15Repair check for if in region position (I mean || is kinda like &&).Robert Adams2-2/+2
2014-02-15Fix displacement and location operations on legacy trees and grass inRobert Adams2-5/+5
the 'load oar' and 'scene' commands. Before they were ignored but the code now relies on the SOG.IsAttachment function for attachmentness.
2014-02-15Properly restore position on crossing failure for mega-regions.Robert Adams4-23/+52
Fix odd "cannot cross into banned parcel" viewer error message when crossing into non-existant region. Proper permission failure messages are now returned.
2014-02-15Rewrite of mega-region code to use new form of border checking.Robert Adams7-619/+107
This commit eliminates all of the 'border' class and list code and replaces it with testing if in the current region. Impacts: can make a mega-region out of varregions of the same size; and mega-region combinations must be rectangular (not square but rectangular)
2014-02-15Non-functional changes of numbers into symbolic references and a fewRobert Adams4-4/+6
comments on what variables really mean.