|
Database Teleporter BRIGADOON-0009
An Open Simulator Teleporter using a central database.
|
SCript to send a Heartbeat signal to the Teleport Database. More...
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 | |
| string | VERSION_STRING = "1.2.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. | |
| 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. | |
SCript to send a Heartbeat signal to the Teleport Database.
NOTE: The file extension ".osl" indicates the script uses the Open Simulator Script language (OSSL) and will not function in the Second Life environment. If the script will function using just the Linden Scripting Language (LSL), it will have a a file extension of ".lsl".
Definition in file brigadoon_teleporter.osl.
| 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 245 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 316 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 393 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 227 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 351 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 257 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.
| 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 40 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 46 of file brigadoon_teleporter.osl.
Referenced by rdInitialiseTeleporter(), rdReadConfigNotecard(), and rdReadDestinationList().
| integer comms_channel |
Definition at line 157 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 151 of file brigadoon_teleporter.osl.
Referenced by rdLocInfo2String(), and rdReadDestinationList().
| list destination_loc_type |
The list of location types.
Definition at line 145 of file brigadoon_teleporter.osl.
Referenced by rdReadDestinationList(), and rdShowStationDialog().
| list destination_location |
Definition at line 132 of file brigadoon_teleporter.osl.
Referenced by rdDoTeleport(), and rdReadDestinationList().
| list destination_look_at |
Definition at line 138 of file brigadoon_teleporter.osl.
Referenced by rdDoTeleport(), and rdReadDestinationList().
| list destination_name |
The list of Teleport location names.
Definition at line 114 of file brigadoon_teleporter.osl.
Referenced by rdReadDestinationList(), and rdShowStationDialog().
| list destination_region |
The list of Teleport region names.
Definition at line 126 of file brigadoon_teleporter.osl.
Referenced by rdDoTeleport(), rdLocInfo2String(), and rdReadDestinationList().
| list destination_world |
The list of Teleport world addresses.
Definition at line 120 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 190 of file brigadoon_teleporter.osl.
Referenced by rdShowStationDialog().
| 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 184 of file brigadoon_teleporter.osl.
| integer listen_handle |
\The commujications Channel handle
Definition at line 163 of file brigadoon_teleporter.osl.
| integer LOCAL_FLAG = 1 |
Number value of Local Location flag.
Definition at line 197 of file brigadoon_teleporter.osl.
Referenced by rdLocInfo2String().
| 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 58 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 108 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 94 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 86 of file brigadoon_teleporter.osl.
Referenced by rdAdjustPosition(), rdDoTeleport(), rdInitialiseTeleporter(), rdSendHeartbeatMessage(), rdsScanDestinationDatabase(), and rdStateEntry().
| list menu_list |
Definition at line 101 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 218 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 204 of file brigadoon_teleporter.osl.
Referenced by rdLocInfo2String(), and rdSetLocationType().
| integer station_base = 0 |
Definition at line 169 of file brigadoon_teleporter.osl.
Referenced by rdShowStationDialog().
| integer station_list_size |
The total number of Destinations available.
Definition at line 175 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 67 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 73 of file brigadoon_teleporter.osl.
| string VERSION_STRING = "1.2.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 211 of file brigadoon_teleporter.osl.
Referenced by rdLocInfo2String(), and rdSetLocationType().