Which post are you referring to, exactly? -The last one I can see if the one where the mod wasn't working for 2.2.2, I think? If that's the case, there's been an update since then (1.21.4) that addressed the issue. The structure of AI inventory files changes significantly in 2.2.2, and it needed significant changes to work again. That said, if you're having an issue with 1.21.4a, please let me know, and drop off a debug hash so I can try to replicate the issue : )
I need your debug hash, please.
It is, yes! -You have to modify mod.js, but this particular change is a little bit complicated. -You'd want to search for this line:
static addFactionIdentifiers()
And then below it you'll see the function that assigns armbands.
There will be a chunk of code, in particular, that looks like this:
let blue = {"5b3f3af486f774679e752c1f" : 1}
let green = {"5b3f3b0186f774021a2afef7" : 1}
let red = {"5b3f3ade86f7746b6b790d8e" : 1}
let white = {"5b3f16c486f7747c327f55f7" : 1}
let yellow = {"5b3f3b0e86f7746752107cda" : 1}
let purple = {"5f9949d869e2777a0e779ba5" : 1}
This determines which variable name is assigned to various armbands. If you scroll up, you'll see a list of all the armband IDs in the game on the left hand side, with their names on the right.
There are two ways to proceed from here: You can either change the ID that each colour references (eg: change the blue one to let blue = {"619bde7fc9546643a67df6f4" : 1} to give all bots that would normally have a blue armband the labs armband, instead), or you can add new variables following the same format (eg: add a line like: let kiba = {"619bde3dc9546643a67df6f2" : 1}) and then scroll down and assign that new colour to whichever bots you like.
On that note, most assignments look like this:
botTypes.assault.inventory.equipment.ArmBand = green. In this case, this is modifying the 'assault' bot.
If you wanted to give them the kiba armband from the example above, you'd just change that line to this:
botTypes.assault.inventory.equipment.ArmBand = kiba
However, there are also these four lines modify PMCs, accounting for the various new ways AKI can move the bot type of PMCs around, so just bear that in mind as well:
botTypes[botNameSwaps.usec].inventory.equipment.ArmBand = blue
botTypes[botNameSwaps.bear].inventory.equipment.ArmBand = red
botTypes[BotConfig.pmc.usecType].inventory.equipment.ArmBand = blue
botTypes[BotConfig.pmc.bearType].inventory.equipment.ArmBand = red
I hope that made sense!