5 Commits

Author SHA1 Message Date
VladMordock
27ff04092b Merge pull request #48 from szporwolik/dev
v0.11.1
2020-11-12 02:37:50 +01:00
VladMordock
a695d32ee3 0.11.1 for Perun.lua 2020-11-12 00:28:01 +01:00
VladMordock
3f33b2a166 Fixed SQL Code 2020-11-12 00:27:34 +01:00
VladMordock
174dccbe1a Added info about STRICT_TRANS_TABLES into ReadMe 2020-11-12 00:26:06 +01:00
szporowolik
8917701a19 Fixed default port to 48621 and info about new tables added in v0.11.0 2020-11-07 12:08:31 +01:00
3 changed files with 21 additions and 16 deletions

View File

@@ -22,7 +22,7 @@ Perun.MOTD_L2 = "Wymagamy obecnosci DCS SRS oraz TeamSpeak - szczegoly na forum"
-- ###################### END OF SETTINGS - DO NOT MODIFY OUTSIDE THIS SECTION ###################### -- ###################### END OF SETTINGS - DO NOT MODIFY OUTSIDE THIS SECTION ######################
-- Variable init -- Variable init
Perun.Version = "v0.11.0" Perun.Version = "v0.11.1"
Perun.StatusData = {} Perun.StatusData = {}
Perun.SlotsData = {} Perun.SlotsData = {}
Perun.MissionData = {} Perun.MissionData = {}

View File

