Jump to content
  • 0

How to add extra equipment slots?


Vio

Question

1 answer to this question

Recommended Posts

  • 2

This is not very difficult, just a bit tedious. It's been a few years since i've done this, so if I'm wrong someone else should chime in.

 

Open server folder, then resources folder, then config.json, search for "Slots" (it's child under Equipment section) And then add whatever equipment type you want.

 

For example, mine looks like this:

"Slots": [
      "Main-Hand",
      "Off-Hand",
      "Helmet",
      "Chest",
      "Boots",
      "Left Ring",
      "Right Ring",
      "Amulet",
      "Accessory"

 

Now you need to make the GUI recognize the new equipment slots. Go here: Client and Editor>resources>gui>layouts>game, open characterwindow.json. Now here's the tricky part, you need to manually add more character slots and then move them to an appropriate spot, mine for example i just copy pasted as many as I needed and moved the boxes around like this:
d10af070c6cdcce6fe7638545d3213b6.png

 

I recommend using this to learn a bit about how the GUI is set up)

 

So what you want to do is find "EquipmentItem0" in characterwindow.json, and then copy paste that section below the last one, change the number to for example 5, or whatever comes after the current last number. Now you need to set where the box is located (did you check the GUI Editor?) by changing the 'Bounds' part.

 

I highlighted the parts you need to change in the spoiler. Keep in mind these 'Bounds' numbers are the location within the character window box. So use the GUI Editor to find an appropriate location and then edit them manually in your game files.

 

Spoiler

"EquipmentItem0": {
        "Bounds": "8,35,36,36",
        "Padding": "0,0,0,0",
        "AlignmentEdgeDistances": "0,0,0,0",
        "AlignmentTransform": "0,0",
        "Margin": "0,0,0,0",
        "RenderColor": "255,255,255,255",
        "Alignments": "",
        "DrawBackground": true,
        "MinimumSize": "1,1",
        "MaximumSize": "4096,4096",
        "Disabled": false,
        "Hidden": false,
        "RestrictToParent": false,
        "MouseInputEnabled": true,
        "HideToolTip": false,
        "ToolTipBackground": "tooltip.png",
        "ToolTipFont": "sourcesansproblack,10",
        "ToolTipTextColor": "255,255,255,255",
        "Texture": "equipmentitem.png",
        "HoverSound": null,
        "LeftMouseClickSound": null,
        "RightMouseClickSound": null,
        "Children": {
          "EquipmentIcon": {
            "Bounds": "2,2,32,32",
            "Padding": "0,0,0,0",
            "AlignmentEdgeDistances": "0,0,0,0",
            "AlignmentTransform": "0,0",
            "Margin": "0,0,0,0",
            "RenderColor": "255,255,255,255",
            "Alignments": "",
            "DrawBackground": true,
            "MinimumSize": "1,1",
            "MaximumSize": "4096,4096",
            "Disabled": false,
            "Hidden": false,
            "RestrictToParent": false,
            "MouseInputEnabled": false,
            "HideToolTip": false,
            "ToolTipBackground": null,
            "ToolTipFont": null,
            "ToolTipTextColor": "",
            "Texture": null,
            "HoverSound": null,
            "LeftMouseClickSound": null,
            "RightMouseClickSound": null

 

I hope this works for you.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...