Jump to content

After Update, New Cupboard Not Supported

Closed 3.4.3 3.4.4

SunShine ツ
Butters

Posted

I have a semi fix.

Replace;

private void OnEntityBuilt(Planner plan, GameObject go)
        {
            if (plan == null || go?.name == "assets/prefabs/deployable/tool cupboard/cupboard.tool.deployed.prefab") return;
            BuildingPrivlidge priv = plan.GetBuildingPrivilege();
            if (priv != null)
            {

With;

private void OnEntityBuilt(Planner plan, GameObject go)
        {
            if (plan == null ||
            go?.name == "assets/prefabs/deployable/tool cupboard/cupboard.tool.deployed.prefab" ||
            go?.name == "assets/prefabs/deployable/tool cupboard/retro/cupboard.tool.retro.deployed.prefab"
            ) return;
            BuildingPrivlidge priv = plan.GetBuildingPrivilege();
            if (priv != null)
            {

In the RaidProtection.cs file.

This only half fixes it though, it'll allow the new tc they've added to function but the Upkeep and Protection UI buttons will be missing from its inventory for some reason. BUT if you have a plugin like BetterTC which allows you to switch between the vanilla tc and new tc model then you can switch to the vanilla one, add protection then switch back to the new model and your base is safe. The Upkeep and Protection UI buttons only seem to like the vanilla tc for some reason.

(Shoutout to Mabel for helping me get this far, hopefully a proper fix can get implemented soon)

Mr01sam

Posted

Changed Status from Pending to Closed

Changed Fixed In to 3.4.4

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.5m
Total downloads
Customers
11.1k
Customers served
Files Sold
159.1k
Marketplace sales
Payments
3.4m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.