|
Database Teleporter BRIGADOON-0009
An Open Simulator Teleporter using a central database.
|
Go to the source code of this file.
Functions | |
| string | rdLocInfo2String (integer LocationInfo, integer Index) |
| integer | rdCalcCommsChannel () |
| find a pseudo random communications channel number | |
| rdShowStationDialog (key User) | |
| Display the Destination Teelport Menu. | |
| rdDoTeleport (key Agent, integer Index) | |
| Select the Correct Teleportation Routine. | |
| rdReadDestinationList () | |
| Read the list of Teleportation Destinations from the Notecard. | |
| rdInitialiseTeleporter () | |
| Initialise or re-initialise the Teleporter. | |
Variables | |
| *file brigadoon_teleporter osl *brief SCript to send a Heartbeat signal to the Teleport Database *version *date December *author River Drifter little sense | au |
| string | VERSION_STRING = "2.1.0" |
| The Current version of the software. | |
| string | CONFIG_NOTECARD_NAME = "brigadoon_teleporter.config" |
| The name of the notecard containing the Teleport's Configuration. | |
| string | CONFIG_DESTINATIONS_NAME = "teleport_destinations.config" |
| The automatically generated list of teleporter destinations. | |
| integer | LOCAL_TELEPORT_FORCE = TRUE |
| Flag about whether Local teleport is used for all in-world regions. | |
| string | COMMENT_PREAMBLE = "//" |
| Preamble for a comment line in the configuration file. | |
| integer | COMMENT_PREAMBLE_LENGTH = 2 |
| THe number of characters in the comment preamble. | |
| string | LOCATION_NAME = "LOCATION_NAME" |
| THe Key Value for defining hte name of the location in the Config notecard. | |
| float | TIME_TO_DECIDE = 60.0 |
| Time a Menu remains active. | |
| float | TIMER_OFF = 0.0 |
| Settings a Zero Time will turn off the Timer. | |
| string | location_world |
| The Teleporter Location's World. | |
| string | location_region |
| Region holding the Teleporter. | |
| list | menu_list |
| string | location_name |
| The display name of the current location. | |
| list | destination_name |
| The list of Teleport location names. | |
| list | destination_world |
| The list of Teleport world addresses. | |
| list | destination_region |
| The list of Teleport region names. | |
| list | destination_location |
| list | destination_look_at |
| list | destination_loc_type |
| The list of location types. | |
| list | destination_group |
| Group to which the Location belongs. | |
| integer | comms_channel |
| integer | listen_handle |
| integer | station_base = 0 |
| integer | station_list_size |
| The total number of Destinations available. | |
| key | last_user |
| the last user of the teleport menu | |
| integer | DIALOG_STATION_LIMIT = 9 |
| The hard maximum number of Destinations on any menu page. | |
| integer | LOCAL_FLAG = 1 |
| Number value of Local Location flag. | |
| integer | REGION_FLAG = 2 |
| Number value of REgion Location flag. | |
| integer | WORLD_FLAG = 4 |
| Number value of World Location flag. | |
| integer | METAVERSE_FLAG = 8 |
| Number value of Metaverse Location flag. | |
| integer | ANONYMOUS_FLAG = 16 |
| This flag designates the teleporter as anonymous. | |
| integer | EXTENDED_LOCAL_FLAG = 32 |
| Flag for Extended Local teleports. | |
| integer | REMOTE_UPDATE_FLAG = 64 |
| integer rdCalcCommsChannel | ( | ) |
find a pseudo random communications channel number
This random channel generator comes from the Second Life Wiki https://wiki.secondlife.com/wiki/LlFrand
Definition at line 285 of file brigadoon_teleporter.osl.
Referenced by rdInitialiseTeleporter().
| rdDoTeleport | ( | key | Agent, |
| integer | Index ) |
Select the Correct Teleportation Routine.
| Agent | The user to be teleported |
| Index | The index into the list of possible Teleportation Destinations |
Definition at line 356 of file brigadoon_teleporter.osl.
References destination_location, destination_look_at, destination_region, destination_world, location_region, and location_world.
| rdInitialiseTeleporter | ( | ) |
Initialise or re-initialise the Teleporter.
This routine will initialise the Teleporter by reconfiguring it from the configuration file, and then (re)load the destination file,
Definition at line 433 of file brigadoon_teleporter.osl.
References COMMENT_PREAMBLE, COMMENT_PREAMBLE_LENGTH, comms_channel, CONFIG_NOTECARD_NAME, LOCATION_NAME, location_name, location_region, location_world, rdCalcCommsChannel(), and rdReadDestinationList().
| string rdLocInfo2String | ( | integer | LocationInfo, |
| integer | Index ) |
Definition at line 267 of file brigadoon_teleporter.osl.
References destination_group, destination_region, destination_world, LOCAL_FLAG, METAVERSE_FLAG, REGION_FLAG, and WORLD_FLAG.
Referenced by rdShowStationDialog().
| rdReadDestinationList | ( | ) |
Read the list of Teleportation Destinations from the Notecard.
Definition at line 391 of file brigadoon_teleporter.osl.
References COMMENT_PREAMBLE, COMMENT_PREAMBLE_LENGTH, CONFIG_DESTINATIONS_NAME, destination_group, destination_loc_type, destination_location, destination_look_at, destination_name, destination_region, destination_world, and station_list_size.
Referenced by rdInitialiseTeleporter().
| rdShowStationDialog | ( | key | User | ) |
Display the Destination Teelport Menu.
Theis routine displays the dialog that displays the teleport destinations selections.
Definition at line 297 of file brigadoon_teleporter.osl.
References comms_channel, destination_loc_type, destination_name, DIALOG_STATION_LIMIT, location_name, menu_list, rdLocInfo2String(), station_base, and station_list_size.
| integer ANONYMOUS_FLAG = 16 |
This flag designates the teleporter as anonymous.
An anonymouns teleporter is one that resides in the teleporter database, but is not included in the list of avaialble destinations in any teleporter.
This feature is primarily available to allow an admin to get to any destination, without the admin's location being revealed.
Definition at line 240 of file brigadoon_teleporter.osl.
Referenced by rdSetAnonType().
| * file brigadoon_teleporter osl* brief SCript to send a Heartbeat signal to the Teleport Database* version* date December* author River Drifter little sense au |
Definition at line 5 of file brigadoon_teleporter.osl.
| string COMMENT_PREAMBLE = "//" |
Preamble for a comment line in the configuration file.
Any line starting with this is a comment.
The configuration file only allows comments which take up the complete lilne in the file.
Definition at line 50 of file brigadoon_teleporter.osl.
Referenced by rdInitialiseTeleporter(), rdReadConfigNotecard(), and rdReadDestinationList().
| integer COMMENT_PREAMBLE_LENGTH = 2 |
THe number of characters in the comment preamble.
THe number of characters in the comment preamble Menu Item = [17:16] Nothing Found!
The length of the comment preamble.
Definition at line 56 of file brigadoon_teleporter.osl.
Referenced by rdInitialiseTeleporter(), rdReadConfigNotecard(), and rdReadDestinationList().
| integer comms_channel |
Definition at line 167 of file brigadoon_teleporter.osl.
Referenced by rdInitialiseTeleporter(), and rdShowStationDialog().
| string CONFIG_DESTINATIONS_NAME = "teleport_destinations.config" |
The automatically generated list of teleporter destinations.
Notecard holding the Teleport Destination Locations.
This notecard is generated by the teleporter_heartbeat.osl script based on the settings in the CONFIG_NOTECARD_NAME notecard. If you want to place teleporter destinations in this file, you will need to disable the teleporter_destinations.osl script which periodically erases this file and replaces it withe the lastest values from the Database.
Definition at line 32 of file brigadoon_teleporter.osl.
Referenced by rdReadDestinationList(), and rdSaveNewTeleportNotecard().
| string CONFIG_NOTECARD_NAME = "brigadoon_teleporter.config" |
The name of the notecard containing the Teleport's Configuration.
Script(s) Configuration Notecard.
The name of the script configuration Notecard.
This notecard is used to configure the brigadoon_teleporter.osl and the teleporter_heartbeat.osl scripts.
Definition at line 26 of file brigadoon_teleporter.osl.
Referenced by rdInitialiseTeleporter(), and rdStateEntry().
| list destination_group |
Group to which the Location belongs.
Definition at line 161 of file brigadoon_teleporter.osl.
Referenced by rdLocInfo2String(), and rdReadDestinationList().
| list destination_loc_type |
The list of location types.
Definition at line 155 of file brigadoon_teleporter.osl.
Referenced by rdReadDestinationList(), and rdShowStationDialog().
| list destination_location |
Definition at line 142 of file brigadoon_teleporter.osl.
Referenced by rdDoTeleport(), and rdReadDestinationList().
| list destination_look_at |
Definition at line 148 of file brigadoon_teleporter.osl.
Referenced by rdDoTeleport(), and rdReadDestinationList().
| list destination_name |
The list of Teleport location names.
Definition at line 124 of file brigadoon_teleporter.osl.
Referenced by rdReadDestinationList(), and rdShowStationDialog().
| list destination_region |
The list of Teleport region names.
Definition at line 136 of file brigadoon_teleporter.osl.
Referenced by rdDoTeleport(), rdLocInfo2String(), and rdReadDestinationList().
| list destination_world |
The list of Teleport world addresses.
Definition at line 130 of file brigadoon_teleporter.osl.
Referenced by rdDoTeleport(), rdLocInfo2String(), and rdReadDestinationList().
| integer DIALOG_STATION_LIMIT = 9 |
The hard maximum number of Destinations on any menu page.
Definition at line 200 of file brigadoon_teleporter.osl.
Referenced by rdShowStationDialog().
| integer EXTENDED_LOCAL_FLAG = 32 |
Flag for Extended Local teleports.
If this flag is set, use the Extended Local Tepelortatation method.
Definition at line 249 of file brigadoon_teleporter.osl.
Referenced by rdSetExtendedLocal().
| key last_user |
the last user of the teleport menu
If the current user is not the same as the last user, the station base will be reset.
Definition at line 194 of file brigadoon_teleporter.osl.
| integer listen_handle |
\The commujications Channel handle
Definition at line 173 of file brigadoon_teleporter.osl.
| integer LOCAL_FLAG = 1 |
Number value of Local Location flag.
Definition at line 207 of file brigadoon_teleporter.osl.
Referenced by rdLocInfo2String().
| integer LOCAL_TELEPORT_FORCE = TRUE |
Flag about whether Local teleport is used for all in-world regions.
If this parameter is set to TRUE, the destination address is changes from destination region, location to an address modified in raltion to the position of the region that holds the teleporter.
Definition at line 42 of file brigadoon_teleporter.osl.
| string LOCATION_NAME = "LOCATION_NAME" |
THe Key Value for defining hte name of the location in the Config notecard.
The Configuration File Identifier for the Name of the LOcation.
\string LOCATION_NAME
Definition at line 68 of file brigadoon_teleporter.osl.
Referenced by rdInitialiseTeleporter().
| string location_name |
The display name of the current location.
The location name display by the Teleporter.
This name will be displayed in the Teleporter Menu as the location to be visited.
Definition at line 118 of file brigadoon_teleporter.osl.
Referenced by rdInitialiseTeleporter(), rdSendHeartbeatMessage(), and rdShowStationDialog().
| string location_region |
Region holding the Teleporter.
This information is read from the teleporter
Definition at line 104 of file brigadoon_teleporter.osl.
Referenced by rdAdjustPosition(), rdDoTeleport(), and rdInitialiseTeleporter().
| string location_world |
The Teleporter Location's World.
This is the address of the world in which this script resides.
This string is what the teleporter display will show as the name of this location. The contents of this string are set in the object's description field.
NOTE: This value will default to "DUMMY" to indicate that the Hypergrid is not available. This value can be over-written in the "teleporter.config" notecard to provide an actual virtual world
This location can be used to limit the scans to the current world. This allows different update rates to be set on different worlds, if desired.
Definition at line 96 of file brigadoon_teleporter.osl.
Referenced by rdAdjustPosition(), rdDoTeleport(), rdInitialiseTeleporter(), rdSendHeartbeatMessage(), rdsScanDestinationDatabase(), and rdStateEntry().
| list menu_list |
Definition at line 111 of file brigadoon_teleporter.osl.
Referenced by rdShowStationDialog().
| integer METAVERSE_FLAG = 8 |
Number value of Metaverse Location flag.
Numeric identifier of a Metaverse Location.
Definition at line 228 of file brigadoon_teleporter.osl.
Referenced by rdLocInfo2String(), and rdSetLocationType().
| integer REGION_FLAG = 2 |
Number value of REgion Location flag.
Numeric identifier of a REgion Location.
Definition at line 214 of file brigadoon_teleporter.osl.
Referenced by rdLocInfo2String(), and rdSetLocationType().
| integer REMOTE_UPDATE_FLAG = 64 |
Definition at line 258 of file brigadoon_teleporter.osl.
Referenced by rdSetRemoteUpdate().
| integer station_base = 0 |
Definition at line 179 of file brigadoon_teleporter.osl.
Referenced by rdShowStationDialog().
| integer station_list_size |
The total number of Destinations available.
Definition at line 185 of file brigadoon_teleporter.osl.
Referenced by rdReadDestinationList(), and rdShowStationDialog().
| float TIME_TO_DECIDE = 60.0 |
Time a Menu remains active.
This is the time period during which the script will respond to the Menu. After that time, the script will ignore menu responses.
Definition at line 77 of file brigadoon_teleporter.osl.
| float TIMER_OFF = 0.0 |
Settings a Zero Time will turn off the Timer.
Set the Timer delay to 0.0 which turns off the timer events.
Definition at line 83 of file brigadoon_teleporter.osl.
| string VERSION_STRING = "2.1.0" |
The Current version of the software.
The Version number as a sring.
Definition at line 20 of file brigadoon_teleporter.osl.
Referenced by rdsScanDestinationDatabase(), and rdWriteStatusNotercard().
| integer WORLD_FLAG = 4 |
Number value of World Location flag.
Definition at line 221 of file brigadoon_teleporter.osl.
Referenced by rdLocInfo2String(), and rdSetLocationType().