ALE Ownership Logger

LordTylus

Introduction

If you have a server that prohibits PVP or otherwise Griefing you may find yourself in the position where you cannot really track who did or did not do something on a grid.

There may be the possibility to log every interaction with a grid, but that is pretty overkill. In most of the cases people hack blocks, to steal cargo or the whole ship.

For that I created a Logging tool that logs ownership changes to blocks.

How does it work?

Every time a block changes ownership there will be a new log message on the console telling you who owned the block before, who owns it now and what their factions are.

Since its hard to figure out if the old owner was the one doing the change (for example when removing a block) it has an indication of the old owner was online or offline at that time.

When a player complains about griefing, you can then use Notepad++ for example to look for that player. And see what grids got changed while he was offline. Maybe you find more entries on that grid that may indicate who took control of it.

Since v1.0.2.0 Ownership logger has its own Log-File. called ownerships-<Year>-<Month>-<Day>.log and it wont output on the console or torch.log. Both console should not be spammed with unimportant stuff as it makes finding problems harder. At the same time it would be easier for you to look one logfile up instead of scrolling through an infinitely long torch.log

Optional: Configure NLog (No longer needed/working since v1.0.2.0)

You will notice your console being spammed pretty fast. So I recommend to configure NLog to not log the Messages to the console or torch.log, but to a separate file.

You can do so by adding:

<target xsi:type="File" name="ownerships" layout="${var:logStamp} ${var:logContent}" fileName="Logs\ownerships-${shortdate}.log"/>

to the targets section of the NLog-user.config It configures a new output in the logs folder with a output and file format. Every day a new file will be created.

After that add:

<logger name="OwnershipLogger" minlevel="Debug" writeTo="ownerships" final="true" />

to the rules section. This tells NLog to output all Messages by the Ownership Logger to the target you configured before.

Finally hit save and restart your server.

Examples

Changes due to taking damage, or griding/welding look like this:

19:11:53.6299 [INFO] Ownership change for block AirVent from LordTylus [On] to Nobody on grid: Vanilla Scout Ship - Tani

19:11:54.7810 [INFO] Ownership change for block AirVent from Nobody [Off] to LordTylus on grid: Vanilla Scout Ship - Tani

19:11:58.4971 [INFO] Ownership change for block SurvivalKit from LordTylus [On] to Nobody on grid: Vanilla Scout Ship - Tani

19:12:00.1809 [INFO] Ownership change for block SurvivalKit from Nobody [Off] to LordTylus on grid: Vanilla Scout Ship - Tani

19:12:01.4477 [INFO] Ownership change for block SmallCargoContainer from LordTylus [On] to Nobody on grid: Vanilla Scout Ship - Tani

19:12:03.1812 [INFO] Ownership change for block SmallCargoContainer from Nobody [Off] to LordTylus on grid: Vanilla Scout Ship - Tani

19:12:05.1139 [INFO] Ownership change for block SmallCargoContainer from LordTylus [On] to Nobody on grid: Vanilla Scout Ship - Tani

19:12:06.8809 [INFO] Ownership change for block SmallCargoContainer from Nobody [Off] to LordTylus on grid: Vanilla Scout Ship - Tani

Changes due to transferring blocks via Terminal look like this:

19:42:51.0799 [INFO] Player LordTylus [ALE] requested the following ownership changes on grid: 'Vanilla Scout Ship - Tani'

block AirVent from LordTylus [On][ALE] to [ATF]-Warground
block BasicAssembler from LordTylus [On][ALE] to [ATF]-Warground
block BatteryBlock from LordTylus [On][ALE] to [ATF]-Warground
block BatteryBlock from LordTylus [On][ALE] to [ATF]-Warground
block Connector from LordTylus [On][ALE] to [ATF]-Warground
block ControlPanel from LordTylus [On][ALE] to [ATF]-Warground
block ProgrammableBlock from LordTylus [On][ALE] to [ATF]-Warground
block InteriorTurret from LordTylus [On][ALE] to [ATF]-Warground
block OxygenGenerator from LordTylus [On][ALE] to [ATF]-Warground
block ProgrammableBlock from LordTylus [On][ALE] to [ATF]-Warground
block MotorStator from LordTylus [On][ALE] to [ATF]-Warground
block MotorStator from LordTylus [On][ALE] to [ATF]-Warground
block MotorStator from LordTylus [On][ALE] to [ATF]-Warground
block MotorStator from LordTylus [On][ALE] to [ATF]-Warground
block MotorStator from LordTylus [On][ALE] to [ATF]-Warground
block MotorStator from LordTylus [On][ALE] to [ATF]-Warground
block MotorStator from LordTylus [On][ALE] to [ATF]-Warground
block MotorStator from LordTylus [On][ALE] to [ATF]-Warground
block AirtightSlide Door from LordTylus [On][ALE] to [ATF]-Warground
block SmallCargoContainer from LordTylus [On][ALE] to [ATF]-Warground
block SmallCargoContainer from LordTylus [On][ALE] to [ATF]-Warground
block SmallCargoContainer from LordTylus [On][ALE] to [ATF]-Warground
block SmallCargoContainer from LordTylus [On][ALE] to [ATF]-Warground
block SmallReactor from LordTylus [On][ALE] to [ATF]-Warground
block SurvivalKit from LordTylus [On][ALE] to [ATF]-Warground
block Antenna from LordTylus [On][ALE] to [ATF]-Warground
block RemoteControl from LordTylus [On][ALE] to [ATF]-Warground
block TimerBlock from LordTylus [On][ALE] to [ATF]-Warground

Github

See Here

Beta? Version Note Date Download DL Count
v1.0.4.0 New DamageTypes Defomration and Lighning in the logs that should reduce [Unknowns] in there 8/7/20 10:06:41 PM Download 183
v1.0.3.2 Online state is now also correctly shown when shipwelders of offline change ownership 7/29/20 6:55:43 PM Download 105
v1.0.3.1 Compatibility fixes and recompile for 195 Update. No new Features 6/24/20 7:06:03 PM Download 161
v1.0.3.0 LogFile Name is now Configurable 4/19/20 1:19:42 PM Download 188
v1.0.2.0 Will now have its own Logfile and no longer SPAM the Torch Console 4/16/20 9:15:00 PM Download 112
v1.0.1.7 No longer uses torch internals for patching 3/24/20 6:04:27 PM Download 146
v1.0.1.6 Just a recompile to fix various problems with new update no code changes 3/19/20 10:48:31 PM Download 131
v1.0.1.5 Added Debug Info to Plugin 12/17/19 11:13:12 AM Download 230
v1.0.1.4 No Functional Changes just reorganized the Project and updated Dependencies 12/16/19 9:55:45 PM Download 124
v1.0.1.3 Now logs if a safezone was turned on or off when ownership was changed. 11/23/19 9:03:32 PM Download 180
v1.0.1.1 Fixed Crash probably caused by modded explosions 9/1/19 5:44:39 PM Download 225
v1.0.1.0 Added Logging for Block-Destructions like Warhead explosions, Turret damage etc. 8/31/19 4:29:55 PM Download 139
v1.0.0.5 Instead of a turrets owner the Pilot of a ship is now shown as cause of the ownership change. Also we get an indicaton on what caused the change. like a turret, or a ship tool. 6/12/19 7:38:10 PM Download 223
v1.0.0.2 Now also logs whose gun/grinder caused a ownership change to nobody 6/8/19 2:01:08 PM Download 159
v1.0.0.1 Initial Release 6/7/19 6:41:19 PM Download 136