mirror of
https://github.com/DaKerboul/perun.git
synced 2026-08-09 17:05:39 +02:00
@@ -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.10.0"
|
Perun.Version = "v0.10.1"
|
||||||
Perun.StatusData = {}
|
Perun.StatusData = {}
|
||||||
Perun.SlotsData = {}
|
Perun.SlotsData = {}
|
||||||
Perun.MissionData = {}
|
Perun.MissionData = {}
|
||||||
@@ -842,7 +842,7 @@ Perun.onGameEvent = function (eventName,arg1,arg2,arg3,arg4,arg5,arg6,arg7)
|
|||||||
_temp_event_type="kill_Infantry"
|
_temp_event_type="kill_Infantry"
|
||||||
elseif _temp_category == "Fortification" then
|
elseif _temp_category == "Fortification" then
|
||||||
_temp_event_type="kill_Fortification"
|
_temp_event_type="kill_Fortification"
|
||||||
elseif _temp_category == "Artillery" then
|
elseif _temp_category == "Artillery" or _temp_category == "MissilesSS" then
|
||||||
_temp_event_type="kill_Artillery"
|
_temp_event_type="kill_Artillery"
|
||||||
else
|
else
|
||||||
_temp_event_type="kill_Other"
|
_temp_event_type="kill_Other"
|
||||||
|
|||||||
@@ -77,6 +77,7 @@
|
|||||||
this.con_img_dcs = new System.Windows.Forms.PictureBox();
|
this.con_img_dcs = new System.Windows.Forms.PictureBox();
|
||||||
this.con_img_db = new System.Windows.Forms.PictureBox();
|
this.con_img_db = new System.Windows.Forms.PictureBox();
|
||||||
this.con_Button_Add_Marker = new System.Windows.Forms.Button();
|
this.con_Button_Add_Marker = new System.Windows.Forms.Button();
|
||||||
|
this.TIM_Autostart = new System.Windows.Forms.Timer(this.components);
|
||||||
this.con_GroupBox_1.SuspendLayout();
|
this.con_GroupBox_1.SuspendLayout();
|
||||||
this.con_GroupBox_2.SuspendLayout();
|
this.con_GroupBox_2.SuspendLayout();
|
||||||
this.con_GroupBox_3.SuspendLayout();
|
this.con_GroupBox_3.SuspendLayout();
|
||||||
@@ -524,6 +525,10 @@
|
|||||||
this.con_Button_Add_Marker.UseVisualStyleBackColor = true;
|
this.con_Button_Add_Marker.UseVisualStyleBackColor = true;
|
||||||
this.con_Button_Add_Marker.Click += new System.EventHandler(this.con_Button_Add_Marker_Click);
|
this.con_Button_Add_Marker.Click += new System.EventHandler(this.con_Button_Add_Marker_Click);
|
||||||
//
|
//
|
||||||
|
// TIM_Autostart
|
||||||
|
//
|
||||||
|
this.TIM_Autostart.Interval = 500;
|
||||||
|
//
|
||||||
// form_Main
|
// form_Main
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
@@ -573,7 +578,10 @@
|
|||||||
((System.ComponentModel.ISupportInitialize)(this.con_img_db)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.con_img_db)).EndInit();
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
this.PerformLayout();
|
this.PerformLayout();
|
||||||
|
// TIM_Autostart
|
||||||
|
//
|
||||||
|
this.TIM_Autostart.Tick += new System.EventHandler(this.TIM_Autostart_Tick);
|
||||||
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
@@ -625,6 +633,7 @@
|
|||||||
private System.Windows.Forms.Label label13;
|
private System.Windows.Forms.Label label13;
|
||||||
private System.Windows.Forms.Label label14;
|
private System.Windows.Forms.Label label14;
|
||||||
private System.Windows.Forms.Button con_Button_Add_Marker;
|
private System.Windows.Forms.Button con_Button_Add_Marker;
|
||||||
|
private System.Windows.Forms.Timer TIM_Autostart;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -67,6 +67,19 @@ namespace Perun_v1
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (args.Length > 5)
|
||||||
|
{
|
||||||
|
// Get argument lotATC file path
|
||||||
|
if (args[5] != null)
|
||||||
|
{
|
||||||
|
if (args[5] == "1")
|
||||||
|
{
|
||||||
|
TIM_Autostart.Enabled = true;
|
||||||
|
PerunHelper.AddLog(ref Globals.AppLogHistory, "Autostart parameter provided", 0, 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Initialize controls
|
// Initialize controls
|
||||||
con_img_db.Image = (Image)Properties.Resources.ResourceManager.GetObject("status_disconnected");
|
con_img_db.Image = (Image)Properties.Resources.ResourceManager.GetObject("status_disconnected");
|
||||||
con_img_dcs.Image = (Image)Properties.Resources.ResourceManager.GetObject("status_disconnected");
|
con_img_dcs.Image = (Image)Properties.Resources.ResourceManager.GetObject("status_disconnected");
|
||||||
@@ -183,7 +196,7 @@ namespace Perun_v1
|
|||||||
DatabaseConnection.DatabaseConnectionString = "server=" + con_txt_mysql_server.Text + ";user=" + con_txt_mysql_username.Text + ";database=" + con_txt_mysql_database.Text + ";port=" + con_txt_mysql_port.Text + ";password=" + con_txt_mysql_password.Text;
|
DatabaseConnection.DatabaseConnectionString = "server=" + con_txt_mysql_server.Text + ";user=" + con_txt_mysql_username.Text + ";database=" + con_txt_mysql_database.Text + ";port=" + con_txt_mysql_port.Text + ";password=" + con_txt_mysql_password.Text;
|
||||||
|
|
||||||
// Start listening
|
// Start listening
|
||||||
PerunHelper.AddLog(ref Globals.AppLogHistory, "Opening connections",0,1);
|
PerunHelper.AddLog(ref Globals.AppLogHistory, "Opening connections", 0, 1);
|
||||||
TCPServer.Create(Int32.Parse(con_txt_dcs_server_port.Text), ref Globals.AppLogHistory, ref DatabaseSendBuffer);
|
TCPServer.Create(Int32.Parse(con_txt_dcs_server_port.Text), ref Globals.AppLogHistory, ref DatabaseSendBuffer);
|
||||||
TCPServer.thrTCPListener = new Thread(TCPServer.StartListen);
|
TCPServer.thrTCPListener = new Thread(TCPServer.StartListen);
|
||||||
TCPServer.thrTCPListener.Start();
|
TCPServer.thrTCPListener.Start();
|
||||||
@@ -197,13 +210,14 @@ namespace Perun_v1
|
|||||||
// Send initial data
|
// Send initial data
|
||||||
Tim_MySQL_Tick(null, null);
|
Tim_MySQL_Tick(null, null);
|
||||||
tim_3rdparties_Tick(null, null);
|
tim_3rdparties_Tick(null, null);
|
||||||
|
TIM_Autostart.Enabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void con_Button_Listen_OFF_Click(object sender, EventArgs e)
|
private void con_Button_Listen_OFF_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
// Stop listening
|
// Stop listening
|
||||||
// Prepare GUI
|
// Prepare GUI
|
||||||
PerunHelper.AddLog(ref Globals.AppLogHistory, "Closing connections",0,1);
|
PerunHelper.AddLog(ref Globals.AppLogHistory, "Closing connections", 0, 1);
|
||||||
con_Button_Listen_OFF.Enabled = false;
|
con_Button_Listen_OFF.Enabled = false;
|
||||||
Tim_GUI_Tick(null, null);
|
Tim_GUI_Tick(null, null);
|
||||||
this.Refresh();
|
this.Refresh();
|
||||||
@@ -239,7 +253,7 @@ namespace Perun_v1
|
|||||||
con_img_srs.Image = (Image)Properties.Resources.ResourceManager.GetObject("status_disconnected");
|
con_img_srs.Image = (Image)Properties.Resources.ResourceManager.GetObject("status_disconnected");
|
||||||
|
|
||||||
// Display information about closed connections
|
// Display information about closed connections
|
||||||
PerunHelper.AddLog(ref Globals.AppLogHistory, "Connections closed",0,1);
|
PerunHelper.AddLog(ref Globals.AppLogHistory, "Connections closed", 0, 1);
|
||||||
Tim_GUI_Tick(null, null);
|
Tim_GUI_Tick(null, null);
|
||||||
|
|
||||||
// Set title bar
|
// Set title bar
|
||||||
@@ -483,9 +497,9 @@ namespace Perun_v1
|
|||||||
// Send ping to check for possible connection issues
|
// Send ping to check for possible connection issues
|
||||||
DatabaseConnection.SendToMySql("", true);
|
DatabaseConnection.SendToMySql("", true);
|
||||||
|
|
||||||
if (PerunHelper.CheckVersions()==0)
|
if (PerunHelper.CheckVersions() == 0)
|
||||||
{
|
{
|
||||||
MessageBox.Show("Version mismatch detected - please check log files and update.\n\nPerun will now terminate.", "Perun ERROR!",MessageBoxButtons.OK,MessageBoxIcon.Error);
|
MessageBox.Show("Version mismatch detected - please check log files and update.\n\nPerun will now terminate.", "Perun ERROR!", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||||
con_Button_Listen_OFF_Click(null, null);
|
con_Button_Listen_OFF_Click(null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -609,7 +623,7 @@ namespace Perun_v1
|
|||||||
Globals.AppForceIconReload = true;
|
Globals.AppForceIconReload = true;
|
||||||
|
|
||||||
// Add information
|
// Add information
|
||||||
PerunHelper.AddLog(ref Globals.AppLogHistory, "Resetted error counter",0,1);
|
PerunHelper.AddLog(ref Globals.AppLogHistory, "Resetted error counter", 0, 1);
|
||||||
}
|
}
|
||||||
else if (dialogResult == DialogResult.No)
|
else if (dialogResult == DialogResult.No)
|
||||||
{
|
{
|
||||||
@@ -621,7 +635,14 @@ namespace Perun_v1
|
|||||||
private void con_Button_Add_Marker_Click(object sender, EventArgs e)
|
private void con_Button_Add_Marker_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
// Added user marker
|
// Added user marker
|
||||||
PerunHelper.AddLog(ref Globals.AppLogHistory, "User Marker",0,1);
|
PerunHelper.AddLog(ref Globals.AppLogHistory, "User Marker", 0, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void TIM_Autostart_Tick(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
// Handle autostart parameter from command line
|
||||||
|
TIM_Autostart.Enabled = false; // Disable timer
|
||||||
|
con_Button_Listen_ON_Click(sender,e); // Simulate button click
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -419,6 +419,9 @@
|
|||||||
<metadata name="tim_MySQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="tim_MySQL.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>687, 19</value>
|
<value>687, 19</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="TIM_Autostart.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>800, 4</value>
|
||||||
|
</metadata>
|
||||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>26</value>
|
<value>26</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
|||||||
@@ -31,8 +31,8 @@
|
|||||||
<PublisherName>szporwolik</PublisherName>
|
<PublisherName>szporwolik</PublisherName>
|
||||||
<SuiteName>Perun</SuiteName>
|
<SuiteName>Perun</SuiteName>
|
||||||
<WebPage>Perun.htm</WebPage>
|
<WebPage>Perun.htm</WebPage>
|
||||||
<ApplicationRevision>1</ApplicationRevision>
|
<ApplicationRevision>2</ApplicationRevision>
|
||||||
<ApplicationVersion>0.10.0.%2a</ApplicationVersion>
|
<ApplicationVersion>0.10.1.%2a</ApplicationVersion>
|
||||||
<UseApplicationTrust>false</UseApplicationTrust>
|
<UseApplicationTrust>false</UseApplicationTrust>
|
||||||
<CreateDesktopShortcut>true</CreateDesktopShortcut>
|
<CreateDesktopShortcut>true</CreateDesktopShortcut>
|
||||||
<PublishWizardCompleted>true</PublishWizardCompleted>
|
<PublishWizardCompleted>true</PublishWizardCompleted>
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ using System.Runtime.InteropServices;
|
|||||||
// Możesz określić wszystkie wartości lub użyć domyślnych numerów kompilacji i poprawki
|
// Możesz określić wszystkie wartości lub użyć domyślnych numerów kompilacji i poprawki
|
||||||
// przy użyciu symbolu „*”, tak jak pokazano poniżej:
|
// przy użyciu symbolu „*”, tak jak pokazano poniżej:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("0.10.0.0")]
|
[assembly: AssemblyVersion("0.10.1.0")]
|
||||||
[assembly: AssemblyFileVersion("0.10.0.0")]
|
[assembly: AssemblyFileVersion("0.10.1.0")]
|
||||||
[assembly: NeutralResourcesLanguage("en")]
|
[assembly: NeutralResourcesLanguage("en")]
|
||||||
|
|
||||||
|
|||||||
@@ -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.10.0');
|
(1, 'v0.10.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` (
|
||||||
|
|||||||
Reference in New Issue
Block a user