try an other way to register script commands
							parent
							
								
									52b3dedcab
								
							
						
					
					
						commit
						6e628f5c6a
					
				|  | @ -19,7 +19,7 @@ namespace OpenSim.Modules.DataValue | ||||||
| { | { | ||||||
|     [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "DataValueModule")] |     [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "DataValueModule")] | ||||||
| 
 | 
 | ||||||
|     class DataValue : INonSharedRegionModule |     public class DataValue : INonSharedRegionModule | ||||||
|     { |     { | ||||||
|         #region Region Module |         #region Region Module | ||||||
|         private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |         private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | ||||||
|  | @ -61,11 +61,11 @@ namespace OpenSim.Modules.DataValue | ||||||
|                     m_dataValueDirectory = m_config.GetString("DataValueStorageDirectory", m_dataValueDirectory); |                     m_dataValueDirectory = m_config.GetString("DataValueStorageDirectory", m_dataValueDirectory); | ||||||
|                     m_enabled = m_config.GetBoolean("EnabledDataStorage", m_enabled); |                     m_enabled = m_config.GetBoolean("EnabledDataStorage", m_enabled); | ||||||
| 
 | 
 | ||||||
|                     m_log.DebugFormat("[" + Name + "]: Data storage: = " + m_dataValueDirectory); |                     m_log.Info("[" + Name + "]: Data storage = " + m_dataValueDirectory); | ||||||
|                 } |                 } | ||||||
|                 else |                 else | ||||||
|                 { |                 { | ||||||
|                     m_log.DebugFormat("[" + Name + "]: Cant find config."); |                     m_log.Error("[" + Name + "]: Cant find config."); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|             catch (Exception e) |             catch (Exception e) | ||||||
|  | @ -76,11 +76,11 @@ namespace OpenSim.Modules.DataValue | ||||||
| 
 | 
 | ||||||
|             if (m_enabled) |             if (m_enabled) | ||||||
|             { |             { | ||||||
|                 m_log.InfoFormat("[" + Name + "]: module is enabled"); |                 m_log.Info("[" + Name + "]: module is enabled"); | ||||||
|             } |             } | ||||||
|             else |             else | ||||||
|             { |             { | ||||||
|                 m_log.InfoFormat("[" + Name + "]: module is disabled"); |                 m_log.Info("[" + Name + "]: module is disabled"); | ||||||
|             } |             } | ||||||
|                  |                  | ||||||
|         } |         } | ||||||
|  | @ -89,6 +89,8 @@ namespace OpenSim.Modules.DataValue | ||||||
|         { |         { | ||||||
|             if (m_enabled) |             if (m_enabled) | ||||||
|             { |             { | ||||||
|  |                 m_log.Info("[" + Name + "]: Load region " + scene.Name); | ||||||
|  | 
 | ||||||
|                 m_scene = scene; |                 m_scene = scene; | ||||||
|                 m_scriptModule = m_scene.RequestModuleInterface<IScriptModuleComms>(); |                 m_scriptModule = m_scene.RequestModuleInterface<IScriptModuleComms>(); | ||||||
|                 if (m_scriptModule == null) |                 if (m_scriptModule == null) | ||||||
|  | @ -100,7 +102,10 @@ namespace OpenSim.Modules.DataValue | ||||||
| 
 | 
 | ||||||
|                 try |                 try | ||||||
|                 { |                 { | ||||||
|                     m_scriptModule.RegisterScriptInvocations(this); |                     m_scriptModule.RegisterScriptInvocation(this, "osGetDataValue"); | ||||||
|  |                     m_scriptModule.RegisterScriptInvocation(this, "osSetDataValue"); | ||||||
|  |                     m_scriptModule.RegisterScriptInvocation(this, "osDeleteDataValue"); | ||||||
|  |                     m_scriptModule.RegisterScriptInvocation(this, "osCheckDataValue"); | ||||||
|                 } |                 } | ||||||
|                 catch (Exception e) |                 catch (Exception e) | ||||||
|                 { |                 { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Christopher
						Christopher