From 466171a75684db773e9491a7df64e4c35695e48a Mon Sep 17 00:00:00 2001 From: szporowolik Date: Wed, 1 Jul 2020 14:31:45 +0200 Subject: [PATCH] Fixed events not triggered --- 01_DCS/Hooks/Perun.lua | 29 +------------------------ 02_Windows_App/Perun_v1/Perun_v1.csproj | 2 +- 2 files changed, 2 insertions(+), 29 deletions(-) diff --git a/01_DCS/Hooks/Perun.lua b/01_DCS/Hooks/Perun.lua index f54c082..30de3b3 100644 --- a/01_DCS/Hooks/Perun.lua +++ b/01_DCS/Hooks/Perun.lua @@ -9,7 +9,7 @@ package.cpath = package.cpath..";"..lfs.currentdir().."/LuaSocket/?.dll" Perun.RefreshStatus = 15 -- (int) [default: 60] Base refresh rate in seconds to send status update Perun.RefreshMission = 60 -- (int) [default: 120] Refresh rate in seconds to send mission information -Perun.TCPTargetPort = 48620 -- (int) [default: 48621] TCP port to send data to +Perun.TCPTargetPort = 48621 -- (int) [default: 48621] TCP port to send data to Perun.TCPPerunHost = "localhost" -- (string) [default: "localhost"] IP adress of the Perun instance or "localhost" Perun.Instance = 1 -- (int) [default: 1] Id number of instance (if multiple DCS instances are to run at the same PC) Perun.JsonStatusLocation = "Scripts\\Json\\" -- (string) [default: "Scripts\\Json\\"] Folder relative do user's SaveGames DCS folder -> status file updated each RefreshMission @@ -796,33 +796,6 @@ Perun.onGameEvent = function (eventName,arg1,arg2,arg3,arg4,arg5,arg6,arg7) -- Game event has occured Perun.AddLog("Event handler for ".. eventName .. " started",2) - -- Below debug helper - local event_arguments = eventName - - if arg1 ~= "" then - event_arguments = event_arguments .. " arg1: " .. arg1 - end - if arg2 ~= "" then - event_arguments = event_arguments .. " arg2: ".. arg2 - end - if arg3 ~= "" then - event_arguments = event_arguments .. " arg3: ".. arg3 - end - if arg4 ~= "" then - event_arguments = event_arguments .. " arg4: ".. arg4 - end - if arg5 ~= "" then - event_arguments = event_arguments .. " arg5: ".. arg5 - end - if arg6 ~= "" then - event_arguments = event_arguments .. " arg6: ".. arg6 - end - if arg7 ~= "" then - event_arguments = event_arguments .. " arg7: ".. arg7 - end - - Perun.AddLog("DEBUG onGameEvent:" .. event_arguments,2) - if eventName == "friendly_fire" then --"friendly_fire", playerID, weaponName, victimPlayerID if arg2 == "" then diff --git a/02_Windows_App/Perun_v1/Perun_v1.csproj b/02_Windows_App/Perun_v1/Perun_v1.csproj index f312126..ea7daa7 100644 --- a/02_Windows_App/Perun_v1/Perun_v1.csproj +++ b/02_Windows_App/Perun_v1/Perun_v1.csproj @@ -31,7 +31,7 @@ szporwolik Perun Perun.htm - 0 + 1 0.10.0.%2a false true