Skip to content

Commit d3e09d9

Browse files
committed
.28
1 parent 4e91b5f commit d3e09d9

File tree

9 files changed

+1077
-1029
lines changed

9 files changed

+1077
-1029
lines changed

GalacticScale2/DSP_Plugins.GalacticScale.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@
7979
<Reference Include="MonoMod.Utils, Version=21.8.19.1, Culture=neutral, processorArchitecture=MSIL">
8080
<HintPath>..\packages\MonoMod.Utils.21.8.19.1\lib\net40\MonoMod.Utils.dll</HintPath>
8181
</Reference>
82-
<Reference Include="NebulaAPI, Version=1.1.2.0, Culture=neutral, processorArchitecture=MSIL">
83-
<HintPath>..\packages\DysonSphereProgram.Modding.NebulaMultiplayerModApi.1.1.2\lib\net472\NebulaAPI.dll</HintPath>
82+
<Reference Include="NebulaAPI, Version=1.1.4.0, Culture=neutral, PublicKeyToken=null">
83+
<HintPath>C:\Users\inno\AppData\Roaming\r2modmanPlus-local\DysonSphereProgram\profiles\Default\BepInEx\plugins\nebula-NebulaMultiplayerModApi\NebulaAPI.dll</HintPath>
8484
</Reference>
8585
<Reference Include="netstandard">
8686
<HintPath>$(DSP_Dir)\DSPGAME_Data\Managed\netstandard.dll</HintPath>
@@ -92,9 +92,9 @@
9292
<Reference Include="Microsoft.CSharp" />
9393
<Reference Include="System.Data" />
9494
<Reference Include="System.Xml" />
95-
<Reference Include="Unity.TextMeshPro, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
96-
<HintPath>..\packages\DysonSphereProgram.GameLibs.0.8.23.9989-r.0\lib\net45\Unity.TextMeshPro.dll</HintPath>
97-
</Reference>
95+
<!-- <Reference Include="Unity.TextMeshPro, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">-->
96+
<!-- <HintPath>..\packages\DysonSphereProgram.GameLibs.0.8.23.9989-r.0\lib\net45\Unity.TextMeshPro.dll</HintPath>-->
97+
<!-- </Reference>-->
9898
<Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
9999
<HintPath>..\packages\UnityEngine.Modules.2018.4.12\lib\net45\UnityEngine.dll</HintPath>
100100
</Reference>

GalacticScale2/Scripts/Bootstrap.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public partial class GS2
2020
[BepInDependency(NebulaAPI.NebulaModAPI.API_GUID)]
2121
public class Bootstrap : BaseUnityPlugin
2222
{
23-
public const string VERSION = "2.2.0.27";
23+
public const string VERSION = "2.2.0.28";
2424

2525
public new static ManualLogSource Logger;
2626

GalacticScale2/Scripts/GalacticScale2.0/Generators/GS2Dev/Stars.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ public void GenerateStars(int starCount, int startID = 0)
6868

6969
if (GetLuminosityBoostForStar(star) > 0)
7070
{
71-
var lum = Round((float)Math.Pow(star.luminosity, 0.33000001311302185) * 1000f) / 1000f;
72-
lum += GetLuminosityBoostForStar(star);
71+
var lum = Round((float)Math.Pow(star.luminosity, 0.33f) * 1000f) / 1000f;
72+
lum *= GetLuminosityBoostForStar(star);
7373
star.luminosity = (float)Math.Pow(lum, 3.0);
7474
}
7575
}

GalacticScale2/Scripts/GalacticScale2.0/Patches/StationComponent/InternalTickRemote.cs

Lines changed: 1042 additions & 1017 deletions
Large diffs are not rendered by default.

GalacticScale2/Scripts/GalacticScale2.0/Patches/UIGalaxySelect/SetStarMapGalaxy.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ public static void SetStarmapGalaxy_Postfix(UIGalaxySelect __instance)
113113
GameMain.universeSimulator.galaxyData = GS2.galaxy;
114114
}
115115
GameMain.universeSimulator.starSimulators = new StarSimulator[GS2.galaxy.starCount];
116+
116117
for (int i = 0; i < GS2.galaxy.starCount; i++)
117118
{
118119
StarData star = GS2.galaxy.stars[i];
@@ -127,6 +128,26 @@ public static void SetStarmapGalaxy_Postfix(UIGalaxySelect __instance)
127128
GameMain.universeSimulator.starSimulators[i].gameObject.layer = 24;
128129
GameMain.universeSimulator.starSimulators[i].gameObject.SetActive(true);
129130
}
131+
var starmap = __instance.starmap;
132+
while (starmap.starPool.Count <= 100)
133+
{
134+
UIVirtualStarmap.StarNode starNode2 = new UIVirtualStarmap.StarNode();
135+
starNode2.active = false;
136+
starNode2.starData = null;
137+
starNode2.pointRenderer = Object.Instantiate<MeshRenderer>(starmap.starPointPrefab, starmap.starPointPrefab.transform.parent);
138+
starNode2.nameText = Object.Instantiate<Text>(starmap.nameTextPrefab, starmap.nameTextPrefab.transform.parent);
139+
starmap.starPool.Add(starNode2);
140+
}
141+
while (starmap.connPool.Count <= 100)
142+
{
143+
starmap.connPool.Add(new UIVirtualStarmap.ConnNode
144+
{
145+
active = false,
146+
starA = null,
147+
starB = null,
148+
lineRenderer = Object.Instantiate(starmap.connLinePrefab, starmap.connLinePrefab.transform.parent)
149+
});
150+
}
130151
}
131152
}
132153
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16433724626720096
1+
16438709907881203

Package/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# DSP Galactic Scale 2.0 Mod
2+
- Version 2.2.0.28 - Possible Nebula Fix. Requires prerelease version of nebula from github.
3+
24
- Version 2.2.0.27 - Hotfix for rare loading issue
35

46
- Version 2.2.0.26 - Hopefully Geothermal is working on every planet now :)

nuget.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
<packageSources>
44
<add key="BepInEx" value="https://nuget.bepinex.dev/v3/index.json" />
55
</packageSources>
6-
</configuration>
6+
</configuration>

thunderstore.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ schemaVersion = "0.0.1"
44
[package]
55
namespace = "Galactic_Scale"
66
name = "GalacticScale"
7-
versionNumber = "2.2.27"
8-
description = "v2.2.0.27 Loading Fix (Hopefully)"
7+
versionNumber = "2.2.28"
8+
description = "v2.2.0.28 Nebula Fix (Hopefully)"
99
websiteUrl = "https://github.com/Touhma/DSP_Plugins"
1010
containsNsfwContent = false
1111

0 commit comments

Comments
 (0)