From bef5ffbd352d9c602ca220b390fdd207bc721ff1 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Tue, 19 May 2020 11:01:08 -0500 Subject: [PATCH] update IW5 parser --- Plugins/ScriptPlugins/ParserPIW5.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Plugins/ScriptPlugins/ParserPIW5.js b/Plugins/ScriptPlugins/ParserPIW5.js index a638e6add..9df8f0d7f 100644 --- a/Plugins/ScriptPlugins/ParserPIW5.js +++ b/Plugins/ScriptPlugins/ParserPIW5.js @@ -3,7 +3,7 @@ var eventParser; var plugin = { author: 'RaidMax', - version: 0.3, + version: 0.5, name: 'Plutonium IW5 Parser', isParser: true, @@ -28,7 +28,7 @@ var plugin = { rconParser.Configuration.CanGenerateLogPath = true; rconParser.Configuration.StatusHeader.Pattern = 'num +score +bot +ping +guid +name +lastmsg +address +qport +rate *'; - rconParser.Configuration.Status.Pattern = '^ *([0-9]+) +([0-9]+) +(?:[0-1]{1}) +([0-9]+) +([A-F0-9]+|0) +(.+?) +(?:[0-9]+) +(\\d+\\.\\d+\\.\\d+\\.\\d+\\:-?\\d{1,5}|0+\\.0+:-?\\d{1,5}|loopback) +(?:-?[0-9]+) +(?:[0-9]+) *$'; + rconParser.Configuration.Status.Pattern = '^ *([0-9]+) +-?([0-9]+) +(?:[0-1]{1}) +([0-9]{1,4}|[A-Z]{4}) +([a-f|A-F|0-9]{16}) +(.+?) +(?:[0-9]+) +(\\d+\\.\\d+\\.\\d+\\.\\d+\\:-?\\d{1,5}|0+\\.0+:-?\\d{1,5}|loopback) +(?:-?[0-9]+) +(?:[0-9]+) *$'; rconParser.Configuration.Status.AddMapping(100, 1); rconParser.Configuration.Status.AddMapping(101, 2); rconParser.Configuration.Status.AddMapping(102, 3); @@ -42,6 +42,7 @@ var plugin = { eventParser.GameName = 3; // IW5 eventParser.Configuration.GameDirectory = ''; + eventParser.URLProtocolFormat = 'plutonium://play/iw5mp/{{ip}}:{{port}}'; }, onUnloadAsync: function () {