2019-02-03 21:47:05 -05:00
|
|
|
var rconParser;
|
|
|
|
var eventParser;
|
|
|
|
|
|
|
|
var plugin = {
|
2019-12-04 14:08:01 -05:00
|
|
|
author: 'RaidMax, Xerxes',
|
2021-11-23 18:26:33 -05:00
|
|
|
version: 1.2,
|
2019-03-17 05:57:52 -04:00
|
|
|
name: 'Plutonium T6 Parser',
|
2019-02-03 21:47:05 -05:00
|
|
|
isParser: true,
|
|
|
|
|
|
|
|
onEventAsync: function (gameEvent, server) {
|
|
|
|
},
|
|
|
|
|
|
|
|
onLoadAsync: function (manager) {
|
2020-01-21 19:08:18 -05:00
|
|
|
rconParser = manager.GenerateDynamicRConParser(this.name);
|
|
|
|
eventParser = manager.GenerateDynamicEventParser(this.name);
|
2019-02-03 21:47:05 -05:00
|
|
|
|
|
|
|
rconParser.Configuration.CommandPrefixes.Tell = 'tell {0} {1}';
|
|
|
|
rconParser.Configuration.CommandPrefixes.Say = 'say {0}';
|
|
|
|
rconParser.Configuration.CommandPrefixes.Kick = 'clientkick_for_reason {0} "{1}"';
|
|
|
|
rconParser.Configuration.CommandPrefixes.Ban = 'clientkick_for_reason {0} "{1}"';
|
|
|
|
rconParser.Configuration.CommandPrefixes.TempBan = 'clientkick_for_reason {0} "{1}"';
|
|
|
|
rconParser.Configuration.CommandPrefixes.RConGetDvar = '\xff\xff\xff\xffrcon {0} get {1}';
|
2020-08-18 21:11:41 -04:00
|
|
|
rconParser.Configuration.CommandPrefixes.RConGetInfo = undefined; // adding this in here temporarily until getInfo is fixed in new T6 version
|
2019-02-03 21:47:05 -05:00
|
|
|
|
|
|
|
rconParser.Configuration.Dvar.Pattern = '^(.+) is "(.+)?"$';
|
|
|
|
rconParser.Configuration.Dvar.AddMapping(106, 1);
|
|
|
|
rconParser.Configuration.Dvar.AddMapping(107, 2);
|
|
|
|
rconParser.Configuration.WaitForResponse = false;
|
2021-01-08 20:21:23 -05:00
|
|
|
rconParser.Configuration.NoticeLineSeparator = '. ';
|
2021-11-14 22:38:00 -05:00
|
|
|
rconParser.Configuration.DefaultRConPort = 4976;
|
|
|
|
rconParser.Configuration.DefaultInstallationDirectoryHint = '{LocalAppData}/Plutonium/storage/t6';
|
2019-02-03 21:47:05 -05:00
|
|
|
|
2020-04-18 18:48:49 -04:00
|
|
|
rconParser.Configuration.StatusHeader.Pattern = 'num +score +bot +ping +guid +name +lastmsg +address +qport +rate *';
|
2020-05-04 17:50:02 -04:00
|
|
|
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]+) *$';
|
2019-02-03 21:47:05 -05:00
|
|
|
rconParser.Configuration.Status.AddMapping(100, 1);
|
|
|
|
rconParser.Configuration.Status.AddMapping(101, 2);
|
2019-12-04 14:08:01 -05:00
|
|
|
rconParser.Configuration.Status.AddMapping(102, 3);
|
|
|
|
rconParser.Configuration.Status.AddMapping(103, 4);
|
|
|
|
rconParser.Configuration.Status.AddMapping(104, 5);
|
|
|
|
rconParser.Configuration.Status.AddMapping(105, 6);
|
2021-11-23 18:26:33 -05:00
|
|
|
|
|
|
|
// this is mostly default but just an example on how to map
|
|
|
|
rconParser.Configuration.ColorCodeMapping.Clear();
|
|
|
|
rconParser.Configuration.ColorCodeMapping.Add('Black', '^0');
|
|
|
|
rconParser.Configuration.ColorCodeMapping.Add('Red', '^1');
|
|
|
|
rconParser.Configuration.ColorCodeMapping.Add('Green', '^2');
|
|
|
|
rconParser.Configuration.ColorCodeMapping.Add('Yellow', '^3');
|
|
|
|
rconParser.Configuration.ColorCodeMapping.Add('Blue', '^4');
|
|
|
|
rconParser.Configuration.ColorCodeMapping.Add('Cyan', '^5');
|
|
|
|
rconParser.Configuration.ColorCodeMapping.Add('Pink', '^6');
|
|
|
|
rconParser.Configuration.ColorCodeMapping.Add('White', '^7');
|
|
|
|
rconParser.Configuration.ColorCodeMapping.Add('Map', '^8');
|
|
|
|
rconParser.Configuration.ColorCodeMapping.Add('Grey', '^9');
|
|
|
|
rconParser.Configuration.ColorCodeMapping.Add('LightBlue', '^;');
|
|
|
|
rconParser.Configuration.ColorCodeMapping.Add('LightYellow', '^:');
|
2020-01-15 19:43:52 -05:00
|
|
|
|
2021-08-27 21:47:06 -04:00
|
|
|
eventParser.Configuration.GameDirectory = '';
|
2020-01-15 19:43:52 -05:00
|
|
|
eventParser.Configuration.GuidNumberStyle = 7; // Integer
|
2019-02-03 21:47:05 -05:00
|
|
|
|
|
|
|
rconParser.Version = 'Call of Duty Multiplayer - Ship COD_T6_S MP build 1.0.44 CL(1759941) CODPCAB2 CEG Fri May 9 19:19:19 2014 win-x86 813e66d5';
|
2019-02-05 19:02:45 -05:00
|
|
|
rconParser.GameName = 7; // T6
|
2019-02-03 21:47:05 -05:00
|
|
|
eventParser.Version = 'Call of Duty Multiplayer - Ship COD_T6_S MP build 1.0.44 CL(1759941) CODPCAB2 CEG Fri May 9 19:19:19 2014 win-x86 813e66d5';
|
2019-02-05 19:02:45 -05:00
|
|
|
eventParser.GameName = 7; // T6
|
2019-02-03 21:47:05 -05:00
|
|
|
},
|
|
|
|
|
|
|
|
onUnloadAsync: function () {
|
|
|
|
},
|
|
|
|
|
|
|
|
onTickAsync: function (server) {
|
|
|
|
}
|
2021-05-15 10:22:34 -04:00
|
|
|
};
|