diff --git a/Server Creation Tool.sln b/Server Creation Tool.sln new file mode 100644 index 0000000..e62c3a4 --- /dev/null +++ b/Server Creation Tool.sln @@ -0,0 +1,18 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +# SharpDevelop 4.4 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Server Creation Tool", "Server Creation Tool\Server Creation Tool.csproj", "{85E71E8C-9E94-400F-99D1-C9C33CADE381}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {85E71E8C-9E94-400F-99D1-C9C33CADE381}.Debug|Any CPU.Build.0 = Debug|Any CPU + {85E71E8C-9E94-400F-99D1-C9C33CADE381}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {85E71E8C-9E94-400F-99D1-C9C33CADE381}.Release|Any CPU.Build.0 = Release|Any CPU + {85E71E8C-9E94-400F-99D1-C9C33CADE381}.Release|Any CPU.ActiveCfg = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/Server Creation Tool/MainForm.Designer.cs b/Server Creation Tool/MainForm.Designer.cs new file mode 100644 index 0000000..d1288e2 --- /dev/null +++ b/Server Creation Tool/MainForm.Designer.cs @@ -0,0 +1,593 @@ +/* + * Created by SharpDevelop. + * User: Zeromix + * Date: 28.05.2016 + * Time: 16:00 + * + * To change this template use Tools | Options | Coding | Edit Standard Headers. + */ +namespace Server_Creation_Tool +{ + partial class MainForm + { + /// + /// Designer variable used to keep track of non-visual components. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Disposes resources used by the form. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing) { + if (components != null) { + components.Dispose(); + } + } + base.Dispose(disposing); + } + + /// + /// This method is required for Windows Forms designer support. + /// Do not change the method contents inside the source code editor. The Forms designer might + /// not be able to load this method if it was changed manually. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); + this.button1 = new System.Windows.Forms.Button(); + this.button2 = new System.Windows.Forms.Button(); + this.button3 = new System.Windows.Forms.Button(); + this.button4 = new System.Windows.Forms.Button(); + this.button5 = new System.Windows.Forms.Button(); + this.button6 = new System.Windows.Forms.Button(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.button18 = new System.Windows.Forms.Button(); + this.button15 = new System.Windows.Forms.Button(); + this.button12 = new System.Windows.Forms.Button(); + this.button11 = new System.Windows.Forms.Button(); + this.button10 = new System.Windows.Forms.Button(); + this.button8 = new System.Windows.Forms.Button(); + this.menuStrip1 = new System.Windows.Forms.MenuStrip(); + this.aboutToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.changelogToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.serverGroupToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.aboutToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.tutorialToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.englishToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.öToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.callOfDutyBlackOps3ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.counterStrike16ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.fToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.counterStrikeGlobalOffensiveToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.garrysModToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.killingFloor2ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.left4Dead2ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.rustToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.svenCoopToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.germenToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.aRKSurvivalEvolcvToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.callOfDutyBlackOps3ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.counterStrike16ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.counterStrikeSourceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.counterStrikeGlobalOffensiveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.garrysModToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.killingFloor2ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.left4Dead2ToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.rUstToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.svenCoopToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.forwardingPortsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); + this.fAQToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.aboutToolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem(); + this.richTextBox1 = new System.Windows.Forms.RichTextBox(); + this.richTextBox2 = new System.Windows.Forms.RichTextBox(); + this.button17 = new System.Windows.Forms.Button(); + this.groupBox1.SuspendLayout(); + this.menuStrip1.SuspendLayout(); + this.SuspendLayout(); + // + // button1 + // + this.button1.Location = new System.Drawing.Point(19, 27); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(117, 36); + this.button1.TabIndex = 0; + this.button1.Text = "Download SteamCMD"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.Button1Click); + // + // button2 + // + this.button2.Location = new System.Drawing.Point(7, 19); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(117, 35); + this.button2.TabIndex = 1; + this.button2.Text = "ARK: Survival Evolved"; + this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.Button2Click); + // + // button3 + // + this.button3.Location = new System.Drawing.Point(7, 147); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(117, 35); + this.button3.TabIndex = 2; + this.button3.Text = "Counter-Strike: Source"; + this.button3.UseVisualStyleBackColor = true; + this.button3.Click += new System.EventHandler(this.Button3Click); + // + // button4 + // + this.button4.Location = new System.Drawing.Point(7, 188); + this.button4.Name = "button4"; + this.button4.Size = new System.Drawing.Size(117, 35); + this.button4.TabIndex = 3; + this.button4.Text = "Counter-Strike: Global Offensive"; + this.button4.UseVisualStyleBackColor = true; + this.button4.Click += new System.EventHandler(this.Button4Click); + // + // button5 + // + this.button5.Location = new System.Drawing.Point(7, 106); + this.button5.Name = "button5"; + this.button5.Size = new System.Drawing.Size(117, 35); + this.button5.TabIndex = 5; + this.button5.Text = "Counter-Strike 1.6"; + this.button5.UseVisualStyleBackColor = true; + this.button5.Click += new System.EventHandler(this.Button5Click); + // + // button6 + // + this.button6.Location = new System.Drawing.Point(7, 229); + this.button6.Name = "button6"; + this.button6.Size = new System.Drawing.Size(117, 35); + this.button6.TabIndex = 6; + this.button6.Text = "Garry\'s Mod"; + this.button6.UseVisualStyleBackColor = true; + this.button6.Click += new System.EventHandler(this.Button6Click); + // + // groupBox1 + // + this.groupBox1.Controls.Add(this.button18); + this.groupBox1.Controls.Add(this.button15); + this.groupBox1.Controls.Add(this.button12); + this.groupBox1.Controls.Add(this.button11); + this.groupBox1.Controls.Add(this.button10); + this.groupBox1.Controls.Add(this.button8); + this.groupBox1.Controls.Add(this.button5); + this.groupBox1.Controls.Add(this.button2); + this.groupBox1.Controls.Add(this.button6); + this.groupBox1.Controls.Add(this.button3); + this.groupBox1.Controls.Add(this.button4); + this.groupBox1.Location = new System.Drawing.Point(12, 96); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(467, 361); + this.groupBox1.TabIndex = 7; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "Server"; + // + // button18 + // + this.button18.Location = new System.Drawing.Point(7, 60); + this.button18.Name = "button18"; + this.button18.Size = new System.Drawing.Size(117, 35); + this.button18.TabIndex = 20; + this.button18.Text = "Call of Duty: Black Ops 3"; + this.button18.UseVisualStyleBackColor = true; + this.button18.Click += new System.EventHandler(this.Button18Click); + // + // button15 + // + this.button15.Location = new System.Drawing.Point(127, 106); + this.button15.Name = "button15"; + this.button15.Size = new System.Drawing.Size(117, 35); + this.button15.TabIndex = 15; + this.button15.Text = "Synergy"; + this.button15.UseVisualStyleBackColor = true; + this.button15.Visible = false; + this.button15.Click += new System.EventHandler(this.Button15Click); + // + // button12 + // + this.button12.Location = new System.Drawing.Point(127, 19); + this.button12.Name = "button12"; + this.button12.Size = new System.Drawing.Size(117, 35); + this.button12.TabIndex = 12; + this.button12.Text = "Rust"; + this.button12.UseVisualStyleBackColor = true; + this.button12.Click += new System.EventHandler(this.Button12Click); + // + // button11 + // + this.button11.Location = new System.Drawing.Point(127, 60); + this.button11.Name = "button11"; + this.button11.Size = new System.Drawing.Size(117, 35); + this.button11.TabIndex = 11; + this.button11.Text = "Sven Coop"; + this.button11.UseVisualStyleBackColor = true; + this.button11.Click += new System.EventHandler(this.Button11Click); + // + // button10 + // + this.button10.Location = new System.Drawing.Point(7, 311); + this.button10.Name = "button10"; + this.button10.Size = new System.Drawing.Size(117, 35); + this.button10.TabIndex = 10; + this.button10.Text = "Left 4 Dead 2"; + this.button10.UseVisualStyleBackColor = true; + this.button10.Click += new System.EventHandler(this.Button10Click); + // + // button8 + // + this.button8.Location = new System.Drawing.Point(7, 270); + this.button8.Name = "button8"; + this.button8.Size = new System.Drawing.Size(117, 35); + this.button8.TabIndex = 8; + this.button8.Text = "Killing Floor 2"; + this.button8.UseVisualStyleBackColor = true; + this.button8.Click += new System.EventHandler(this.Button8Click); + // + // menuStrip1 + // + this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.aboutToolStripMenuItem, + this.tutorialToolStripMenuItem, + this.toolStripMenuItem1}); + this.menuStrip1.Location = new System.Drawing.Point(0, 0); + this.menuStrip1.Name = "menuStrip1"; + this.menuStrip1.Size = new System.Drawing.Size(491, 24); + this.menuStrip1.TabIndex = 8; + this.menuStrip1.Text = "menuStrip1"; + // + // aboutToolStripMenuItem + // + this.aboutToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.changelogToolStripMenuItem, + this.serverGroupToolStripMenuItem, + this.aboutToolStripMenuItem1}); + this.aboutToolStripMenuItem.Name = "aboutToolStripMenuItem"; + this.aboutToolStripMenuItem.Size = new System.Drawing.Size(43, 20); + this.aboutToolStripMenuItem.Text = "Data"; + // + // changelogToolStripMenuItem + // + this.changelogToolStripMenuItem.Name = "changelogToolStripMenuItem"; + this.changelogToolStripMenuItem.Size = new System.Drawing.Size(142, 22); + this.changelogToolStripMenuItem.Text = "Changelog"; + this.changelogToolStripMenuItem.Click += new System.EventHandler(this.ChangelogToolStripMenuItemClick); + // + // serverGroupToolStripMenuItem + // + this.serverGroupToolStripMenuItem.Name = "serverGroupToolStripMenuItem"; + this.serverGroupToolStripMenuItem.Size = new System.Drawing.Size(142, 22); + this.serverGroupToolStripMenuItem.Text = "Server Group"; + this.serverGroupToolStripMenuItem.Click += new System.EventHandler(this.ServerGroupToolStripMenuItemClick); + // + // aboutToolStripMenuItem1 + // + this.aboutToolStripMenuItem1.Name = "aboutToolStripMenuItem1"; + this.aboutToolStripMenuItem1.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.F4))); + this.aboutToolStripMenuItem1.Size = new System.Drawing.Size(142, 22); + this.aboutToolStripMenuItem1.Text = "Exit"; + this.aboutToolStripMenuItem1.ToolTipText = "Close the program."; + this.aboutToolStripMenuItem1.Click += new System.EventHandler(this.AboutToolStripMenuItem1Click); + // + // tutorialToolStripMenuItem + // + this.tutorialToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.englishToolStripMenuItem, + this.germenToolStripMenuItem, + this.forwardingPortsToolStripMenuItem}); + this.tutorialToolStripMenuItem.Name = "tutorialToolStripMenuItem"; + this.tutorialToolStripMenuItem.Size = new System.Drawing.Size(55, 20); + this.tutorialToolStripMenuItem.Text = "Guides"; + // + // englishToolStripMenuItem + // + this.englishToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.öToolStripMenuItem, + this.callOfDutyBlackOps3ToolStripMenuItem1, + this.counterStrike16ToolStripMenuItem1, + this.fToolStripMenuItem, + this.counterStrikeGlobalOffensiveToolStripMenuItem1, + this.garrysModToolStripMenuItem1, + this.killingFloor2ToolStripMenuItem1, + this.left4Dead2ToolStripMenuItem, + this.rustToolStripMenuItem, + this.svenCoopToolStripMenuItem}); + this.englishToolStripMenuItem.Name = "englishToolStripMenuItem"; + this.englishToolStripMenuItem.Size = new System.Drawing.Size(164, 22); + this.englishToolStripMenuItem.Text = "English"; + // + // öToolStripMenuItem + // + this.öToolStripMenuItem.Name = "öToolStripMenuItem"; + this.öToolStripMenuItem.Size = new System.Drawing.Size(244, 22); + this.öToolStripMenuItem.Text = "ARK: Survival Evolved"; + this.öToolStripMenuItem.Click += new System.EventHandler(this.ÖToolStripMenuItemClick); + // + // callOfDutyBlackOps3ToolStripMenuItem1 + // + this.callOfDutyBlackOps3ToolStripMenuItem1.Name = "callOfDutyBlackOps3ToolStripMenuItem1"; + this.callOfDutyBlackOps3ToolStripMenuItem1.Size = new System.Drawing.Size(244, 22); + this.callOfDutyBlackOps3ToolStripMenuItem1.Text = "Call of Duty: Black Ops 3"; + this.callOfDutyBlackOps3ToolStripMenuItem1.Click += new System.EventHandler(this.CallOfDutyBlackOps3ToolStripMenuItem1Click); + // + // counterStrike16ToolStripMenuItem1 + // + this.counterStrike16ToolStripMenuItem1.Name = "counterStrike16ToolStripMenuItem1"; + this.counterStrike16ToolStripMenuItem1.Size = new System.Drawing.Size(244, 22); + this.counterStrike16ToolStripMenuItem1.Text = "Counter-Strike 1.6"; + this.counterStrike16ToolStripMenuItem1.Click += new System.EventHandler(this.CounterStrike16ToolStripMenuItem1Click); + // + // fToolStripMenuItem + // + this.fToolStripMenuItem.Name = "fToolStripMenuItem"; + this.fToolStripMenuItem.Size = new System.Drawing.Size(244, 22); + this.fToolStripMenuItem.Text = "Counter-Strike: Source"; + this.fToolStripMenuItem.Click += new System.EventHandler(this.FToolStripMenuItemClick); + // + // counterStrikeGlobalOffensiveToolStripMenuItem1 + // + this.counterStrikeGlobalOffensiveToolStripMenuItem1.Name = "counterStrikeGlobalOffensiveToolStripMenuItem1"; + this.counterStrikeGlobalOffensiveToolStripMenuItem1.Size = new System.Drawing.Size(244, 22); + this.counterStrikeGlobalOffensiveToolStripMenuItem1.Text = "Counter-Strike: Global Offensive"; + this.counterStrikeGlobalOffensiveToolStripMenuItem1.Click += new System.EventHandler(this.CounterStrikeGlobalOffensiveToolStripMenuItem1Click); + // + // garrysModToolStripMenuItem1 + // + this.garrysModToolStripMenuItem1.Name = "garrysModToolStripMenuItem1"; + this.garrysModToolStripMenuItem1.Size = new System.Drawing.Size(244, 22); + this.garrysModToolStripMenuItem1.Text = "Garry´s Mod"; + this.garrysModToolStripMenuItem1.Click += new System.EventHandler(this.GarrysModToolStripMenuItem1Click); + // + // killingFloor2ToolStripMenuItem1 + // + this.killingFloor2ToolStripMenuItem1.Name = "killingFloor2ToolStripMenuItem1"; + this.killingFloor2ToolStripMenuItem1.Size = new System.Drawing.Size(244, 22); + this.killingFloor2ToolStripMenuItem1.Text = "Killing Floor 2"; + this.killingFloor2ToolStripMenuItem1.Click += new System.EventHandler(this.KillingFloor2ToolStripMenuItem1Click); + // + // left4Dead2ToolStripMenuItem + // + this.left4Dead2ToolStripMenuItem.Name = "left4Dead2ToolStripMenuItem"; + this.left4Dead2ToolStripMenuItem.Size = new System.Drawing.Size(244, 22); + this.left4Dead2ToolStripMenuItem.Text = "Left 4 Dead 2"; + this.left4Dead2ToolStripMenuItem.Click += new System.EventHandler(this.Left4Dead2ToolStripMenuItemClick); + // + // rustToolStripMenuItem + // + this.rustToolStripMenuItem.Name = "rustToolStripMenuItem"; + this.rustToolStripMenuItem.Size = new System.Drawing.Size(244, 22); + this.rustToolStripMenuItem.Text = "Rust"; + this.rustToolStripMenuItem.Click += new System.EventHandler(this.rustToolStripMenuItem_Click); + // + // svenCoopToolStripMenuItem + // + this.svenCoopToolStripMenuItem.Name = "svenCoopToolStripMenuItem"; + this.svenCoopToolStripMenuItem.Size = new System.Drawing.Size(244, 22); + this.svenCoopToolStripMenuItem.Text = "Sven Co-op"; + this.svenCoopToolStripMenuItem.Click += new System.EventHandler(this.SvenCoopToolStripMenuItemClick); + // + // germenToolStripMenuItem + // + this.germenToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.aRKSurvivalEvolcvToolStripMenuItem, + this.callOfDutyBlackOps3ToolStripMenuItem, + this.counterStrike16ToolStripMenuItem, + this.counterStrikeSourceToolStripMenuItem, + this.counterStrikeGlobalOffensiveToolStripMenuItem, + this.garrysModToolStripMenuItem, + this.killingFloor2ToolStripMenuItem, + this.left4Dead2ToolStripMenuItem1, + this.rUstToolStripMenuItem1, + this.svenCoopToolStripMenuItem1}); + this.germenToolStripMenuItem.Name = "germenToolStripMenuItem"; + this.germenToolStripMenuItem.Size = new System.Drawing.Size(164, 22); + this.germenToolStripMenuItem.Text = "German"; + // + // aRKSurvivalEvolcvToolStripMenuItem + // + this.aRKSurvivalEvolcvToolStripMenuItem.Name = "aRKSurvivalEvolcvToolStripMenuItem"; + this.aRKSurvivalEvolcvToolStripMenuItem.Size = new System.Drawing.Size(244, 22); + this.aRKSurvivalEvolcvToolStripMenuItem.Text = "ARK: Survival Evolved"; + this.aRKSurvivalEvolcvToolStripMenuItem.Click += new System.EventHandler(this.ARKSurvivalEvolcvToolStripMenuItemClick); + // + // callOfDutyBlackOps3ToolStripMenuItem + // + this.callOfDutyBlackOps3ToolStripMenuItem.Name = "callOfDutyBlackOps3ToolStripMenuItem"; + this.callOfDutyBlackOps3ToolStripMenuItem.Size = new System.Drawing.Size(244, 22); + this.callOfDutyBlackOps3ToolStripMenuItem.Text = "Call of Duty: Black Ops 3"; + this.callOfDutyBlackOps3ToolStripMenuItem.Click += new System.EventHandler(this.CallOfDutyBlackOps3ToolStripMenuItemClick); + // + // counterStrike16ToolStripMenuItem + // + this.counterStrike16ToolStripMenuItem.Name = "counterStrike16ToolStripMenuItem"; + this.counterStrike16ToolStripMenuItem.Size = new System.Drawing.Size(244, 22); + this.counterStrike16ToolStripMenuItem.Text = "Counter-Strike 1.6"; + this.counterStrike16ToolStripMenuItem.Click += new System.EventHandler(this.CounterStrike16ToolStripMenuItemClick); + // + // counterStrikeSourceToolStripMenuItem + // + this.counterStrikeSourceToolStripMenuItem.Name = "counterStrikeSourceToolStripMenuItem"; + this.counterStrikeSourceToolStripMenuItem.Size = new System.Drawing.Size(244, 22); + this.counterStrikeSourceToolStripMenuItem.Text = "Counter-Strike: Source"; + this.counterStrikeSourceToolStripMenuItem.Click += new System.EventHandler(this.CounterStrikeSourceToolStripMenuItemClick); + // + // counterStrikeGlobalOffensiveToolStripMenuItem + // + this.counterStrikeGlobalOffensiveToolStripMenuItem.Name = "counterStrikeGlobalOffensiveToolStripMenuItem"; + this.counterStrikeGlobalOffensiveToolStripMenuItem.Size = new System.Drawing.Size(244, 22); + this.counterStrikeGlobalOffensiveToolStripMenuItem.Text = "Counter-Strike: Global Offensive"; + this.counterStrikeGlobalOffensiveToolStripMenuItem.Click += new System.EventHandler(this.CounterStrikeGlobalOffensiveToolStripMenuItemClick); + // + // garrysModToolStripMenuItem + // + this.garrysModToolStripMenuItem.Name = "garrysModToolStripMenuItem"; + this.garrysModToolStripMenuItem.Size = new System.Drawing.Size(244, 22); + this.garrysModToolStripMenuItem.Text = "Garry´s Mod"; + this.garrysModToolStripMenuItem.Click += new System.EventHandler(this.GarrysModToolStripMenuItemClick); + // + // killingFloor2ToolStripMenuItem + // + this.killingFloor2ToolStripMenuItem.Name = "killingFloor2ToolStripMenuItem"; + this.killingFloor2ToolStripMenuItem.Size = new System.Drawing.Size(244, 22); + this.killingFloor2ToolStripMenuItem.Text = "Killing Floor 2"; + this.killingFloor2ToolStripMenuItem.Click += new System.EventHandler(this.KillingFloor2ToolStripMenuItemClick); + // + // left4Dead2ToolStripMenuItem1 + // + this.left4Dead2ToolStripMenuItem1.Name = "left4Dead2ToolStripMenuItem1"; + this.left4Dead2ToolStripMenuItem1.Size = new System.Drawing.Size(244, 22); + this.left4Dead2ToolStripMenuItem1.Text = "Left 4 Dead 2"; + this.left4Dead2ToolStripMenuItem1.Click += new System.EventHandler(this.Left4Dead2ToolStripMenuItem1Click); + // + // rUstToolStripMenuItem1 + // + this.rUstToolStripMenuItem1.Name = "rUstToolStripMenuItem1"; + this.rUstToolStripMenuItem1.Size = new System.Drawing.Size(244, 22); + this.rUstToolStripMenuItem1.Text = "Rust"; + this.rUstToolStripMenuItem1.Click += new System.EventHandler(this.rUstToolStripMenuItem1_Click); + // + // svenCoopToolStripMenuItem1 + // + this.svenCoopToolStripMenuItem1.Name = "svenCoopToolStripMenuItem1"; + this.svenCoopToolStripMenuItem1.Size = new System.Drawing.Size(244, 22); + this.svenCoopToolStripMenuItem1.Text = "Sven Co-op"; + this.svenCoopToolStripMenuItem1.Click += new System.EventHandler(this.SvenCoopToolStripMenuItem1Click); + // + // forwardingPortsToolStripMenuItem + // + this.forwardingPortsToolStripMenuItem.Name = "forwardingPortsToolStripMenuItem"; + this.forwardingPortsToolStripMenuItem.Size = new System.Drawing.Size(164, 22); + this.forwardingPortsToolStripMenuItem.Text = "Forwarding Ports"; + this.forwardingPortsToolStripMenuItem.Click += new System.EventHandler(this.forwardingPortsToolStripMenuItem_Click); + // + // toolStripMenuItem1 + // + this.toolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.fAQToolStripMenuItem, + this.aboutToolStripMenuItem2}); + this.toolStripMenuItem1.Name = "toolStripMenuItem1"; + this.toolStripMenuItem1.Size = new System.Drawing.Size(24, 20); + this.toolStripMenuItem1.Text = "?"; + this.toolStripMenuItem1.Click += new System.EventHandler(this.toolStripMenuItem1_Click); + // + // fAQToolStripMenuItem + // + this.fAQToolStripMenuItem.Name = "fAQToolStripMenuItem"; + this.fAQToolStripMenuItem.Size = new System.Drawing.Size(107, 22); + this.fAQToolStripMenuItem.Text = "FAQ"; + this.fAQToolStripMenuItem.Click += new System.EventHandler(this.FAQToolStripMenuItemClick); + // + // aboutToolStripMenuItem2 + // + this.aboutToolStripMenuItem2.Name = "aboutToolStripMenuItem2"; + this.aboutToolStripMenuItem2.Size = new System.Drawing.Size(107, 22); + this.aboutToolStripMenuItem2.Text = "About"; + this.aboutToolStripMenuItem2.Click += new System.EventHandler(this.AboutToolStripMenuItem2Click); + // + // richTextBox1 + // + this.richTextBox1.Location = new System.Drawing.Point(153, 27); + this.richTextBox1.Name = "richTextBox1"; + this.richTextBox1.ReadOnly = true; + this.richTextBox1.Size = new System.Drawing.Size(326, 74); + this.richTextBox1.TabIndex = 9; + this.richTextBox1.Text = resources.GetString("richTextBox1.Text"); + // + // richTextBox2 + // + this.richTextBox2.Location = new System.Drawing.Point(12, 464); + this.richTextBox2.Name = "richTextBox2"; + this.richTextBox2.ReadOnly = true; + this.richTextBox2.Size = new System.Drawing.Size(467, 23); + this.richTextBox2.TabIndex = 10; + this.richTextBox2.Text = "This tool is still under development!"; + // + // button17 + // + this.button17.Location = new System.Drawing.Point(19, 70); + this.button17.Name = "button17"; + this.button17.Size = new System.Drawing.Size(117, 23); + this.button17.TabIndex = 11; + this.button17.Text = "Planed features"; + this.button17.UseVisualStyleBackColor = true; + this.button17.Click += new System.EventHandler(this.Button17Click); + // + // MainForm + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(491, 499); + this.Controls.Add(this.button17); + this.Controls.Add(this.richTextBox2); + this.Controls.Add(this.richTextBox1); + this.Controls.Add(this.button1); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.menuStrip1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; + this.MainMenuStrip = this.menuStrip1; + this.MaximizeBox = false; + this.Name = "MainForm"; + this.Text = "Server Creation Tool Version 2.5"; + this.groupBox1.ResumeLayout(false); + this.menuStrip1.ResumeLayout(false); + this.menuStrip1.PerformLayout(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + private System.Windows.Forms.ToolStripMenuItem serverGroupToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem svenCoopToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem svenCoopToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem callOfDutyBlackOps3ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem callOfDutyBlackOps3ToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem2; + private System.Windows.Forms.Button button18; + private System.Windows.Forms.ToolStripMenuItem killingFloor2ToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem killingFloor2ToolStripMenuItem; + private System.Windows.Forms.Button button17; + private System.Windows.Forms.ToolStripMenuItem left4Dead2ToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem left4Dead2ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem counterStrikeGlobalOffensiveToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem counterStrikeGlobalOffensiveToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem counterStrike16ToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem garrysModToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem garrysModToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem fAQToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem toolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem changelogToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem counterStrikeSourceToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem counterStrike16ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem aRKSurvivalEvolcvToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem fToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem germenToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem öToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem englishToolStripMenuItem; + private System.Windows.Forms.RichTextBox richTextBox2; + private System.Windows.Forms.RichTextBox richTextBox1; + private System.Windows.Forms.ToolStripMenuItem tutorialToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem1; + private System.Windows.Forms.ToolStripMenuItem aboutToolStripMenuItem; + private System.Windows.Forms.MenuStrip menuStrip1; + private System.Windows.Forms.Button button15; + private System.Windows.Forms.Button button12; + private System.Windows.Forms.Button button11; + private System.Windows.Forms.Button button10; + private System.Windows.Forms.Button button8; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.Button button6; + private System.Windows.Forms.Button button5; + private System.Windows.Forms.Button button4; + private System.Windows.Forms.Button button3; + private System.Windows.Forms.Button button2; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.ToolStripMenuItem forwardingPortsToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem rustToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem rUstToolStripMenuItem1; + } +} diff --git a/Server Creation Tool/MainForm.cs b/Server Creation Tool/MainForm.cs new file mode 100644 index 0000000..8d9e2a5 --- /dev/null +++ b/Server Creation Tool/MainForm.cs @@ -0,0 +1,543 @@ +/* + * Created by SharpDevelop. + * User: Zeromix + * Date: 28.05.2016 + * Time: 16:00 + * + * To change this template use Tools | Options | Coding | Edit Standard Headers. + */ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.ComponentModel; +using System.Linq.Expressions; +using System.Windows.Forms; +using System.IO; + +namespace Server_Creation_Tool +{ + /// + /// Description of MainForm. + /// + public partial class MainForm : Form + { + //muss mal kurz googlen... war in letzter zeit nur in Java am entwickeln + String steamCmdSpeicherort = null; + public MainForm() + { + // + // The InitializeComponent() call is required for Windows Forms designer support. + // + InitializeComponent(); + + // + // TODO: Add constructor code after the InitializeComponent() call. + // + } + + void Button1Click(object sender, EventArgs e) + { + + if (System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable()) + { + using (System.Net.WebClient client = new System.Net.WebClient()) + { + + //try + //{ + // Create a new instance of FolderBrowserDialog. + FolderBrowserDialog folderBrowserDialog = new FolderBrowserDialog(); + // A new folder button will display in FolderBrowserDialog. + folderBrowserDialog.ShowNewFolderButton = true; + //Show FolderBrowserDialog + DialogResult dlgResult = folderBrowserDialog.ShowDialog(); + if (dlgResult.Equals(DialogResult.OK)) + { + //Send content to string + String folder = folderBrowserDialog.SelectedPath; + MessageBox.Show(folder.ToString()); + client.DownloadFileAsync(new Uri("https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip"),folder+"\\steamcmd.zip"); + + client.DownloadFileCompleted += new AsyncCompletedEventHandler(DownloadSteamCmdZip); + steamCmdSpeicherort = Path.Combine(folder, "steamcmd.exe"); + } + else + { + MessageBox.Show("No folder for storing the downloaded files selected. Can not continue."); + } + + + + + } + } + + + } + + public void DownloadSteamCmdZip(object sender, AsyncCompletedEventArgs e) + { + //nun wurde die zip-Datei fertig gedownloadet. + MessageBox.Show("Download completed!"); + } + + + + void Button2Click(object sender, EventArgs e) + { + try{ if(OpenSteamCmd() == true) { System.Diagnostics.Process.Start(steamCmdSpeicherort, "+login anonymous +force_install_dir ./ark/ +app_update 376030 validate"); } + } + catch (Exception) { ;} //ARK: Survivel Evolved + } + + void Button3Click(object sender, EventArgs e) + { + try{ if(OpenSteamCmd() == true) { System.Diagnostics.Process.Start(steamCmdSpeicherort, "+login anonymous +force_install_dir ./css/ +app_update 232330 validate"); } + } + catch (Exception) { ;} //CS:S + + } + + void Button4Click(object sender, EventArgs e) + { + try + { + if(OpenSteamCmd() == true) + { + System.Diagnostics.Process.Start(steamCmdSpeicherort, "+login anonymous +force_install_dir ./csgo/ +app_update 740 validate"); } + } + catch (Exception) { ;} //CS:GO + + } + + void Button5Click(object sender, EventArgs e) + { + try + { + if(OpenSteamCmd() == true) + { + System.Diagnostics.Process.Start(steamCmdSpeicherort, "+login anonymous +force_install_dir ./cs/ +app_update 90 validate"); + } + } + catch (Exception) { ;} //CS 1.6 + + } + + void Button6Click(object sender, EventArgs e) + { + try{ + if(OpenSteamCmd() == true) + { + System.Diagnostics.Process.Start(steamCmdSpeicherort, "+login anonymous +force_install_dir ./gmod/ +app_update 4020 validate"); + } + } + catch (Exception) { ;} //Garry´s Mod + + } + + void Button7Click(object sender, EventArgs e) + { + try{ + if(OpenSteamCmd() == true) + { + System.Diagnostics.Process.Start(steamCmdSpeicherort, "+login anonymous +force_install_dir ./7days/ +app_update 294420 validate"); + } + } + catch (Exception) { ;} //7 Days to Die + + } + + void Button8Click(object sender, EventArgs e) + { + try{ + if(OpenSteamCmd() == true) + { + System.Diagnostics.Process.Start(steamCmdSpeicherort, "+login anonymous +force_install_dir ./kf2/ +app_update 232130 validate"); + } + } + catch (Exception) { ;} //Killing Floor 2 + + } + + void Button9Click(object sender, EventArgs e) + { + try{ + if(OpenSteamCmd() == true) + { + System.Diagnostics.Process.Start(steamCmdSpeicherort, "+login anonymous +force_install_dir ./l4d/ +app_update 222840 validate"); + } + } + catch (Exception) { ;} //Left 4 Dead + + } + + void Button10Click(object sender, EventArgs e) + { + try{ + if(OpenSteamCmd() == true) + { + System.Diagnostics.Process.Start(steamCmdSpeicherort, "+login anonymous +force_install_dir ./l4d2/ +app_update 222860 validate"); + } + } + catch (Exception) { ;} //Left 4 Dead 2 + + } + + void Button11Click(object sender, EventArgs e) + { + try{ + if(OpenSteamCmd() == true) + { + System.Diagnostics.Process.Start(steamCmdSpeicherort, "+login anonymous +force_install_dir ./svencoop/ +app_update 276060 validate"); + } + } + catch (Exception) { ;} //Sven Coop + + } + + void Button12Click(object sender, EventArgs e) + { + try{ + if(OpenSteamCmd() == true) + { + System.Diagnostics.Process.Start(steamCmdSpeicherort, "+login anonymous +force_install_dir ./rust/ +app_update 258550 validate"); + } + } + catch (Exception) { ;} //Rust + + } + + void Button13Click(object sender, EventArgs e) + { + try{ + if(OpenSteamCmd() == true) + { + System.Diagnostics.Process.Start(steamCmdSpeicherort, "+login anonymous +force_install_dir ./sniperelitev2/ +app_update 208050 validate"); + } + } + catch (Exception) { ;} //Sniper Elite V2 + + } + + void Button14Click(object sender, EventArgs e) + { + try{ + if(OpenSteamCmd() == true) + { + System.Diagnostics.Process.Start(steamCmdSpeicherort, "+login anonymous +force_install_dir ./sniperelite3/ +app_update 266910 validate"); + } + } + catch (Exception) { ;} //Sniper Elite 3 + + } + + void Button15Click(object sender, EventArgs e) + { + try{ + if(OpenSteamCmd() == true) + { + System.Diagnostics.Process.Start(steamCmdSpeicherort, "+login anonymous +force_install_dir ./synergy/ +app_update 17525 validate"); + } + } + catch (Exception) { ;} //Synergy + + } + + void Button16Click(object sender, EventArgs e) + { + try{ + if(OpenSteamCmd() == true) + { + System.Diagnostics.Process.Start(steamCmdSpeicherort, "+login anonymous +force_install_dir ./tf2/ +app_update 232250 validate"); + } + } + catch (Exception) { ;} //Team Fortress 2 + + } + + + void AboutToolStripMenuItem1Click(object sender, EventArgs e) + { + Environment.Exit(0); //Schließen des Programmes + } + + + + void ÖToolStripMenuItemClick(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("http://steamcommunity.com/sharedfiles/filedetails/?id=694475841"); + //ARK: Survival Evolved Guide English + } + + void FToolStripMenuItemClick(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("http://steamcommunity.com/sharedfiles/filedetails/?id=397365275"); + //Counter-Strike: Source Guide English + } + + void ARKSurvivalEvolcvToolStripMenuItemClick(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("http://steamcommunity.com/sharedfiles/filedetails/?id=692129985"); + //ARK: Survival Evolved Guide German + } + + void CounterStrike16ToolStripMenuItemClick(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("http://steamcommunity.com/sharedfiles/filedetails/?id=710511353"); + //Counter-Strike 1.6 Guide German + } + + void CounterStrikeSourceToolStripMenuItemClick(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("http://steamcommunity.com/sharedfiles/filedetails/?id=394849912"); + //Counter-Strike Source Guide German + } + + void ChangelogToolStripMenuItemClick(object sender, EventArgs e) + { + MessageBox.Show("03.03.2019 - Version 2.5 - Enabled Counter-Strike 1.6 again" + + Environment.NewLine + + Environment.NewLine + + "24.11.2018 - Version 2.4 - Added Rust German Server Guide, also deleted a message box" + + Environment.NewLine + + Environment.NewLine + + "09.07.2018 - Version 2.3 - Added Rust Server and Rust English Server Guide, also deleted Left4Dead" + + Environment.NewLine + + Environment.NewLine + + "26.04.2018 - Version 2.2 - Added Forwarding Ports to Guides and disabled Counter-Strike" + + Environment.NewLine + + Environment.NewLine + + "17.04.2017 - Version 2.1 - Added Left 4 Dead Server and updated the FAQ" + + Environment.NewLine + + Environment.NewLine + + "28.03.2017 - Version 2.0 - Updated File Dialog" + + Environment.NewLine + + Environment.NewLine + + "04.03.2017 - Version 1.9 - Added Sven Co-op Server and Guides" + + Environment.NewLine + + Environment.NewLine + + "17.12.2016 - Version 1.8 - Added Call of Duty: Black Ops 3 Guides" + + Environment.NewLine + + Environment.NewLine + + "15.12.2016 - Version 1.7 - Added Call of Duty: Black Ops 3 Server" + + Environment.NewLine + + Environment.NewLine + + "23.11.2016 - Version 1.6 - Added Killing Floor 2 Guide English" + + Environment.NewLine + + Environment.NewLine + + "05.10.2016 - Version 1.5 - Added Killing Floor 2 Guide German + Server" + + Environment.NewLine + + Environment.NewLine + + "18.09.2016 - Version 1.4 - Added Left 4 Dead 2 Guides + Server" + + Environment.NewLine + + Environment.NewLine + + "22.08.2016 - Version 1.3 - Added Counter-Strike: Global Offensive Guides" + + Environment.NewLine + + Environment.NewLine + + "22.07.2016 - Version 1.2 - Added Counter-Strike 1.6 Guide English" + + Environment.NewLine + + Environment.NewLine + + "19.07.2016 - Version 1.1 - Added Garry´s Mod Guides" + + Environment.NewLine + + Environment.NewLine + + "27.06.2016 - Version 1.0 - Release"); + } + + void GarrysModToolStripMenuItemClick(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("http://steamcommunity.com/sharedfiles/filedetails/?id=719731406"); + //Garry´s Mod Guide German + } + + void GarrysModToolStripMenuItem1Click(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("http://steamcommunity.com/sharedfiles/filedetails/?id=723644520"); + //Garry´s Mod Guide Englisch + } + + void CounterStrike16ToolStripMenuItem1Click(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("http://steamcommunity.com/sharedfiles/filedetails/?id=729345010"); + //Counter-Strike: 1.6 Guide Englisch + } + + void CounterStrikeGlobalOffensiveToolStripMenuItemClick(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("http://steamcommunity.com/sharedfiles/filedetails/?id=711630778"); + //Counter-Strike: Global Offensive Guide German + } + + void CounterStrikeGlobalOffensiveToolStripMenuItem1Click(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("http://steamcommunity.com/sharedfiles/filedetails/?id=749588143"); + //Counter-Strike: Global Offensive Guide Englisch + } + + void FAQToolStripMenuItemClick(object sender, EventArgs e) + { + MessageBox.Show("The download failed, what should I do?" + + Environment.NewLine + + "Mostly you just need to retry the download!" + + Environment.NewLine + + Environment.NewLine + + "Where can I suggest a Server?" + + Environment.NewLine + + "You can do this in the linked Group."); + } + + void Left4Dead2ToolStripMenuItemClick(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("http://steamcommunity.com/sharedfiles/filedetails/?id=764005219"); + //Left 4 Dead 2 Guide Englisch + } + + void Left4Dead2ToolStripMenuItem1Click(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("http://steamcommunity.com/sharedfiles/filedetails/?id=754702686"); + //Left 4 Dead 2 Guide German + } + + void Button17Click(object sender, EventArgs e) + { + MessageBox.Show("More Server" + + Environment.NewLine + + "Installing SourceMod etc." + + Environment.NewLine + + "Maybe skins"); + } + + void KillingFloor2ToolStripMenuItemClick(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("http://steamcommunity.com/sharedfiles/filedetails/?id=775342119"); + //Killing Floor 2 Guide German + } + + void KillingFloor2ToolStripMenuItem1Click(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("http://steamcommunity.com/sharedfiles/filedetails/?id=804751117"); + //Killing Floor 2 Guide Englisch + } + + void Button18Click(object sender, EventArgs e) + { + try{ + if(OpenSteamCmd() == true) + { + System.Diagnostics.Process.Start(steamCmdSpeicherort, "+login anonymous +force_install_dir ./bo3/ +app_update 545990 validate"); + } + } + catch (Exception) { ;} //Call of Duty: Black Ops 3 + } + + void AboutToolStripMenuItem2Click(object sender, EventArgs e) + { + MessageBox.Show("This Tool was created by Zeromix" + + Environment.NewLine + + "http://steamcommunity.com/id/zeromix" + + Environment.NewLine + + Environment.NewLine + + "And BasisBit"); + } + + void CallOfDutyBlackOps3ToolStripMenuItemClick(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("http://steamcommunity.com/sharedfiles/filedetails/?id=818635244"); + //Call of Duty: Black Ops 3 Guide German + } + + void CallOfDutyBlackOps3ToolStripMenuItem1Click(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("http://steamcommunity.com/sharedfiles/filedetails/?id=819848285"); + //Call of Duty: Black Ops 3 Guide English + } + + void SvenCoopToolStripMenuItem1Click(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("http://steamcommunity.com/sharedfiles/filedetails/?id=874080531"); + //Sven Co-op Guide German + } + + void SvenCoopToolStripMenuItemClick(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("http://steamcommunity.com/sharedfiles/filedetails/?id=874293589"); + //Sven Co-op Guide English + } + + Boolean OpenSteamCmd() + { + // wenn Dateiauswahldialog nur anzeigen, wenn kein Pfad, oder ungültige Datei oder nicht steamcmd.exe + if(steamCmdSpeicherort == null || + !(File.Exists(steamCmdSpeicherort)) || + Directory.Exists(steamCmdSpeicherort) || + !Path.GetExtension(steamCmdSpeicherort).Equals("exe")) + { + //TODO Datei auswahl Dialog jetzt anzeigen + OpenFileDialog auswahlDialog = new OpenFileDialog(); + if(steamCmdSpeicherort != null && Directory.Exists(steamCmdSpeicherort)) + { + auswahlDialog.InitialDirectory = steamCmdSpeicherort; + } + //TODO Filter auf *.exe setzen + auswahlDialog.Filter = "Steamcmd executable|steamcmd.exe|Any executable (*.exe)|*.exe"; + auswahlDialog.FilterIndex = 1; //setzt die Standardauswahl auf steamcmd.exe + auswahlDialog.RestoreDirectory = true; + auswahlDialog.Multiselect = false; //erlaubt nur die Auswahl einer einzelnen Datei + auswahlDialog.CheckFileExists = true; + if(auswahlDialog.ShowDialog() == DialogResult.OK) + { + try + { + String result = auswahlDialog.FileName; + if(!File.Exists(result)) + { + MessageBox.Show("No file selected. Can not continue."); + return false; //Der Nutzer hat keine gültige Datei ausgewählt. + } + steamCmdSpeicherort = result; + return true; + } + catch(Exception ex) + { + MessageBox.Show("Error in OpenSteamCmd! Details: " + ex.Message); + return false; + } + } + else + { + //nutzer hat keine Datei ausgewählt. + MessageBox.Show("No file selected. Can not continue."); + return false; + } + } + //laut dem if muss die Datei eine existierende .exe Datei sein. Wir vermuten, dass die steamcmd korrekt gewählt wurde. + return true; + } + + void ServerGroupToolStripMenuItemClick(object sender, EventArgs e) + { +System.Diagnostics.Process.Start("http://steamcommunity.com/groups/ServerTool"); + } + + private void toolStripMenuItem1_Click(object sender, EventArgs e) + { + + } + + private void forwardingPortsToolStripMenuItem_Click(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("https://portforward.com/router.htm"); + } + + private void rustToolStripMenuItem_Click(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("https://steamcommunity.com/sharedfiles/filedetails/?id=1436222938"); + //Rust Guide English + } + + private void rUstToolStripMenuItem1_Click(object sender, EventArgs e) + { + System.Diagnostics.Process.Start("https://steamcommunity.com/sharedfiles/filedetails/?id=1444135543"); + //Rust Guide German + } + } +} \ No newline at end of file diff --git a/Server Creation Tool/MainForm.resx b/Server Creation Tool/MainForm.resx new file mode 100644 index 0000000..45bbb93 --- /dev/null +++ b/Server Creation Tool/MainForm.resx @@ -0,0 +1,133 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + + 1. Click "Download SteamCMD" +2. Choose the folder, where you want to download it. +3. Extract the zip file +4. Choose your server +5. Locate your SteamCMD +6. Type quit, if the download was successful + +Note: This Tool will ONLY install the Server, it can´t forward any ports for you! + + \ No newline at end of file diff --git a/Server Creation Tool/Program.cs b/Server Creation Tool/Program.cs new file mode 100644 index 0000000..f3cabc3 --- /dev/null +++ b/Server Creation Tool/Program.cs @@ -0,0 +1,31 @@ +/* + * Created by SharpDevelop. + * User: Zeromix + * Date: 28.05.2016 + * Time: 16:00 + * + * To change this template use Tools | Options | Coding | Edit Standard Headers. + */ +using System; +using System.Windows.Forms; + +namespace Server_Creation_Tool +{ + /// + /// Class with program entry point. + /// + internal sealed class Program + { + /// + /// Program entry point. + /// + [STAThread] + private static void Main(string[] args) + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new MainForm()); + } + + } +} diff --git a/Server Creation Tool/Properties/AssemblyInfo.cs b/Server Creation Tool/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..f74cc8e --- /dev/null +++ b/Server Creation Tool/Properties/AssemblyInfo.cs @@ -0,0 +1,31 @@ +#region Using directives + +using System; +using System.Reflection; +using System.Runtime.InteropServices; + +#endregion + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Server Creation Tool")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Server Creation Tool")] +[assembly: AssemblyCopyright("Copyright 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// This sets the default COM visibility of types in the assembly to invisible. +// If you need to expose a type to COM, use [ComVisible(true)] on that type. +[assembly: ComVisible(false)] + +// The assembly version has following format : +// +// Major.Minor.Build.Revision +// +// You can specify all the values or you can use the default the Revision and +// Build Numbers by using the '*' as shown below: +[assembly: AssemblyVersion("1.0.*")] diff --git a/Server Creation Tool/Server Creation Tool.csproj b/Server Creation Tool/Server Creation Tool.csproj new file mode 100644 index 0000000..7481134 --- /dev/null +++ b/Server Creation Tool/Server Creation Tool.csproj @@ -0,0 +1,122 @@ + + + + {85E71E8C-9E94-400F-99D1-C9C33CADE381} + Debug + AnyCPU + WinExe + Server_Creation_Tool + Server Creation Tool + v4.0 + + + Properties + false + C:\Users\Jason\Desktop\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + true + true + + + x86 + + + bin\Debug\ + True + Full + False + True + DEBUG;TRACE + + + bin\Release\ + False + None + True + False + TRACE + + + 0FCF3956ED4B22E9808F9875A4913A3302AA7C90 + + + Server Creation Tool_TemporaryKey.pfx + + + true + + + true + + + false + + + false + AnyCPU + + + + + 3.5 + + + + 3.5 + + + + + + 3.5 + + + + + Form + + + MainForm.cs + + + + + + + MainForm.cs + + + + + + + + + False + Microsoft .NET Framework 4 Client Profile %28x86 und x64%29 + true + + + False + .NET Framework 3.5 SP1 + false + + + False + Windows Installer 4.5 + true + + + + \ No newline at end of file diff --git a/Server Creation Tool/Server Creation Tool.csproj.user b/Server Creation Tool/Server Creation Tool.csproj.user new file mode 100644 index 0000000..a0ce9d8 --- /dev/null +++ b/Server Creation Tool/Server Creation Tool.csproj.user @@ -0,0 +1,16 @@ + + + + C:\Users\Jason\Desktop\ + + + + + + de-DE + false + + + false + + \ No newline at end of file diff --git a/Server Creation Tool/Server Creation Tool.sln b/Server Creation Tool/Server Creation Tool.sln new file mode 100644 index 0000000..ee88931 --- /dev/null +++ b/Server Creation Tool/Server Creation Tool.sln @@ -0,0 +1,18 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +# SharpDevelop 4.4 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Server Creation Tool", "Server Creation Tool.csproj", "{85E71E8C-9E94-400F-99D1-C9C33CADE381}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {85E71E8C-9E94-400F-99D1-C9C33CADE381}.Debug|Any CPU.Build.0 = Debug|Any CPU + {85E71E8C-9E94-400F-99D1-C9C33CADE381}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {85E71E8C-9E94-400F-99D1-C9C33CADE381}.Release|Any CPU.Build.0 = Release|Any CPU + {85E71E8C-9E94-400F-99D1-C9C33CADE381}.Release|Any CPU.ActiveCfg = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/Server Creation Tool/app.config b/Server Creation Tool/app.config new file mode 100644 index 0000000..fcd0c93 --- /dev/null +++ b/Server Creation Tool/app.config @@ -0,0 +1,3 @@ + + +