Difference between revisions of "Plugins/StaticMarker"

From Torch Wiki
Jump to: navigation, search
(Created page with "The plugin ''[https://torchapi.net/plugins/item/5650e141-2d24-408c-aa56-49a78734ce9e StaticMarker]'' adds an option to send GPS coordinates predefined in a file to players whe...")
(No difference)

Revision as of 21:48, 8 September 2019

The plugin StaticMarker adds an option to send GPS coordinates predefined in a file to players when they login to a server or via a command. It was brought to torch by Fank.

Configuration

Until know, the plugin lacks a feature complete interface, the only option in the client is to turn the plugin on or off via checkmark.

When the plugin gets added to torch, it will create two files StaticMarker.cfg and StaticMarkerEntries.cfg in the Instance directory. The second holds the GPS entries:

<?xml version="1.0" encoding="utf-8"?>
<MarkerEntriesConfig xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Entries>

    <Entry>
      <name><Map Center></name>
      <description>The center of the universe.. at least of this SE world.</description>
      <coords>
        <X>0</X>
        <Y>0</Y>
        <Z>0</Z>
      </coords>
      <isFinal>true</isFinal>
      <showOnHud>true</showOnHud>
      <alwaysVisible>true</alwaysVisible>
      <color>
        <PackedValue>4278255360</PackedValue>
        <X>0</X>
        <Y>255</Y>
        <Z>0</Z>
        <R>0</R>
        <G>255</G>
        <B>0</B>
        <A>255</A>
      </color>
      <entityId>0</entityId>
      <isObjective>false</isObjective>
      <DisplayName>0/0/0</DisplayName>
    </Entry>

  </Entries>
</MarkerEntriesConfig>

Some of the tags may not be relevant - you may try for yourself, which lines can be omited.