mirror of
https://github.com/DaKerboul/perun.git
synced 2026-08-09 18:05:40 +02:00
Fix: changed Config variable to PerunConfig in lua scripts
This commit is contained in:
@@ -1,17 +1,17 @@
|
|||||||
-- Perun for DCS World https://github.com/szporwolik/perun -> DCS Hook config component
|
-- Perun for DCS World https://github.com/szporwolik/perun -> DCS Hook config component
|
||||||
local Config = {}
|
local PerunConfig = {}
|
||||||
|
|
||||||
-- ###################### SETTINGS - DO NOT MODIFY OUTSIDE THIS SECTION #############################
|
-- ###################### SETTINGS - DO NOT MODIFY OUTSIDE THIS SECTION #############################
|
||||||
|
|
||||||
Config.TCPPerunHost = "localhost" -- (string) [default: "localhost"] IP adress of the Perun instance or "localhost"
|
PerunConfig.TCPPerunHost = "localhost" -- (string) [default: "localhost"] IP adress of the Perun instance or "localhost"
|
||||||
Config.TCPTargetPort = 48621 -- (int) [default: 48621] TCP port to send data to
|
PerunConfig.TCPTargetPort = 48621 -- (int) [default: 48621] TCP port to send data to
|
||||||
Config.Instance = 1 -- (int) [default: 1] Id number of instance (if multiple DCS instances are to run at the same PC)
|
PerunConfig.Instance = 3 -- (int) [default: 1] Id number of instance (if multiple DCS instances are to run at the same PC)
|
||||||
Config.RefreshStatus = 60 -- (int) [default: 60] Base refresh rate in seconds to send status update
|
PerunConfig.RefreshStatus = 60 -- (int) [default: 60] Base refresh rate in seconds to send status update
|
||||||
Config.RefreshMission = 120 -- (int) [default: 120] Refresh rate in seconds to send mission information
|
PerunConfig.RefreshMission = 120 -- (int) [default: 120] Refresh rate in seconds to send mission information
|
||||||
Config.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
|
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.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
|
PerunConfig.DebugMode = 2 -- (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.MOTD_L1 = "Witamy na serwerze #1 Gildia.org !" -- (string) Message send to players connecting the server - Line 1
|
PerunConfig.MOTD_L1 = "Witamy na serwerze #1 Gildia.org !" -- (string) Message send to players connecting the server - Line 1
|
||||||
Config.MOTD_L2 = "Wymagamy obecnosci DCS SRS oraz TeamSpeak - szczegoly na forum" -- (string) Message send to players connecting the server - Line 2
|
PerunConfig.MOTD_L2 = "Wymagamy obecnosci DCS SRS oraz TeamSpeak - szczegoly na forum" -- (string) Message send to players connecting the server - Line 2
|
||||||
|
|
||||||
-- ###################### END OF SETTINGS - DO NOT MODIFY OUTSIDE THIS SECTION ######################
|
-- ###################### END OF SETTINGS - DO NOT MODIFY OUTSIDE THIS SECTION ######################
|
||||||
return Config
|
return PerunConfig
|
||||||
|
|||||||
@@ -9,19 +9,19 @@ package.path = package.path..";"..lfs.currentdir().."/LuaSocket/?.lua"..";"..lf
|
|||||||
package.cpath = package.cpath..";"..lfs.currentdir().."/LuaSocket/?.dll"
|
package.cpath = package.cpath..";"..lfs.currentdir().."/LuaSocket/?.dll"
|
||||||
|
|
||||||
-- Load config file
|
-- Load config file
|
||||||
local Config = require "perun_config"
|
local PerunConfig = require "perun_config"
|
||||||
Perun.RefreshStatus = Config.RefreshStatus
|
Perun.RefreshStatus = PerunConfig.RefreshStatus
|
||||||
Perun.RefreshMission = Config.RefreshMission
|
Perun.RefreshMission = PerunConfig.RefreshMission
|
||||||
Perun.TCPTargetPort = Config.TCPTargetPort
|
Perun.TCPTargetPort = PerunConfig.TCPTargetPort
|
||||||
Perun.TCPPerunHost = Config.TCPPerunHost
|
Perun.TCPPerunHost = PerunConfig.TCPPerunHost
|
||||||
Perun.Instance = Config.Instance
|
Perun.Instance = PerunConfig.Instance
|
||||||
Perun.MissionStartNoDeathWindow = Config.MissionStartNoDeathWindow
|
Perun.MissionStartNoDeathWindow = PerunConfig.MissionStartNoDeathWindow
|
||||||
Perun.DebugMode = Config.DebugMode
|
Perun.DebugMode = PerunConfig.DebugMode
|
||||||
Perun.MOTD_L1 = Config.MOTD_L1
|
Perun.MOTD_L1 = PerunConfig.MOTD_L1
|
||||||
Perun.MOTD_L2 = Config.MOTD_L2
|
Perun.MOTD_L2 = PerunConfig.MOTD_L2
|
||||||
|
|
||||||
-- Variable init
|
-- Variable init
|
||||||
Perun.Version = "v0.11.2"
|
Perun.Version = "v0.12.0"
|
||||||
Perun.StatusData = {}
|
Perun.StatusData = {}
|
||||||
Perun.SlotsData = {}
|
Perun.SlotsData = {}
|
||||||
Perun.MissionData = {}
|
Perun.MissionData = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user