玩家战利品日志记录详细的战利活动,并将其发送到配置的网点(控制台、文件系统和 Discord)。
0: DateTimeOffset use regular formatting, Ex: {0:yyyyMMddHHmmss} = 20220317155122
1: Target Display Name, Ex: RustGamer01
2: Target Steam ID, Ex: 01234567890123456
3: Item Name, Ex: scrap.item
4: Item Change Amount, Ex: 256
5: Item Condition (Value), Ex: {0:000.0000#} = 034.05897
6: Item Condition Max (Value), Ex: {0.00} = 42.00
7: Item Condition (Percent), Ex: {0:#.###} = 81.09
8: Looter Display Name(s), comma-delimited (if more than one), Ex: LootFirst, QuestionLater
9: Looter Steam ID(s), comma-delimited (if more than one), Ex: 54123678965432178, 98745321456872586
10: Display name and Id, comma-delimited (if more than one), Ex: LootFirst[54123678965432178], QuestionLater[98745321456872586]
11: The Target Entity X Position ("East/West"), Ex: 431
12: The Target Entity Y Position ("Height"), Ex: 7
13: The Target Entity Z Position ("North/South"), Ex: -104
这些参数可用于进一步自定义日志条目。
要启用控制台,只需设置为 。Console:Enabledtrue
要更改更新日志文件之间的延迟,您可以更改设置。默认情况下,此参数设置为 60,这意味着日志将每 60 秒更新一次。FileelaySeconds
警告:更新 将确定创建新日志文件的间隔。默认情况下,它设置为 daily。修改此文件格式时要小心。在更新此字符串之前,请确保您熟悉日期和时间格式字符串。File:FileNameFormat
注意:Discord Logger 中还有其他可以配置的设置。这些设置交互没有在我这边进行测试,只能由您自行决定使用。
[2022/03/18 04:06:21] zenmarev looted pumpkin.item (20) from RustGamer01
[2022/03/18 04:06:22] zenmarev looted ammo_rifle.item (13) from RustGamer01
[2022/03/18 04:06:23] zenmarev looted pumpkin_seed.item (13) from RustGamer01
[2022/03/18 04:07:47] zenmarev gave keycard_red.item (1) to RustGamer01
[2022/03/18 04:07:47] zenmarev gave keycard_red.item (1) to RustGamer01
[2022/03/18 04:07:54] zenmarev gave ak47u.item (1) to RustGamer01
[2022/03/18 04:07:55] zenmarev dropped ak47u.item (1) from RustGamer01
通过使用参数,可以自定义输出。例如:
"FormatLootDropSelf": "[{0:yyyy/MM/dd HH:mm:ss}] {8} dropped {3} ({4}) while looting {1}",
"FormatLootDropTarget": "[{0:yyyy/MM/dd HH:mm:ss}] Someone dropped {4} {3} right out of {1}'s bag!",
"FormatLootGive": "[{0:yyyy/MM/dd HH:mm:ss}] {1} was gifted {4} {3} from {8}!",
"FormatLootTake": "[{0:yyyy/MM/dd HH:mm:ss}] {8} stole {4} x {3} from player {1}[{2}]"
这将产生:
[2022/03/18 04:06:21] zenmarev stole 20 x pumpkin.item from player RustGamer01[01234567890123456]
[2022/03/18 04:06:21] zenmarev stole 13 x ammo_rifle.item from player RustGamer01[01234567890123456]
[2022/03/18 04:06:21] zenmarev stole 13 x pumpkin_seed.item from player RustGamer01[01234567890123456]
[2022/03/18 04:07:47] RustGamer01 was gifted 1 keycard_red.item from zenmarev!
[2022/03/18 04:07:47] RustGamer01 was gifted 1 ak47u.item from zenmarev!
[2022/03/18 04:07:55] Someone dropped 1 ak47u.item right out of RustGamer01's bag!
[Ha7riD]76561198877375763 looted metal_refined.item (5) from [YpreeGlosa]76561199044765413 at teleportpos (-437,12,311)
[Ha7riD]76561198877375763 looted leather.item (12) from [YpreeGlosa]76561199044765413 at teleportpos (-437,12,311)
[Ha7riD]76561198877375763 looted scrap.item (44) from [YpreeGlosa]76561199044765413 at teleportpos (-437,12,311)
配置
设置和选项可以在目录下的文件中进行配置。建议使用编辑器和验证器,以避免格式问题和语法错误。PlayerLootLogsconfig默认配置
增强的 Discord 配置
格式
配置中的格式消息可以使用以下任何参数。0: DateTimeOffset use regular formatting, Ex: {0:yyyyMMddHHmmss} = 20220317155122
1: Target Display Name, Ex: RustGamer01
2: Target Steam ID, Ex: 01234567890123456
3: Item Name, Ex: scrap.item
4: Item Change Amount, Ex: 256
5: Item Condition (Value), Ex: {0:000.0000#} = 034.05897
6: Item Condition Max (Value), Ex: {0.00} = 42.00
7: Item Condition (Percent), Ex: {0:#.###} = 81.09
8: Looter Display Name(s), comma-delimited (if more than one), Ex: LootFirst, QuestionLater
9: Looter Steam ID(s), comma-delimited (if more than one), Ex: 54123678965432178, 98745321456872586
10: Display name and Id, comma-delimited (if more than one), Ex: LootFirst[54123678965432178], QuestionLater[98745321456872586]
11: The Target Entity X Position ("East/West"), Ex: 431
12: The Target Entity Y Position ("Height"), Ex: 7
13: The Target Entity Z Position ("North/South"), Ex: -104
这些参数可用于进一步自定义日志条目。
集成
目前有三种日志记录实现可用:控制台、文件系统和 Discord。要启用控制台,只需设置为 。Console:Enabledtrue
文件系统
可以通过设置为 来启用文件系统日志记录。默认情况下,日志将保存到 。日期格式可以通过设置进行配置。File:Enabledtrue/oxide/logs/PlayerLootLogs/playerlootlogs_[yyyyMMdd].txtFile.FileNameFormat要更改更新日志文件之间的延迟,您可以更改设置。默认情况下,此参数设置为 60,这意味着日志将每 60 秒更新一次。FileelaySeconds
警告:更新 将确定创建新日志文件的间隔。默认情况下,它设置为 daily。修改此文件格式时要小心。在更新此字符串之前,请确保您熟悉日期和时间格式字符串。File:FileNameFormat
不和
Discord integration is manged with the help of the Discord Logger plugin. Once the plugin is installed, a webhook for the desired discord channel must be configured. The newly created webhook url can be set in before finally setting to .Discord:WebHookUrlDiscord:Enabledtrue注意:Discord Logger 中还有其他可以配置的设置。这些设置交互没有在我这边进行测试,只能由您自行决定使用。
仅限特定玩家
可以修改“TrackSpecificSteamIds”设置,以仅允许跟踪某些玩家。这将跟踪被掠夺的 ID 和执行掠夺的 ID。如果此字段留空,则将跟踪所有玩家。您可以通过输入玩家的 Steam ID 来添加玩家以进行跟踪,以逗号分隔。输出
默认情况下,这些日志的输出将如下所示:[2022/03/18 04:06:21] zenmarev looted pumpkin.item (20) from RustGamer01
[2022/03/18 04:06:22] zenmarev looted ammo_rifle.item (13) from RustGamer01
[2022/03/18 04:06:23] zenmarev looted pumpkin_seed.item (13) from RustGamer01
[2022/03/18 04:07:47] zenmarev gave keycard_red.item (1) to RustGamer01
[2022/03/18 04:07:47] zenmarev gave keycard_red.item (1) to RustGamer01
[2022/03/18 04:07:54] zenmarev gave ak47u.item (1) to RustGamer01
[2022/03/18 04:07:55] zenmarev dropped ak47u.item (1) from RustGamer01
通过使用参数,可以自定义输出。例如:
"FormatLootDropSelf": "[{0:yyyy/MM/dd HH:mm:ss}] {8} dropped {3} ({4}) while looting {1}",
"FormatLootDropTarget": "[{0:yyyy/MM/dd HH:mm:ss}] Someone dropped {4} {3} right out of {1}'s bag!",
"FormatLootGive": "[{0:yyyy/MM/dd HH:mm:ss}] {1} was gifted {4} {3} from {8}!",
"FormatLootTake": "[{0:yyyy/MM/dd HH:mm:ss}] {8} stole {4} x {3} from player {1}[{2}]"
这将产生:
[2022/03/18 04:06:21] zenmarev stole 20 x pumpkin.item from player RustGamer01[01234567890123456]
[2022/03/18 04:06:21] zenmarev stole 13 x ammo_rifle.item from player RustGamer01[01234567890123456]
[2022/03/18 04:06:21] zenmarev stole 13 x pumpkin_seed.item from player RustGamer01[01234567890123456]
[2022/03/18 04:07:47] RustGamer01 was gifted 1 keycard_red.item from zenmarev!
[2022/03/18 04:07:47] RustGamer01 was gifted 1 ak47u.item from zenmarev!
[2022/03/18 04:07:55] Someone dropped 1 ak47u.item right out of RustGamer01's bag!
增强输出
这将产生:[Ha7riD]76561198877375763 looted metal_refined.item (5) from [YpreeGlosa]76561199044765413 at teleportpos (-437,12,311)
[Ha7riD]76561198877375763 looted leather.item (12) from [YpreeGlosa]76561199044765413 at teleportpos (-437,12,311)
[Ha7riD]76561198877375763 looted scrap.item (44) from [YpreeGlosa]76561199044765413 at teleportpos (-437,12,311)