Commit Graph

3727 Commits (bf7ef8c41a24ead7e9cd0cc44f6e5001127ac9d1)

Author SHA1 Message Date
Sean Dague 8f58a9a107 From Justin Casey (IBM)
While exploring what it would take to get the 'new script' button working,
I encountered the fact, some way down in the rabbit hole, that if a user
renamed an item in their inventory and logged out (without a restart of
the simulator), on log in the new name was not preserved.

As far as I can see, this was because any updates which didn't occur
inside a transaction were ignored by opensim.  This patch pays attention
to those changes.  It generates a new asset when an item is updated and
changes the user's inventory properties appropriately.  I believe this
behaviour is in line with the copy-on-write semantics used in the Second
Life protocol - perhaps it could be optimized if we knew for sure that the
only copy of the object was in the user's inventory.

This also means that if you rename an item (e.g. a script) before you drag
it into an object's inventory, the inventory will receive the item's most
recent name and description.
2007-12-03 20:06:01 +00:00
Teravus Ovares 5061808afc * Now using interpolation to expand the 256x256 heightfield data to 512x512 before it's passed to ODE. 2007-12-03 19:21:26 +00:00
Sean Dague c29105aa3e This is a simple patch which just renames an IClientAPI method to
SendInventoryItemCreateUpdate() in order to reflect the actual packet it
sends (UpdateCreateInventoryItem).

