How do I overwrite faction files of vanilla starsector and the faction files of other mods? I have all the faction files and the portraits done but I can't get the game the overwrite the old portraits from other mods or the vanilla game.
mod_info looks like this, probably done way wrong:
{
"id":"portraits2", # internal id
"name":"Portrait Pack CUSTOM", # displayed to the player
"version":"v2",
"description":"Adds way more portraits for the campaign for player choice.",
"gameVersion":"0.8a",
"replace":["data/world/factions/player.faction",],
"replace":["data/world/factions/hegemony.faction",],
"replace":["data/world/factions/independent.faction",],
"replace":["data/world/factions/kinghts_of_ludd.faction",],
"replace":["data/world/factions/lions_guard.faction",],
"replace":["data/world/factions/luddic_church.faction",],
"replace":["data/world/factions/luddic_path.faction",],
"replace":["data/world/factions/persean_league.faction",],
"replace":["data/world/factions/pirates.faction",],
"replace":["data/world/factions/poor.faction",],
"replace":["data/world/factions/scavengers.faction",],
"replace":["data/world/factions/sindrian_diktat.faction",],
"replace":["data/world/factions/sleeper.faction",],
"replace":["data/world/factions/tritachyon.faction",],
"replace":["mods/Blackrock Drive Yards/data/world/factions/blackrock_Driveyards.faction",],
"replace":["mods/Blackrock Drive Yards/data/world/factions/br_consortium.faction",],
"replace":["mods/HMI/data/world/factions/brighton.faction",],
"replace":["mods/HMI/data/world/factions/hmi.faction",],
"replace":["mods/Underworld/data/world/factions/cabal.faction",],
"replace":["mods/DIABLEAVIONICS/data/world/factions/diableavionics.faction",],
"replace":["mods/Shadowyards/data/world/factions/shadow_industry.faction",],
"replace":["mods/tahlan/data/world/factions/tahlan_legioinfernalis.faction",],
}