-
Notifications
You must be signed in to change notification settings - Fork 1
/
Readme.txt
202 lines (121 loc) · 6.65 KB
/
Readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
### 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](https://github.com/LordTylus/SE-Torch-Plugin-ALE-Biggest-Grids-Broadcast)