From Justin Casey (IBM)
2007-12-03 17:24:27 +00:00
MW 690e517240 Added a flag to load-xml console command, that will generate new uuids for the loaded Sceneobjects (as per mantis request #53).
To use append "-newUID" to the end of the command, so new format is : "load-xml <filename> -newUID". 
If you don't add the "-newUID", then the uuids in the xml file will be kept.
2007-12-03 14:57:39 +00:00
MW 4eba3373dc Fixed bug in Appearance update in AvatarFactoryModule. 2007-12-03 14:37:20 +00:00
Teravus Ovares 0ec208a200 * Resize terrain heightmap info going to ODE to double the resolution.
* Using the nearest neighbor method, interpolation coming soon.
2007-12-03 13:11:15 +00:00
MW 285fa3fe9e Some refactoring 2007-12-03 10:36:32 +00:00
MW 9f5e1efc2d Added another .ini file error catch to the RemoteAdminPlugin Initialise method. 2007-12-03 09:58:25 +00:00
MW 634a22185d Applied patch from mantis issue #110 (with one or two tiny changes) , thanks mpallari/_SomeOne_ 2007-12-03 09:50:33 +00:00
Jeff Ames 1dfa05c823 added svn:ignore on stuff in ApplicationPlugins/RemoteController 2007-12-03 07:43:47 +00:00
Adam Frisby c4afb81f47 * Removed VS added directory. 2007-12-03 07:38:06 +00:00
Adam Frisby 1d5e19e476 * Added a XMLRPC Restart command to RemoteAdminPlugin 2007-12-03 07:28:04 +00:00
Jeff Ames 4c0ddacc16 minor meaningless changes 2007-12-03 07:26:27 +00:00
Adam Frisby c8faccb396 * Added XMLRPC Broadcast Alert method.
* Renamed a few console messages to match the new "RADMIN" tag for remote-admin stuff.
2007-12-03 07:14:58 +00:00
Jeff Ames 27a731ae1a set svn:eol-style 2007-12-03 07:10:08 +00:00
Adam Frisby 981c97502a * Moved XMLRPC Controller to a Application Plugin. Requires testing. 2007-12-03 07:06:46 +00:00
Adam Frisby 4b95eb589b * Applied a few commits left on my laptop to OpenSimController. 2007-12-03 06:29:36 +00:00
MW 555afddbad Just for Cfk! 2007-12-02 21:44:14 +00:00
MW ac77c32453 Attempt to fix mantis issue #82, taking prims into inventory and then rezzing them in another region. 2007-12-02 20:43:21 +00:00
MW 5ae8759de1 Added some error handling (and console output) to BaseHttpServer.
a few other bits of refactoring.
2007-12-02 18:49:42 +00:00
MW cac98171e5 Very partial Avatar Appearance (ie, clothes/body parts) "storage". In standalone mode it will mean that when you log off and log back on ,as long as the region server hasn't been restarted , your avatar will start with wearing the clothes that it wore on log off. In grid mode its even more limited in that wearing/removing clothes/body parts are only stored in the region server instance you are one. so if you are in a different region to your login region (which are on different region server instances), and then change clothes, those changes won't be remembered. So as said, its very limited but is a small step towards having proper appearance persist.
Just need to store this data out to a database.
2007-12-02 14:56:23 +00:00
MW 86ae8e97cd Fixes a bug that my last commit introduced. 2007-12-02 14:12:56 +00:00
MW 80609c2b15 Some refactoring , mainly on Inventory code. 2007-12-02 13:59:15 +00:00
MW b92df4aaaf New Inventory folder should now be stored to the inventory server/database. This also seems to fix the problem of Body parts not being persisted properly. 2007-12-02 10:21:17 +00:00
MW 0a2425432a Rezzing multiple copies of a inventory prim should now work. 2007-12-01 21:52:10 +00:00
Jeff Ames 2852cd9d73 attempt to fix sitting-related bugs #3 and #67 2007-12-01 21:45:43 +00:00
MW 96ac8f00c7 Due to popular demand, a rezzed prim should no longer delete the original inventory item. (hasn't been tested to make sure no conflicts happen if that new rezzed object is then taken back into inventory but don't think there will be any) 2007-12-01 21:16:42 +00:00
MW 5c866bc6ff as a Test, attempted to disable mysql inventory table auto creation. 2007-12-01 21:03:10 +00:00
MW 4dee53c7fb Attempt to fix mantis issue # 73 2007-12-01 20:57:14 +00:00
MW a274acc7b8 added the mysql table files for inventory. Thanks nebadon. 2007-12-01 20:12:36 +00:00
MW 6c9e588acb On login, if a set of inventory folders doesn't exist for the user then a new set is created in the inventory database. Most likely still better to use some other script to populate the inventory database instead of relaying on this. 2007-12-01 19:57:23 +00:00
MW 5df851761a Initial working Grid Inventory server. Only been tested on a very small grid, so likely to have problems on a larger grid with more people?
To use , both the user server and Inventory server need to be running this latest revision. (older regions should be able to still be used, just the user won't have inventory on them). Also and HERE IS THE BIG BREAK ISSUE, currently, so that the initial inventory details for a user are added to the inventory db , you need to recreate the accounts using the user server "create user" feature. It should be quite easy to manual populate the inventory database instead but I someone else will need to look into that) Also I've only tested using SQLite as the database provider, there is a Mysql inventory provider but I don't know if it works (SQLite is set as default, so you will need to change it in the inventory server config.xml)
2007-12-01 18:49:17 +00:00
MW fff468dcfe Attempt to fix mantis issue # 65, seems like it is a race condition between two regions trying to add a user to the AssetTransactionManager at the same time. So have placed a lock around the Dictionary add. 2007-12-01 16:40:26 +00:00
MW 495cf040be Attempted fix for mantis issue# 66 2007-12-01 15:20:49 +00:00
MW c28f505caa small bit of refactoring 2007-12-01 14:31:21 +00:00
MW 7bc28e0571 the fix, so that trunk works again 2007-12-01 14:25:46 +00:00
MW 27f182ac54 Part 1 of a commit. This revision will not compile, part 2 will be added in a couple of minutes that should fix that.
Some work towards persisting Avatar Appearance (what is being worn).
Added OnAvatarNowWearing event to IClientAPI that is triggered by AgentIsNowWearing packets.
stub code to subscribe to this event in AvatarFactoryModule. 
Todo: code needs to be added to AvatarFactoryModule to save the uuids to a database and then read them back when that modules TryGetIntialAvatarAppearance() method is called.
Done some changes to Scene to make it easier to subclass it: including changed some private fields to protected and made some methods virtual.
2007-12-01 14:20:37 +00:00
Jeff Ames 6aef4a09f9 set svn:eol-style 2007-12-01 12:12:41 +00:00
Sean Dague e36ddb0e8c mod packetqueue to use the throttle class container 2007-11-30 21:51:13 +00:00
Sean Dague 174a3d2ca1 the packet throttle stuff is duped enough that a
seperate container for this probably makes the limits easier to
understand
2007-11-30 21:29:21 +00:00
Sean Dague 9c07a98831 starting to fill out PacketQueue, refactoring as I go. This
doesn't link into the rest of the code yet, and won't until it
is complete.
2007-11-30 21:09:49 +00:00
Teravus Ovares b287015028 * Fixed a bug in my 'user already logged in' fix that could cause a null reference exception. 2007-11-30 21:01:03 +00:00
Sean Dague b167507e32 Patch for mantis 0000015: Textures don't display in the object
properties window

From Justin Casey (IBM)
2007-11-30 20:16:40 +00:00
Teravus Ovares 95c68a316a *Refactored the initial raytracer so it doesn't use the Parent reference.
*Fixed a 'statement out of order' error in the setting of the permissions that are sent to the client.
2007-11-30 16:29:23 +00:00
Sean Dague d2fe290bb6 return of the inv-lib-root patch from Justin Casey (IBM)
Should fix libsl login ability.  No long breaks my login
to test environment.
2007-11-30 15:27:56 +00:00
MW 0b2934a1b1 added support for a console command script to be ran every 20 minutes (will make that time changable in a future commit), to use add a entry under the Startup section of opensim.ini , with: timer_Script = "<filename>" (the filename being the console "script" you want to be ran every 20 minutes). This hasn't been tested very much so.. 2007-11-30 15:10:47 +00:00
MW c1d66a8564 small change to OnSceneGroupMove event (in SceneEvents.cs) 2007-11-30 12:10:12 +00:00
lbsa71 6e22faf73e * Refactored away permissions and physics flag duplications 2007-11-30 09:42:36 +00:00
lbsa71 0d5d111619 * Made RegionUp virtual 2007-11-30 08:54:42 +00:00
lbsa71 d2b1b54f49 * Removed permissions flag appliance from Xml deserialization
* Various code convention compliance
2007-11-30 08:08:14 +00:00