Skip to content

Commit

Permalink
2.16.2
Browse files Browse the repository at this point in the history
  • Loading branch information
innominata committed Dec 2, 2024
1 parent 04e6fb9 commit 5293f29
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Bootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public partial class GS2
}


[BepInPlugin("dsp.galactic-scale.2", "Galactic Scale 2 Plug-In", "2.16.1")]
[BepInPlugin("dsp.galactic-scale.2", "Galactic Scale 2 Plug-In", "2.16.2")]
[BepInDependency("space.customizing.console", BepInDependency.DependencyFlags.SoftDependency)]
[BepInDependency("dsp.nebula-multiplayer-api", BepInDependency.DependencyFlags.SoftDependency)]
public class Bootstrap : BaseUnityPlugin
Expand Down
2 changes: 1 addition & 1 deletion GalacticScale3.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<PropertyGroup>
<AssemblyName>GalacticScale</AssemblyName>
<Description>Galaxy Customization for Dyson Sphere Program</Description>
<Version>2.16.1</Version>
<Version>2.16.2</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>9.0</LangVersion>
<OutDir>bin/$(Configuration)</OutDir>
Expand Down
1 change: 1 addition & 0 deletions Package/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# BACKUP YOUR SAVES. SERIOUSLY.

- Version 2.16.2 - Fixed error on new game
- Version 2.16.1 - Potential Fix for Bug on New Game
- Version 2.16.0 - Tentative update game version 0.10.31.24646
- Version 2.15.4 - Default star size to 1x to try and prevent some pathing errors on df ships
Expand Down
24 changes: 15 additions & 9 deletions Scripts/Patches/Transpilers/SectorModel/CreateGalaxyAstroBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,9 @@ public static IEnumerable<CodeInstruction> TranspilerSectorModelCreateGalaxyAstr
// Replace 25600 with the result of the CalcAstroBufferSize method
.MatchForward(
true,
new CodeMatch(i =>
{
return i.opcode == Ldc_I4 && Convert.ToInt32(i.operand ?? 0) == 25600;
}
))
.Repeat(matcher =>
{
matcher.SetInstructionAndAdvance(new CodeInstruction(Call, calcMethod));
}).InstructionEnumeration();
new CodeMatch(i => { return i.opcode == Ldc_I4 && Convert.ToInt32(i.operand ?? 0) == 25600; }
))
.Repeat(matcher => { matcher.SetInstructionAndAdvance(new CodeInstruction(Call, calcMethod)); }).InstructionEnumeration();

return instructions;
}
Expand All @@ -34,5 +28,17 @@ public static int CalcAstroBufferSize()
{
return GameMain.spaceSector.galaxy.starCount * 400;
}


[HarmonyPrefix, HarmonyPatch(typeof(SectorModel), nameof(SectorModel.OnCameraPostRender))]
public static bool PatchOnCameraPostRender(ref SectorModel __instance, Camera cam)
{
if (GameMain.mainPlayer == null)
{
return false;
}

return true;
}
}
}
4 changes: 2 additions & 2 deletions thunderstore.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ schemaVersion = "0.0.1"
[package]
namespace = "Galactic_Scale"
name = "GalacticScale"
versionNumber = "2.16.1"
description = "v2.16.1 Galaxy Customization. New Planets. Different Sized Planets. Up to 100 Planets/star and 1024 Stars. DF is more or less balanced. See GS Discord Server"
versionNumber = "2.16.2"
description = "v2.16.2 Galaxy Customization. New Planets. Different Sized Planets. Up to 100 Planets/star and 1024 Stars. DF is more or less balanced. See GS Discord Server"
websiteUrl = "https://github.com/Touhma/DSP_Plugins"
containsNsfwContent = false

Expand Down

0 comments on commit 5293f29

Please sign in to comment.