Display MoreIf you'd like to help, there is actually something you can do. I'd like to see what kind of bot data is being generated on your end, and compare that with what's supposed to be generated. To get that information, you'd want to open up mod.js and do this:
First find these lines:
if (["Bear", "Usec"].includes(bot.Info.Side))
bot.Info.Side = "Savage"
bot = AITweaks.regenBot(bot, true, false)
}
And then add these below them:
if (true)
{
let spawnLog
try{
spawnLog = require("../donottouch/spawnLogBEFORE.json")
}
catch{
spawnLog = {}
}
for (let bot in bots)
{
bot = bots[bot]
let botClone = JsonUtil.clone(bot)
delete botClone.Inventory
delete botClone.Skills
delete botClone.Hideout
spawnLog[Object.keys(spawnLog).length] = botClone
}
AITweaks.saveToFile(spawnLog, "donottouch/spawnLogBEFORE.json")
spawnLog = {}
}
And then find these lines:
return bots;
}
And replace them with this:
if (true)
{
let spawnLog
try{
spawnLog = require("../donottouch/spawnLogAFTER.json")
}
catch{
spawnLog = {}
}
for (let bot in bots)
{
bot = bots[bot]
let botClone = JsonUtil.clone(bot)
delete botClone.Inventory
delete botClone.Skills
delete botClone.Hideout
spawnLog[Object.keys(spawnLog).length] = botClone
}
AITweaks.saveToFile(spawnLog, "donottouch/spawnLogAFTER.json")
spawnLog = {}
}
return bots;
}
static saveToFile(data, filePath)
{
var fs = require('fs');
fs.writeFile(modFolder + filePath, JSON.stringify(data, null, 4), function (err) {
if (err) throw err;
});
}
When you run a raid this will store a log of all the bots that were generated. You don't need to do anything special, you should get useful data within just a couple of minutes, but either way.. -All that will be saved to two files in the donottouch folder, called spawnlogBEFORE and spawnlogAFTER .json. They'll be much too large to paste here (Probably about one million characters, or ~1mb, judging from my quick test case), so you'll need to upload it to dropbox or something.
There's no rush on this either, if you decide to do it. -I'm going to be a bit busy the next few days, anyways. If you do decide to do it, though, that's much appreciated ^ ^
Edit: Oh, also, of course: The config settings you used while gathering the data. -Then on my end I'll load up those settings and see what type of data I generate. ALternatively, if you want to just run the default FAIT config settings, you can just lemme know that's what you're doing.
Brilliant mate I will try that out when I have the next opportunity at my computer. I am working for the next 4 or 5 days and I'll be spending time with my partner and my son so a reply will be slow, however I am interested and keen to try this out. I think it would be easier if I email you or whatever I have never used Dropbox unless its for installing a mod lmao.