Jump to content

FP Workbench Update

Pending 1.1.75

Bob Kazamakis
Bob Kazamakis

Posted

I'm sure you're aware but with FacePunch's workbench update today, the Craft Menu doesn't allow the Tech Tree to be used. 

Deneko

Posted

I made a small temporary fix until David can implement a full-fledged one.

1. In the plugin code, on line 47, replace "server.uselegacyworkbenchinteraction true" with "server.uselegacyworkbenchinteraction false"
This fixes the workbench opening issue, and the CraftMenu itself will be available in the workbench container.

2. If you care about the UI appearing slightly in the container, here's a fix (I don't know how exactly David interacts with the UI, I didn't quite understand it, so the fix is a bit weird, but it works):
Replace line 913 with 

CUIClass.CreatePanel(ref _baseCraftCui, "baseCraft_main", "Overlay", "0 0 0 0", $"{db[2]}.{db[1]} 0.{db[23]}", $"{db[10]}.{db[1]} 0.{db[10]}", false, 0.1f, 0f, "assets/icons/iconmaterial.mat", $"{db[12]}{db[14]} {int.Parse(db[6]) + 25}", $"{db[7]} {int.Parse(db[11]) + 25}");

I hope I didn't break the rules. If I did, I'm sorry, I was just trying to help.

  • Like 1
BetterDeadThanZed

Posted (edited)

10 hours ago, Deneko said:

I made a small temporary fix until David can implement a full-fledged one.

1. In the plugin code, on line 47, replace "server.uselegacyworkbenchinteraction true" with "server.uselegacyworkbenchinteraction false"
This fixes the workbench opening issue, and the CraftMenu itself will be available in the workbench container.

2. If you care about the UI appearing slightly in the container, here's a fix (I don't know how exactly David interacts with the UI, I didn't quite understand it, so the fix is a bit weird, but it works):
Replace line 913 with 

CUIClass.CreatePanel(ref _baseCraftCui, "baseCraft_main", "Overlay", "0 0 0 0", $"{db[2]}.{db[1]} 0.{db[23]}", $"{db[10]}.{db[1]} 0.{db[10]}", false, 0.1f, 0f, "assets/icons/iconmaterial.mat", $"{db[12]}{db[14]} {int.Parse(db[6]) + 25}", $"{db[7]} {int.Parse(db[11]) + 25}");

I hope I didn't break the rules. If I did, I'm sorry, I was just trying to help.

Didn't work for me. I open the workbench and there's just the regular crafting tree.

 

**EDIT** Nevermind, you have to open the Upgrades menu to get the craft menu with this method. Hopefully @David will update this soon.

Edited by BetterDeadThanZed
Bob Kazamakis

Posted

This morning, Facepunch released a hotfix: Fixed server.uselegacyworkbenchinteraction opening workbench inventory instead of tech tree

This seems to have solved the issue [which makes sense looking at what @Deneko had posted]. Sorry for the spam for something that ultimately seems to have been a FP issue. 

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
158.9k
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.