Skip to content

Commit 8b64a56

Browse files
committed
2.8.1
1 parent 6ee47bb commit 8b64a56

File tree

6 files changed

+53
-5
lines changed

6 files changed

+53
-5
lines changed

Bootstrap.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public partial class GS2
1414
}
1515

1616

17-
[BepInPlugin("dsp.galactic-scale.2", "Galactic Scale 2 Plug-In", "2.8.0")]
17+
[BepInPlugin("dsp.galactic-scale.2", "Galactic Scale 2 Plug-In", "2.8.1")]
1818
[BepInDependency("space.customizing.console", BepInDependency.DependencyFlags.SoftDependency)]
1919
[BepInDependency("dsp.nebula-multiplayer-api", BepInDependency.DependencyFlags.SoftDependency)]
2020
public class Bootstrap : BaseUnityPlugin

GalacticScale3.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<PropertyGroup>
99
<AssemblyName>GalacticScale</AssemblyName>
1010
<Description>Galaxy Customization for Dyson Sphere Program</Description>
11-
<Version>2.8.0</Version>
11+
<Version>2.8.1</Version>
1212
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1313
<LangVersion>9.0</LangVersion>
1414
<OutDir>bin/$(Configuration)</OutDir>

Package/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# BACKUP YOUR SAVES. SERIOUSLY.
44

5+
- 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.
56
- Version 2.8.0 - Update for new DSP Version. Implemented starfish's warning system fix.
67
- Version 2.7.12 - Additional monitoring component null reference avoidance
78
- Version 2.7.11 - Fix very rare bug with monitoring component trying to use a speaker that doesn't exist in the pool. *shrug*

Scripts/Patches/GameHistoryData/SetForNewGame.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ public static bool SetForNewGame(GameHistoryData __instance)
5252
__instance.logisticShipSpeedScale = 1f;
5353
__instance.logisticShipWarpDrive = Configs.freeMode.logisticShipWarpDrive;
5454
__instance.logisticShipCarries = Configs.freeMode.logisticShipCarries;
55+
__instance.logisticCourierSpeed = Configs.freeMode.logisticCourierSpeed;//Added after 0.9.27 Update
56+
__instance.logisticCourierSpeedScale = 1f;//Added after 0.9.27 Update
57+
__instance.logisticCourierCarries = Configs.freeMode.logisticCourierCarries;//Added after 0.9.27 Update
58+
__instance.dispenserDeliveryMaxAngle = Configs.freeMode.dispenserDeliveryMaxAngle;//Added after 0.9.27 Update
5559
__instance.miningCostRate = Configs.freeMode.miningCostRate;
5660
__instance.miningSpeedScale = Configs.freeMode.miningSpeedScale;
5761
__instance.storageLevel = 2;
@@ -64,6 +68,7 @@ public static bool SetForNewGame(GameHistoryData __instance)
6468
__instance.remoteStationExtraStorage = 0;
6569
__instance.localStationExtraStorage = 0;
6670
__instance.propertyData.Clear(); //Added after 0.9.25 update
71+
__instance.createWithSandboxMode = __instance.gameData.gameDesc.isSandboxMode; //Added after 0.9.27 Update
6772
return false;
6873
}
6974
}

Scripts/SettingsUI/MainSettings.cs

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,48 @@ public void Init()
180180
// GS2.WarnJson(GSSettings.ThemeLibrary.Select(p=>p.Key).ToList());
181181
// }));
182182
DebugOptions.Add(GSUI.Spacer());
183+
DebugOptions.Add(GSUI.Button("Reset Logistic Bot Speed", "Reset",
184+
(_) =>
185+
{
186+
GameMain.data.history.logisticCourierSpeed = Configs.freeMode.logisticCourierSpeed;
187+
GameMain.data.history.logisticCourierSpeedScale = 1f;
188+
GameMain.data.history.logisticCourierCarries = Configs.freeMode.logisticCourierCarries;
189+
GameMain.data.history.dispenserDeliveryMaxAngle = Configs.freeMode.dispenserDeliveryMaxAngle;
190+
if (GameMain.data.history.techStates[3401].unlocked)
191+
{
192+
GameMain.data.history.logisticCourierSpeedScale += 0.1f;
193+
}
194+
if (GameMain.data.history.techStates[3402].unlocked)
195+
{
196+
GameMain.data.history.logisticCourierSpeedScale += 0.1f;
197+
}
198+
if (GameMain.data.history.techStates[3403].unlocked)
199+
{
200+
GameMain.data.history.logisticCourierSpeedScale += 0.15f;
201+
}
202+
if (GameMain.data.history.techStates[3404].unlocked)
203+
{
204+
GameMain.data.history.logisticCourierSpeedScale += 0.15f;
205+
}
206+
if (GameMain.data.history.techStates[3405].unlocked)
207+
{
208+
GameMain.data.history.logisticCourierSpeedScale += 0.15f;
209+
}
210+
if (GameMain.data.history.techStates[3406].unlocked)
211+
{
212+
GameMain.data.history.logisticCourierSpeedScale += 0.15f;
213+
}
214+
GameMain.data.history.logisticCourierSpeedScale += 0.2f * (float)(GameMain.data.history.techStates[3407].curLevel - 7);
215+
for (int num12 = 3501; num12 <= 3507; num12++)
216+
{
217+
if (GameMain.data.history.techStates[num12].unlocked)
218+
{
219+
GameMain.data.history.logisticCourierCarries++;
220+
}
221+
}
222+
}, null, "Fix games created on 2.8.0"));
223+
224+
183225
Options.Add(GSUI.Group("Debug Options".Translate(), DebugOptions, "Useful for testing galaxies/themes".Translate()));
184226
Options.Add(GSUI.Spacer());
185227

thunderstore.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ schemaVersion = "0.0.1"
44
[package]
55
namespace = "Galactic_Scale"
66
name = "GalacticScale"
7-
versionNumber = "2.8.0"
8-
description = "v2.8.0 Update for new DSP Patch. Implemented starfish's warning system fix. (Thanks!)"
9-
websiteUrl = "https://github.com/innominata/GalacticScale3"
7+
versionNumber = "2.8.1"
8+
description = "v2.8.1 Fix Logistics Bot Speed. Debug option to fix broken speed on existing games."
9+
websiteUrl = "https://github.com/Touhma/DSP_Plugins"
1010
containsNsfwContent = false
1111

1212
[package.dependencies]

0 commit comments

Comments
 (0)