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. Alternatively you can also broadcast the grids which are furthest away from world center.

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 / or distance 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 or distance to center
  • 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 biggest Grids by pcu that would be send to all players.
  • !sendbiggps
    • Sends the detected top X biggest grids by pcu to all players
  • !listbigblockgrids
    • Shows a list of the biggest Grids by blockcount that would be send to all players.
  • !sendbigblockgps
    • Sends the detected top X biggest grids by blockcount to all players
  • !listfargrids
    • Shows a list of the furthest Grids that would be send to all players.
  • !sendfargps
    • Sends the detected top X furthest grids from world center to all players
  • !listabandonedgrids
    • Shows a list of the abandoned Grids that would be send to all players.
  • !sendabandonedgps
    • Sends the detected top X furthest grids from world center to all players
  • !sendmixgps <biggest true|false> <furthest true|false> <abandoned true|false> <biggest by blocks true|false>
    • Sends top X biggest and/or furthest grids depending on your config. Basically its like using !sendbiggps and !sendfargps individually but without deleting the gps coords in between.
  • !listmixgrids <biggest by pcu true|false> <furthest true|false> <abandoned true|false> <biggest by blocks true|false>
    • Shows a list of the top X biggest and/or furthest grids depending on your config.
  • !removegps
    • 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.6.2 Compatibility fixes and recompile for 195 Update. No new Features 6/24/20 7:06:27 PM Download 173
v1.0.6.1 Logging for grids can be disabled in case it spams to much 6/13/20 1:53:50 PM Download 99
v1.0.6.0 Added new commands to send biggest grids by block count also. and not only PCU 6/13/20 1:27:36 PM Download 46
v1.0.5.2 Added logging for the grids that were being broadcasted 6/13/20 12:27:28 PM Download 46
v1.0.5.1 Explorative fix for error in Abandoned grid detection. Not sure exactly how it came to be. But this hopefully fixes it. 6/13/20 9:16:13 AM Download 67
v1.0.5.0 Added option to disable GPS Sound, Added option to have GPS follow grids 6/7/20 3:48:01 PM Download 96
v1.0.4.0 Added option to filter out ships stations, large and small grids depending on the needs. Wont work for abandoned grids. of course. 6/6/20 3:50:14 PM Download 83
v1.0.3.1 Made the true on !listmixgps for abandoned grids optional to not break any existing servers 6/6/20 3:12:09 PM Download 51
v1.0.3.0 Added commands to also send abandoned bases based on days of inactivity of the owner or faction. 6/6/20 3:05:27 PM Download 46
v1.0.2.1 You can now configure the center for furthest grids check. Also NPC ships can be ignored now if "show offline" is set. 4/5/20 1:34:55 PM Download 135
v1.0.2.0 Just a recompile to fix various problems with new update no code changes 3/19/20 10:47:37 PM Download 108
v1.0.1.9 Added Debug Info to Plugin 12/17/19 11:12:57 AM Download 176
v1.0.1.8 No Functional Changes just reorganized the Project and updated Dependencies 12/16/19 9:56:02 PM Download 104
v1.0.1.7 Fixed Overflow when distance setting player -> grid is above 100,000m 12/12/19 10:53:56 PM Download 114
v1.0.1.6 added ability to change if you want to see offline grids, and dedicated filter settings for biggest and furthest grids 12/8/19 3:23:33 PM Download 110
v1.0.1.5 added !sendmixgps command where you can send out the biggest AND furthest GPS in one go 12/1/19 12:45:35 PM Download 109
v1.0.1.4 Added commands that allow to send the grids furthest from any player instead of the ones with most pcu 11/4/19 8:04:23 PM Download 137
v1.0.1.3 NRE Fix that caused crashes 7/5/19 10:28:27 PM Download 185
v1.0.1.2 Logging spam reduced by more wisely choosen log levels 6/8/19 11:24:19 PM Download 163
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 141
v1.0.0.2 wrong connected grids config fixed. 6/1/19 6:02:40 PM Download 141
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 139
v1.0.0.0 Initial Release 5/31/19 7:12:46 PM Download 138