2016-04-25 22:08:40 +00:00
#region Script Settings
#<ScriptSettings xmlns="http://tempuri.org/ScriptSettings.xsd">
# <ScriptPackager>
# <process>powershell.exe</process>
# <arguments />
# <extractdir>%TEMP%</extractdir>
# <files />
2016-05-18 16:48:48 +00:00
# <usedefaulticon>false</usedefaulticon>
# <icon>F:\ARCHIVE\Downloads\logo_only_1024.ico</icon>
2016-04-25 22:08:40 +00:00
# <showinsystray>false</showinsystray>
2016-05-18 16:48:48 +00:00
# <tooltip>Epoch Mod PBO Packer</tooltip>
2016-04-25 22:08:40 +00:00
# <altcreds>false</altcreds>
# <efs>true</efs>
# <ntfs>true</ntfs>
# <local>false</local>
# <abortonfail>true</abortonfail>
2016-05-18 16:48:48 +00:00
# <product>Epoch PBO Packing Tool</product>
# <internalname>Epoch PBO Packing Tool </internalname>
2016-04-25 22:08:40 +00:00
# <version>1.0.0.1</version>
2016-05-18 16:48:48 +00:00
# <versionstring>1.0</versionstring>
# <description>Tool to aid in the packing of Epoch Mod source files</description>
# <comments>By Raimonds Virtoss and Aaron Clark</comments>
# <company>EpochMod.com</company>
2016-04-25 22:08:40 +00:00
# <includeinterpreter>false</includeinterpreter>
# <forcecomregistration>false</forcecomregistration>
# <consolemode>false</consolemode>
# <EnableChangelog>false</EnableChangelog>
# <AutoBackup>false</AutoBackup>
# <snapinforce>false</snapinforce>
# <snapinshowprogress>false</snapinshowprogress>
# <snapinautoadd>2</snapinautoadd>
# <snapinpermanentpath />
# <cpumode>1</cpumode>
# <hidepsconsole>false</hidepsconsole>
# </ScriptPackager>
#</ScriptSettings>
#endregion
#region ScriptForm Designer
#region Constructor
[ void][System.Reflection.Assembly ] :: LoadWithPartialName ( " System.Windows.Forms " )
[ void][System.Reflection.Assembly ] :: LoadWithPartialName ( " System.Drawing " )
#endregion
#region Post-Constructor Custom Code
#endregion
#region Form Creation
#Warning: It is recommended that changes inside this region be handled using the ScriptForm Designer.
#When working with the ScriptForm designer this region and any changes within may be overwritten.
#~~< Form1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Form1 = New-Object System . Windows . Forms . Form
2016-05-18 20:25:54 +00:00
$Form1 . ClientSize = New-Object System . Drawing . Size ( 832 , 582 )
2016-04-25 22:08:40 +00:00
$Form1 . Text = " Epoch PBO Packing Tool "
2016-05-11 20:38:52 +00:00
#~~< ProgressBar1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$ProgressBar1 = New-Object System . Windows . Forms . ProgressBar
$ProgressBar1 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Bottom -bor [ System.Windows.Forms.AnchorStyles ] :: Left -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
2016-05-18 20:25:54 +00:00
$ProgressBar1 . Location = New-Object System . Drawing . Point ( 12 , 554 )
2016-05-11 20:38:52 +00:00
$ProgressBar1 . Size = New-Object System . Drawing . Size ( 808 , 16 )
$ProgressBar1 . TabIndex = 2
$ProgressBar1 . Text = " "
2016-04-25 22:08:40 +00:00
#~~< Label4 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Label4 = New-Object System . Windows . Forms . Label
2016-05-03 22:57:53 +00:00
$Label4 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Top -bor [ System.Windows.Forms.AnchorStyles ] :: Left -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
2016-05-08 21:46:57 +00:00
$Label4 . Location = New-Object System . Drawing . Point ( 12 , 9 )
2016-05-11 20:38:52 +00:00
$Label4 . Size = New-Object System . Drawing . Size ( 808 , 18 )
2016-04-25 22:08:40 +00:00
$Label4 . TabIndex = 1
2016-05-18 16:48:48 +00:00
$Label4 . Text = " "
2016-04-25 22:08:40 +00:00
$Label4 . TextAlign = [ System.Drawing.ContentAlignment ] :: MiddleCenter
#~~< TabControl1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$TabControl1 = New-Object System . Windows . Forms . TabControl
$TabControl1 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Top -bor [ System.Windows.Forms.AnchorStyles ] :: Bottom -bor [ System.Windows.Forms.AnchorStyles ] :: Left -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
2016-05-03 22:57:53 +00:00
$TabControl1 . Location = New-Object System . Drawing . Point ( 12 , 30 )
2016-05-18 20:25:54 +00:00
$TabControl1 . Size = New-Object System . Drawing . Size ( 808 , 518 )
2016-04-25 22:08:40 +00:00
$TabControl1 . TabIndex = 0
$TabControl1 . Text = " "
#~~< TabPage1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$TabPage1 = New-Object System . Windows . Forms . TabPage
$TabPage1 . BorderStyle = [ System.Windows.Forms.BorderStyle ] :: FixedSingle
$TabPage1 . Location = New-Object System . Drawing . Point ( 4 , 22 )
$TabPage1 . Padding = New-Object System . Windows . Forms . Padding ( 3 )
2016-05-18 20:25:54 +00:00
$TabPage1 . Size = New-Object System . Drawing . Size ( 800 , 492 )
2016-04-25 22:08:40 +00:00
$TabPage1 . TabIndex = 0
$TabPage1 . Text = " Packager "
$TabPage1 . BackColor = [ System.Drawing.SystemColors ] :: Control
2016-05-05 21:13:38 +00:00
#~~< Button16 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Button16 = New-Object System . Windows . Forms . Button
$Button16 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Top -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
2016-05-11 20:38:52 +00:00
$Button16 . Location = New-Object System . Drawing . Point ( 717 , 64 )
2016-05-05 21:13:38 +00:00
$Button16 . Size = New-Object System . Drawing . Size ( 75 , 23 )
$Button16 . TabIndex = 4
$Button16 . Text = " Selected "
$Button16 . UseVisualStyleBackColor = $true
2016-04-25 22:08:40 +00:00
#~~< Button6 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Button6 = New-Object System . Windows . Forms . Button
$Button6 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Bottom -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
2016-05-18 20:25:54 +00:00
$Button6 . Location = New-Object System . Drawing . Point ( 717 , 461 )
2016-04-25 22:08:40 +00:00
$Button6 . Size = New-Object System . Drawing . Size ( 75 , 23 )
$Button6 . TabIndex = 3
$Button6 . Text = " Create PBO "
$Button6 . UseVisualStyleBackColor = $true
#~~< Button5 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Button5 = New-Object System . Windows . Forms . Button
$Button5 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Top -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
2016-05-11 20:38:52 +00:00
$Button5 . Location = New-Object System . Drawing . Point ( 717 , 35 )
2016-04-25 22:08:40 +00:00
$Button5 . Size = New-Object System . Drawing . Size ( 75 , 23 )
$Button5 . TabIndex = 2
$Button5 . Text = " Select none "
$Button5 . UseVisualStyleBackColor = $true
#~~< Button7 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Button7 = New-Object System . Windows . Forms . Button
$Button7 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Top -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
2016-05-11 20:38:52 +00:00
$Button7 . Location = New-Object System . Drawing . Point ( 717 , 6 )
2016-04-25 22:08:40 +00:00
$Button7 . Size = New-Object System . Drawing . Size ( 75 , 23 )
$Button7 . TabIndex = 1
$Button7 . Text = " Select all "
$Button7 . UseVisualStyleBackColor = $true
#~~< ListView1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$ListView1 = New-Object System . Windows . Forms . ListView
$ListView1 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Top -bor [ System.Windows.Forms.AnchorStyles ] :: Bottom -bor [ System.Windows.Forms.AnchorStyles ] :: Left -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
$ListView1 . Location = New-Object System . Drawing . Point ( 6 , 6 )
2016-05-18 20:25:54 +00:00
$ListView1 . Size = New-Object System . Drawing . Size ( 705 , 478 )
2016-04-25 22:08:40 +00:00
$ListView1 . TabIndex = 0
$ListView1 . Text = " ListView1 "
$ListView1 . UseCompatibleStateImageBehavior = $false
$ListView1 . View = [ System.Windows.Forms.View ] :: Details
#~~< ColumnHeader1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$ColumnHeader1 = New-Object System . Windows . Forms . ColumnHeader
$ColumnHeader1 . Text = " Source "
$ColumnHeader1 . Width = 205
#~~< ColumnHeader2 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$ColumnHeader2 = New-Object System . Windows . Forms . ColumnHeader
$ColumnHeader2 . Text = " Full Path "
2016-05-16 23:47:34 +00:00
$ColumnHeader2 . Width = 659
2016-04-25 22:08:40 +00:00
$ListView1 . Columns . AddRange ( [ System.Windows.Forms.ColumnHeader[] ] ( @ ( $ColumnHeader1 , $ColumnHeader2 ) ) )
#~~< ListViewGroup11 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$ListViewGroup11 = New-Object System . Windows . Forms . ListViewGroup ( " Server " , [ System.Windows.Forms.HorizontalAlignment ] :: Left )
$ListViewGroup11 . Header = " Server "
#~~< ListViewGroup12 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$ListViewGroup12 = New-Object System . Windows . Forms . ListViewGroup ( " Client " , [ System.Windows.Forms.HorizontalAlignment ] :: Left )
$ListViewGroup12 . Header = " Client "
#~~< ListViewGroup13 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$ListViewGroup13 = New-Object System . Windows . Forms . ListViewGroup ( " Missions " , [ System.Windows.Forms.HorizontalAlignment ] :: Left )
$ListViewGroup13 . Header = " Missions "
$ListView1 . Groups . AddRange ( [ System.Windows.Forms.ListViewGroup[] ] ( @ ( $ListViewGroup11 , $ListViewGroup12 , $ListViewGroup13 ) ) )
2016-05-05 21:13:38 +00:00
$TabPage1 . Controls . Add ( $Button16 )
2016-04-25 22:08:40 +00:00
$TabPage1 . Controls . Add ( $Button6 )
$TabPage1 . Controls . Add ( $Button5 )
$TabPage1 . Controls . Add ( $Button7 )
$TabPage1 . Controls . Add ( $ListView1 )
#~~< TabPage2 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$TabPage2 = New-Object System . Windows . Forms . TabPage
$TabPage2 . BorderStyle = [ System.Windows.Forms.BorderStyle ] :: FixedSingle
$TabPage2 . Location = New-Object System . Drawing . Point ( 4 , 22 )
$TabPage2 . Padding = New-Object System . Windows . Forms . Padding ( 3 )
2016-05-18 20:25:54 +00:00
$TabPage2 . Size = New-Object System . Drawing . Size ( 800 , 492 )
2016-04-25 22:08:40 +00:00
$TabPage2 . TabIndex = 1
$TabPage2 . Text = " Settings "
$TabPage2 . BackColor = [ System.Drawing.SystemColors ] :: Control
2016-05-18 16:48:48 +00:00
#~~< Label19 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Label19 = New-Object System . Windows . Forms . Label
2016-05-18 20:25:54 +00:00
$Label19 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Bottom -bor [ System.Windows.Forms.AnchorStyles ] :: Left ) )
$Label19 . Location = New-Object System . Drawing . Point ( 6 , 376 )
2016-05-18 16:48:48 +00:00
$Label19 . Size = New-Object System . Drawing . Size ( 145 , 14 )
$Label19 . TabIndex = 38
$Label19 . Text = " BIPrivatekey Location: "
#~~< TextBox13 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$TextBox13 = New-Object System . Windows . Forms . TextBox
2016-05-18 20:25:54 +00:00
$TextBox13 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Bottom -bor [ System.Windows.Forms.AnchorStyles ] :: Left ) )
$TextBox13 . Location = New-Object System . Drawing . Point ( 308 , 353 )
2016-05-18 16:48:48 +00:00
$TextBox13 . ReadOnly = $true
2016-05-18 20:25:54 +00:00
$TextBox13 . Size = New-Object System . Drawing . Size ( 145 , 20 )
2016-05-18 16:48:48 +00:00
$TextBox13 . TabIndex = 33
$TextBox13 . Text = " "
2016-05-16 23:47:34 +00:00
#~~< Label18 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Label18 = New-Object System . Windows . Forms . Label
2016-05-18 20:25:54 +00:00
$Label18 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Bottom -bor [ System.Windows.Forms.AnchorStyles ] :: Left ) )
$Label18 . Font = New-Object System . Drawing . Font ( " Microsoft Sans Serif " , 12.0 , [ System.Drawing.FontStyle ] :: Bold , [ System.Drawing.GraphicsUnit ] :: Point , ( [ System.Byte ] ( 0 ) ) )
$Label18 . Location = New-Object System . Drawing . Point ( 6 , 267 )
2016-05-18 16:48:48 +00:00
$Label18 . Size = New-Object System . Drawing . Size ( 235 , 29 )
2016-05-16 23:47:34 +00:00
$Label18 . TabIndex = 37
$Label18 . Text = " Sign File Settings "
2016-05-18 20:25:54 +00:00
#~~< Label5 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Label5 = New-Object System . Windows . Forms . Label
$Label5 . Location = New-Object System . Drawing . Point ( 5 , 126 )
$Label5 . Size = New-Object System . Drawing . Size ( 230 , 15 )
$Label5 . TabIndex = 12
$Label5 . Text = " Path to EpochCore Github "
#~~< Button4 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Button4 = New-Object System . Windows . Forms . Button
$Button4 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Top -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
$Button4 . Location = New-Object System . Drawing . Point ( 737 , 144 )
$Button4 . Size = New-Object System . Drawing . Size ( 54 , 21 )
$Button4 . TabIndex = 13
$Button4 . Text = " Browse "
$Button4 . UseVisualStyleBackColor = $true
2016-05-16 23:47:34 +00:00
#~~< Label16 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Label16 = New-Object System . Windows . Forms . Label
2016-05-18 20:25:54 +00:00
$Label16 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Bottom -bor [ System.Windows.Forms.AnchorStyles ] :: Left ) )
$Label16 . Location = New-Object System . Drawing . Point ( 5 , 296 )
2016-05-16 23:47:34 +00:00
$Label16 . Size = New-Object System . Drawing . Size ( 643 , 14 )
$Label16 . TabIndex = 34
2016-05-18 16:48:48 +00:00
$Label16 . Text = " Path to Arma 3 Tools (DSCreateKey): "
2016-05-18 20:25:54 +00:00
#~~< TextBox4 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$TextBox4 = New-Object System . Windows . Forms . TextBox
$TextBox4 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Top -bor [ System.Windows.Forms.AnchorStyles ] :: Left -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
$TextBox4 . Location = New-Object System . Drawing . Point ( 5 , 144 )
$TextBox4 . Size = New-Object System . Drawing . Size ( 726 , 20 )
$TextBox4 . TabIndex = 11
$TextBox4 . Text = " "
2016-05-18 16:48:48 +00:00
#~~< Label15 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Label15 = New-Object System . Windows . Forms . Label
2016-05-18 20:25:54 +00:00
$Label15 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Bottom -bor [ System.Windows.Forms.AnchorStyles ] :: Left ) )
$Label15 . Location = New-Object System . Drawing . Point ( 308 , 336 )
2016-05-18 16:48:48 +00:00
$Label15 . Size = New-Object System . Drawing . Size ( 145 , 14 )
$Label15 . TabIndex = 32
$Label15 . Text = " Sign Version: "
#~~< Label13 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Label13 = New-Object System . Windows . Forms . Label
2016-05-18 20:25:54 +00:00
$Label13 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Bottom -bor [ System.Windows.Forms.AnchorStyles ] :: Left ) )
$Label13 . Location = New-Object System . Drawing . Point ( 5 , 390 )
2016-05-18 16:48:48 +00:00
$Label13 . Size = New-Object System . Drawing . Size ( 785 , 15 )
$Label13 . TabIndex = 29
$Label13 . Text = " "
2016-05-16 23:47:34 +00:00
#~~< Label17 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Label17 = New-Object System . Windows . Forms . Label
2016-05-18 20:25:54 +00:00
$Label17 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Bottom -bor [ System.Windows.Forms.AnchorStyles ] :: Left ) )
$Label17 . Location = New-Object System . Drawing . Point ( 157 , 336 )
2016-05-16 23:47:34 +00:00
$Label17 . Size = New-Object System . Drawing . Size ( 145 , 14 )
$Label17 . TabIndex = 36
$Label17 . Text = " PBO prefix: "
#~~< Button17 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Button17 = New-Object System . Windows . Forms . Button
2016-05-18 20:25:54 +00:00
$Button17 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Bottom -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
$Button17 . Location = New-Object System . Drawing . Point ( 737 , 313 )
2016-05-16 23:47:34 +00:00
$Button17 . Size = New-Object System . Drawing . Size ( 54 , 21 )
$Button17 . TabIndex = 28
$Button17 . Text = " Browse "
$Button17 . UseVisualStyleBackColor = $true
#~~< Label14 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Label14 = New-Object System . Windows . Forms . Label
2016-05-18 20:25:54 +00:00
$Label14 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Bottom -bor [ System.Windows.Forms.AnchorStyles ] :: Left ) )
$Label14 . Location = New-Object System . Drawing . Point ( 6 , 336 )
2016-05-16 23:47:34 +00:00
$Label14 . Size = New-Object System . Drawing . Size ( 145 , 14 )
$Label14 . TabIndex = 31
$Label14 . Text = " Authority Name Prefix: "
#~~< TextBoxBISignPrefix >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$TextBoxBISignPrefix = New-Object System . Windows . Forms . TextBox
2016-05-18 20:25:54 +00:00
$TextBoxBISignPrefix . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Bottom -bor [ System.Windows.Forms.AnchorStyles ] :: Left ) )
$TextBoxBISignPrefix . Location = New-Object System . Drawing . Point ( 6 , 353 )
$TextBoxBISignPrefix . Size = New-Object System . Drawing . Size ( 145 , 20 )
2016-05-16 23:47:34 +00:00
$TextBoxBISignPrefix . TabIndex = 30
$TextBoxBISignPrefix . Text = " epoch "
2016-05-03 22:57:53 +00:00
#~~< Button14 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Button14 = New-Object System . Windows . Forms . Button
$Button14 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Top -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
2016-05-18 20:25:54 +00:00
$Button14 . Location = New-Object System . Drawing . Point ( 737 , 226 )
2016-05-03 22:57:53 +00:00
$Button14 . Size = New-Object System . Drawing . Size ( 54 , 21 )
$Button14 . TabIndex = 18
$Button14 . Text = " Browse "
$Button14 . UseVisualStyleBackColor = $true
2016-05-16 23:47:34 +00:00
#~~< TextBoxPboPrefix >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$TextBoxPboPrefix = New-Object System . Windows . Forms . TextBox
2016-05-18 20:25:54 +00:00
$TextBoxPboPrefix . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Bottom -bor [ System.Windows.Forms.AnchorStyles ] :: Left ) )
$TextBoxPboPrefix . Location = New-Object System . Drawing . Point ( 157 , 353 )
$TextBoxPboPrefix . Size = New-Object System . Drawing . Size ( 145 , 20 )
2016-05-16 23:47:34 +00:00
$TextBoxPboPrefix . TabIndex = 35
$TextBoxPboPrefix . Text = " x\addons "
2016-05-03 22:57:53 +00:00
#~~< Label12 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Label12 = New-Object System . Windows . Forms . Label
2016-05-18 20:25:54 +00:00
$Label12 . Location = New-Object System . Drawing . Point ( 5 , 208 )
2016-05-03 22:57:53 +00:00
$Label12 . Size = New-Object System . Drawing . Size ( 230 , 15 )
$Label12 . TabIndex = 17
2016-05-16 23:47:34 +00:00
$Label12 . Text = " Server PBO Output Folder: "
#~~< TextBox11 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$TextBox11 = New-Object System . Windows . Forms . TextBox
2016-05-18 20:25:54 +00:00
$TextBox11 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Bottom -bor [ System.Windows.Forms.AnchorStyles ] :: Left -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
$TextBox11 . Location = New-Object System . Drawing . Point ( 6 , 313 )
2016-05-16 23:47:34 +00:00
$TextBox11 . Size = New-Object System . Drawing . Size ( 725 , 20 )
$TextBox11 . TabIndex = 27
$TextBox11 . Text = " "
2016-05-03 22:57:53 +00:00
#~~< TextBox10 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$TextBox10 = New-Object System . Windows . Forms . TextBox
$TextBox10 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Top -bor [ System.Windows.Forms.AnchorStyles ] :: Left -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
2016-05-18 20:25:54 +00:00
$TextBox10 . Location = New-Object System . Drawing . Point ( 5 , 226 )
2016-05-11 20:38:52 +00:00
$TextBox10 . Size = New-Object System . Drawing . Size ( 726 , 20 )
2016-05-03 22:57:53 +00:00
$TextBox10 . TabIndex = 16
2016-05-16 23:47:34 +00:00
$TextBox10 . Text = " "
2016-05-03 22:57:53 +00:00
#~~< Button13 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Button13 = New-Object System . Windows . Forms . Button
$Button13 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Top -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
2016-05-18 20:25:54 +00:00
$Button13 . Location = New-Object System . Drawing . Point ( 737 , 185 )
2016-05-03 22:57:53 +00:00
$Button13 . Size = New-Object System . Drawing . Size ( 54 , 21 )
$Button13 . TabIndex = 15
$Button13 . Text = " Browse "
$Button13 . UseVisualStyleBackColor = $true
#~~< Label11 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Label11 = New-Object System . Windows . Forms . Label
2016-05-18 20:25:54 +00:00
$Label11 . Location = New-Object System . Drawing . Point ( 5 , 167 )
2016-05-03 22:57:53 +00:00
$Label11 . Size = New-Object System . Drawing . Size ( 230 , 15 )
$Label11 . TabIndex = 14
2016-05-16 23:47:34 +00:00
$Label11 . Text = " Output Folder MpMissions: "
2016-05-03 22:57:53 +00:00
#~~< TextBox9 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$TextBox9 = New-Object System . Windows . Forms . TextBox
$TextBox9 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Top -bor [ System.Windows.Forms.AnchorStyles ] :: Left -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
2016-05-18 20:25:54 +00:00
$TextBox9 . Location = New-Object System . Drawing . Point ( 5 , 185 )
2016-05-11 20:38:52 +00:00
$TextBox9 . Size = New-Object System . Drawing . Size ( 726 , 20 )
2016-05-03 22:57:53 +00:00
$TextBox9 . TabIndex = 13
2016-05-16 23:47:34 +00:00
$TextBox9 . Text = " "
2016-05-03 22:57:53 +00:00
#~~< Button9 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Button9 = New-Object System . Windows . Forms . Button
$Button9 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Bottom -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
2016-05-18 20:25:54 +00:00
$Button9 . Location = New-Object System . Drawing . Point ( 678 , 453 )
2016-05-03 22:57:53 +00:00
$Button9 . Size = New-Object System . Drawing . Size ( 54 , 21 )
$Button9 . TabIndex = 12
$Button9 . Text = " Save "
$Button9 . UseVisualStyleBackColor = $true
#~~< Button8 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Button8 = New-Object System . Windows . Forms . Button
$Button8 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Bottom -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
2016-05-18 20:25:54 +00:00
$Button8 . Location = New-Object System . Drawing . Point ( 738 , 453 )
2016-05-03 22:57:53 +00:00
$Button8 . Size = New-Object System . Drawing . Size ( 54 , 21 )
$Button8 . TabIndex = 11
$Button8 . Text = " Delete "
$Button8 . UseVisualStyleBackColor = $true
#~~< Label7 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Label7 = New-Object System . Windows . Forms . Label
$Label7 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Bottom -bor [ System.Windows.Forms.AnchorStyles ] :: Left ) )
2016-05-18 20:25:54 +00:00
$Label7 . Location = New-Object System . Drawing . Point ( 6 , 435 )
2016-05-03 22:57:53 +00:00
$Label7 . Size = New-Object System . Drawing . Size ( 230 , 15 )
$Label7 . TabIndex = 10
$Label7 . Text = " Save Settings: "
#~~< TextBox5 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$TextBox5 = New-Object System . Windows . Forms . TextBox
$TextBox5 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Bottom -bor [ System.Windows.Forms.AnchorStyles ] :: Left -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
$TextBox5 . Enabled = $false
2016-05-18 20:25:54 +00:00
$TextBox5 . Location = New-Object System . Drawing . Point ( 6 , 453 )
2016-05-11 20:38:52 +00:00
$TextBox5 . Size = New-Object System . Drawing . Size ( 666 , 20 )
2016-05-03 22:57:53 +00:00
$TextBox5 . TabIndex = 9
$TextBox5 . Text = " "
2016-04-25 22:08:40 +00:00
#~~< Button3 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Button3 = New-Object System . Windows . Forms . Button
2016-05-03 22:57:53 +00:00
$Button3 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Top -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
2016-05-11 20:38:52 +00:00
$Button3 . Location = New-Object System . Drawing . Point ( 738 , 62 )
2016-04-25 22:08:40 +00:00
$Button3 . Size = New-Object System . Drawing . Size ( 54 , 21 )
$Button3 . TabIndex = 8
$Button3 . Text = " Browse "
$Button3 . UseVisualStyleBackColor = $true
#~~< Label3 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Label3 = New-Object System . Windows . Forms . Label
2016-05-03 22:57:53 +00:00
$Label3 . Location = New-Object System . Drawing . Point ( 6 , 44 )
2016-04-25 22:08:40 +00:00
$Label3 . Size = New-Object System . Drawing . Size ( 230 , 15 )
$Label3 . TabIndex = 7
2016-05-03 22:57:53 +00:00
$Label3 . Text = " Path to Arma 3 Addon builder: "
2016-04-25 22:08:40 +00:00
#~~< TextBox3 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$TextBox3 = New-Object System . Windows . Forms . TextBox
2016-05-03 22:57:53 +00:00
$TextBox3 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Top -bor [ System.Windows.Forms.AnchorStyles ] :: Left -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
$TextBox3 . Location = New-Object System . Drawing . Point ( 6 , 62 )
2016-05-11 20:38:52 +00:00
$TextBox3 . Size = New-Object System . Drawing . Size ( 726 , 20 )
2016-04-25 22:08:40 +00:00
$TextBox3 . TabIndex = 6
$TextBox3 . Text = " "
#~~< Button2 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Button2 = New-Object System . Windows . Forms . Button
2016-05-03 22:57:53 +00:00
$Button2 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Top -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
2016-05-11 20:38:52 +00:00
$Button2 . Location = New-Object System . Drawing . Point ( 738 , 103 )
2016-04-25 22:08:40 +00:00
$Button2 . Size = New-Object System . Drawing . Size ( 54 , 21 )
$Button2 . TabIndex = 5
$Button2 . Text = " Browse "
$Button2 . UseVisualStyleBackColor = $true
#~~< Label2 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Label2 = New-Object System . Windows . Forms . Label
2016-05-03 22:57:53 +00:00
$Label2 . Location = New-Object System . Drawing . Point ( 6 , 85 )
2016-04-25 22:08:40 +00:00
$Label2 . Size = New-Object System . Drawing . Size ( 230 , 15 )
$Label2 . TabIndex = 4
2016-05-18 20:25:54 +00:00
$Label2 . Text = " Path to Epoch Github: "
2016-04-25 22:08:40 +00:00
#~~< TextBox2 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$TextBox2 = New-Object System . Windows . Forms . TextBox
2016-05-03 22:57:53 +00:00
$TextBox2 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Top -bor [ System.Windows.Forms.AnchorStyles ] :: Left -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
$TextBox2 . Location = New-Object System . Drawing . Point ( 6 , 103 )
2016-05-11 20:38:52 +00:00
$TextBox2 . Size = New-Object System . Drawing . Size ( 726 , 20 )
2016-04-25 22:08:40 +00:00
$TextBox2 . TabIndex = 3
$TextBox2 . Text = " "
#~~< Button1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Button1 = New-Object System . Windows . Forms . Button
2016-05-03 22:57:53 +00:00
$Button1 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Top -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
2016-05-11 20:38:52 +00:00
$Button1 . Location = New-Object System . Drawing . Point ( 738 , 21 )
2016-04-25 22:08:40 +00:00
$Button1 . Size = New-Object System . Drawing . Size ( 54 , 21 )
$Button1 . TabIndex = 2
$Button1 . Text = " Browse "
$Button1 . UseVisualStyleBackColor = $true
#~~< Label1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Label1 = New-Object System . Windows . Forms . Label
$Label1 . Location = New-Object System . Drawing . Point ( 6 , 3 )
$Label1 . Size = New-Object System . Drawing . Size ( 230 , 15 )
$Label1 . TabIndex = 1
$Label1 . Text = " Path to Arma 3: "
#~~< TextBox1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$TextBox1 = New-Object System . Windows . Forms . TextBox
2016-05-03 22:57:53 +00:00
$TextBox1 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Top -bor [ System.Windows.Forms.AnchorStyles ] :: Left -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
2016-04-25 22:08:40 +00:00
$TextBox1 . Location = New-Object System . Drawing . Point ( 6 , 21 )
2016-05-11 20:38:52 +00:00
$TextBox1 . Size = New-Object System . Drawing . Size ( 726 , 20 )
2016-04-25 22:08:40 +00:00
$TextBox1 . TabIndex = 0
$TextBox1 . Text = " "
2016-05-18 16:48:48 +00:00
$TabPage2 . Controls . Add ( $Label19 )
$TabPage2 . Controls . Add ( $TextBox13 )
2016-05-16 23:47:34 +00:00
$TabPage2 . Controls . Add ( $Label18 )
2016-05-18 20:25:54 +00:00
$TabPage2 . Controls . Add ( $Label5 )
$TabPage2 . Controls . Add ( $Button4 )
2016-05-16 23:47:34 +00:00
$TabPage2 . Controls . Add ( $Label16 )
2016-05-18 20:25:54 +00:00
$TabPage2 . Controls . Add ( $TextBox4 )
2016-05-18 16:48:48 +00:00
$TabPage2 . Controls . Add ( $Label15 )
$TabPage2 . Controls . Add ( $Label13 )
2016-05-16 23:47:34 +00:00
$TabPage2 . Controls . Add ( $Label17 )
$TabPage2 . Controls . Add ( $Button17 )
$TabPage2 . Controls . Add ( $Label14 )
$TabPage2 . Controls . Add ( $TextBoxBISignPrefix )
2016-05-03 22:57:53 +00:00
$TabPage2 . Controls . Add ( $Button14 )
2016-05-16 23:47:34 +00:00
$TabPage2 . Controls . Add ( $TextBoxPboPrefix )
2016-05-03 22:57:53 +00:00
$TabPage2 . Controls . Add ( $Label12 )
2016-05-16 23:47:34 +00:00
$TabPage2 . Controls . Add ( $TextBox11 )
2016-05-03 22:57:53 +00:00
$TabPage2 . Controls . Add ( $TextBox10 )
$TabPage2 . Controls . Add ( $Button13 )
$TabPage2 . Controls . Add ( $Label11 )
$TabPage2 . Controls . Add ( $TextBox9 )
$TabPage2 . Controls . Add ( $Button9 )
$TabPage2 . Controls . Add ( $Button8 )
$TabPage2 . Controls . Add ( $Label7 )
$TabPage2 . Controls . Add ( $TextBox5 )
2016-04-25 22:08:40 +00:00
$TabPage2 . Controls . Add ( $Button3 )
$TabPage2 . Controls . Add ( $Label3 )
$TabPage2 . Controls . Add ( $TextBox3 )
$TabPage2 . Controls . Add ( $Button2 )
$TabPage2 . Controls . Add ( $Label2 )
$TabPage2 . Controls . Add ( $TextBox2 )
$TabPage2 . Controls . Add ( $Button1 )
$TabPage2 . Controls . Add ( $Label1 )
$TabPage2 . Controls . Add ( $TextBox1 )
2016-05-03 22:57:53 +00:00
#~~< TabPage3 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$TabPage3 = New-Object System . Windows . Forms . TabPage
$TabPage3 . BorderStyle = [ System.Windows.Forms.BorderStyle ] :: FixedSingle
$TabPage3 . Location = New-Object System . Drawing . Point ( 4 , 22 )
$TabPage3 . Padding = New-Object System . Windows . Forms . Padding ( 3 )
2016-05-18 20:25:54 +00:00
$TabPage3 . Size = New-Object System . Drawing . Size ( 800 , 492 )
2016-05-03 22:57:53 +00:00
$TabPage3 . TabIndex = 2
$TabPage3 . Text = " Developers "
$TabPage3 . BackColor = [ System.Drawing.SystemColors ] :: Control
2016-06-17 17:55:33 +00:00
#~~< CheckBox2 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$CheckBox2 = New-Object System . Windows . Forms . CheckBox
$CheckBox2 . Location = New-Object System . Drawing . Point ( 78 , 6 )
$CheckBox2 . Size = New-Object System . Drawing . Size ( 178 , 24 )
$CheckBox2 . TabIndex = 27
$CheckBox2 . Text = " Update versions when packing "
$CheckBox2 . UseVisualStyleBackColor = $true
2016-05-05 21:13:38 +00:00
#~~< Button15 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Button15 = New-Object System . Windows . Forms . Button
2016-05-18 20:25:54 +00:00
$Button15 . Location = New-Object System . Drawing . Point ( 6 , 173 )
2016-05-05 21:13:38 +00:00
$Button15 . Size = New-Object System . Drawing . Size ( 96 , 21 )
$Button15 . TabIndex = 26
$Button15 . Text = " Reload Versions "
$Button15 . UseVisualStyleBackColor = $true
2016-05-03 22:57:53 +00:00
#~~< Button12 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Button12 = New-Object System . Windows . Forms . Button
2016-05-18 20:25:54 +00:00
$Button12 . Location = New-Object System . Drawing . Point ( 6 , 200 )
2016-05-05 21:13:38 +00:00
$Button12 . Size = New-Object System . Drawing . Size ( 96 , 21 )
2016-05-03 22:57:53 +00:00
$Button12 . TabIndex = 25
2016-05-05 21:13:38 +00:00
$Button12 . Text = " Update Versions "
2016-05-03 22:57:53 +00:00
$Button12 . UseVisualStyleBackColor = $true
2016-05-08 21:46:57 +00:00
#~~< Label6 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Label6 = New-Object System . Windows . Forms . Label
$Label6 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Top -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
2016-05-11 20:38:52 +00:00
$Label6 . Location = New-Object System . Drawing . Point ( 508 , 9 )
2016-05-08 21:46:57 +00:00
$Label6 . Size = New-Object System . Drawing . Size ( 141 , 21 )
$Label6 . TabIndex = 15
2016-05-16 23:47:34 +00:00
$Label6 . Text = " Arma 3 Mod Output Folder: "
2016-05-03 22:57:53 +00:00
#~~< TextBox8 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$TextBox8 = New-Object System . Windows . Forms . TextBox
2016-05-18 20:25:54 +00:00
$TextBox8 . Location = New-Object System . Drawing . Point ( 6 , 147 )
2016-05-05 21:13:38 +00:00
$TextBox8 . Size = New-Object System . Drawing . Size ( 96 , 20 )
2016-05-03 22:57:53 +00:00
$TextBox8 . TabIndex = 24
$TextBox8 . Text = " "
2016-05-08 21:46:57 +00:00
#~~< ComboBox1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$ComboBox1 = New-Object System . Windows . Forms . ComboBox
$ComboBox1 . Anchor = ( [ System.Windows.Forms.AnchorStyles ] ( [ System.Windows.Forms.AnchorStyles ] :: Top -bor [ System.Windows.Forms.AnchorStyles ] :: Right ) )
$ComboBox1 . FormattingEnabled = $true
2016-05-11 20:38:52 +00:00
$ComboBox1 . Location = New-Object System . Drawing . Point ( 655 , 6 )
2016-05-08 21:46:57 +00:00
$ComboBox1 . SelectedIndex = -1
$ComboBox1 . Size = New-Object System . Drawing . Size ( 137 , 21 )
$ComboBox1 . TabIndex = 14
$ComboBox1 . Text = " Select Arma Mod "
2016-05-03 22:57:53 +00:00
#~~< TextBox7 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$TextBox7 = New-Object System . Windows . Forms . TextBox
2016-05-18 20:25:54 +00:00
$TextBox7 . Location = New-Object System . Drawing . Point ( 6 , 107 )
2016-05-05 21:13:38 +00:00
$TextBox7 . Size = New-Object System . Drawing . Size ( 96 , 20 )
2016-05-03 22:57:53 +00:00
$TextBox7 . TabIndex = 22
$TextBox7 . Text = " "
#~~< Label10 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Label10 = New-Object System . Windows . Forms . Label
2016-05-18 20:25:54 +00:00
$Label10 . Location = New-Object System . Drawing . Point ( 6 , 130 )
2016-05-03 22:57:53 +00:00
$Label10 . Size = New-Object System . Drawing . Size ( 145 , 14 )
$Label10 . TabIndex = 21
2016-05-05 21:13:38 +00:00
$Label10 . Text = " Public Build: "
2016-05-03 22:57:53 +00:00
#~~< Label9 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Label9 = New-Object System . Windows . Forms . Label
2016-05-18 20:25:54 +00:00
$Label9 . Location = New-Object System . Drawing . Point ( 6 , 90 )
2016-05-03 22:57:53 +00:00
$Label9 . Size = New-Object System . Drawing . Size ( 145 , 14 )
$Label9 . TabIndex = 18
2016-05-05 21:13:38 +00:00
$Label9 . Text = " Private Build: "
2016-05-03 22:57:53 +00:00
#~~< TextBox6 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$TextBox6 = New-Object System . Windows . Forms . TextBox
2016-05-18 20:25:54 +00:00
$TextBox6 . Location = New-Object System . Drawing . Point ( 6 , 67 )
2016-05-05 21:13:38 +00:00
$TextBox6 . Size = New-Object System . Drawing . Size ( 96 , 20 )
2016-05-03 22:57:53 +00:00
$TextBox6 . TabIndex = 16
$TextBox6 . Text = " "
#~~< Label8 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Label8 = New-Object System . Windows . Forms . Label
2016-05-18 20:25:54 +00:00
$Label8 . Location = New-Object System . Drawing . Point ( 6 , 50 )
2016-05-03 22:57:53 +00:00
$Label8 . Size = New-Object System . Drawing . Size ( 145 , 14 )
$Label8 . TabIndex = 15
$Label8 . Text = " Mod Version: "
#~~< CheckBox1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$CheckBox1 = New-Object System . Windows . Forms . CheckBox
$CheckBox1 . Location = New-Object System . Drawing . Point ( 6 , 6 )
$CheckBox1 . Size = New-Object System . Drawing . Size ( 66 , 24 )
$CheckBox1 . TabIndex = 14
$CheckBox1 . Text = " Enable "
$CheckBox1 . UseVisualStyleBackColor = $true
2016-06-17 17:55:33 +00:00
$TabPage3 . Controls . Add ( $CheckBox2 )
2016-05-05 21:13:38 +00:00
$TabPage3 . Controls . Add ( $Button15 )
2016-05-03 22:57:53 +00:00
$TabPage3 . Controls . Add ( $Button12 )
2016-05-08 21:46:57 +00:00
$TabPage3 . Controls . Add ( $Label6 )
2016-05-03 22:57:53 +00:00
$TabPage3 . Controls . Add ( $TextBox8 )
2016-05-08 21:46:57 +00:00
$TabPage3 . Controls . Add ( $ComboBox1 )
2016-05-03 22:57:53 +00:00
$TabPage3 . Controls . Add ( $TextBox7 )
$TabPage3 . Controls . Add ( $Label10 )
$TabPage3 . Controls . Add ( $Label9 )
$TabPage3 . Controls . Add ( $TextBox6 )
$TabPage3 . Controls . Add ( $Label8 )
$TabPage3 . Controls . Add ( $CheckBox1 )
2016-04-25 22:08:40 +00:00
$TabControl1 . Controls . Add ( $TabPage1 )
$TabControl1 . Controls . Add ( $TabPage2 )
2016-05-03 22:57:53 +00:00
$TabControl1 . Controls . Add ( $TabPage3 )
2016-04-25 22:08:40 +00:00
$TabControl1 . SelectedIndex = 0
2016-05-11 20:38:52 +00:00
$Form1 . Controls . Add ( $ProgressBar1 )
2016-04-25 22:08:40 +00:00
$Form1 . Controls . Add ( $Label4 )
$Form1 . Controls . Add ( $TabControl1 )
#region$Form1.Icon = ([System.Drawing.Icon](...)
$Form1 . Icon = ( [ System.Drawing.Icon ] ( New-Object System . Drawing . Icon ( ( New-Object System . IO . MemoryStream ( ( $ $ = [ System.Convert ] :: FromBase64String (
" AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAABILAAASCwAAAAAA " +
" AAAAAAD///8AAAAAAAAAAAAAAAAAAAAACQAAAHEAAADLAAAA6wAAAOkAAADHAAAAbwAAAAcAAAAA " +
" AAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAKQAAANgAAACLAAAAKgAAAAEAAAABAAAALQAAAJYA " +
" AADSAAAAJgAAAAAAAAAAAAAAAP///wAAAAAAAAAAIAAAANoAAAA7AAAAAAAAAAAAAAAAAAAAAAAA " +
" AAAAAAAAAAAAQQAAAN0AAAAaAAAAAAAAAAD///8AAAAAygAAAOgAAADcAAAAqgAAAJ4AAACEAAAA " +
" dQAAAF8AAABDAAAAOwAAAB4AAABeAAAArwAAAAAAAAAA////AAAAAOEAAAD/AAAA/wAAAP8AAAD/ " +
" AAAA/AAAAP0AAADgAAAA1wAAAMEAAACwAAAAlQAAAM4AAACQAAAAN////wAAAADAAAAAdAAAAEcA " +
" AAAwAAAAJgAAAA8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABIAAAAmgAAAAD///8AAAAA0wAA " +
" AAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACQAAAM8AAAAA//// " +
" AAAAAPQAAADgAAAAzQAAALkAAACmAAAAkQAAAH4AAABjAAAAUQAAAD8AAAArAAAAAQAAAAAAAADT " +
" AAAAAP///wAAAAD3AAAAzwAAAMkAAACjAAAAoAAAAIwAAABzAAAAYwAAAFAAAAA9AAAAHgAAAAQA " +
" AAAAAAAA1QAAAAD///8AAAAA0wAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA " +
" AAAAAAAAAAAACQAAAMcAAAAA////AAAAALkAAABhAAAAGwAAAA0AAAABAAAAAAAAAAAAAAAAAAAA " +
" AAAAAAAAAAAAAAAAAAAAAEoAAACUAAAAAP///wAAAADhAAAA/wAAAP8AAAD/AAAA/QAAAOYAAADV " +
" AAAAwQAAAK4AAACYAAAAfQAAAG8AAAC9AAAAewAAABr///8AAAAA3wAAAPoAAADwAAAAzQAAALwA " +
" AACpAAAAlQAAAIEAAABpAAAAWgAAAEYAAAB7AAAAuAAAAAkAAAAA////AAAAAAoAAAAgAAAA1AAA " +
" AD0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABDAAAA3QAAABkAAAAAAAAAAP///wAAAAAAAAAA " +
" AAAAACkAAADXAAAAkgAAACkAAAABAAAAAgAAAC4AAACWAAAA0wAAACkAAAAAAAAAAAAAAAD///8A " +
" AAAAAAAAAAAAAAAAAAAACAAAAF0AAADLAAAA6gAAAOYAAADHAAAAbgAAAAEAAAAAAAAAAAAAAAAA " +
" AAAA8A8AAOAHAADH4wAAgAMAAIAAAACB+QAAn/kAAIAFAACABQAAn/kAAIP5AACAAAAAgAEAAIfj " +
" AADgBwAA8A8AAA== " ) ) , 0 , $ $ . Length ) ) ) ) )
#endregion
#~~< components >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$components = New-Object System . ComponentModel . Container
#~~< Timer1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$Timer1 = New-Object System . Windows . Forms . Timer ( $components )
2016-05-18 20:25:54 +00:00
#~~< FolderBrowserDialog1 >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
$FolderBrowserDialog1 = New-Object System . Windows . Forms . FolderBrowserDialog
2016-04-25 22:08:40 +00:00
#endregion
#region Custom Code
2016-05-29 14:08:56 +00:00
2016-04-25 22:08:40 +00:00
# Defines
2016-05-18 16:48:48 +00:00
$Label4 . Text = Get-Random -InputObject " Bug? That's not a bug, that's a feature. " , " A bug in the code is worth two in the documentation. "
2016-05-05 21:13:38 +00:00
2016-04-25 22:08:40 +00:00
$ListView1 . CheckBoxes = $true
$FolderBrowserDialog1 . ShowNewFolderButton = $false
2016-05-05 21:13:38 +00:00
$TextBox1 . Text = " Arma 3 not found "
$TextBox3 . Text = " Arma Tools not found "
2016-05-16 23:47:34 +00:00
$TextBox11 . Text = " Arma Tools not found "
2016-05-05 21:13:38 +00:00
$TextBox2 . Text = " C:\ "
$TextBox4 . Text = " C:\ "
$TextBox5 . Text = ( Join-Path $env:APPDATA " \Epoch_PBO.ini " )
2016-05-02 16:57:28 +00:00
$OS = ( Get-WmiObject Win32_OperatingSystem ) . OSArchitecture
$armaPathArr = switch ( $OS ) #gets array of objects from registry
{
" 64-bit " { Get-ChildItem " HKLM:\SOFTWARE\WOW6432Node\Bohemia Interactive\ " | ForEach-Object { Get-ItemProperty $_ . pspath } }
" 32-bit " { Get-ChildItem " HKLM:\SOFTWARE\Bohemia Interactive Studio\ " | ForEach-Object { Get-ItemProperty $_ . pspath } }
2016-05-16 23:47:34 +00:00
default { @ ( ) } #OS Architecture not recognized, might need to update Powershell version, should work with 2.0 (win7)
2016-05-02 16:57:28 +00:00
}
$TextBox1 . Text = $armaPathArr . main | ForEach-Object { if ( $_ -match " Arma 3 " ) { return $_ } }
$TextBox3 . Text = $armaPathArr . path | ForEach-Object { if ( $_ -match " AddonBuilder " ) { return $_ } }
2016-05-16 23:47:34 +00:00
$TextBox11 . Text = ( Get-ItemProperty 'HKCU:\SOFTWARE\Bohemia Interactive\dscreatekey' ) . path
2016-04-25 22:08:40 +00:00
# Functions
function fnc_populateListView
2016-05-02 16:57:28 +00:00
{
$Script:listarr = @ ( ) #empty arr
2016-04-25 22:08:40 +00:00
$folders = Get-ChildItem $TextBox2 . Text -directory
2016-05-08 21:46:57 +00:00
if ( $Checkbox1 . Checked )
2016-04-25 22:08:40 +00:00
{
2016-05-08 21:46:57 +00:00
if ( Test-Path $TextBox4 . Text )
{
$priv = Get-ChildItem $TextBox4 . Text -directory
$folders + = , $priv
}
2016-04-25 22:08:40 +00:00
}
foreach ( $x in $folders )
{
$y = Get-ChildItem $x . fullname -directory
if ( $y ) #If subfolders exist
{
foreach ( $z in $y )
{
switch ( $z . name )
{
#Groups: 11 server 12 client 13 mission
{ $_ . contains ( " server " ) }
{
$tmp = New-Object System . Windows . Forms . ListViewItem ( [ System.String[] ] ( @ ( $_ , $z . fullname ) ) , -1 )
$tmp . Name = $_
$tmp . Group = $ListViewGroup11
2016-05-02 16:57:28 +00:00
$Script:listarr + = , $tmp
2016-04-25 22:08:40 +00:00
}
{ $_ . contains ( " mpmissions " ) }
{
$missions = Get-ChildItem $z . fullname -directory
foreach ( $mission in $missions )
{
$tmp = New-Object System . Windows . Forms . ListViewItem ( [ System.String[] ] ( @ ( $mission . name , $mission . fullname ) ) , -1 )
$tmp . Name = $_
$tmp . Group = $ListViewGroup13
2016-05-02 16:57:28 +00:00
$Script:listarr + = , $tmp
2016-04-25 22:08:40 +00:00
}
}
default
{
$ok = Test-Path ( Join-Path $z . fullname " \config.cpp " )
if ( $ok )
{
$tmp = New-Object System . Windows . Forms . ListViewItem ( [ System.String[] ] ( @ ( $_ , $z . fullname ) ) , -1 )
$tmp . Name = $_
$tmp . Group = $ListViewGroup12
2016-05-02 16:57:28 +00:00
$Script:listarr + = , $tmp
2016-04-25 22:08:40 +00:00
}
}
}
}
}
}
2016-05-02 16:57:28 +00:00
$ListView1 . Items . AddRange ( [ System.Windows.Forms.ListViewItem[] ] ( $Script:listarr ) )
2016-04-25 22:08:40 +00:00
}
function fnc_enableControls
{
$c1 = Test-Path ( Join-Path $TextBox1 . Text " \Arma3.exe " )
$c2 = Test-Path ( Join-Path $TextBox2 . Text " \Sources " )
2016-05-02 16:57:28 +00:00
$c3 = Test-Path ( Join-Path $TextBox3 . Text " \AddonBuilder.exe " ) -ErrorAction SilentlyContinue
2016-05-18 19:33:27 +00:00
$c4 = Test-Path ( Join-Path $TextBox4 . Text " \Sources " )
2016-04-25 22:08:40 +00:00
$c5 = Test-Path " P:\ "
2016-05-05 21:13:38 +00:00
2016-05-18 20:25:54 +00:00
if ( $c1 -and ( $c2 -or $c4 ) -and $c3 -and $c5 )
2016-04-25 22:08:40 +00:00
{
$Button5 . Enabled = $true
$Button6 . Enabled = $true
$Button7 . Enabled = $true
2016-05-05 21:13:38 +00:00
$Button16 . Enabled = $true
2016-04-25 22:08:40 +00:00
$ListView1 . Enabled = $true
}
else
{
$Button5 . Enabled = $false
$Button6 . Enabled = $false
$Button7 . Enabled = $false
2016-05-05 21:13:38 +00:00
$Button16 . Enabled = $false
2016-04-25 22:08:40 +00:00
$ListView1 . Enabled = $false
}
2016-05-11 20:38:52 +00:00
$Label4 . Text = if ( ! $c5 )
{
" P:\ drive not mounted "
}
elseif ( Get-Process Arma3 -ErrorAction SilentlyContinue ) #not a boolean, but any variable equals true and null equals false
{
" (WARNING) Arma 3 is running "
}
2016-05-18 20:25:54 +00:00
elseif ( ! $c2 -and ! $c4 )
{
" Please add at least one Github source under SETTINGS tab "
}
2016-05-11 20:38:52 +00:00
else
{
#"EPOCH_CODE and EPOCH_CONFIG are automatically merged into MPMissions PBO packs"
" Tool is Ready! Please check items from the list you want to PBO "
}
2016-05-05 21:13:38 +00:00
}
function fnc_reloadVersions
{
2016-05-16 23:47:34 +00:00
$p6 = Join-Path $Textbox4 . Text " \version.txt "
$p7 = Join-Path $Textbox4 . Text " \build.txt "
2016-05-05 21:13:38 +00:00
$p8 = Join-Path $Textbox2 . Text " \build.txt "
$Textbox6 . Text = if ( Test-Path $p6 ) { Get-Content $p6 } else { " Path not set " }
$Textbox7 . Text = if ( Test-Path $p7 ) { Get-Content $p7 } else { " Path not set " }
$Textbox8 . Text = if ( Test-Path $p8 ) { Get-Content $p8 } else { " Path not set " }
2016-05-18 16:48:48 +00:00
$Textbox13 . Text = if ( Test-Path $p6 ) { ( Get-Content $p6 ) -replace '[.]' , '' } else { " " }
}
function fnc_updateBuildNumber($inpath , $outpath , $increment )
{
2016-06-17 17:55:33 +00:00
if ( $Checkbox1 . Checked -and $checkbox2 . Checked )
2016-05-18 16:48:48 +00:00
{
$path = Join-Path $inpath " \build.txt "
if ( Test-Path $path )
{
$in = Get-Content $path
$newBuild = [ int ] $in + $increment
$Out = @ (
'build=' + [ string ] $newBuild + ';'
)
2016-06-17 17:55:33 +00:00
2016-05-18 16:48:48 +00:00
$Out | Out-File ( Join-Path $outpath " \build.hpp " ) -Encoding " UTF8 "
$newBuild | Out-File $path -Encoding " UTF8 "
if ( $increment -eq 1 )
{
fnc_reloadVersions
}
}
}
2016-05-05 21:13:38 +00:00
}
function fnc_updateVersions
{
2016-05-16 23:47:34 +00:00
$p6 = Join-Path $Textbox4 . Text " \version.txt "
$p7 = Join-Path $Textbox4 . Text " \build.txt "
2016-05-05 21:13:38 +00:00
$p8 = Join-Path $Textbox2 . Text " \build.txt "
if ( ( $Textbox6 . Text -ne " Path not set " ) -and ( Test-Path $p6 ) )
{
2016-05-11 20:38:52 +00:00
$TextBox6 . Text | Out-File $p6 -Encoding " UTF8 "
2016-05-05 21:13:38 +00:00
}
if ( ( $Textbox7 . Text -ne " Path not set " ) -and ( Test-Path $p7 ) )
{
2016-05-11 20:38:52 +00:00
$TextBox7 . Text | Out-File $p7 -Encoding " UTF8 "
2016-05-05 21:13:38 +00:00
}
if ( ( $Textbox8 . Text -ne " Path not set " ) -and ( Test-Path $p8 ) )
{
2016-05-11 20:38:52 +00:00
$TextBox8 . Text | Out-File $p8 -Encoding " UTF8 "
2016-05-05 21:13:38 +00:00
}
2016-04-25 22:08:40 +00:00
}
function fnc_getSetPath($switch )
{
2016-05-08 21:46:57 +00:00
$FolderBrowserDialog1 . ShowNewFolderButton = $true
2016-04-25 22:08:40 +00:00
$FolderBrowserDialog1 . ShowDialog ( )
if ( $FolderBrowserDialog1 . SelectedPath )
{
$p = $FolderBrowserDialog1 . SelectedPath
2016-05-05 21:13:38 +00:00
switch ( $switch )
2016-04-25 22:08:40 +00:00
{
1 # Location of Arma 3
{
$TextBox1 . Text = $p
$tp = Join-Path $p " \Arma3.exe "
if ( ! ( Test-Path $tp ) )
{
[ System.Windows.Forms.MessageBox ] :: Show ( ( $tp + " Not found. " ) , " Warning " )
}
}
2016-05-02 16:57:28 +00:00
2016-04-25 22:08:40 +00:00
2 # Location of Public Github
{
$TextBox2 . Text = $p
$tp = Join-Path $p " \Sources "
if ( ! ( Test-Path $tp ) )
{
2016-05-05 21:13:38 +00:00
[ System.Windows.Forms.MessageBox ] :: Show ( ( $tp + " Not found. " ) , " Warning " )
}
else
{
$ListView1 . Items . Clear ( )
fnc_populateListView
2016-04-25 22:08:40 +00:00
}
}
2016-05-02 16:57:28 +00:00
2016-04-25 22:08:40 +00:00
3 # Location of Addob Builder
{
$TextBox3 . Text = $p
$tp = Join-Path $p " \AddonBuilder.exe "
if ( ! ( Test-Path $tp ) )
{
2016-05-05 21:13:38 +00:00
[ System.Windows.Forms.MessageBox ] :: Show ( ( $tp + " Not found. " ) , " Warning " )
2016-04-25 22:08:40 +00:00
}
}
2016-05-02 16:57:28 +00:00
2016-04-25 22:08:40 +00:00
4 # Location of Private Github
{
$TextBox4 . Text = $p
2016-05-18 19:33:27 +00:00
$tp = Join-Path $p " \Sources "
2016-04-25 22:08:40 +00:00
if ( ! ( Test-Path $tp ) )
{
2016-05-05 21:13:38 +00:00
[ System.Windows.Forms.MessageBox ] :: Show ( ( $tp + " Not found. " ) , " Warning " )
}
else
{
$ListView1 . Items . Clear ( )
fnc_populateListView
}
}
5 # Location of Packed missions
{
$TextBox9 . Text = $p
if ( ! ( Test-Path $p ) )
{
[ System.Windows.Forms.MessageBox ] :: Show ( ( $tp + " Not found. " ) , " Warning " )
}
}
6 # Location of Packed missions
{
$TextBox10 . Text = $p
if ( ! ( Test-Path $p ) )
{
[ System.Windows.Forms.MessageBox ] :: Show ( ( $tp + " Not found. " ) , " Warning " )
2016-04-25 22:08:40 +00:00
}
}
2016-05-16 23:47:34 +00:00
7 # Location of Addob Builder
{
$TextBox11 . Text = $p
$tp = Join-Path $p " \DSCreateKey.exe "
if ( ! ( Test-Path $tp ) )
{
[ System.Windows.Forms.MessageBox ] :: Show ( ( $tp + " Not found. " ) , " Warning " )
}
}
2016-04-25 22:08:40 +00:00
}
$FolderBrowserDialog1 . SelectedPath = $null
}
}
2016-05-02 16:57:28 +00:00
function fnc_selectAll($boo )
{
foreach ( $x in $Script:listarr )
{
$x . checked = $boo
}
}
2016-05-05 21:13:38 +00:00
function fnc_selectSelected
{
foreach ( $x in $Script:listarr )
{
$x . checked = $x . selected
}
}
function fnc_devEnableDisable
{
$cbstate = $CheckBox1 . Checked
2016-05-18 20:25:54 +00:00
2016-05-05 21:13:38 +00:00
$TextBox6 . Enabled = $cbstate
$TextBox7 . Enabled = $cbstate
$TextBox8 . Enabled = $cbstate
2016-05-18 16:48:48 +00:00
$TextBox13 . Enabled = $cbstate
$TextBox11 . Enabled = $cbstate
$TextBoxPboPrefix . Enabled = $cbstate
$TextBoxBISignPrefix . Enabled = $cbstate
2016-05-18 20:25:54 +00:00
2016-05-05 21:13:38 +00:00
$Button15 . Enabled = $cbstate
$Button12 . Enabled = $cbstate
2016-05-18 16:48:48 +00:00
$Button17 . Enabled = $cbstate
2016-05-08 21:46:57 +00:00
$ComboBox1 . Enabled = $cbstate
2016-05-18 16:48:48 +00:00
2016-05-08 21:46:57 +00:00
$ListView1 . Items . Clear ( )
fnc_populateListView
2016-05-05 21:13:38 +00:00
}
2016-05-18 16:48:48 +00:00
function fnc_outputmodcpp
{
$Output = Join-Path $TextBox1 . Text $ComboBox1 . SelectedItem
$Out = @ (
'dir = "@Epoch";'
'name = "Epoch Mod ' + $Textbox6 . Text + '";'
'actionName = "Website";'
'picture = "mod.paa";'
'action = "http://www.epochmod.com";'
'overview = "Open world survival mod set in the year 2035, Just two years after the mass extinction of billions of people. Those that remain are left with remnants of a once technological society. Try to survive, build, or explore your way through the harsh dynamic environment.";'
)
$Out | Out-File ( Join-Path $Output " mod.cpp " )
}
2016-05-05 21:13:38 +00:00
function fnc_settingsSave
{
$Out = @ (
$ComboBox1 . SelectedIndex
$TextBox1 . Text
$TextBox3 . Text
$TextBox2 . Text
$TextBox9 . Text
$TextBox1 . Text
$TextBox10 . Text
$TextBox4 . Text
$CheckBox1 . Checked
2016-05-16 23:47:34 +00:00
$TextBox11 . Text
$TextBoxPboPrefix . Text
$TextBoxBISignPrefix . Text
2016-06-17 17:55:33 +00:00
$CheckBox2 . Checked
2016-05-05 21:13:38 +00:00
)
$Out | Out-File $TextBox5 . Text
}
function fnc_settingsLoad
{
2016-05-08 21:46:57 +00:00
if ( Test-Path $TextBox5 . Text )
2016-05-05 21:13:38 +00:00
{
2016-05-29 14:08:56 +00:00
Write-Host @ ( " Loading application settings from: " , $TextBox5 . Text ) -BackgroundColor darkcyan -ForegroundColor cyan
2016-05-05 21:13:38 +00:00
$in = Get-Content $TextBox5 . Text
2016-05-29 14:08:56 +00:00
2016-05-05 21:13:38 +00:00
$ComboBox1 . SelectedIndex = $in [ 0 ]
$TextBox1 . Text = $in [ 1 ]
$TextBox3 . Text = $in [ 2 ]
$TextBox2 . Text = $in [ 3 ]
$TextBox9 . Text = $in [ 4 ]
$TextBox1 . Text = $in [ 5 ]
$TextBox10 . Text = $in [ 6 ]
$TextBox4 . Text = $in [ 7 ]
2016-05-29 14:08:56 +00:00
2016-05-08 21:46:57 +00:00
#Hacky Convert str to bool
$state = if ( $in [ 8 ] -eq " True " ) { $true } else { $false }
$CheckBox1 . Checked = $state
2016-05-29 14:08:56 +00:00
2016-05-16 23:47:34 +00:00
$TextBox11 . Text = $in [ 9 ]
2016-05-29 14:08:56 +00:00
2016-05-16 23:47:34 +00:00
$TextBoxPboPrefix . Text = if ( $in [ 10 ] ) { $in [ 10 ] } else { " x\addons " }
$TextBoxBISignPrefix . Text = if ( $in [ 11 ] ) { $in [ 11 ] } else { " epoch " }
2016-06-17 17:55:33 +00:00
$state = if ( $in [ 12 ] -eq " True " ) { $true } else { $false }
$CheckBox2 . Checked = $state
2016-05-29 14:08:56 +00:00
}
else
{
Write-Host " Settings file not found, please save your changes under SETTINGS tab! " -BackgroundColor darkred -ForegroundColor red
2016-05-08 21:46:57 +00:00
}
}
function fnc_CreatePBO
{
2016-05-18 16:48:48 +00:00
2016-05-16 23:47:34 +00:00
#
2016-05-18 16:48:48 +00:00
$signName = ( $TextBoxBISignPrefix . Text + $TextBox13 . Text )
2016-05-16 23:47:34 +00:00
$signFileName = ( $signName + " .biprivatekey " )
$signfile = Join-Path $TextBox11 . Text $signFileName
# make privatekey if it does not exist
2016-05-18 16:48:48 +00:00
if ( ! ( Test-Path $signfile ) )
{
2016-05-16 23:47:34 +00:00
$createKeyExecutable = Join-Path $TextBox11 . Text " DSCreateKey.exe "
$argz = @ ( $signName )
2016-05-23 20:54:08 +00:00
Start-Process -FilePath $createKeyExecutable -WorkingDirectory $TextBox11 . Text -ArgumentList $argz -WindowStyle Hidden -Wait
2016-05-29 14:08:56 +00:00
Write-Host @ ( " Creating new Private Key: " , $signfile ) -BackgroundColor darkcyan -ForegroundColor cyan
2016-05-16 23:47:34 +00:00
}
2016-05-18 16:48:48 +00:00
fnc_outputmodcpp
# increase build numbers
$incrementClientBuild = 1
$incrementServerBuild = 1
2016-05-16 23:47:34 +00:00
2016-05-08 21:46:57 +00:00
$Bob = Join-Path $TextBox3 . Text " \AddonBuilder.exe "
$includes = " P:\includes.txt "
2016-05-29 14:08:56 +00:00
if ( ! ( Test-Path $includes ) )
{
Write-Host @ ( " Creating new includes file: " , $includes ) -BackgroundColor darkcyan -ForegroundColor cyan
" *.xml;*.pac;*.paa;*.sqf;*.sqs;*.bikb;*.fsm;*.wss;*.ogg;*.wav;*.fxy;*.csv;*.html;*.lip;*.txt;*.wrp;*.bisurf;*.rvmat;*.sqm;*.ext;*.hpp " | Out-File $includes -Encoding " UTF8 "
}
2016-05-11 20:38:52 +00:00
foreach ( $i in $Script:listarr ) { if ( $i . checked ) { $ct + + } }
$cnt = 100 / $ct
2016-05-29 14:08:56 +00:00
Write-Host " Building Selected PBO files ... " -BackgroundColor darkcyan -ForegroundColor cyan
2016-05-08 21:46:57 +00:00
foreach ( $x in $Script:listarr )
2016-05-11 20:38:52 +00:00
{
2016-05-08 21:46:57 +00:00
if ( $x . checked )
{
$name = $x . subitems [ 0 ] . Text
2016-05-11 20:38:52 +00:00
$tmp = " P:\ $name "
$ProgressBar1 . Value = $ProgressBar1 . Value + [ Math ] :: Floor ( $cnt )
$ProgressBar1 . Refresh ( )
2016-05-08 21:46:57 +00:00
switch ( $x . group . header )
{
" Server "
{
$Output = $TextBox10 . Text
if ( Test-Path $tmp ) { Remove-Item -Path $tmp -Recurse }
Copy-Item -Path $x . subitems [ 1 ] . Text -Destination $tmp -Recurse
2016-05-18 16:48:48 +00:00
fnc_updateBuildNumber $TextBox2 . Text ( $x . subitems [ 1 ] . Text ) $incrementServerBuild
$incrementServerBuild = 0
2016-06-17 17:55:33 +00:00
if ( $checkbox2 . Checked )
{
$txt = " Building Server PBO ( " + $x . subitems [ 0 ] . Text + " .pbo) ... Please wait "
$tree = Join-Path $x . subitems [ 1 ] . Text " treeView.txt "
2016-06-18 02:14:08 +00:00
tree / A / F $tmp > $tree
2016-06-17 17:55:33 +00:00
fnc_pboWriteHostAndTree $txt $tree
}
2016-05-29 14:08:56 +00:00
$argz = @ ( $tmp , ( '"' + $Output + '"' ) , " -packonly " , " -clear " , " -prefix= $name " , " -project=P:\ " , " -include= $includes " )
2016-05-23 20:54:08 +00:00
Start-Process -FilePath $Bob -ArgumentList $argz -WindowStyle Hidden -Wait
2016-05-08 21:46:57 +00:00
}
" Client "
{
2016-05-16 23:47:34 +00:00
$name = Join-Path $TextBoxPboPrefix . Text $name
2016-05-18 16:48:48 +00:00
$tmp = " P:\ $name "
2016-05-16 23:47:34 +00:00
2016-05-18 16:48:48 +00:00
fnc_updateBuildNumber $TextBox4 . Text ( $x . subitems [ 1 ] . Text ) $incrementClientBuild
$incrementClientBuild = 0
2016-05-08 21:46:57 +00:00
$Output = $TextBox1 . Text + " \ " + $ComboBox1 . SelectedItem + " \Addons "
if ( Test-Path $tmp ) { Remove-Item -Path $tmp -Recurse }
Copy-Item -Path $x . subitems [ 1 ] . Text -Destination $tmp -Recurse
2016-05-25 19:53:27 +00:00
2016-06-17 17:55:33 +00:00
if ( $checkbox2 . Checked )
{
$txt = " Building Client PBO ( " + $x . subitems [ 0 ] . Text + " .pbo) ... Please wait "
$tree = Join-Path $x . subitems [ 1 ] . Text " treeView.txt "
2016-06-18 02:14:08 +00:00
tree / A / F $tmp > $tree
2016-06-17 17:55:33 +00:00
fnc_pboWriteHostAndTree $txt $tree
}
2016-05-16 23:47:34 +00:00
$signFlag = " "
if ( Test-Path $signfile ) { $signFlag = ( '-sign="' + $signfile + '"' ) }
2016-05-18 16:48:48 +00:00
$argz = @ ( $tmp , ( '"' + $Output + '"' ) , " -clear " , " -prefix= $name " , " -project=P:\ " , " -include= $includes " , $signFlag )
2016-05-23 20:54:08 +00:00
Start-Process -FilePath $Bob -ArgumentList $argz -WindowStyle Hidden -Wait
2016-05-08 21:46:57 +00:00
}
" Missions "
{
$Output = $TextBox9 . Text
$src = $TextBox2 . Text + " \Sources\ "
2016-05-18 16:48:48 +00:00
fnc_updateBuildNumber $TextBox2 . Text ( $src + " epoch_config " ) $incrementServerBuild
$incrementServerBuild = 0
2016-05-08 21:46:57 +00:00
if ( Test-Path $tmp ) { Remove-Item -Path $tmp -Recurse }
Copy-Item -Path $x . subitems [ 1 ] . Text -Destination $tmp -Recurse
Copy-Item ( $src + " epoch_code " ) -Destination $tmp -Recurse
Copy-Item ( $src + " epoch_config " ) -Destination $tmp -Recurse
Copy-Item ( $src + " description.ext " ) -Destination $tmp
2016-05-25 19:53:27 +00:00
2016-06-17 17:55:33 +00:00
if ( $checkbox2 . Checked )
{
$txt = " Building MPMission PBO ( " + $x . subitems [ 0 ] . Text + " .pbo) ... Please wait "
$tree = Join-Path $x . subitems [ 1 ] . Text " treeView.txt "
2016-06-18 02:14:08 +00:00
tree / A / F $tmp > $tree
2016-06-17 17:55:33 +00:00
fnc_pboWriteHostAndTree $txt $tree
}
2016-05-08 21:46:57 +00:00
2016-05-11 20:38:52 +00:00
$argz = @ ( $tmp , ( '"' + $Output + '"' ) , " -clear " , " -prefix=\ " , " -project=P:\ " , " -include= $includes " )
2016-05-23 20:54:08 +00:00
Start-Process -FilePath $Bob -ArgumentList $argz -WindowStyle Hidden -Wait
2016-05-08 21:46:57 +00:00
}
}
#cleanup
if ( Test-Path $tmp ) { Remove-Item -Path $tmp -Recurse }
2016-05-11 20:38:52 +00:00
if ( Test-Path ( $env:temp + " \ " + $name ) ) { Remove-Item -Path ( $env:temp + " \ " + $name ) -Recurse }
2016-05-08 21:46:57 +00:00
}
2016-05-05 21:13:38 +00:00
}
2016-05-11 20:38:52 +00:00
$ProgressBar1 . Value = 0
$ProgressBar1 . Refresh ( )
2016-05-29 14:08:56 +00:00
Write-Host " All done! " -BackgroundColor darkcyan -ForegroundColor cyan
}
function fnc_pboWriteHostAndTree ( $txt , $tree )
{
Write-Host " "
Write-Host $txt -ForegroundColor yellow
foreach ( $w in ( Get-Content $tree ) )
{
Write-Host $w
}
$Label4 . Text = $txt
$Label4 . Refresh ( )
2016-05-05 21:13:38 +00:00
}
2016-05-08 21:46:57 +00:00
2016-04-25 22:08:40 +00:00
# Event Handlers
$Button1 . Add_Click ( { fnc_getSetPath ( 1 ) } )
$Button2 . Add_Click ( { fnc_getSetPath ( 2 ) } )
$Button3 . Add_Click ( { fnc_getSetPath ( 3 ) } )
$Button4 . Add_Click ( { fnc_getSetPath ( 4 ) } )
2016-05-05 21:13:38 +00:00
$Button13 . Add_Click ( { fnc_getSetPath ( 5 ) } )
$Button14 . Add_Click ( { fnc_getSetPath ( 6 ) } )
2016-05-16 23:47:34 +00:00
$Button17 . Add_Click ( { fnc_getSetPath ( 7 ) } )
2016-05-08 21:46:57 +00:00
$Button6 . Add_Click ( { fnc_CreatePBO } )
2016-05-05 21:13:38 +00:00
2016-05-02 16:57:28 +00:00
$Button7 . Add_Click ( { fnc_selectAll ( $true ) } )
$Button5 . Add_Click ( { fnc_selectAll ( $false ) } )
2016-05-05 21:13:38 +00:00
$Button12 . Add_Click ( { fnc_updateVersions } )
$Button15 . Add_Click ( { fnc_reloadVersions } )
$Button16 . Add_Click ( { fnc_selectSelected } )
$Button8 . Add_Click ( { Remove-Item -Path $TextBox5 . Text -ErrorAction SilentlyContinue } )
$Button9 . Add_Click ( { fnc_settingsSave } )
$CheckBox1 . Add_CheckedChanged ( { fnc_devEnableDisable } )
2016-04-25 22:08:40 +00:00
# Main code
2016-05-05 21:13:38 +00:00
$mods = Get-ChildItem $TextBox1 . Text -directory
$modsarr = @ ( )
foreach ( $x in $mods )
{
if ( Test-Path ( $x . fullname + " \mod.cpp " ) )
{
$modsarr + = , $x . name
}
}
$ComboBox1 . Items . AddRange ( [ System.Object[] ] ( $modsarr ) )
2016-04-25 22:08:40 +00:00
2016-05-05 21:13:38 +00:00
fnc_settingsLoad
2016-04-25 22:08:40 +00:00
# Fake endless loop, spawned thread
$Timer1 . Start ( )
$Timer1 . Interval = 1000
$Timer1 . Add_tick ( { fnc_enableControls } )
if ( $TextBox2 . Text )
{
fnc_populateListView
}
2016-05-05 21:13:38 +00:00
fnc_devEnableDisable
fnc_reloadVersions
2016-05-16 23:47:34 +00:00
2016-05-18 16:48:48 +00:00
$signName = ( $TextBoxBISignPrefix . Text + $TextBox13 . Text )
2016-05-16 23:47:34 +00:00
$signFileName = ( $signName + " .biprivatekey " )
$signfile = Join-Path $TextBox11 . Text $signFileName
$signFlag = " "
2016-05-18 16:48:48 +00:00
if ( Test-Path $signfile ) {
$Label13 . Text = $signfile
$signFlag = ( '-sign="' + $signfile + '"' )
}
else
{
$Label13 . Text = " Path Not Found! "
}
2016-04-25 22:08:40 +00:00
#endregion
#region Event Loop
function Main {
[ System.Windows.Forms.Application ] :: EnableVisualStyles ( )
[ System.Windows.Forms.Application ] :: Run ( $Form1 )
}
#endregion
#endregion
#region Event Handlers
Main # This call must remain below all other event functions
#endregion
# ========================================================
#
# Script Information
#
2016-05-18 16:48:48 +00:00
# Title: Epoch PBO Packing Tool - EpochMod.com
2016-04-25 22:08:40 +00:00
# Author: Raimonds Virtoss - Raymix @ Epoch UI code
2016-05-18 16:48:48 +00:00
# Contributors: Aaron Clark - [VB]AWOL
2016-04-25 22:08:40 +00:00
# Originally created: 4/24/2016 - 17:56:19
# Description: Form based (GUI) Tool to Pack or binarize Epoch PBOs. Scans your github repos and automatically creates a list of relevant folders for packaging
# Usage: .EXE file will be provided when script is done, for now simply right click it and run with powershell.
#
# ========================================================