From e38712aa0cdfa7f683769f45ab5f7ed7646d3f37 Mon Sep 17 00:00:00 2001 From: GreyHak <479851+GreyHak@users.noreply.github.com> Date: Thu, 17 Nov 2022 19:01:58 -0800 Subject: [PATCH] Updated for 0.9.27.15033 --- DSPSpreadsheetGenMod.cs | 7 +++++-- Properties/AssemblyInfo.cs | 4 ++-- README.md | 7 +++++-- manifest.json | 2 +- 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/DSPSpreadsheetGenMod.cs b/DSPSpreadsheetGenMod.cs index b584e9b..bab93fe 100644 --- a/DSPSpreadsheetGenMod.cs +++ b/DSPSpreadsheetGenMod.cs @@ -33,11 +33,12 @@ namespace StarSectorResourceSpreadsheetGenerator [BepInPlugin(pluginGuid, pluginName, pluginVersion)] [BepInDependency("dsp.galactic-scale.2", BepInDependency.DependencyFlags.SoftDependency)] [BepInProcess("DSPGAME.exe")] + [BepInProcess("Dyson Sphere Program.exe")] public class SpreadsheetGenMod : BaseUnityPlugin // Plugin config: "C:\Program Files (x86)\Steam\steamapps\common\Dyson Sphere Program\BepInEx\config\BepInEx.cfg" { public const string pluginGuid = "greyhak.dysonsphereprogram.resourcespreadsheetgen"; public const string pluginName = "DSP Star Sector Resource Spreadsheet Generator"; - public const string pluginVersion = "4.0.0"; + public const string pluginVersion = "4.0.1"; public static bool spreadsheetGenRequestFlag = false; public static List planetsToLoad = new List { }; @@ -717,7 +718,9 @@ public static void CapturePlanetResourceData(PlanetData planet, StringBuilder sb } else { - planet.CalcVeinAmounts(ref veinAmounts); + HashSet tmp_ids = new HashSet(); + planet.CalcVeinAmounts(ref veinAmounts, tmp_ids, 0); + EVeinType type = (EVeinType)1; foreach (VeinProto item in LDB.veins.dataArray) { diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index 14ad74c..cac19d9 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -41,5 +41,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("4.0.0")] -[assembly: AssemblyFileVersion("4.0.0")] +[assembly: AssemblyVersion("4.0.1")] +[assembly: AssemblyFileVersion("4.0.1")] diff --git a/README.md b/README.md index bbcc414..86a8f6f 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ Settings include: - **More Data:** 17 parameters, 7 for the star and 10 for the planet, can be configurably enabled. Less clutter for most people. Extra data for those that want it. ## Installation -This mod uses the BepInEx mod plugin framework. So BepInEx must be installed to use this mod. Find details for installing BepInEx [in their user guide](https://bepinex.github.io/bepinex_docs/master/articles/user_guide/installation/index.html#installing-bepinex-1). This mod was tested with BepInEx x64 5.4.11.0 and Dyson Sphere Program 0.9.26.13034 on Windows 10. +This mod uses the BepInEx mod plugin framework. So BepInEx must be installed to use this mod. Find details for installing BepInEx [in their user guide](https://bepinex.github.io/bepinex_docs/master/articles/user_guide/installation/index.html#installing-bepinex-1). This mod was tested with BepInEx x64 5.4.11.0 and Dyson Sphere Program 0.9.27.15033 on Windows 10. To manually install this mod, add the `DSPResourceSpreadsheetGenMod.dll` to your `%PROGRAMFILES(X86)%\Steam\steamapps\common\Dyson Sphere Program\BepInEx\plugins\` folder. @@ -155,7 +155,7 @@ The source code for this mod is available for download, review and forking on Gi - **更多数据**:17个参数可供选择启用,7个恒星参数,10个行星参数,如温度、年龄、颜色等。通常这些参数并没有什么用,但总有人需要。 ## 安装 -本mod需要BepInEx mod插件框架,所以要使用此mod必须先安装BepInEx。请在[用户指南](https://bepinex.github.io/bepinex_docs/master/articles/user_guide/installation/index.html#installing-bepinex-1)中查阅BepInEx的安装信息。本mod已在Windows10上经BepInEx x64 5.4.11.0和戴森球计划0.9.26.13034版本进行测试。 +本mod需要BepInEx mod插件框架,所以要使用此mod必须先安装BepInEx。请在[用户指南](https://bepinex.github.io/bepinex_docs/master/articles/user_guide/installation/index.html#installing-bepinex-1)中查阅BepInEx的安装信息。本mod已在Windows10上经BepInEx x64 5.4.11.0和戴森球计划0.9.27.15033版本进行测试。 要手动安装本mod,请添加`DSPResourceSpreadsheetGenMod.dll`至`%PROGRAMFILES(X86)%\Steam\steamapps\common\Dyson Sphere Program\BepInEx\plugins\`文件夹。 @@ -165,6 +165,9 @@ The source code for this mod is available for download, review and forking on Gi 在BSD3条例许可下,本mod的源代码可供在[GitHub](https://github.com/GreyHak/dsp-csv-gen)下载、查看、克隆。 ## Change Log +### v4.0.1 + - Will now run with Dyson Sphere Program 0.9.27.15033 update. + - Xbox compatibility. ### v4.0.0 - Full credit for this update goes to [starfi5h](https://github.com/starfi5h). - Will now run with Dyson Sphere Program 0.9.26.13034 update. diff --git a/manifest.json b/manifest.json index 5b952ab..1c3e6b8 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "DSP_Star_Sector_Resource_Spreadsheet_Generator", - "version_number": "4.0.0", + "version_number": "4.0.1", "website_url": "https://github.com/GreyHak/dsp-csv-gen", "description": "Generates a spreadsheet of all resources in the star sector.", "dependencies": [