├── PUBG-MapChooser ├── obj │ └── Debug │ │ ├── PUBG-MapChooser.csproj.CoreCompileInputs.cache │ │ ├── DesignTimeResolveAssemblyReferences.cache │ │ └── DesignTimeResolveAssemblyReferencesInput.cache ├── Program.cs ├── Properties │ ├── Settings.settings │ ├── AssemblyInfo.cs │ ├── Settings.Designer.cs │ ├── Resources.Designer.cs │ └── Resources.resx ├── app.config ├── PUBG-Map-Chooser.csproj ├── Main.Designer.cs ├── Main.resx └── Main.cs ├── README.md ├── PUBG-Map-Chooser.sln ├── .gitattributes └── .gitignore /PUBG-MapChooser/obj/Debug/PUBG-MapChooser.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | ba98e4c0509fe5db52905af8154cec004e3b1c30 2 | -------------------------------------------------------------------------------- /PUBG-MapChooser/obj/Debug/DesignTimeResolveAssemblyReferences.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psegovias/PUBG-Map-Chooser/master/PUBG-MapChooser/obj/Debug/DesignTimeResolveAssemblyReferences.cache -------------------------------------------------------------------------------- /PUBG-MapChooser/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/psegovias/PUBG-Map-Chooser/master/PUBG-MapChooser/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PUBG-Map-Chooser 2 | Allows you to disable and enable map files for PUBG 3 | 4 | Check maps you want to play and uncheck the ones you don't. Recheck them and to enable them again. 5 | After disabling a map, when PUBG attempts to join a server using that map, it will kick you without delay 6 | ![](https://i.imgur.com/RINUmrM.png) 7 | I take no responiblity for bans now or in the future. 8 | Based of of this comment on reddit 9 | https://www.reddit.com/r/PUBATTLEGROUNDS/comments/7ppjur/can_we_please_have_the_option_to_choose_which_map/dsj0b1a/ 10 | -------------------------------------------------------------------------------- /PUBG-MapChooser/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Windows.Forms; 4 | 5 | namespace PUBG_MapChooser 6 | { 7 | static class Program 8 | { 9 | /// 10 | /// The main entry point for the application. 11 | /// 12 | [STAThread] 13 | static void Main() 14 | { 15 | Application.EnableVisualStyles(); 16 | Application.SetCompatibleTextRenderingDefault(false); 17 | Application.Run(new Main()); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /PUBG-MapChooser/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /PUBG-MapChooser/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /PUBG-Map-Chooser.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.27130.2010 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PUBG-Map-Chooser", "PUBG-MapChooser\PUBG-Map-Chooser.csproj", "{BD071F31-F882-4276-A13E-08C3303B8D9C}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {BD071F31-F882-4276-A13E-08C3303B8D9C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {BD071F31-F882-4276-A13E-08C3303B8D9C}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {BD071F31-F882-4276-A13E-08C3303B8D9C}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {BD071F31-F882-4276-A13E-08C3303B8D9C}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | GlobalSection(ExtensibilityGlobals) = postSolution 23 | SolutionGuid = {07FC87DF-6155-4382-967F-E35DD0A49645} 24 | EndGlobalSection 25 | EndGlobal 26 | -------------------------------------------------------------------------------- /PUBG-MapChooser/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("PUBG-MapChooser")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("PUBG-MapChooser")] 13 | [assembly: AssemblyCopyright("Copyright © 2018")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("bd071f31-f882-4276-a13e-08c3303b8d9c")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /PUBG-MapChooser/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace PUBG_MapChooser.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.5.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | 26 | [global::System.Configuration.UserScopedSettingAttribute()] 27 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 28 | [global::System.Configuration.DefaultSettingValueAttribute("")] 29 | public string steam_location { 30 | get { 31 | return ((string)(this["steam_location"])); 32 | } 33 | set { 34 | this["steam_location"] = value; 35 | } 36 | } 37 | 38 | [global::System.Configuration.UserScopedSettingAttribute()] 39 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 40 | [global::System.Configuration.DefaultSettingValueAttribute("")] 41 | public string pubg_map_location { 42 | get { 43 | return ((string)(this["pubg_map_location"])); 44 | } 45 | set { 46 | this["pubg_map_location"] = value; 47 | } 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text=auto 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /PUBG-MapChooser/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace PUBG_MapChooser.Properties 12 | { 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources 26 | { 27 | 28 | private static global::System.Resources.ResourceManager resourceMan; 29 | 30 | private static global::System.Globalization.CultureInfo resourceCulture; 31 | 32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 33 | internal Resources() 34 | { 35 | } 36 | 37 | /// 38 | /// Returns the cached ResourceManager instance used by this class. 39 | /// 40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 41 | internal static global::System.Resources.ResourceManager ResourceManager 42 | { 43 | get 44 | { 45 | if ((resourceMan == null)) 46 | { 47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("PUBG_MapChooser.Properties.Resources", typeof(Resources).Assembly); 48 | resourceMan = temp; 49 | } 50 | return resourceMan; 51 | } 52 | } 53 | 54 | /// 55 | /// Overrides the current thread's CurrentUICulture property for all 56 | /// resource lookups using this strongly typed resource class. 57 | /// 58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 59 | internal static global::System.Globalization.CultureInfo Culture 60 | { 61 | get 62 | { 63 | return resourceCulture; 64 | } 65 | set 66 | { 67 | resourceCulture = value; 68 | } 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /PUBG-MapChooser/PUBG-Map-Chooser.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {BD071F31-F882-4276-A13E-08C3303B8D9C} 8 | WinExe 9 | PUBG_MapChooser 10 | PUBG-MapChooser 11 | v3.0 12 | 512 13 | false 14 | C:\Users\Master\Desktop\ 15 | true 16 | Disk 17 | false 18 | Foreground 19 | 7 20 | Days 21 | false 22 | false 23 | true 24 | 1 25 | 1.0.0.%2a 26 | false 27 | true 28 | true 29 | 30 | 31 | AnyCPU 32 | true 33 | full 34 | false 35 | bin\Debug\ 36 | DEBUG;TRACE 37 | prompt 38 | 4 39 | 40 | 41 | AnyCPU 42 | pdbonly 43 | true 44 | bin\Release\ 45 | TRACE 46 | prompt 47 | 4 48 | 49 | 50 | D4589BD9692ED9281D9A6A0E0E35E10494ACBD69 51 | 52 | 53 | PUBG-Map-Chooser_TemporaryKey.pfx 54 | 55 | 56 | true 57 | 58 | 59 | true 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | Form 72 | 73 | 74 | Main.cs 75 | 76 | 77 | 78 | 79 | Main.cs 80 | 81 | 82 | ResXFileCodeGenerator 83 | Resources.Designer.cs 84 | Designer 85 | 86 | 87 | True 88 | Resources.resx 89 | 90 | 91 | 92 | SettingsSingleFileGenerator 93 | Settings.Designer.cs 94 | 95 | 96 | True 97 | Settings.settings 98 | True 99 | 100 | 101 | 102 | 103 | False 104 | .NET Framework 3.5 SP1 105 | true 106 | 107 | 108 | 109 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.userosscache 8 | *.sln.docstates 9 | 10 | # User-specific files (MonoDevelop/Xamarin Studio) 11 | *.userprefs 12 | 13 | # Build results 14 | [Dd]ebug/ 15 | [Dd]ebugPublic/ 16 | [Rr]elease/ 17 | [Rr]eleases/ 18 | x64/ 19 | x86/ 20 | bld/ 21 | [Bb]in/ 22 | [Oo]bj/ 23 | [Ll]og/ 24 | 25 | # Visual Studio 2015 cache/options directory 26 | .vs/ 27 | # Uncomment if you have tasks that create the project's static files in wwwroot 28 | #wwwroot/ 29 | 30 | # MSTest test Results 31 | [Tt]est[Rr]esult*/ 32 | [Bb]uild[Ll]og.* 33 | 34 | # NUNIT 35 | *.VisualState.xml 36 | TestResult.xml 37 | 38 | # Build Results of an ATL Project 39 | [Dd]ebugPS/ 40 | [Rr]eleasePS/ 41 | dlldata.c 42 | 43 | # DNX 44 | project.lock.json 45 | project.fragment.lock.json 46 | artifacts/ 47 | 48 | *_i.c 49 | *_p.c 50 | *_i.h 51 | *.ilk 52 | *.meta 53 | *.obj 54 | *.pch 55 | *.pdb 56 | *.pgc 57 | *.pgd 58 | *.rsp 59 | *.sbr 60 | *.tlb 61 | *.tli 62 | *.tlh 63 | *.tmp 64 | *.tmp_proj 65 | *.log 66 | *.vspscc 67 | *.vssscc 68 | .builds 69 | *.pidb 70 | *.svclog 71 | *.scc 72 | 73 | # Chutzpah Test files 74 | _Chutzpah* 75 | 76 | # Visual C++ cache files 77 | ipch/ 78 | *.aps 79 | *.ncb 80 | *.opendb 81 | *.opensdf 82 | *.sdf 83 | *.cachefile 84 | *.VC.db 85 | *.VC.VC.opendb 86 | 87 | # Visual Studio profiler 88 | *.psess 89 | *.vsp 90 | *.vspx 91 | *.sap 92 | 93 | # TFS 2012 Local Workspace 94 | $tf/ 95 | 96 | # Guidance Automation Toolkit 97 | *.gpState 98 | 99 | # ReSharper is a .NET coding add-in 100 | _ReSharper*/ 101 | *.[Rr]e[Ss]harper 102 | *.DotSettings.user 103 | 104 | # JustCode is a .NET coding add-in 105 | .JustCode 106 | 107 | # TeamCity is a build add-in 108 | _TeamCity* 109 | 110 | # DotCover is a Code Coverage Tool 111 | *.dotCover 112 | 113 | # NCrunch 114 | _NCrunch_* 115 | .*crunch*.local.xml 116 | nCrunchTemp_* 117 | 118 | # MightyMoose 119 | *.mm.* 120 | AutoTest.Net/ 121 | 122 | # Web workbench (sass) 123 | .sass-cache/ 124 | 125 | # Installshield output folder 126 | [Ee]xpress/ 127 | 128 | # DocProject is a documentation generator add-in 129 | DocProject/buildhelp/ 130 | DocProject/Help/*.HxT 131 | DocProject/Help/*.HxC 132 | DocProject/Help/*.hhc 133 | DocProject/Help/*.hhk 134 | DocProject/Help/*.hhp 135 | DocProject/Help/Html2 136 | DocProject/Help/html 137 | 138 | # Click-Once directory 139 | publish/ 140 | 141 | # Publish Web Output 142 | *.[Pp]ublish.xml 143 | *.azurePubxml 144 | # TODO: Comment the next line if you want to checkin your web deploy settings 145 | # but database connection strings (with potential passwords) will be unencrypted 146 | #*.pubxml 147 | *.publishproj 148 | 149 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 150 | # checkin your Azure Web App publish settings, but sensitive information contained 151 | # in these scripts will be unencrypted 152 | PublishScripts/ 153 | 154 | # NuGet Packages 155 | *.nupkg 156 | # The packages folder can be ignored because of Package Restore 157 | **/packages/* 158 | # except build/, which is used as an MSBuild target. 159 | !**/packages/build/ 160 | # Uncomment if necessary however generally it will be regenerated when needed 161 | #!**/packages/repositories.config 162 | # NuGet v3's project.json files produces more ignoreable files 163 | *.nuget.props 164 | *.nuget.targets 165 | 166 | # Microsoft Azure Build Output 167 | csx/ 168 | *.build.csdef 169 | 170 | # Microsoft Azure Emulator 171 | ecf/ 172 | rcf/ 173 | 174 | # Windows Store app package directories and files 175 | AppPackages/ 176 | BundleArtifacts/ 177 | Package.StoreAssociation.xml 178 | _pkginfo.txt 179 | 180 | # Visual Studio cache files 181 | # files ending in .cache can be ignored 182 | *.[Cc]ache 183 | # but keep track of directories ending in .cache 184 | !*.[Cc]ache/ 185 | 186 | # Others 187 | ClientBin/ 188 | ~$* 189 | *~ 190 | *.dbmdl 191 | *.dbproj.schemaview 192 | *.jfm 193 | *.pfx 194 | *.publishsettings 195 | node_modules/ 196 | orleans.codegen.cs 197 | 198 | # Since there are multiple workflows, uncomment next line to ignore bower_components 199 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 200 | #bower_components/ 201 | 202 | # RIA/Silverlight projects 203 | Generated_Code/ 204 | 205 | # Backup & report files from converting an old project file 206 | # to a newer Visual Studio version. Backup files are not needed, 207 | # because we have git ;-) 208 | _UpgradeReport_Files/ 209 | Backup*/ 210 | UpgradeLog*.XML 211 | UpgradeLog*.htm 212 | 213 | # SQL Server files 214 | *.mdf 215 | *.ldf 216 | 217 | # Business Intelligence projects 218 | *.rdl.data 219 | *.bim.layout 220 | *.bim_*.settings 221 | 222 | # Microsoft Fakes 223 | FakesAssemblies/ 224 | 225 | # GhostDoc plugin setting file 226 | *.GhostDoc.xml 227 | 228 | # Node.js Tools for Visual Studio 229 | .ntvs_analysis.dat 230 | 231 | # Visual Studio 6 build log 232 | *.plg 233 | 234 | # Visual Studio 6 workspace options file 235 | *.opt 236 | 237 | # Visual Studio LightSwitch build output 238 | **/*.HTMLClient/GeneratedArtifacts 239 | **/*.DesktopClient/GeneratedArtifacts 240 | **/*.DesktopClient/ModelManifest.xml 241 | **/*.Server/GeneratedArtifacts 242 | **/*.Server/ModelManifest.xml 243 | _Pvt_Extensions 244 | 245 | # Paket dependency manager 246 | .paket/paket.exe 247 | paket-files/ 248 | 249 | # FAKE - F# Make 250 | .fake/ 251 | 252 | # JetBrains Rider 253 | .idea/ 254 | *.sln.iml 255 | 256 | # CodeRush 257 | .cr/ 258 | 259 | # Python Tools for Visual Studio (PTVS) 260 | __pycache__/ 261 | *.pyc -------------------------------------------------------------------------------- /PUBG-MapChooser/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /PUBG-MapChooser/Main.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace PUBG_MapChooser 2 | { 3 | partial class Main 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Main)); 32 | this.setMaps = new System.Windows.Forms.Button(); 33 | this.erangelMapCheck = new System.Windows.Forms.CheckBox(); 34 | this.miramarMapCheck = new System.Windows.Forms.CheckBox(); 35 | this.richTextBox1 = new System.Windows.Forms.RichTextBox(); 36 | this.label1 = new System.Windows.Forms.Label(); 37 | this.resetSettings = new System.Windows.Forms.Button(); 38 | this.SuspendLayout(); 39 | // 40 | // setMaps 41 | // 42 | this.setMaps.Location = new System.Drawing.Point(12, 276); 43 | this.setMaps.Name = "setMaps"; 44 | this.setMaps.Size = new System.Drawing.Size(377, 23); 45 | this.setMaps.TabIndex = 0; 46 | this.setMaps.Text = "Set maps to use"; 47 | this.setMaps.UseVisualStyleBackColor = true; 48 | this.setMaps.Click += new System.EventHandler(this.setMaps_Click); 49 | // 50 | // erangelMapCheck 51 | // 52 | this.erangelMapCheck.AutoSize = true; 53 | this.erangelMapCheck.Checked = true; 54 | this.erangelMapCheck.CheckState = System.Windows.Forms.CheckState.Checked; 55 | this.erangelMapCheck.Location = new System.Drawing.Point(12, 254); 56 | this.erangelMapCheck.Name = "erangelMapCheck"; 57 | this.erangelMapCheck.Size = new System.Drawing.Size(62, 17); 58 | this.erangelMapCheck.TabIndex = 1; 59 | this.erangelMapCheck.Text = "Erangel"; 60 | this.erangelMapCheck.UseVisualStyleBackColor = true; 61 | // 62 | // miramarMapCheck 63 | // 64 | this.miramarMapCheck.AutoSize = true; 65 | this.miramarMapCheck.Checked = true; 66 | this.miramarMapCheck.CheckState = System.Windows.Forms.CheckState.Checked; 67 | this.miramarMapCheck.Location = new System.Drawing.Point(327, 254); 68 | this.miramarMapCheck.Name = "miramarMapCheck"; 69 | this.miramarMapCheck.RightToLeft = System.Windows.Forms.RightToLeft.Yes; 70 | this.miramarMapCheck.Size = new System.Drawing.Size(63, 17); 71 | this.miramarMapCheck.TabIndex = 2; 72 | this.miramarMapCheck.Text = "Miramar"; 73 | this.miramarMapCheck.UseVisualStyleBackColor = true; 74 | // 75 | // richTextBox1 76 | // 77 | this.richTextBox1.Location = new System.Drawing.Point(12, 12); 78 | this.richTextBox1.Name = "richTextBox1"; 79 | this.richTextBox1.Size = new System.Drawing.Size(378, 208); 80 | this.richTextBox1.TabIndex = 3; 81 | this.richTextBox1.Text = resources.GetString("richTextBox1.Text"); 82 | // 83 | // label1 84 | // 85 | this.label1.AutoSize = true; 86 | this.label1.Location = new System.Drawing.Point(33, 222); 87 | this.label1.Name = "label1"; 88 | this.label1.Size = new System.Drawing.Size(342, 13); 89 | this.label1.TabIndex = 4; 90 | this.label1.Text = "Select which maps you want to play below and click \"Set maps to use\""; 91 | // 92 | // resetSettings 93 | // 94 | this.resetSettings.Location = new System.Drawing.Point(81, 247); 95 | this.resetSettings.Name = "resetSettings"; 96 | this.resetSettings.Size = new System.Drawing.Size(240, 23); 97 | this.resetSettings.TabIndex = 5; 98 | this.resetSettings.Text = "Reset Steam Location"; 99 | this.resetSettings.UseVisualStyleBackColor = true; 100 | this.resetSettings.Click += new System.EventHandler(this.resetSettings_Click); 101 | // 102 | // Main 103 | // 104 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 105 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 106 | this.ClientSize = new System.Drawing.Size(402, 308); 107 | this.Controls.Add(this.resetSettings); 108 | this.Controls.Add(this.label1); 109 | this.Controls.Add(this.richTextBox1); 110 | this.Controls.Add(this.miramarMapCheck); 111 | this.Controls.Add(this.erangelMapCheck); 112 | this.Controls.Add(this.setMaps); 113 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; 114 | this.Name = "Main"; 115 | this.Text = "PUBG Map Chooser"; 116 | this.TopMost = true; 117 | this.Load += new System.EventHandler(this.Main_Load); 118 | this.ResumeLayout(false); 119 | this.PerformLayout(); 120 | 121 | } 122 | 123 | #endregion 124 | 125 | private System.Windows.Forms.Button setMaps; 126 | private System.Windows.Forms.CheckBox erangelMapCheck; 127 | private System.Windows.Forms.CheckBox miramarMapCheck; 128 | private System.Windows.Forms.RichTextBox richTextBox1; 129 | private System.Windows.Forms.Label label1; 130 | private System.Windows.Forms.Button resetSettings; 131 | } 132 | } 133 | 134 | -------------------------------------------------------------------------------- /PUBG-MapChooser/Main.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | This app allows you to choose which maps you want to play on PUBG. 122 | 123 | This does not: 124 | -Delete any files 125 | -Edit any files 126 | -Break any rules posted on (https://www.playbattlegrounds.com/rulesOfConduct.pu) 127 | 128 | This: 129 | -Changes map filenames so PUBG can't find then causing PUBG to avoid the servers using the map (If you connect to one, you'll get dumped to the main menu) 130 | 131 | -------------------------------------------------------------------------------- /PUBG-MapChooser/Main.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Data; 5 | using System.Drawing; 6 | using System.IO; 7 | using System.Text; 8 | using System.Windows.Forms; 9 | 10 | namespace PUBG_MapChooser 11 | { 12 | public partial class Main : Form 13 | { 14 | public Main() 15 | { 16 | InitializeComponent(); 17 | } 18 | public string steamloc = ""; 19 | public string pubgmaploc = ""; 20 | public string[] pubgmaplist = { }; 21 | private void Main_Load(object sender, EventArgs e) 22 | { 23 | Properties.Settings.Default.steam_location = ""; 24 | Properties.Settings.Default.pubg_map_location = ""; 25 | Properties.Settings.Default.Save(); 26 | if (Properties.Settings.Default.steam_location == string.Empty) 27 | { 28 | using (var fbd = new FolderBrowserDialog()) 29 | { 30 | fbd.Description = @"Select your Steamapps Install folder where PUBG is installed (usually it's C:\Program Files\Steam\steamapps)"; 31 | DialogResult result = fbd.ShowDialog(); 32 | 33 | if (result == DialogResult.OK) 34 | { 35 | Console.WriteLine(fbd.SelectedPath); 36 | if (fbd.SelectedPath == string.Empty) 37 | { 38 | MessageBox.Show("Steam wasen't selected!", "Error!"); 39 | Application.Exit(); 40 | } 41 | if (Directory.Exists(fbd.SelectedPath + "\\common")) 42 | { 43 | if (Directory.Exists(fbd.SelectedPath + "\\common\\PUBG")) 44 | { 45 | if (Directory.Exists(fbd.SelectedPath + "\\common\\PUBG\\TslGame\\Content\\Paks")) 46 | { 47 | pubgmaploc = steamloc + "\\common\\PUBG\\TslGame\\Content\\Paks"; 48 | steamloc = fbd.SelectedPath; 49 | Properties.Settings.Default.steam_location = steamloc; 50 | Properties.Settings.Default.pubg_map_location = steamloc + pubgmaploc; 51 | Properties.Settings.Default.Save(); 52 | } 53 | } 54 | else 55 | { 56 | MessageBox.Show("PUBG not installed!", "Error!"); 57 | Application.Exit(); 58 | } 59 | } 60 | else 61 | { 62 | MessageBox.Show("Steam Corrupt!", "Error!"); 63 | Application.Exit(); 64 | } 65 | } 66 | else 67 | { 68 | Application.Exit(); 69 | } 70 | } 71 | } 72 | steamloc = Properties.Settings.Default.steam_location; 73 | pubgmaploc = Properties.Settings.Default.pubg_map_location; 74 | Console.WriteLine(steamloc); 75 | Console.WriteLine(pubgmaploc); 76 | } 77 | private void CheckChange() 78 | { 79 | if (!(erangelMapCheck.Checked && miramarMapCheck.Checked)) 80 | { 81 | MessageBox.Show("By disabling both maps, PUBG will refuse to join any servers and won't watch any replays", "Caution!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); 82 | } 83 | } 84 | private void setMaps_Click(object sender, EventArgs e) 85 | { 86 | pubgmaplist = Directory.GetFiles(pubgmaploc); 87 | if (erangelMapCheck.Checked) 88 | { 89 | foreach (string file in pubgmaplist) 90 | { 91 | if (file.Contains("TslGame-WindowsNoEditor_erangel")) 92 | { 93 | if (file.Contains(".pak.disabled")) 94 | { 95 | string oldname = file; 96 | string newname = file.Replace(".pak.disabled", ".pak"); 97 | File.Move(oldname, newname); 98 | } 99 | } 100 | } 101 | } 102 | if (!erangelMapCheck.Checked) 103 | { 104 | foreach (string file in pubgmaplist) 105 | { 106 | if (file.Contains("TslGame-WindowsNoEditor_erangel")) 107 | { 108 | if (!file.Contains(".pak.disabled")) 109 | { 110 | string oldname = file; 111 | string newname = file.Replace(".pak", ".pak.disabled"); 112 | File.Move(oldname, newname); 113 | } 114 | } 115 | } 116 | } 117 | if (miramarMapCheck.Checked) 118 | { 119 | foreach (string file in pubgmaplist) 120 | { 121 | if (file.Contains("TslGame-WindowsNoEditor_desert")) 122 | { 123 | if (file.Contains(".pak.disabled")) 124 | { 125 | string oldname = file; 126 | string newname = file.Replace(".pak.disabled", ".pak"); 127 | File.Move(oldname, newname); 128 | } 129 | } 130 | } 131 | } 132 | if (!miramarMapCheck.Checked) 133 | { 134 | foreach (string file in pubgmaplist) 135 | { 136 | if (file.Contains("TslGame-WindowsNoEditor_desert")) 137 | { 138 | if (!file.Contains(".pak.disabled")) 139 | { 140 | string oldname = file; 141 | string newname = file.Replace(".pak", ".pak.disabled"); 142 | File.Move(oldname, newname); 143 | } 144 | } 145 | } 146 | } 147 | } 148 | 149 | private void resetSettings_Click(object sender, EventArgs e) 150 | { 151 | Properties.Settings.Default.steam_location = ""; 152 | Properties.Settings.Default.pubg_map_location = ""; 153 | Properties.Settings.Default.Save(); 154 | MessageBox.Show("Settings Cleared!", "Closing app!", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); 155 | Application.Exit(); 156 | } 157 | } 158 | } 159 | --------------------------------------------------------------------------------