From 8529343cf7f73e550cd0589bc9b863ec20f175c7 Mon Sep 17 00:00:00 2001 From: DaRealCodeWritten Date: Tue, 18 Aug 2020 19:28:55 -0700 Subject: [PATCH 1/3] Remove InstallChecker --- GameData/BeyondHome/InstallChecker.dll | Bin 13312 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 GameData/BeyondHome/InstallChecker.dll diff --git a/GameData/BeyondHome/InstallChecker.dll b/GameData/BeyondHome/InstallChecker.dll deleted file mode 100644 index 6c04bc6d81cba1607232475a93edfbd44203cdae..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13312 zcmeHO4Qw38b$+`%l1GX<>39-l$(FRTEcvXTBPCIl?Z}d-BPE?B{+LI}b|qCh9@peq z$J_JnQ52Kbpqn2zXp1GIXqMW!nK$pfdGpPiH#57d(Vu=w+C(IR`|Y@%5@BR3-a9_qPvR36yZ8r&3Hjz)G z06MQWx%^SG@?Y>v2(E zUhSf$oa{w~C_+=#bU#N9=<5*E?J$CT#`N>a1msoXtV3>V&%;}Lob|}L|3;oZ7MymEAkRcOB(ce7)^8zRnHM+Y#?jdVdD=UZYv>UkCh3?@D|-J8F945x2q; zdy(9Tr0*>w(HZaDvjuj&?AO5N^PRp-bi+eE0=bt+sgsMwqe|`vehuWVL>uK^Af-;O zE8eB#5?$3A$bF7^g^}N0w7XHRJKnA2KH}FvZhTdv+=of2wU<~GU!{b;>ysh$m7YeS zeWTL#q06hQWC-0CYZRI#r6xoqSI1W?xo7ZtI#xxmY}=7uk*MiHL`fnHbtDq; zMBj7q#D?dRx1qtry7)Sn>i#`AVg09vlAA%@X}V9X3q)VzyrNtA>cN z^>woHI(WYTnnovNTR0m;8?!ID70P6n7;0@WBKIAM^dpcM3B<2g5S(ClTz6f^mX-l# zzORbZs+EJ#hkc$N_z3cy8d^1qrn`NEl%pX^XVQXQTVqL>uzLg1+nt2jyH`h(cc5Z( zBRvt(6!$m0P*C$+2q@EiRT1G+ z%2gGf@v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)gc^8jZ!wx@&XH>>b5x(P%^r<2GbsP!Vmn%vdzqE@mvoa;#G#$i-q{GGk_k zX?FCW61DhRu6H5Uv#xWksz(ytjJwS=H^okCsBn*kwzum&;7OG~0A-%OXch;XjZ&~{X_77lW47p?G(Efw_@`D3= z2M_+#p}m6#?1OvnIXH80@1fk?x!m;3z}!UAjeVQc_%eb#)aPKB1 zxYh<)m7B~CXW#na)}5cqeLnrEPwxE0)Qk6TWzW<1UO4OF1?q)#&MVvQ1rP7Z^7aMS zE<4_ZdaN3Y&h(=f)cdc7id1=KTGrkl7_f_ZD=3F^{`a7ob_uVbhl|D0T%n}ji`%w( z|H#_6cR)vDx5BD^lK(%40KdHv!PjBS^`>(^3$}sHbn>0T{m^B6#~u2P<4oHisOPW@ zUs7kHN#rs(e~zKdXHF;dSJ(38$oJmTUyZN@Ui$Z_E(pH>sheyl4=b*7SQ+@ll3Q0B zI!kH;O0heX)D&vD>E!FlU@c<3$R9*rgi-@GRlvnHVzz~*Ur;=JEu#MhamE1#vI&xg zIso{uclc;UU$=+qxIO3LVGO@qTm0(;zLGL(?QtdKfq-@dJ6-bD?>g%D8mu2cxDE8w zuYRoO%dLUhEod Date: Tue, 18 Aug 2020 19:29:16 -0700 Subject: [PATCH 2/3] Delete BeyondHome_InstallChecker-SOURCE.cs --- .../BeyondHome_InstallChecker-SOURCE.cs | 191 ------------------ 1 file changed, 191 deletions(-) delete mode 100644 GameData/BeyondHome/BeyondHome_InstallChecker-SOURCE.cs diff --git a/GameData/BeyondHome/BeyondHome_InstallChecker-SOURCE.cs b/GameData/BeyondHome/BeyondHome_InstallChecker-SOURCE.cs deleted file mode 100644 index 40ea7b3..0000000 --- a/GameData/BeyondHome/BeyondHome_InstallChecker-SOURCE.cs +++ /dev/null @@ -1,191 +0,0 @@ - - -//As with KSP rules apparently I have to include my source code here -//Screw you Squad/T2, you don't even let us decompile your DLLs AND you have a history of potentially MALICIOUS code -//I can do whatever I damn well please. But, here's my source code :DDDDDDDD - -using System; -using System.IO; -using System.Linq; -using UnityEngine; -using UnityEngine.UI; - -namespace BeyondHomeInstallationChecker -{ - [KSPAddon(KSPAddon.Startup.Instantly, false)] - public class BICH : MonoBehaviour - { - public void Start() - { - int memorysize = (SystemInfo.systemMemorySize / 1000); - int gpumemorysize = SystemInfo.graphicsMemorySize / 1000; - int errorcount = 0; - string errors = ""; - Debug.Log("----------------------------------------------------------------------------------"); - Debug.Log(""); - Debug.Log(""); - DoLogThingsForMe("Starting up! - Beyond Home by Gameslinx - ARR"); //Beyondhome Installation Checker. Calm down, calm down. - DoLogThingsForMe("BICH stands for Beyondhome Installation Checker. If you're reading this, you're evaluating what went wrong or stumbled across it when something else went wrong."); - DoLogThingsForMe("Thank you for using Beyond Home. Below you can find out what went wrong (or right!)"); - string path = Application.dataPath.Remove(Application.dataPath.Length - 12, 12) + "GameData/"; - DoLogThingsForMe("GameData directory is " + path); //Well, I sure hope so - Debug.Log(""); - DoLogThingsForMe("Displaying errors, warnings and notices below:"); - if (memorysize > 4.9) - { - errors = errors + ("Recommended RAM: 5GB - Installed RAM: " + memorysize.ToString() + "\n"); - DoLogThingsForMe(" - RAM meets or exceeds requirement"); - } - else - { - errors = errors + ("Recommended RAM: 5GB - Installed RAM: " + memorysize.ToString() + "\n"); - DoLogThingsForMe(" - RAM does not meet the requirement"); - } - if (gpumemorysize > 1) - { - errors = errors + ("Recommended VRAM: 1GB - Installed VRAM: " + gpumemorysize.ToString() + "\n"); - DoLogThingsForMe(" - VRAM meets or exceeds the requirement"); - } - else - { - errors = errors + ("Recommended VRAM: 1GB - Installed VRAM: " + gpumemorysize.ToString() + "\n"); - DoLogThingsForMe(" - VRAM does not meet the requirement"); - } - - if (System.IO.File.Exists(path + "BeyondHome/BeyondHome_LICENSE.txt") == false) - { - errors = errors + "ERROR: Beyond Home is not installed!\n"; //Nobody goes into the mod folder and removes the license file, so this indicates a bad install - DoLogThingsForMe(" - Beyond Home is not even installed...?"); - errorcount++; - } - if (System.IO.File.Exists(path + "Kopernicus/Plugins/Kopernicus.dll") == false) - { - errors = errors + "ERROR: Kopernicus is not installed!\n"; - DoLogThingsForMe(" - Kopernicus is not installed"); - errorcount++; - } - if (System.IO.File.Exists(path + "ModularFlightIntegrator/ModularFlightIntegrator.dll") == false) - { - errors = errors + "ERROR: Modular Flight Integrator is not installed!\n"; - DoLogThingsForMe(" - MFI is not installed"); - errorcount++; - } - if (System.IO.File.Exists(path + "Sigma/Replacements/SkyBox/Plugins/SigmaReplacementsSkyBox.dll") == true) - { - errors = errors + "WARNING: Sigma Replacements: Skybox is not installed!\n"; //SR:S is not on CKAN, so this is the only way to get the inferior people who actually use CKAN to install the damn dependencies - DoLogThingsForMe(" - SR:S is not installed"); - errorcount++; - } - if (System.IO.File.Exists(path + "AstronomersVisualPack/AstronomersVisualPack.version") == true) - { - errors = errors + "WARNING: Astronomer's Visual Pack is not supported! Beyond Home adds its own visuals\n"; - DoLogThingsForMe(" - AVP is installed"); - errorcount++; - } - if (System.IO.File.Exists(path + "StockVisualEnhancements/StockVisualEnhancements.version") == true) - { - errors = errors + "WARNING: Stock Visual Enhancements is not supported! Beyond Home adds its own visuals\n"; - DoLogThingsForMe(" - SVE is installed"); - errorcount++; - } - - if (System.IO.File.Exists(path + "scatterer/scatterer.dll") == false) - { - errors = errors + "NOTICE: Scatterer is not installed!\n"; - DoLogThingsForMe(" - Scatterer is not installed"); - errorcount++; - } - if (System.IO.File.Exists(path + "EnvironmentalVisualEnhancements/License.txt") == false) - { - errors = errors + "NOTICE: Environmental Visual Enhancements is not installed!\n"; - DoLogThingsForMe(" - EVE is not installed"); - errorcount++; - } - if (GameSettings.PLANET_SCATTER == false) - { - errors += "NOTICE: Terrain Scatters are not enabled!\n"; - DoLogThingsForMe(" - Scatters not enabled"); - errorcount++; - } - if (GameSettings.PLANET_SCATTER_FACTOR < 1) - { - errors += "NOTICE: Terrain Scatter density must be 100%\n"; - DoLogThingsForMe(" - Scatters not 100% density"); - errorcount++; - } - if (errorcount == 0) - { - errors += "Beyond Home seems to be installed correctly! Thank you, and enjoy!\n\nAny issues? Contact me on the forums or discord (Gameslinx#0544)\n"; - DoLogThingsForMe(" - No file path errors detected!"); - } - - BeyondHomePostMessage(errors); - Debug.Log(""); - DoLogThingsForMe("Checking for Kopernicus and KSP version match..."); - Debug.Log(""); - if (errorcount > 0) - { - DoLogThingsForMe("Exception: There were the following errors in the Beyond Home installation:"); - } - try - { - string[] validation = InstallCheckerGetKop(); - if (validation[0] != validation[1]) - { - ScreenMessages.PostScreenMessage("\n\n\n\n\n\n\n\n\nYour Kopernicus version does not match the KSP version!"); - DoLogThingsForMe(" - Kopernicus and KSP version mismatch!"); - } - } - catch (Exception e) - { - DoLogThingsForMe("Couldn't find either Kopernicus or the KSP readme.txt"); - Debug.Log(e.ToString()); - ScreenMessages.PostScreenMessage("\n\n\n\n\n\n\n\n\nUnable to detect KSP / Kopernicus version"); - } - DoLogThingsForMe("Shutting down InstallationChecker, its task is done! “Not all those who wander are lost...”"); - Debug.Log(""); - Debug.Log(""); - Debug.Log("----------------------------------------------------------------------------------"); - } - public string[] InstallCheckerGetKop() - { - string output = ""; - string KSPpath = (Application.dataPath.Remove(Application.dataPath.Length - 12, 12) + "readme.txt"); //Locate KSP directory readme - string KOPpath = (Application.dataPath.Remove(Application.dataPath.Length - 12, 12) + "GameData/Kopernicus/Plugins/Kopernicus.version"); //Locate kopernicus readme if it exists - DoLogThingsForMe("Detected KSP validation path as " + KSPpath); - DoLogThingsForMe("Detected Kopernicus validation path as " + KOPpath); - string KSPreadme = File.ReadAllLines(KSPpath).Skip(14).Take(1).First(); - string major = File.ReadLines(KOPpath).Skip(7).Take(1).First(); - string minor = File.ReadLines(KOPpath).Skip(8).Take(1).First(); - string patch = File.ReadLines(KOPpath).Skip(9).Take(1).First(); - string temp = major + "\n" + minor + "\n" + patch; - int counter = 0; - foreach (char c in temp) - { - if (Char.IsDigit(c) == true) - { - output += c; - counter++; - if (counter < 3) - { - output += '.'; - } - } - } - string[] outputarray = new string[2]; //Kop version is index 0, ksp version is index 1 - outputarray[0] = "Version " + output; - outputarray[1] = KSPreadme; - DoLogThingsForMe("Line of Kopernicus readme: " + outputarray[0]); - DoLogThingsForMe("Line of KSP readme: " + outputarray[1]); - return outputarray; - } - public void BeyondHomePostMessage(string input) - { - ScreenMessages.PostScreenMessage(input); - } - public void DoLogThingsForMe(string input) - { - Debug.Log("[BICH] " + input); - } - } -} \ No newline at end of file From 8c7f100100aa590cacbde069c8efadaeaadf48da Mon Sep 17 00:00:00 2001 From: DaRealCodeWritten Date: Tue, 18 Aug 2020 19:31:07 -0700 Subject: [PATCH 3/3] Upload new files Uploaded the updated files --- .../BeyondHome_InstallChecker-SOURCE.cs | 180 ++++++++++++++++++ GameData/BeyondHome/InstallChecker.dll | Bin 0 -> 11776 bytes 2 files changed, 180 insertions(+) create mode 100644 GameData/BeyondHome/BeyondHome_InstallChecker-SOURCE.cs create mode 100644 GameData/BeyondHome/InstallChecker.dll diff --git a/GameData/BeyondHome/BeyondHome_InstallChecker-SOURCE.cs b/GameData/BeyondHome/BeyondHome_InstallChecker-SOURCE.cs new file mode 100644 index 0000000..7e21e6e --- /dev/null +++ b/GameData/BeyondHome/BeyondHome_InstallChecker-SOURCE.cs @@ -0,0 +1,180 @@ + + +//As with KSP rules apparently I have to include my source code here +//Screw you Squad/T2, you don't even let us decompile your DLLs AND you have a history of potentially MALICIOUS code +//I can do whatever I damn well please. But, here's my source code :DDDDDDDD +//Lmao, it's too funny asking for transparency when you won't give it yourself: FOR[T2/Skwod] + +using System; +using System.IO; +using System.Linq; +using UnityEngine; +using UnityEngine.UI; +using Kopernicus; +using Kopernicus.Constants; + +namespace BeyondHomeInstallationChecker +{ + [KSPAddon(KSPAddon.Startup.Instantly, false)] + public class BICH : MonoBehaviour + { + public void Start() + { + int memorysize = (SystemInfo.systemMemorySize / 1000); + int gpumemorysize = SystemInfo.graphicsMemorySize / 1000; + int errorcount = 0; + string errors = ""; + Debug.Log("----------------------------------------------------------------------------------"); + Debug.Log(""); + Debug.Log(""); + DoLogThingsForMe("Starting up! - Beyond Home by Gameslinx - ARR"); //Beyondhome Installation Checker. Calm down, calm down. + DoLogThingsForMe("BICH stands for Beyondhome Installation Checker. If you're reading this, you're evaluating what went wrong or stumbled across it when something else went wrong."); + DoLogThingsForMe("Thank you for using Beyond Home. Below you can find out what went wrong (or right!)"); + string path = Application.dataPath.Remove(Application.dataPath.Length - 12, 12) + "GameData/"; + DoLogThingsForMe("GameData directory is " + path); //Well, I sure hope so + Debug.Log(""); + DoLogThingsForMe("Displaying errors, warnings and notices below:"); + if (memorysize > 4.9) + { + errors = errors + ("Recommended RAM: 5GB - Installed RAM: " + memorysize.ToString() + "\n"); + DoLogThingsForMe(" - RAM meets or exceeds requirement"); + } + else + { + errors = errors + ("Recommended RAM: 5GB - Installed RAM: " + memorysize.ToString() + "\n"); + DoLogThingsForMe(" - RAM does not meet the requirement"); + } + if (gpumemorysize > 1) + { + errors = errors + ("Recommended VRAM: 1GB - Installed VRAM: " + gpumemorysize.ToString() + "\n"); + DoLogThingsForMe(" - VRAM meets or exceeds the requirement"); + } + else + { + errors = errors + ("Recommended VRAM: 1GB - Installed VRAM: " + gpumemorysize.ToString() + "\n"); + DoLogThingsForMe(" - VRAM does not meet the requirement"); + } + + if (System.IO.File.Exists(path + "BeyondHome/BeyondHome_LICENSE.txt") == false) + { + errors = errors + "ERROR: Beyond Home is not installed!\n"; //Nobody goes into the mod folder and removes the license file, so this indicates a bad install + DoLogThingsForMe(" - Beyond Home is not even installed...?"); + errorcount++; + } + if (System.IO.File.Exists(path + "Kopernicus/Plugins/Kopernicus.dll") == false) + { + errors = errors + "ERROR: Kopernicus is not installed!\n"; + DoLogThingsForMe(" - Kopernicus is not installed"); + errorcount++; + } + if (System.IO.File.Exists(path + "ModularFlightIntegrator/ModularFlightIntegrator.dll") == false) + { + errors = errors + "ERROR: Modular Flight Integrator is not installed!\n"; + DoLogThingsForMe(" - MFI is not installed"); + errorcount++; + } +// if (System.IO.File.Exists(path + "Sigma/Replacements/SkyBox/Plugins/SigmaReplacementsSkyBox.dll") == true) +// { +// errors = errors + "WARNING: Sigma Replacements: Skybox is not installed!\n"; //SR:S is not on CKAN, so this is the only way to get the inferior people who actually use CKAN to install the damn dependencies +// DoLogThingsForMe(" - SR:S is not installed"); +// errorcount++; +// } + if (System.IO.File.Exists(path + "AstronomersVisualPack/AstronomersVisualPack.version") == true) + { + errors = errors + "WARNING: Astronomer's Visual Pack is not supported! Beyond Home adds its own visuals\n"; + DoLogThingsForMe(" - AVP is installed"); + errorcount++; + } + if (System.IO.File.Exists(path + "StockVisualEnhancements/StockVisualEnhancements.version") == true) + { + errors = errors + "WARNING: Stock Visual Enhancements is not supported! Beyond Home adds its own visuals\n"; + DoLogThingsForMe(" - SVE is installed"); + errorcount++; + } + + if (System.IO.File.Exists(path + "scatterer/scatterer.dll") == false) + { + errors = errors + "NOTICE: Scatterer is not installed!\n"; + DoLogThingsForMe(" - Scatterer is not installed"); + errorcount++; + } + if (System.IO.File.Exists(path + "EnvironmentalVisualEnhancements/License.txt") == false) + { + errors = errors + "NOTICE: Environmental Visual Enhancements is not installed!\n"; + DoLogThingsForMe(" - EVE is not installed"); + errorcount++; + } + if (GameSettings.PLANET_SCATTER == false) + { + errors += "NOTICE: Terrain Scatters are not enabled!\n"; + DoLogThingsForMe(" - Scatters not enabled"); + errorcount++; + } + if (GameSettings.PLANET_SCATTER_FACTOR < 1) + { + errors += "NOTICE: Terrain Scatter density must be 100%\n"; + DoLogThingsForMe(" - Scatters not 100% density"); + errorcount++; + } + if (errorcount == 0) + { + errors += "Beyond Home seems to be installed correctly! Thank you, and enjoy!\n\nAny issues? Contact me on the forums or discord (Gameslinx#0544)\n"; + DoLogThingsForMe(" - No file path errors detected!"); + } + + BeyondHomePostMessage(errors); + Debug.Log(""); + DoLogThingsForMe("Checking for Kopernicus and KSP version match..."); + Debug.Log(""); + if (errorcount > 0) + { + DoLogThingsForMe("Exception: There were the following errors in the Beyond Home installation:"); + DoLogThingsForMe(errors); + } + try + { + bool validation = InstallCheckerGetKop(); + if (validation is false) + { + ScreenMessages.PostScreenMessage("\n\n\n\n\n\n\n\n\nYour Kopernicus version does not match the KSP version!"); + DoLogThingsForMe(" - Kopernicus and KSP version mismatch!"); + } + } + catch (Exception e) + { + DoLogThingsForMe("Couldn't find either Kopernicus or the KSP readme.txt"); + Debug.Log(e.ToString()); + DoLogThingsForMe(e.ToString()); + ScreenMessages.PostScreenMessage("\n\n\n\n\n\n\n\n\nUnable to detect KSP / Kopernicus version"); + } + DoLogThingsForMe("Shutting down InstallationChecker, its task is done! �Not all those who wander are lost...�"); + Debug.Log(""); + Debug.Log(""); + Debug.Log("----------------------------------------------------------------------------------"); + } + public bool InstallCheckerGetKop() + { + string KSPpath = (Application.dataPath.Remove(Application.dataPath.Length - 12, 12) + "readme.txt"); //Locate KSP directory readme + string KOPpath = (Application.dataPath.Remove(Application.dataPath.Length - 12, 12) + "GameData/Kopernicus/Plugins/Kopernicus.version"); //Locate kopernicus readme if it exists + DoLogThingsForMe("Detected KSP validation path as " + KSPpath); + DoLogThingsForMe("Detected Kopernicus validation path as " + KOPpath); + bool x = CompatibilityChecker.IsCompatible(); + if (x is true) + { + return true; + } + else + { + return false; + } + } + public void BeyondHomePostMessage(string input) + { + ScreenMessages.PostScreenMessage(input); + } + public void DoLogThingsForMe(string input) + { + Debug.Log("[BICH] " + input); + } + } +} \ No newline at end of file diff --git a/GameData/BeyondHome/InstallChecker.dll b/GameData/BeyondHome/InstallChecker.dll new file mode 100644 index 0000000000000000000000000000000000000000..06b3bb5689de2c7de0ca39bc1e9caccb641b00eb GIT binary patch literal 11776 zcmeHNeQX@Zb$`1&9zR5$bfi8k$+ee~EmO91qA1#y9a$22Bqds;MDr-gt|UmuTM}c5miqKPhb@62pD-rpW7f@;a*0TPLfi zPTc?1g#1C*cL!cKroTHdzvTE<$#e5wcG=2hi$%9=E!dVmfb}=)!WxIi)>JNQ`=2Kl}+SxD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