ALE Grid Broadcaster

LordTylus

Introduction

If you are running a PVP server you may or may not need a bunch of Mods in order for players to find each other. Especially when planets are in the world you cannot really limit the worlds size and therefore players can hide themselves in deep space while building monstrosities that will never see any actual combat.

This Plugin is one way to help you dealing with that. It adds functionality to the game to determine the biggest grids by PCU and Broadcast them to all players on the server. So people are more likely to be found.

How does it work?

First of all the Plugin only adds the functionality. If you want to take Advantage of it in an automated way I recommend using the Essentials mod and setting up Auto-Commands. (Example Config and Commands are found below).

The Plugin itself detects the PCU of each and every grid on the server and broadcasts a configurable amount of them to all Players on the server. Grids are only Broadcasted when:

  • Owner or Factionmember is online
  • Owner or Factionmember is within configured range
  • Grid has at least an configured amount of PCU
  • Grid is owned by an actual Player

The default config broadcasts the Top 10 grids which have at least 5000 PCU with a Player within 1km of range.

The limit for min PCU makes sure that new players which basically only have a small base or starter ship to not being attacked immediately.

If the biggest grid has no player online or otherwise close by the next available grid will take its place on the top spot in the list.

Commands

There are 3 Commands:

  • !listbiggrids
    • Shows a list of the Grids that would be send to all players.
  • !sendbiggps
    • Sends the detected top X grids to all players
  • !removebiggps
    • Removes said GPS again.

Configuration

There are the following configuration methods:

UI

  • Broadcast tp X grids (Default 10)
    • How many grids will be broadcasted
  • Only check grids where factionmember is in radius of (m) (Default 1000)
    • Distance in meters where owner or factionmember must be for this grid to be considered
    • For offline protection reasons
  • Show only grids with min PCU (Default 5000)
    • Distance in meters of how many PCU a grid must have in order to be relevant.
    • For new player protection
  • Include connected grids (Default false)
    • If false only grids and subgrids via rotor or piston are checked. If true also drillships connected via connector are relevant.
  • Gps Marker Identifier (Default Doom Plugin)
    • Just a name that appears in the description of the GPS. Its used for identifying the GPS on delete again.
  • Remove GPS on player join (Default true)
    • if true when a player disconnects the gps are removed from him again. if false even after reconnect the GPS will still be present.

XML

<?xml version="1.0" encoding="utf-8"?>

<GridsBroadcastConfig xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<TopGrids>10</TopGrids>

<MaxDistancePlayers>1000</MaxDistancePlayers>

<UseConnectedGrids>false</UseConnectedGrids>

<MinPCU>5000</MinPCU>

<RemoveGpsOnJoin>true</RemoveGpsOnJoin>

<GpsIdentifierName>Doom Plugin</GpsIdentifierName>

</GridsBroadcastConfig>

Auto Command Example

When setting up with auto commands there are the following options:

Delayed execution

By that the GPS will be sent out daily at 7PM and removed from every player 30 minutes after.

<AutoCommand>

<CommandTrigger>Scheduled</CommandTrigger>

<Name>Broadcast</Name>

<ScheduledTime>19:00:00</ScheduledTime>

<Interval>00:00:00</Interval>

<TriggerRatio>0</TriggerRatio>

<TriggerCount>0</TriggerCount>

<DayOfWeek>All</DayOfWeek>

<Steps>

<CommandStep>

<Delay>00:30:00</Delay>

<Command>!sendbiggps</Command>

</CommandStep>

<CommandStep>

<Delay>00:00:00</Delay>

<Command>!removebiggps</Command>

</CommandStep>

</Steps>

</AutoCommand>

Scheduled execution

The first one surely works fine, but has the risk of not removing the GPS when the server crashes. If remove on join is enabled its not a problem at all. If its not enabled you may consider using 2 commands:

<AutoCommand>

<CommandTrigger>Scheduled</CommandTrigger>

<Name>Broadcast</Name>

<ScheduledTime>19:00:00</ScheduledTime>

<Interval>00:00:00</Interval>

<TriggerRatio>0</TriggerRatio>

<TriggerCount>0</TriggerCount>

<DayOfWeek>All</DayOfWeek>

<Steps>

<CommandStep>

<Delay>00:00:00</Delay>

<Command>!sendbiggps</Command>

</CommandStep>

</Steps>

</AutoCommand>

<AutoCommand>

<CommandTrigger>Scheduled</CommandTrigger>

<Name>Remove</Name>

<ScheduledTime>19:30:00</ScheduledTime>

<Interval>00:00:00</Interval>

<TriggerRatio>0</TriggerRatio>

<TriggerCount>0</TriggerCount>

<DayOfWeek>All</DayOfWeek>

<Steps>

<CommandStep>

<Delay>00:00:00</Delay>

<Command>!removebiggps</Command>

</CommandStep>

</Steps>

</AutoCommand>

Github

See Here

Beta? Version Note Date Download DL Count
v1.0.1.2 Logging spam reduced by more wisely choosen log levels 6/8/19 11:24:19 PM Download 24
v1.0.1.0 List command improvements there are options to add gps just for the player, or change the filters to test settings without potential problems of the server using these.. 6/2/19 7:56:57 PM Download 18
v1.0.0.2 wrong connected grids config fixed. 6/1/19 6:02:40 PM Download 12
v1.0.0.1 Color of GPS can now be configured and : from GPS name replaced by - 6/1/19 4:21:55 PM Download 9
v1.0.0.0 Initial Release 5/31/19 7:12:46 PM Download 12