Update IW6x parser to automatically find the log file. (#216)

* Update ParserIW6x.js
This commit is contained in:
xerxes-at 2021-09-05 17:45:28 +02:00 committed by GitHub
parent c7fab5d36c
commit e267bd95da

View File

@ -2,8 +2,8 @@ var rconParser;
var eventParser; var eventParser;
var plugin = { var plugin = {
author: 'Xerxes, RaidMax', author: 'Xerxes, RaidMax, st0rm',
version: 0.2, version: 0.3,
name: 'IW6x Parser', name: 'IW6x Parser',
isParser: true, isParser: true,
@ -27,14 +27,12 @@ var plugin = {
rconParser.Configuration.Status.AddMapping(102, 4); rconParser.Configuration.Status.AddMapping(102, 4);
rconParser.Configuration.Status.AddMapping(103, 5); rconParser.Configuration.Status.AddMapping(103, 5);
rconParser.Configuration.Status.AddMapping(104, 6); rconParser.Configuration.Status.AddMapping(104, 6);
rconParser.Configuration.DefaultDvarValues.Add('g_log', 'games_mp.log'); // todo: remove this once proper log support is implemented
rconParser.Configuration.DefaultDvarValues.Add('g_logsync', '1'); // todo: remove this once proper log support is implemented
rconParser.Version = 'IW6 MP 3.15 build 2 Sat Sep 14 2013 03:58:30PM win64'; rconParser.Version = 'IW6 MP 3.15 build 2 Sat Sep 14 2013 03:58:30PM win64';
rconParser.GameName = 4; // IW6 rconParser.GameName = 4; // IW6
eventParser.Version = 'IW6 MP 3.15 build 2 Sat Sep 14 2013 03:58:30PM win64'; eventParser.Version = 'IW6 MP 3.15 build 2 Sat Sep 14 2013 03:58:30PM win64';
eventParser.GameName = 4; // IW6 eventParser.GameName = 4; // IW6
eventParser.Configuration.GameDirectory = 'iw6x'; eventParser.Configuration.GameDirectory = '';
}, },
onUnloadAsync: function () { onUnloadAsync: function () {