Change Workbench LevelSolved

Is it possible to change an item's workbench level so that an item like "High External Wall" which needs a workbench level 1, can instead be crafted without a workbench?

Crafting Controller has this capability.

NKXTQs24ExGTuL8.jpg WhiteThunder

Crafting Controller has this capability.

Thanks I'm looking into it now
NKXTQs24ExGTuL8.jpg WhiteThunder

Crafting Controller has this capability.

I see it is set with the following:

            ItemBlueprint bp = ItemManager.itemDictionaryByName[item.shortname].Blueprint;
            bp.workbenchLevelRequired = benchlvl;

I have been trying this with no luck. Setting bp.workbenchLevelRequired = 0 has no effect

I haven't tried that plugin, so I'm not sure if it will remove the "Workbench Level X" UI indicator from the craft menu. If it doesn't, the issue is that the client won't send the craft action to the server if you don't have the workbench, so the plugin's logic doesn't get invoked.

There is a way to make the client remove the "Workbench Level X" UI indicator, but that affects all items. When applying that to all items, it becomes harder for players to figure out why they can't craft the item, unless the plugin provides a notification on craft failure, such as via chat.

It sounds like Crafting Controller needs to be updated to better address that use case. I can take a look at it later this week.

If the indicator is still there, but I can craft it, thats fine, but I currently can't craft it at the moment. I just want to make sure I understand it correctly; that there is no way to get an item crafting (even after changing its workbenchlevel) without being next to a workbench?

It is possible to craft an item without being near a workbench, if the server has sent an RPC message to the client to change the client's craft mode. Changing the craft mode removes the craft level from the craft menu for all items, allowing the player to attempt crafting any item without a workbench. The plugin must also then override the server side logic to allow the craft attempt to succeed when the player is not near a workbench.

An example of changing craft mode is in the No Workbench plugin.

I just tried the No Workbench plugin and it worked, kind of.

It was able to remove the level requirment for all items. When I unloaded it, the requirement was still gone, even though its unload function should return it back to default. I can't seem to return it back to normal.

I can not figure out what code is responsible for this all item global workbenchrequirmentunlock, since it looks like in the server init, it goes through every blueprint and sets the workbenchrequirment to 0 for each individual item. Yet when I try to do the same in my plugin, it does nothing.

I have been able to research unlock the item through the propper RPC call, but it still says workbench level 1 required with my plugin.

Merged post

I just did a full server wipe, and the items still have no workbench requirement. Where is this being set? 

Merged post

Okay figured it out.

Its the following line that does the global lock/unlock:

 player.ClientRPCPlayer(null, player, "craftMode", 1);​

So ya there is no way to individually change it. I guess ill be making my own crafting menu then :/

Merged post

TLDR; there is no way to do it on an individual item bases. all or none.
Locked automatically