Jump to content

After Update, New Cupboard Not Supported

Closed 3.4.3 3.4.4

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

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.1k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • 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.