From: Christopher Yeoh <yeohc@au1.ibm.com>

This changeset add the RegionReady module code. The module sends a
message on a configurable channel when an oar file has finished
loading or if the script engine has emptied its queue for the first
time (eg server startup). Config is something like this:

[RegionReady]
enabled = true
channel_notify = -800

The module also knows if there was an error with startup.
This commit is contained in:
Dr Scofield
2009-02-11 14:35:07 +00:00
parent c754160dee
commit f70e580f86
2 changed files with 157 additions and 0 deletions

View File

@@ -1012,3 +1012,14 @@ InterregionComms = "RESTComms"
; Density of tree population
tree_density = 1000.0
[RegionReady]
; Enable this module to get notified once all items and scripts in the region have been completely loaded and compiled
enabled = false
; Channel on which to signal region readiness through a message
; formatted as follows: "{0|1},n,[oar error]"
; - the first number indicating whether the OAR file loaded ok (1 == ok, 0 == error)
; - the second number indicates how many scrips failed to compile
; - "oar error" if supplied, provides the error message from the OAR load
channel_notify = -800