@@ -17,7 +17,7 @@ CREATE TABLE IF NOT EXISTS `pe_Config` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `pe_Config` (`pe_Config_id`, `pe_Config_payload`) VALUES INSERT INTO `pe_Config` (`pe_Config_id`, `pe_Config_payload`) VALUES
(1, 'v0.11.0'); (1, 'v0.11.1');
DROP TABLE IF EXISTS `pe_DataMissionHashes`; DROP TABLE IF EXISTS `pe_DataMissionHashes`;
CREATE TABLE IF NOT EXISTS `pe_DataMissionHashes` ( CREATE TABLE IF NOT EXISTS `pe_DataMissionHashes` (
@@ -176,25 +176,25 @@ DROP TABLE IF EXISTS `pe_OnlinePlayers`;
CREATE TABLE IF NOT EXISTS `pe_OnlinePlayers` ( CREATE TABLE IF NOT EXISTS `pe_OnlinePlayers` (
`pe_OnlinePlayers_id` int(11) NOT NULL, `pe_OnlinePlayers_id` int(11) NOT NULL,
`pe_OnlinePlayers_instance` int(11) NOT NULL, `pe_OnlinePlayers_instance` int(11) NOT NULL,
`pe_OnlinePlayers_ping` int(11) NOT NULL, `pe_OnlinePlayers_ping` int(11) DEFAULT NULL,
`pe_OnlinePlayers_side` int(11) NOT NULL, `pe_OnlinePlayers_side` int(11) DEFAULT NULL,
`pe_OnlinePlayers_slot` varchar(255) NOT NULL, `pe_OnlinePlayers_slot` varchar(255) DEFAULT NULL,
`pe_OnlinePlayers_ucid` varchar(255) NOT NULL, `pe_OnlinePlayers_ucid` varchar(255) DEFAULT NULL,
`pe_OnlinePlayers_updated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP `pe_OnlinePlayers_updated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `pe_OnlineStatus`; DROP TABLE IF EXISTS `pe_OnlineStatus`;
CREATE TABLE IF NOT EXISTS `pe_OnlineStatus` ( CREATE TABLE IF NOT EXISTS `pe_OnlineStatus` (
`pe_OnlineStatus_instance` int(11) NOT NULL, `pe_OnlineStatus_instance` int(11) NOT NULL,
`pe_OnlineStatus_theatre` varchar(255) NOT NULL, `pe_OnlineStatus_theatre` varchar(255) DEFAULT NULL,
`pe_OnlineStatus_name` varchar(255) NOT NULL, `pe_OnlineStatus_name` varchar(255) DEFAULT NULL,
`pe_OnlineStatus_pause` varchar(255) NOT NULL, `pe_OnlineStatus_pause` varchar(255) DEFAULT NULL,
`pe_OnlineStatus_multiplayer` varchar(255) NOT NULL, `pe_OnlineStatus_multiplayer` varchar(255) DEFAULT NULL,
`pe_OnlineStatus_realtime` varchar(255) NOT NULL, `pe_OnlineStatus_realtime` varchar(255) DEFAULT NULL,
`pe_OnlineStatus_modeltime` varchar(255) NOT NULL, `pe_OnlineStatus_modeltime` varchar(255) DEFAULT NULL,
`pe_OnlineStatus_players` int(11) NOT NULL, `pe_OnlineStatus_players` int(11) DEFAULT NULL,
`pe_OnlineStatus_perunversion_winapp` varchar(255) NOT NULL, `pe_OnlineStatus_perunversion_winapp` varchar(255) DEFAULT NULL,
`pe_OnlineStatus_perunversion_dcshook` varchar(255) NOT NULL, `pe_OnlineStatus_perunversion_dcshook` varchar(255) DEFAULT NULL,
`pe_OnlineStatus_updated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP `pe_OnlineStatus_updated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@@ -31,10 +31,11 @@ Core:
* Download latest [release](https://github.com/szporwolik/perun/releases) * Download latest [release](https://github.com/szporwolik/perun/releases)
* Copy contents of [01_DCS](https://github.com/szporwolik/perun/tree/master/01_DCS) to your \Scripts folder (located inside DCS folder in your Saved Games) * Copy contents of [01_DCS](https://github.com/szporwolik/perun/tree/master/01_DCS) to your \Scripts folder (located inside DCS folder in your Saved Games)
* Create MySQL database using SQL script located in [03_MySQL](https://github.com/szporwolik/perun/tree/master/03_MySQL); note that you need just a one database per DCS server machine - multiple instances pushing data to the one database are supported * Create MySQL database using SQL script located in [03_MySQL](https://github.com/szporwolik/perun/tree/master/03_MySQL); note that you need just a one database per DCS server machine - multiple instances pushing data to the one database are supported
* Ensure that your MySQL config is not using STRICT_TRANS_TABLES
## Running ## Running
* Start DCS World and host multiplayer session * Start DCS World and host multiplayer session
* by default the TCP port 48620 is in use as target port - ensure that port and instance ID in the options sections of the Lua file matches data * by default the TCP port 48621 is in use as target port - ensure that port and instance ID in the options sections of the Lua file matches data
* run the Win32 application * run the Win32 application
* set MySQL connection data * set MySQL connection data
* **optionaly** point LotATC json file location * **optionaly** point LotATC json file location
@@ -87,6 +88,8 @@ DCS API does not track carrier or FARP operations natively, so there is a trick
* table: pe_LogEvent - holds event history * table: pe_LogEvent - holds event history
* table: pe_LogLogins - holds login to server event history * table: pe_LogLogins - holds login to server event history
* table: pe_LogStats - holds static information * table: pe_LogStats - holds static information
* table: pe_OnlinePlayers - holds the list of actual players connected to the server
* table: pe_OnlineStatus - holds the information about server status of all instantes
![Database Scheme](https://i.imgur.com/zJsFxV0.png "MIT") ![Database Scheme](https://i.imgur.com/zJsFxV0.png "MIT")
@@ -141,3 +144,5 @@ This software is provide "as it is" without any warranties, but if you would lik
![Gildia.org Logo](https://images.weserv.nl/?url=https://i.imgur.com/nFHxQMy.png&w=140&il) ![Gildia.org Logo](https://images.weserv.nl/?url=https://i.imgur.com/nFHxQMy.png&w=140&il)
Thanks to [Gildia DCS](https://forum.gildia.org) Polish community of DCS World pilots. Thanks to [Gildia DCS](https://forum.gildia.org) Polish community of DCS World pilots.
Thanks to our Discord community for all the disussions, tests and proposals!