Skip to content

Commit

Permalink
Release v1.4.11
Browse files Browse the repository at this point in the history
  • Loading branch information
IAmBatby committed Feb 20, 2025
1 parent 1745a53 commit 5fbc602
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 4 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
**Changelog**
--

**<details><summary>Version 1.4.11</summary>**

**<details><summary>Fixes</summary>**

* Added additional check to hotloading system to avoid issues when leaving a lobby as a host (Thank you Zaggy)
* Added additional validation checks to ExtendedBuyableVehicle to avoid errors with incorrectly setup content (Thank you ScandalTheVandal)

</details>

</details>

**<details><summary>Version 1.4.10</summary>**

**<details><summary>Fixes</summary>**
Expand Down
9 changes: 8 additions & 1 deletion LethalLevelLoader/Patches/NetworkBundleManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ public override void OnNetworkSpawn()
AssetBundles.AssetBundleLoader.OnBundleUnloaded.AddListener(Instance.RefreshLoadStatus);
}

public override void OnNetworkDespawn()
{
base.OnNetworkDespawn();
AssetBundles.AssetBundleLoader.OnBundleLoaded.RemoveListener(Instance.RefreshLoadStatus);
AssetBundles.AssetBundleLoader.OnBundleUnloaded.RemoveListener(Instance.RefreshLoadStatus);
}

//This should run anytime the client joins a lobby
private void Initialize()
{
Expand Down Expand Up @@ -96,7 +103,7 @@ internal void Refresh()
//Called by StartOfRound.OnClientDisconnect.Postfix
internal void OnClientsChangedRefresh()
{
if (!IsServer) return;
if (!IsServer || (NetworkManager != null && NetworkManager.ShutdownInProgress)) return;
RequestLoadStatusRefreshServerRpc();
}

Expand Down
2 changes: 1 addition & 1 deletion LethalLevelLoader/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class Plugin : BaseUnityPlugin
{
public const string ModGUID = "imabatby.lethallevelloader";
public const string ModName = "LethalLevelLoader";
public const string ModVersion = "1.4.10";
public const string ModVersion = "1.4.11";

internal static Plugin Instance;

Expand Down
9 changes: 9 additions & 0 deletions LethalLevelLoader/Tools/Validators.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@ public static (bool result, string log) ValidateExtendedContent(ExtendedStoryLog

public static (bool result, string log) ValidateExtendedContent(ExtendedBuyableVehicle extendedBuyableVehicle)
{
if (extendedBuyableVehicle.BuyableVehicle.vehiclePrefab == null)
return (false, "Vehicle Prefab Was Null Or Empty");
else if (extendedBuyableVehicle.BuyableVehicle.secondaryPrefab == null)
return (false, "Vehicle Secondary Prefab Was Null Or Empty");
else if (extendedBuyableVehicle.BuyableVehicle.vehiclePrefab.GetComponent<NetworkObject>() == null)
return (false, "Vehicle Prefab Is Missing NetworkObject Component");
else if (extendedBuyableVehicle.BuyableVehicle.secondaryPrefab.GetComponent<NetworkObject>() == null)
return (false, "Vehicle Secondary Prefab Is Missing NetworkObject Component");

return (true, string.Empty);
}
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
**Description**
--

### **1.4.8 for Lethal Company v69 Has Released!**
### **1.4.11 for Lethal Company v69 Has Released!**

**LethalLevelLoader** is a custom API to support the manual and dynamic integration of custom levels and dungeons in Lethal Company.
Mod Developers can provide LethalLevelLoader with their custom content via code or via automatic AssetBundle detection, and from there LethalLevelLoader will seamlessly load the content into the game.
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "LethalLevelLoader",
"version_number": "1.4.10",
"version_number": "1.4.11",
"website_url": "https://github.com/IAmBatby/LethalLevelLoader",
"description": "A Custom API to support the manual and dynamic integration of all forms of custom content in Lethal Company. (v69 Compatible)",
"dependencies": [
Expand Down

0 comments on commit 5fbc602

Please sign in to comment.