Hypergrid Friends and IM

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
'''NOTE: This applies to master head, 0.7.2 (Dev) as of 5/26/2011. It does not apply to 0.7.1.x'''  
+
'''NOTE: This applies to master head, 0.7.2 (Dev) as of 5/26/2011. It does NOT apply to 0.7.1.x'''  
  
 
= Configuration Changes  =
 
= Configuration Changes  =
Line 6: Line 6:
  
 
  [LoginService]
 
  [LoginService]
  ...  
+
...  
  SRV_FriendsServerURI = "http://127.0.0.1:9000"
+
SRV_FriendsServerURI = "http://127.0.0.1:9000"
  SRV_IMServerURI = "http://127.0.0.1:9000"
+
SRV_IMServerURI = "http://127.0.0.1:9000"
  
 
Add this new section somewhere:  
 
Add this new section somewhere:  
Line 15: Line 15:
 
   ; === HG ONLY ===
 
   ; === HG ONLY ===
 
   ;; change this to the address of your simulator
 
   ;; change this to the address of your simulator
  Gatekeeper = "http://127.0.0.1:9000"
+
Gatekeeper = "http://127.0.0.1:9000"
  
 
== Robust.HG.ini  ==
 
== Robust.HG.ini  ==
Line 23: Line 23:
  
 
  [LoginService]
 
  [LoginService]
  ...  
+
...  
  SRV_FriendsServerURI = "http://127.0.0.1:8002"
+
SRV_FriendsServerURI = "http://127.0.0.1:8002"
  SRV_IMServerURI = "http://127.0.0.1:8002"
+
SRV_IMServerURI = "http://127.0.0.1:8002"
  
 
  [UserAgentService]
 
  [UserAgentService]
  ...
+
...
  PresenceService = "OpenSim.Services.PresenceService.dll:PresenceService"
+
PresenceService = "OpenSim.Services.PresenceService.dll:PresenceService"
  FriendsService = "OpenSim.Services.FriendsService.dll:FriendsService"
+
FriendsService = "OpenSim.Services.FriendsService.dll:FriendsService"
  UserAccountService = "OpenSim.Services.UserAccountService.dll:UserAccountService"
+
UserAccountService = "OpenSim.Services.UserAccountService.dll:UserAccountService"
  
 
Add these new sections at the end:  
 
Add these new sections at the end:  
  
 
  [HGFriendsService]
 
  [HGFriendsService]
  LocalServiceModule = "OpenSim.Services.FriendsService.dll:FriendsService"
+
LocalServiceModule = "OpenSim.Services.FriendsService.dll:FriendsService"
  UserAgentService = "OpenSim.Services.HypergridService.dll:UserAgentService"
+
UserAgentService = "OpenSim.Services.HypergridService.dll:UserAgentService"
  
 
  [HGInstantMessageService]
 
  [HGInstantMessageService]
  LocalServiceModule = "OpenSim.Services.HypergridService.dll:HGInstantMessageService"
+
LocalServiceModule = "OpenSim.Services.HypergridService.dll:HGInstantMessageService"
  GridService = "OpenSim.Services.GridService.dll:GridService"
+
GridService = "OpenSim.Services.GridService.dll:GridService"
  PresenceService = "OpenSim.Services.PresenceService.dll:PresenceService"
+
PresenceService = "OpenSim.Services.PresenceService.dll:PresenceService"
  UserAgentService = "OpenSim.Services.HypergridService.dll:UserAgentService"
+
UserAgentService = "OpenSim.Services.HypergridService.dll:UserAgentService"
  
 
== GridCommon.ini  ==
 
== GridCommon.ini  ==
Line 54: Line 54:
 
   ; Change this to your user agent server (HG robust)
 
   ; Change this to your user agent server (HG robust)
 
   ;
 
   ;
  UserAgentServerURI = "http://mygridserver.com:8002"
+
UserAgentServerURI = "http://mygridserver.com:8002"
  
 
  [Messaging]
 
  [Messaging]
