Craft Panel

Craft Panel 1.4.0

  • IMPORTANT: The configuration has changed. If you are going to apply this update you must delete the previous configuration (save it before in another place). Then update the plugin, it will generate a new configuration file similar to the previous one but with some changes.
  • IMPORTANT 2: A new field has been added in the configuration called ID, this must ALWAYS be a numeric and incremental value. In addition, it must not be repeated and must be the same as the order shown on the screen. If this is not respected you may have errors in the plugin.
  • A new field (Enabled) has also been added to enable or disable an article in the plugin. If it is disabled it will not be displayed at all.
  • Now you can change the font size of each description from the config.
  • Added a boolean to allow or disallow the custom article name. If it is false it will use the name Vanilla. (This is for those articles that are native to the game, that is, they are found on the F1 console)
  • A hint has been applied that will allow items with skins to be used as specific ingredients.
  • Now the label that appears on the screen that notifies that Workbench is required will appear in different colors depending on the level required: Green - Workbench 1. Blue - Workbench 2. Red - Workbench 3.
  • Now if the player does not have the use permission to craft an item it will not appear in the list, no more locked padlock icon.
CONFIG UPDATE It is recommended to save backup of the config, delete the plugin config and reinstall the plugin from scratch. Only a few fields at the beginning of the config change, so the settings for what can be crafted have not changed.
- A new configuration option has been added to show a button to open the panel when opening a workbench.
- Added a new permission so that players can see the button in the workbench (if the previous config is false, even if it has the permission it is not shown).
  • Like
Reactions: pinoysaboteur
A new configuration parameter is added to show a lock image on the locked items. That is, for articles whose user does not have permission to create.

Attachments

  • block.jpg
    block.jpg
    430.3 KB · Views: 171
  • Like
Reactions: pinoysaboteur
With this update you will no longer have limits to add items to craft.

Now if you have more than 16 items, a button will be shown to go to the next page or go back.

At the same time I have improved the code a bit.

Disadvantage or problem encountered: I have forced the option to show all items although the player will not have permission to craft if they do not have it authorized. When the item was not shown, it produced an error since the information did not correspond to the selected item.

If you find any error let me know!
  • Love
Reactions: wuge321
Now you can show the items even if the player does not have permission. But you won't be able to craft it.

- A new line of text is also automatically added to the lang.
I have fixed a bug that caused that no matter how much you had the item with the correct skin, it would return an error. This should now work correctly.

If the item asks for a specific skin, the player must have an item with the same skin.

If the item asks for an item without skin, it will not matter if the player has the item with or without skin.
New submarines are added as items due to mod defects. (The configuration is simply updated by adding the 2 new items)

Demonstration of how to craft the new Rust submarines using the Craft Panel mod and PortableVehicles (umod).


Currently these vehicles are not implemented in Portable Vehicles so I had to modify the mod myself. I will send my update to the original developer of said mod so that they can publish it on umod.

I attach in this update the update of said mod by myself so that you do not have problems.

I also attach the exclusive configuration of the 2 new items, in case you want to update it yourself more quickly.
Code:
{
      "Short Name": "Submarine Solo",
      "Full Name": "Submarine Solo",
      "Img Full": "https://i.imgur.com/F5UFLKB.jpg",
      "Img Icon": "https://i.imgur.com/UO9tKWD.png",
      "Description": "A portable 1-seater submarine for you to place on your favorite beach shore. You can pick it up later by hitting it with a wooden hammer.",
      "Craft Result": {
        "Command (keep empty to create item)": "portablevehicles.give {steamID} submarinesolo",
        "Shortname": "",
        "Amount": 0,
        "Skin ID": 0
      },
      "Permission Use": "craftpanel.submarinesolo.use",
      "Permission VIP": "craftpanel.submarinesolo.vip",
      "Permission No Cost": "craftpanel.submarinesolo.nocost",
      "VIP discount: 10 = 10%": 5,
      "Require Workbench? 0 = NOT, 1 = Level 1,...": 1,
      "Items": [
        {
          "Item": "metal.fragments",
          "Amount": 2500,
          "Skin ID": 0
        },
        {
          "Item": "scrap",
          "Amount": 300,
          "Skin ID": 0
        }
      ]
    },
    {
      "Short Name": "Submarine Duo",
      "Full Name": "Submarine Duo",
      "Img Full": "https://i.imgur.com/8nuFwuy.jpg",
      "Img Icon": "https://i.imgur.com/cJGnI2L.png",
      "Description": "A portable 2-seater submarine for you to place on your favorite beach shore. You can pick it up later by hitting it with a wooden hammer.",
      "Craft Result": {
        "Command (keep empty to create item)": "portablevehicles.give {steamID} submarineduo",
        "Shortname": "",
        "Amount": 0,
        "Skin ID": 0
      },
      "Permission Use": "craftpanel.submarineduo.use",
      "Permission VIP": "craftpanel.submarineduo.vip",
      "Permission No Cost": "craftpanel.submarineduo.nocost",
      "VIP discount: 10 = 10%": 5,
      "Require Workbench? 0 = NOT, 1 = Level 1,...": 2,
      "Items": [
        {
          "Item": "metal.fragments",
          "Amount": 3500,
          "Skin ID": 0
        },
        {
          "Item": "metal.refined",
          "Amount": 10,
          "Skin ID": 0
        },
        {
          "Item": "scrap",
          "Amount": 400,
          "Skin ID": 0
        },
        {
          "Item": "sheetmetal",
          "Amount": 5,
          "Skin ID": 0
        }
      ]
    },

Any problem let me know.
If you want to add an object as crafting material with custom skin, now you can do it by editing the new field of the configuration file of each object.

IMPORTANT
Before updating make a copy of the configuration, since it has been modified to add this new field.

You can manually edit your old configuration file by adding the following code to each crafting resource item:
- BEFORE (As you have so far)
Code:
{
    "Item": "metal.refined",
    "Amount": 300
},
- NOW (How you should change it)
Code:
{
    "Item": "metal.refined",
    "Amount": 300,
    "Skin ID": 0
},

Just add:
,
"Skin ID": 0

Every resource.


To customize the object with a custom skin simply change 0 to the id of the Skin. If you have any problem let me know.
  • Love
Reactions: TeeJayAwreka
The images of the icons of the items to be manufactured have been optimized. Some were 900x900 pixels in size. With 300 is plenty.
By mistake I forgot some links from my private image server. They have been replaced.