Skip to content

Commit

Permalink
2.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
innominata committed Sep 30, 2022
1 parent 6ee47bb commit 8b64a56
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Bootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public partial class GS2
}


[BepInPlugin("dsp.galactic-scale.2", "Galactic Scale 2 Plug-In", "2.8.0")]
[BepInPlugin("dsp.galactic-scale.2", "Galactic Scale 2 Plug-In", "2.8.1")]
[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.8.0</Version>
<Version>2.8.1</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.8.1 - Fix Logistic Bot Speed. For games created on 2.8.0 a button is added under Settings/GalacticScale/Debug that should fix the issue.
- Version 2.8.0 - Update for new DSP Version. Implemented starfish's warning system fix.
- Version 2.7.12 - Additional monitoring component null reference avoidance
- Version 2.7.11 - Fix very rare bug with monitoring component trying to use a speaker that doesn't exist in the pool. *shrug*
Expand Down
5 changes: 5 additions & 0 deletions Scripts/Patches/GameHistoryData/SetForNewGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ public static bool SetForNewGame(GameHistoryData __instance)
__instance.logisticShipSpeedScale = 1f;
__instance.logisticShipWarpDrive = Configs.freeMode.logisticShipWarpDrive;
__instance.logisticShipCarries = Configs.freeMode.logisticShipCarries;
__instance.logisticCourierSpeed = Configs.freeMode.logisticCourierSpeed;//Added after 0.9.27 Update
__instance.logisticCourierSpeedScale = 1f;//Added after 0.9.27 Update
__instance.logisticCourierCarries = Configs.freeMode.logisticCourierCarries;//Added after 0.9.27 Update
__instance.dispenserDeliveryMaxAngle = Configs.freeMode.dispenserDeliveryMaxAngle;//Added after 0.9.27 Update
__instance.miningCostRate = Configs.freeMode.miningCostRate;
__instance.miningSpeedScale = Configs.freeMode.miningSpeedScale;
__instance.storageLevel = 2;
Expand All @@ -64,6 +68,7 @@ public static bool SetForNewGame(GameHistoryData __instance)
__instance.remoteStationExtraStorage = 0;
__instance.localStationExtraStorage = 0;
__instance.propertyData.Clear(); //Added after 0.9.25 update
__instance.createWithSandboxMode = __instance.gameData.gameDesc.isSandboxMode; //Added after 0.9.27 Update
return false;
}
}
Expand Down
42 changes: 42 additions & 0 deletions Scripts/SettingsUI/MainSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,48 @@ public void Init()
// GS2.WarnJson(GSSettings.ThemeLibrary.Select(p=>p.Key).ToList());
// }));
DebugOptions.Add(GSUI.Spacer());
DebugOptions.Add(GSUI.Button("Reset Logistic Bot Speed", "Reset",
(_) =>
{
GameMain.data.history.logisticCourierSpeed = Configs.freeMode.logisticCourierSpeed;
GameMain.data.history.logisticCourierSpeedScale = 1f;
GameMain.data.history.logisticCourierCarries = Configs.freeMode.logisticCourierCarries;
GameMain.data.history.dispenserDeliveryMaxAngle = Configs.freeMode.dispenserDeliveryMaxAngle;
if (GameMain.data.history.techStates[3401].unlocked)
{
GameMain.data.history.logisticCourierSpeedScale += 0.1f;
}
if (GameMain.data.history.techStates[3402].unlocked)
{
GameMain.data.history.logisticCourierSpeedScale += 0.1f;
}
if (GameMain.data.history.techStates[3403].unlocked)
{
GameMain.data.history.logisticCourierSpeedScale += 0.15f;
}
if (GameMain.data.history.techStates[3404].unlocked)
{
GameMain.data.history.logisticCourierSpeedScale += 0.15f;
}
if (GameMain.data.history.techStates[3405].unlocked)
{
GameMain.data.history.logisticCourierSpeedScale += 0.15f;
}
if (GameMain.data.history.techStates[3406].unlocked)
{
GameMain.data.history.logisticCourierSpeedScale += 0.15f;
}
GameMain.data.history.logisticCourierSpeedScale += 0.2f * (float)(GameMain.data.history.techStates[3407].curLevel - 7);
for (int num12 = 3501; num12 <= 3507; num12++)
{
if (GameMain.data.history.techStates[num12].unlocked)
{
GameMain.data.history.logisticCourierCarries++;
}
}
}, null, "Fix games created on 2.8.0"));


Options.Add(GSUI.Group("Debug Options".Translate(), DebugOptions, "Useful for testing galaxies/themes".Translate()));
Options.Add(GSUI.Spacer());

Expand Down
6 changes: 3 additions & 3 deletions thunderstore.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ schemaVersion = "0.0.1"
[package]
namespace = "Galactic_Scale"
name = "GalacticScale"
versionNumber = "2.8.0"
description = "v2.8.0 Update for new DSP Patch. Implemented starfish's warning system fix. (Thanks!)"
websiteUrl = "https://github.com/innominata/GalacticScale3"
versionNumber = "2.8.1"
description = "v2.8.1 Fix Logistics Bot Speed. Debug option to fix broken speed on existing games."
websiteUrl = "https://github.com/Touhma/DSP_Plugins"
containsNsfwContent = false

[package.dependencies]
Expand Down

0 comments on commit 8b64a56

Please sign in to comment.