Line 61: Line 61:
 
   ;; (usually bundled with the rest of the services in one  
 
   ;; (usually bundled with the rest of the services in one  
 
   ;; Robust server in port 8002, but not always)
 
   ;; Robust server in port 8002, but not always)
  Gatekeeper = "http://mygridserver.com:8002"
+
Gatekeeper = "http://mygridserver.com:8002"
  
 
= Troubleshooting  =
 
= Troubleshooting  =

Revision as of 18:06, 28 May 2011

NOTE: This applies to master head, 0.7.2 (Dev) as of 5/26/2011. It does NOT apply to 0.7.1.x

Contents

Configuration Changes

StandaloneCommon.ini

[LoginService]
... 
SRV_FriendsServerURI = "http://127.0.0.1:9000"
SRV_IMServerURI = "http://127.0.0.1:9000"

Add this new section somewhere:

[Messaging]
 ; === HG ONLY ===
 ;; change this to the address of your simulator
Gatekeeper = "http://127.0.0.1:9000"

Robust.HG.ini

[Startup]
ServiceConnectors="...,8002/OpenSim.Server.Handlers.dll:HGFriendsServerConnector,8002/OpenSim.Server.Handlers.dll:InstantMessageServerConnector"
[LoginService]
... 
SRV_FriendsServerURI = "http://127.0.0.1:8002"
SRV_IMServerURI = "http://127.0.0.1:8002"
[UserAgentService]
...
PresenceService	= "OpenSim.Services.PresenceService.dll:PresenceService"
FriendsService	= "OpenSim.Services.FriendsService.dll:FriendsService"
UserAccountService = "OpenSim.Services.UserAccountService.dll:UserAccountService"

Add these new sections at the end:

[HGFriendsService]
LocalServiceModule = "OpenSim.Services.FriendsService.dll:FriendsService"
UserAgentService = "OpenSim.Services.HypergridService.dll:UserAgentService"
[HGInstantMessageService]
LocalServiceModule = "OpenSim.Services.HypergridService.dll:HGInstantMessageService"
GridService = "OpenSim.Services.GridService.dll:GridService"
PresenceService	= "OpenSim.Services.PresenceService.dll:PresenceService"
UserAgentService = "OpenSim.Services.HypergridService.dll:UserAgentService"

GridCommon.ini

Add these sections at the end:

[UserAgentService]
 ;
 ; === HG ONLY ===
 ; Change this to your user agent server (HG robust)
 ;
UserAgentServerURI = "http://mygridserver.com:8002"
[Messaging]
 ; === HG ONLY ===
 ;; change this to the address of your Gatekeeper service
 ;; (usually bundled with the rest of the services in one 
 ;; Robust server in port 8002, but not always)
Gatekeeper = "http://mygridserver.com:8002"

Troubleshooting

If you get an exception like this:

23:16:24 - [LLOGIN SERVICE]: Exception processing login for Ruth OpenSim: System.ArgumentException: Object type System.Guid cannot be converted to target type: System.String
Parameter name: val
at System.Reflection.MonoField.SetValue (System.Object obj, System.Object val, BindingFlags invokeAttr, System.Reflection.Binder binder,  System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at System.Reflection.FieldInfo.SetValue (System.Object obj, System.Object value) [0x00000] in <filename unknown>:0
at OpenSim.Data.MySQL.MySQLGenericTableHandler`1[OpenSim.Data.FriendsData].DoQuery (MySql.Data.MySqlClient.MySqlCommand cmd) [0x00000] in <filename unknown>:0
at OpenSim.Data.MySQL.MySqlFriendsData.GetFriends (UUID principalID) [0x00000] in <filename unknown>:0
at OpenSim.Services.Friends.FriendsService.GetFriends (UUID PrincipalID) [0x00000] in <filename unknown>:0 

Try adding this to your database connection string: ConnectionString = "Data Source=localhost;Database=opensim;User ID=opensim;Password=*****;Old Guids=true;"

Personal tools
General
About This Wiki