aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs5
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs2
-rw-r--r--OpenSim/Region/Framework/Scenes/Prioritizer.cs15
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs4
-rw-r--r--OpenSim/Region/Physics/OdePlugin/OdePlugin.cs1
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs9
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs12
-rw-r--r--README.txt59
-rw-r--r--bin/OpenSim.ini.example6
-rw-r--r--bin/Robust.HG.ini.example2
-rw-r--r--bin/config-include/GridCommon.ini.example8
11 files changed, 78 insertions, 45 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
index 4c01985..c6f8b88 100644
--- a/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Friends/FriendsModule.cs
@@ -504,7 +504,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
504 UUID principalID = new UUID(im.fromAgentID); 504 UUID principalID = new UUID(im.fromAgentID);
505 UUID friendID = new UUID(im.toAgentID); 505 UUID friendID = new UUID(im.toAgentID);
506 506
507 m_log.DebugFormat("[FRIENDS]: {0} offered friendship to {1}", principalID, friendID); 507 m_log.DebugFormat("[FRIENDS]: {0} ({1}) offered friendship to {2}", principalID, im.fromAgentName, friendID);
508 508
509 // This user wants to be friends with the other user. 509 // This user wants to be friends with the other user.
510 // Let's add the relation backwards, in case the other is not online 510 // Let's add the relation backwards, in case the other is not online
@@ -522,6 +522,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
522 im.imSessionID = im.fromAgentID; 522 im.imSessionID = im.fromAgentID;
523 523
524 // Try the local sim 524 // Try the local sim
525 UserAccount account = UserAccountService.GetUserAccount(Scene.RegionInfo.ScopeID, agentID);
526 im.fromAgentName = (account == null) ? "Unknown" : account.FirstName + " " + account.LastName;
527
525 if (LocalFriendshipOffered(friendID, im)) 528 if (LocalFriendshipOffered(friendID, im))
526 return; 529 return;
527 530
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs
index 2f1e9dd..0d04491 100644
--- a/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs
@@ -241,6 +241,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
241 im.imSessionID = itemID.Guid; 241 im.imSessionID = itemID.Guid;
242 } 242 }
243 243
244 im.offline = 1; // Remember these
245
244 // Send the IM to the recipient. The item is already 246 // Send the IM to the recipient. The item is already
245 // in their inventory, so it will not be lost if 247 // in their inventory, so it will not be lost if
246 // they are offline. 248 // they are offline.
diff --git a/OpenSim/Region/Framework/Scenes/Prioritizer.cs b/OpenSim/Region/Framework/Scenes/Prioritizer.cs
index 7b7677b..b95b5f2 100644
--- a/OpenSim/Region/Framework/Scenes/Prioritizer.cs
+++ b/OpenSim/Region/Framework/Scenes/Prioritizer.cs
@@ -208,12 +208,19 @@ namespace OpenSim.Region.Framework.Scenes
208 208
209 if (entity is SceneObjectPart) 209 if (entity is SceneObjectPart)
210 { 210 {
211 PhysicsActor physActor = ((SceneObjectPart)entity).ParentGroup.RootPart.PhysActor;
212 if (physActor == null || !physActor.IsPhysical)
213 priority += 100;
214
215 if (((SceneObjectPart)entity).ParentGroup.RootPart.IsAttachment) 211 if (((SceneObjectPart)entity).ParentGroup.RootPart.IsAttachment)
212 {
216 priority = 1.0; 213 priority = 1.0;
214 }
215 else
216 {
217 PhysicsActor physActor = ((SceneObjectPart)entity).ParentGroup.RootPart.PhysActor;
218 if (physActor == null || !physActor.IsPhysical)
219 priority += 100;
220 }
221
222 if (((SceneObjectPart)entity).ParentGroup.RootPart != (SceneObjectPart)entity)
223 priority +=1;
217 } 224 }
218 return priority; 225 return priority;
219 } 226 }
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index 78faa01..09c945b 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -1504,6 +1504,10 @@ namespace OpenSim.Region.Framework.Scenes
1504 DoPhysicsPropertyUpdate(RigidBody, true); 1504 DoPhysicsPropertyUpdate(RigidBody, true);
1505 PhysActor.SetVolumeDetect(VolumeDetectActive ? 1 : 0); 1505 PhysActor.SetVolumeDetect(VolumeDetectActive ? 1 : 0);
1506 } 1506 }
1507 else
1508 {
1509 m_log.DebugFormat("[SPEW]: physics actor is null for {0} with parent {1}", UUID, this.ParentGroup.UUID);
1510 }
1507 } 1511 }
1508 } 1512 }
1509 } 1513 }
diff --git a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
index 100f98d..7fd59a0 100644
--- a/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
+++ b/OpenSim/Region/Physics/OdePlugin/OdePlugin.cs
@@ -1781,6 +1781,7 @@ namespace OpenSim.Region.Physics.OdePlugin
1781 m_log.ErrorFormat("[PHYSICS]: Exception while meshing prim {0}.", primName); 1781 m_log.ErrorFormat("[PHYSICS]: Exception while meshing prim {0}.", primName);
1782 m_log.Debug(e.ToString()); 1782 m_log.Debug(e.ToString());
1783 mesh = null; 1783 mesh = null;
1784 return null;
1784 } 1785 }
1785 } 1786 }
1786 1787
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 61c5add..5c6d382 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -4232,22 +4232,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4232 UUID uuid = (UUID)id; 4232 UUID uuid = (UUID)id;
4233 4233
4234 UserAccount account = World.UserAccountService.GetUserAccount(World.RegionInfo.ScopeID, uuid); 4234 UserAccount account = World.UserAccountService.GetUserAccount(World.RegionInfo.ScopeID, uuid);
4235 if (account == null)
4236 return UUID.Zero.ToString();
4237
4235 4238
4236 PresenceInfo pinfo = null; 4239 PresenceInfo pinfo = null;
4237 PresenceInfo[] pinfos = World.PresenceService.GetAgents(new string[] { uuid.ToString() }); 4240 PresenceInfo[] pinfos = World.PresenceService.GetAgents(new string[] { uuid.ToString() });
4238 if (pinfos != null && pinfos.Length > 0) 4241 if (pinfos != null && pinfos.Length > 0)
4239 pinfo = pinfos[0]; 4242 pinfo = pinfos[0];
4240 4243
4241 if (pinfo == null)
4242 return UUID.Zero.ToString();
4243
4244 string reply = String.Empty; 4244 string reply = String.Empty;
4245 4245
4246 switch (data) 4246 switch (data)
4247 { 4247 {
4248 case 1: // DATA_ONLINE (0|1) 4248 case 1: // DATA_ONLINE (0|1)
4249 // TODO: implement fetching of this information 4249 if (pinfo != null && pinfo.RegionID != UUID.Zero)
4250 if (pinfo != null)
4251 reply = "1"; 4250 reply = "1";
4252 else 4251 else
4253 reply = "0"; 4252 reply = "0";
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
index 1ea52c5..212dbe3 100644
--- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
@@ -83,19 +83,19 @@ namespace OpenSim.Region.ScriptEngine.Shared
83 83
84 public override string ToString() 84 public override string ToString()
85 { 85 {
86 string s=String.Format("<{0:0.000000},{1:0.000000},{2:0.000000}>", x, y, z); 86 string s=String.Format("<{0:0.000000}, {1:0.000000}, {2:0.000000}>", x, y, z);
87 return s; 87 return s;
88 } 88 }
89 89
90 public static explicit operator LSLString(Vector3 vec) 90 public static explicit operator LSLString(Vector3 vec)
91 { 91 {
92 string s=String.Format("<{0:0.000000},{1:0.000000},{2:0.000000}>", vec.x, vec.y, vec.z); 92 string s=String.Format("<{0:0.000000}, {1:0.000000}, {2:0.000000}>", vec.x, vec.y, vec.z);
93 return new LSLString(s); 93 return new LSLString(s);
94 } 94 }
95 95
96 public static explicit operator string(Vector3 vec) 96 public static explicit operator string(Vector3 vec)
97 { 97 {
98 string s=String.Format("<{0:0.000000},{1:0.000000},{2:0.000000}>", vec.x, vec.y, vec.z); 98 string s=String.Format("<{0:0.000000}, {1:0.000000}, {2:0.000000}>", vec.x, vec.y, vec.z);
99 return s; 99 return s;
100 } 100 }
101 101
@@ -337,19 +337,19 @@ namespace OpenSim.Region.ScriptEngine.Shared
337 337
338 public override string ToString() 338 public override string ToString()
339 { 339 {
340 string st=String.Format(Culture.FormatProvider, "<{0:0.000000},{1:0.000000},{2:0.000000},{3:0.000000}>", x, y, z, s); 340 string st=String.Format(Culture.FormatProvider, "<{0:0.000000}, {1:0.000000}, {2:0.000000}, {3:0.000000}>", x, y, z, s);
341 return st; 341 return st;
342 } 342 }
343 343
344 public static explicit operator string(Quaternion r) 344 public static explicit operator string(Quaternion r)
345 { 345 {
346 string s=String.Format("<{0:0.000000},{1:0.000000},{2:0.000000},{3:0.000000}>", r.x, r.y, r.z, r.s); 346 string s=String.Format("<{0:0.000000}, {1:0.000000}, {2:0.000000}, {3:0.000000}>", r.x, r.y, r.z, r.s);
347 return s; 347 return s;
348 } 348 }
349 349
350 public static explicit operator LSLString(Quaternion r) 350 public static explicit operator LSLString(Quaternion r)
351 { 351 {
352 string s=String.Format("<{0:0.000000},{1:0.000000},{2:0.000000},{3:0.000000}>", r.x, r.y, r.z, r.s); 352 string s=String.Format("<{0:0.000000}, {1:0.000000}, {2:0.000000}, {3:0.000000}>", r.x, r.y, r.z, r.s);
353 return new LSLString(s); 353 return new LSLString(s);
354 } 354 }
355 355
diff --git a/README.txt b/README.txt
index e19e58e..18784be 100644
--- a/README.txt
+++ b/README.txt
@@ -1,6 +1,8 @@
1Welcome to OpenSim! 1Welcome to OpenSim!
2 2
3================
3=== OVERVIEW === 4=== OVERVIEW ===
5================
4 6
5OpenSim is a BSD Licensed Open Source project to develop a functioning 7OpenSim is a BSD Licensed Open Source project to develop a functioning
6virtual worlds server platform capable of supporting multiple clients 8virtual worlds server platform capable of supporting multiple clients
@@ -10,16 +12,19 @@ C#, and can run under Mono or the Microsoft .NET runtimes.
10This is considered an alpha release. Some stuff works, a lot doesn't. 12This is considered an alpha release. Some stuff works, a lot doesn't.
11If it breaks, you get to keep *both* pieces. 13If it breaks, you get to keep *both* pieces.
12 14
15=========================
13=== Compiling OpenSim === 16=== Compiling OpenSim ===
17=========================
14 18
15Please see BUILDING.txt if you downloaded a source distribution and 19Please see BUILDING.txt if you downloaded a source distribution and
16need to build OpenSim before running it. 20need to build OpenSim before running it.
17 21
22==================================
18=== Running OpenSim on Windows === 23=== Running OpenSim on Windows ===
24==================================
19 25
20We recommend that you run OpenSim from a command prompt on Windows in order 26We recommend that you run OpenSim from a command prompt on Windows in order
21to capture any errors, though you can also run it by double-clicking 27to capture any errors.
22bin/OpenSim.exe
23 28
24To run OpenSim from a command prompt 29To run OpenSim from a command prompt
25 30
@@ -28,7 +33,9 @@ To run OpenSim from a command prompt
28 33
29Now see the "Configuring OpenSim" section 34Now see the "Configuring OpenSim" section
30 35
36================================
31=== Running OpenSim on Linux === 37=== Running OpenSim on Linux ===
38================================
32 39
33You will need Mono >= 2.4.2 to run OpenSim. On some Linux distributions you 40You will need Mono >= 2.4.2 to run OpenSim. On some Linux distributions you
34may need to install additional packages. See http://opensimulator.org/wiki/Dependencies 41may need to install additional packages. See http://opensimulator.org/wiki/Dependencies
@@ -37,48 +44,63 @@ for more information.
37To run OpenSim, from the unpacked distribution type: 44To run OpenSim, from the unpacked distribution type:
38 45
39 * cd bin 46 * cd bin
40 * mono ./OpenSim.exe 47 * mono OpenSim.exe
41 48
42Now see the "Configuring OpenSim" section 49Now see the "Configuring OpenSim" section
43 50
51===========================
44=== Configuring OpenSim === 52=== Configuring OpenSim ===
53===========================
45 54
46When OpenSim starts for the first time, you will be prompted with a 55When OpenSim starts for the first time, you will be prompted with a
47series of questions that look something like: 56series of questions that look something like:
48 57
49[09-17 03:54:40] DEFAULT REGION CONFIG: Simulator Name [OpenSim Test]: 58[09-17 03:54:40] DEFAULT REGION CONFIG: Simulator Name [OpenSim Test]:
50 59
51At each of these you must provide you own value or just hit enter to 60For all the options except simulator name, you can safely hit enter to accept
52take the default (in this case "OpenSim Test"). 61the default if you want to connect using a client on the same machine or over
62your local network.
53 63
54YOUR SIM WILL NOT BE STARTED UNTIL YOU ANSWER ALL QUESTIONS 64You will then be asked "Do you wish to join an existing estate?". If you're
65starting OpenSim for the first time then answer no (which is the default) and
66provide an estate name.
67
68Shortly afterwards, you will then be asked to enter an estate owner first name,
69last name, password and e-mail (which can be left blank). Do not forget these
70details, since initially only this account will be able to manage your region
71in-world. You can also use these details to perform your first login.
55 72
56Once you are presented with a prompt that looks like: 73Once you are presented with a prompt that looks like:
57 74
58 Region# : 75 Region (My region name) #
59 76
60You have successfully started OpenSim. 77You have successfully started OpenSim.
61 78
62Before you can log in you will need to create a user account if you didn't already create 79If you want to create another user account to login rather than the estate
63your user as the "Master Avatar" during the region configuration stage. You can do 80account, then type "create user" on the OpenSim console and follow the prompts.
64this by running the "create user" command on the OpenSim console. This will
65ask you a series of questions such as first name, last name and password.
66 81
67Helpful resources: 82Helpful resources:
68 * http://opensimulator.org/wiki/Configuration 83 * http://opensimulator.org/wiki/Configuration
69 * http://opensimulator.org/wiki/Configuring_Regions 84 * http://opensimulator.org/wiki/Configuring_Regions
70 * http://opensimulator.org/wiki/Mysql-config
71 85
86==================================
72=== Connecting to your OpenSim === 87=== Connecting to your OpenSim ===
88==================================
89
90By default your sim will be available for login on port 9000. You can login by
91adding -loginuri http://127.0.0.1:9000 to the command that starts Second Life
92(e.g. in the Target: box of the client icon properties on Windows). You can
93also login using the network IP address of the machine running OpenSim (e.g.
94http://192.168.1.2:9000)
73 95
74By default your sim will be running on http://127.0.0.1:9000. To use 96To login, use the avatar details that you gave for your estate ownership or the
75your OpenSim add -loginuri http://127.0.0.1:9000 to your second life 97one you set up using the "create user" command.
76client (running on the same machine as your OpenSim). To login, use the
77same avatar details that you gave to the "create user" console command.
78 98
99===================
79=== Bug reports === 100=== Bug reports ===
101===================
80 102
81In the likely event of bugs biting you (err, your OpenSim) we 103In the very likely event of bugs biting you (err, your OpenSim) we
82encourage you to see whether the problem has already been reported on 104encourage you to see whether the problem has already been reported on
83the OpenSim mantis system. You can find the OpenSim mantis system at 105the OpenSim mantis system. You can find the OpenSim mantis system at
84 106
@@ -97,11 +119,12 @@ mantis"). Useful information to include:
97 119
98 mono --debug OpenSim.exe 120 mono --debug OpenSim.exe
99 121
122===================================
100=== More Information on OpenSim === 123=== More Information on OpenSim ===
124===================================
101 125
102More extensive information on building, running, and configuring 126More extensive information on building, running, and configuring
103OpenSim, as well as how to report bugs, and participate in the OpenSim 127OpenSim, as well as how to report bugs, and participate in the OpenSim
104project can always be found at http://opensimulator.org. 128project can always be found at http://opensimulator.org.
105 129
106Thanks for trying OpenSim, we hope it is a pleasant experience. 130Thanks for trying OpenSim, we hope it is a pleasant experience.
107 \ No newline at end of file
diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example
index db4c9a6..7846d71 100644
--- a/bin/OpenSim.ini.example
+++ b/bin/OpenSim.ini.example
@@ -80,14 +80,16 @@
80 PhysicalPrimMax = 10 ; (I think this was moved to the Regions.ini!) 80 PhysicalPrimMax = 10 ; (I think this was moved to the Regions.ini!)
81 ClampPrimSize = false 81 ClampPrimSize = false
82 82
83 ; Region crossing 83 ; Allow scripts to cross region boundaries. These are recompiled on the new region.
84 AllowScriptCrossing = false 84 AllowScriptCrossing = false
85
86 ; Allow compiled script binary code to cross region boundaries.
85 ; If you set this to "true", any region that can teleport to you can 87 ; If you set this to "true", any region that can teleport to you can
86 ; inject ARBITRARY BINARY CODE into your system. Use at your own risk. 88 ; inject ARBITRARY BINARY CODE into your system. Use at your own risk.
87 ; YOU HAVE BEEN WARNED!!! 89 ; YOU HAVE BEEN WARNED!!!
88 TrustBinaries = false 90 TrustBinaries = false
89 91
90 ; Combine all contiguous regions into one large region 92 ; Combine all contiguous regions into one large megaregion
91 ; Order your regions from South to North, West to East in your regions.ini and then set this to true 93 ; Order your regions from South to North, West to East in your regions.ini and then set this to true
92 ; Warning! Don't use this with regions that have existing content!, This will likely break them 94 ; Warning! Don't use this with regions that have existing content!, This will likely break them
93 CombineContiguousRegions = false 95 CombineContiguousRegions = false
diff --git a/bin/Robust.HG.ini.example b/bin/Robust.HG.ini.example
index 9830d38..39228eb 100644
--- a/bin/Robust.HG.ini.example
+++ b/bin/Robust.HG.ini.example
@@ -1,7 +1,7 @@
1;; Configurations for enabling HG1.5 1;; Configurations for enabling HG1.5
2;; 2;;
3;; Run 3;; Run
4;; $ OpenSim.Server.exe -inifile OpenSim.Server.HG.ini 4;; $ Robust.exe -inifile Robust.HG.ini
5 5
6;; HG1.5 handlers are: OpenSim.Server.Handlers.dll:GatekeeperService 6;; HG1.5 handlers are: OpenSim.Server.Handlers.dll:GatekeeperService
7;; OpenSim.Server.Handlers.dll:UserAgentService 7;; OpenSim.Server.Handlers.dll:UserAgentService
diff --git a/bin/config-include/GridCommon.ini.example b/bin/config-include/GridCommon.ini.example
index 88ac5e2..a19591b 100644
--- a/bin/config-include/GridCommon.ini.example
+++ b/bin/config-include/GridCommon.ini.example
@@ -8,7 +8,6 @@
8 ; 8 ;
9 AssetServerURI = "http://myassetserver.com:8003" 9 AssetServerURI = "http://myassetserver.com:8003"
10 10
11
12[InventoryService] 11[InventoryService]
13 ; 12 ;
14 ; change this to your grid-wide inventory server 13 ; change this to your grid-wide inventory server
@@ -58,13 +57,6 @@
58 ; 57 ;
59 FriendsServerURI = "http://mygridserver.com:8003" 58 FriendsServerURI = "http://mygridserver.com:8003"
60 59
61[Groups]
62 ;
63 ; change this to your grid-wide groups server
64 ;
65 GroupsServerURI = "http://mygridserver.com:82/Grid/"
66
67
68[Modules] 60[Modules]
69 ;; Choose 0 or 1 cache modules, and the corresponding config file, if it exists. 61 ;; Choose 0 or 1 cache modules, and the corresponding config file, if it exists.
70 ;; Copy the config .example file into your own .ini file and change configs there 62 ;; Copy the config .example file into your own .ini file and change configs there