mirror of
https://github.com/DaKerboul/perun.git
synced 2026-08-09 23:45:38 +02:00
lighter perun event listener
This commit is contained in:
@@ -1,26 +1,28 @@
|
||||
-- Perun for DCS World https://github.com/szporwolik/perun -> DCS Hook config component
|
||||
local PerunConfig = {}
|
||||
local config = {}
|
||||
|
||||
-- ###################### SETTINGS - DO NOT MODIFY OUTSIDE THIS SECTION #############################
|
||||
-- Connection
|
||||
PerunConfig.TCPPerunHost = "localhost" -- (string) [default: "localhost"] IP adress of the Perun instance or "localhost"
|
||||
PerunConfig.TCPTargetPort = 48621 -- (int) [default: 48621] TCP port to send data to
|
||||
PerunConfig.Instance = 1 -- (int) [default: 1] Id number of instance (if multiple DCS instances are to run at the same PC)
|
||||
PerunConfig.RefreshStatus = 60 -- (int) [default: 60] Base refresh rate in seconds to send status update
|
||||
|
||||
-- Mission Configuration
|
||||
PerunConfig.MissionStartNoDeathWindow = 300 -- (int) [default: 300] Number of secounds after mission start when death of the pilot will not go to statistics, shall avoid death penalty during spawning DCS bugs
|
||||
config.host = "localhost" -- (string) [default: "localhost"] IP adress of the Perun instance or "localhost"
|
||||
config.port = 48621 -- (int) [default: 48621] TCP port to send data to
|
||||
config.Instance = 1 -- (int) [default: 1] Id number of instance (if multiple DCS instances run on the same machine)
|
||||
config.keepAliveSeconds = 5 --
|
||||
config.refreshSlotsSeconds = 300 -- delay between slot updates are sent
|
||||
config.refreshMissionSeconds = 600 -- delay between mission update is sent
|
||||
config.bigUpdatesSeconds = 100 -- big updates (mission, unit IDs, slots) have to wait between being sent
|
||||
|
||||
-- Localisation
|
||||
PerunConfig.MOTD_L1 = "[Perun] Welcome to our server !" -- (string) Message send to players connecting the server - Line 1
|
||||
PerunConfig.MOTD_L2 = "[Perun] Stats and event data integrated with Perun for DCS World" -- (string) Message send to players connecting the server - Line 2
|
||||
PerunConfig.ConnectionError_L1 = "[Perun] ERROR: Connection broken - contact server admin!" -- (string) Information to send to players when Perun connection is broken
|
||||
-- Server MOTD, sent to ALL players when entering cockpit
|
||||
config.MOTD_line1 = "[Perun] Welcome to our server!";
|
||||
config.MOTD_line2 = "[Perun] Stats and event data integrated with Perun for DCS World";
|
||||
-- (string) Information to send to players when Perun connection is broken
|
||||
config.ConnectionError = "[Perun] ERROR: Connection broken - contact server admin!"
|
||||
|
||||
-- Misc
|
||||
PerunConfig.BroadcastPerunErrors = 1 -- (int) [0 (default),1] Value greater than 0 will broadcast chat message about missing connection to Perun
|
||||
config.BroadcastPerunErrors = 1 -- (int) [0 (default),1] Value greater than 0 will broadcast chat message about missing connection to Perun
|
||||
|
||||
-- Debug
|
||||
PerunConfig.DebugMode = 1 -- (int) [0 (default),1,2] Value greater than 0 will display Perun information in DCS log file, values: 1 - minimal verbose, 2 - all log information will be logged
|
||||
config.DebugMode = 1 -- (int) [0 (default),1,2] Value greater than 0 will display Perun information in DCS log file, values: 1 - minimal verbose, 2 - all log information will be logged
|
||||
|
||||
-- ###################### END OF SETTINGS - DO NOT MODIFY OUTSIDE THIS SECTION ######################
|
||||
return PerunConfig
|
||||
return config
|
||||
|
||||
Reference in New Issue
Block a user