-
Notifications
You must be signed in to change notification settings - Fork 0
/
Readme.txt
173 lines (135 loc) · 10.4 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
### Introduction
For administrators its a tedious job to paste grids in once CLANG demanded a new sacrifice to be given.
But to do that you have to paste the grid from workshop, or maybe even from a previous server iteration which results in OwnerID Changes. Also the "Keep Original Authorship" option in Space master is broken.
When you still want to enforce your own PCU and Block limits you need to make sure PCUs are properly set. However PCUs can only be transferred if you are the owner of them and you need to transfer all connected and subgrids.
This is what this plugin does
### Commands
#### Space Master Commands
- !freebuild
- Increases all limits for the user to be able to paste limit exceeding grids. Run again to disable
##### Transfer Commands
- !transfer <PlayerName>
- Transfers all PCU and block ownership of the grid you are looking at over to the player.
- !transfer <PlayerName> <GridName>
- Transfers all PCU and block ownership of the named grid to the player.
- !transferpcu <PlayerName>
- Transfers only PCU of the grid you are looking at over to the player.
- !transferpcu <PlayerName> <GridName>
- Transfers only PCU of the named grid to the player.
- !transferowner <PlayerName>
- Transfers only block ownership of the grid you are looking at over to the player.
- !transferowner <PlayerName> <GridName>
- Transfers only block ownership of the named grid to the player.
- !transfernobody [GrodName]
- Transfers all PCU and block ownership of the grid with given name, or you are looking at over to nobody.
- !transferpcunobody [GridName]
- Transfers only PCU of the grid with given name, or you are looking at over to nobody.
- !transferownernobody [GridName]
- Transfers only block ownership of the grid with given name, or you are looking at over to nobody.
- !forcetransfer <PlayerName>
- Transfers all PCU and block ownership of the grid you are looking at over to the player ignoring ownership.
- !forcetransfer <PlayerName> <GridName>
- Transfers all PCU and block ownership of the named grid to the player ignoring limits.
- !forcetransferpcu <PlayerName>
- Transfers only PCU of the grid you are looking at over to the player ignoring limits.
- !forcetransferpcu <PlayerName> <GridName>
- Transfers only PCU of the named grid to the player ignoring limits.
When pasting some grids it may be possible they get some deformations or damage. To get rid of them easily there is also
##### Repair / Recharge Commands
- !repair
- Repairs all damaged and deformed blocks of the grid you are looking at.
- !repair <GridName>
- Repairs all damaged and deformed blocks of the given grid.
- !recharge <battery|jumpdrive|o2tank|h2tank|tank> <percentage>
- Recharges/Fills the given blocks on the looked at grid to the given percentage
- !recharge grid <gridname> <battery|jumpdrive|o2tank|h2tank|tank> <percentage>
- Recharges/Fills the given blocks on the given grid to the given percentage
Unfinished blocks will not be fixed unless they are deformed or damaged. So blocks that are left on grid stage on purpose will not be changed.
##### Protection Commands
- !protect [-allowDamage] [-allowEdit]
-- The grid the user looks at from damage or changes. If one of the two parameters is passed you can only protect a grid from damage and allow edits for example instead of both.
- !protect <gridname> [-allowDamage] [-allowEdit]
-- Protects a given grid from damage or changes. The other paremters do the same as the looked at variant.
- !unprotect [gridname]
-- Clears the protection on a given or looked at grid set by the !protect command.
##### Cleanup Commands
- !gridcleanup <days> [-keepfactions]
- Similar to !identity purge in essentials it deletes grids of inactive players, assigns ownership of shared grids to the biggest active owner and kicks inactives from the faction.
- Unlike Essentials however it does not delete the Identity. Because identity purge will leave a then dead ID in the PCU ownership. Causing various issues depending on your world settings.
- Auto reassinging PCU to the next player is a bad idea because that one player will most likely go over limits then. And just deleting blocks will destroy grids. Which is why just leaving the identity in there is probably the best solution.
- if -keepfactions is set the players wont be removed from the faction
- !deleteblocks buildby <playername> <gridname>
- Deletes all blocks on specified grid build by the given player. Use "allgrids" to delete the blocks on ALL grids.
- !deleteblocks ownedby <playername> <gridname>
- Deletes all blocks on specified grid owned by the given player. Use "allgrids" to delete the blocks on ALL grids.
##### Special Commands
- !seedcleanup all
- Originally this command does not belong here as it has nothing to do with PCU or Grids, however, after running "!voxels cleanup asteroids true" all asteroids will be removed including their vx2 file. An asteroid being removed like that the game will never regenerate on its own as it thinks its been deleted on purpose or fully mined.
- To prevent that from happening and properly restore an asteroid this code removes all saved voxel seeds from the save game so after a restart everything will start being regenerated.
- Basically its the same !sandbox clean does. But without messing with factions, identities, etc.
- **DOES NOT WORK FOR SE World Gen Plugin**
##### Statistic Commands
Finally we have commands for world analysis
!listblocks <all|limited> [-pcu] [-player=<playerName>] [-faction=<factionTag>]
- !listblocks all
- Lists all blocks the world has.
- !listblocks all -pcu
- Lists all blocks and also outputs the total pcu.
- !listblocks limited
- similar to "!listblocks all" but shows only blocks that have block limits.
- !listblocks limited -pcu
- similar to "!listblocks all -pcu" but shows only blocks that have block limits.
- !findblock <blockpairname> [-player=<PlayerName>] [-faction=<FactionTag>] [-groupby=<player|faction|grid>] [-metric=<author|owner>] [-findby=<blockpair|type|subtype>]
- Shows which Faction or Player owns a specific block.
- !listallblocks [-metric=<author|owner>]
- Outputs which player has how many of which blocks in the world. This allows for easier overview so you dont need to run !listblocks or !findblock multiple times. You can also export the results to CSV for easier access.
You can filter the results by adding -grid=Gridname, -faction=XYZ or -player=Playername. If any of these filters contains spaces you need to set the whole expression in "". Example:
!listblocks all -pcu "-player=My Player".
You can export the data to CSV using the -export=<filename> parameter. This will put the data into your Instances folder in ExportedStatistics.
Also sorting is possible with -orderby=blocks|name|pcu
#### Moderator Commands
##### Check Commands
- !checkowner
- Lists the owners and amount of blocks they own in descending order of the grid you are looking at.
- !checkowner <Gridname>
- Lists the owners and amount of blocks they own in descending order of the grid with the given name.
- !checkauthor
- Lists the authors and amount of PCU they own in descending order of the grid you are looking at.
- !checkauthor <Gridname>
- Lists the authors and amount of PCU they own in descending order of the grid with the given name.
##### List Commands
- !listgridsowner <PlayerName>
- Lists all grids the player has block ownership on
- !listgridsowner <PlayerName> -gps
- Lists all grids the player has block ownership on and adds gps to executing player
- !listgridsowner <PlayerName> -position
- Lists all grids the player has block ownership also shows GPS in the window can be combined with -gps
- !listgridsowner <PlayerName> -id
- Lists all grids the player has block ownership also shows EntityId of the grid
- !listgridsauthor <PlayerName>
- Lists all grids the player has PCU ownership on
- !listgridsauthor <PlayerName> -gps
- Lists all grids the player has PCU ownership on and adds gps to executing player
- !listgridsauthor <PlayerName> -position
- Lists all grids the player has PCU ownership also shows GPS in the window can be combined with -gps
- !listgridsauthor <PlayerName> -id
- Lists all grids the player has PCU ownership also shows EntityId of the grid
- !listgrids [-player=<PlayerName>] [-faction=<FactionTag>] [-orderby=<pcu|name|blocks|faction|owner>] [-id]
- Lists all Grids and allows for filtering by player or faction and custom sorting.
- !listnoauthor [-gps] [-position] [-id]
- Lists all grids which have at least 1 block without authorship.
- !checkusage player [-npc] [-online] [-faction=<Tag>] [-orderby=<pcu|block|name>] [-minblocks=<number>] [-minpcu=<number>]
- Outputs the PCU and Blocks of ALL players on the server. Ordered by Block-Count by default. With min blocks and pcu 1.
- !checkusage faction [-npc] [-orderby=<pcu|block|name>] [-minblocks=<number>] [-minpcu=<number>]
- Outputs the PCU and Blocks of ALL factions on the server. Ordered by Block-Count by default. With min blocks and pcu 1.
### Things to be aware of
- Similar to the game itself when transferring ownership to an other player connectors will unlock. So you need to ensure beforehand that nothing can get damaged in the process.
- Also when the grid you are transferring has no PCU owner it wont immediately be updated the player will see it in its info tab and block limits, but when looking with the welder at the block grid you just transferred it may be that it is not shown at the moment. Sadly there is some game features missing to do it right away. Transferring from Player to Player works without issue
- You can also transfer to players that are currently online.
- The plugin will respect PCU and block limits as well as block-type limits. The plugin will tell you what will be exceeded for the player if you perform the transfer and will not allow it.
- With the exception of the force commands. These will ignore the any limits.
### Executing via Console
An online character is needed in order to run the commands that require looking at a grid.
All commands that want you to pass a grid name can be run by console also.
### Github
[See Here](https://github.com/LordTylus/SE-Torch-Plugin-ALE-PcuTransferrer)