Creating a new Compatibility
BEComTweaks had just received its overhaulled compatibility handler, so here is a full docs on it
{
"maxway": 3,
"3way": {
"compatibilities": [
["packid1", "packid2", "packid3"]
],
"locations": [
"compatibility/packid123"
]
},
"2way": {
"compatibilities": [
["packid1", "packid3"]
],
"locations": [
"compatibility/packid13"
]
}
}
This is a complicated mess, so I'll try my best to explain this
Firstly, maxway
.
What is it?
It specifies the maximum number of seperate packs merging into one for a compatibility
In Git, merges can be 3way, that is when there are 3 different input streams to merges into 1. This aims to add it similarly to that
Now the next few keys are very important in defining the compatibility
Say we use the example compatibility.json
from above
maxway
is set to 3, so there will only be 3way and 2way compatibilities.
If maxway
is set to 10, there can be 2way to 10way compatibilities set
Now with your choice of n-way, you now need to create two extra objects
Say you want to add a 4 way compatibility while using the example compatibility.json
Set
maxway
to 4This allows the pack generator to know the maximum way compatibility possible
Create a new key called
4way
Here is how the key would look like
"4way": {
"compatibilities": [
["packid1", "packid2", "packid3", "packid4"]
],
"locations": [
"compatibility/packid1234"
]
}
- The
compatibility
key contains the list of packs with compatibilities within each other - The
locations
key contains their respective location with respective from./packs
- In this case, the location is
compatibility/packid1234
, so it will be located atpacks/compatibility/packid1234
- In this case, the location is
If you are making an n-way compatibility where n
is lesser than maxway
, then you can just add onto the existing n-way
key
That should be about it!
Contributors