Barotrauma

Barotrauma

Barotrauma Workshop
You can build your own submarines and monsters with in-game editors and share your creations with other players. Imagine and experiment.
Failed to add the prefab 'family'
I tried making a small mod that affects talents. I put it in local mods set the filelist but when I try to activate the mod it says the following:


Failed to load "LocalMods/Perkswap/Talents/Captain/TalentsCaptain.xml": Failed to add the prefab "family" (Barotrauma.TalentPrefab) from "Perks swap" (LocalMods\Perkswap): a prefab with the same identifier from "Vanilla" (Content\ContentPackages) already exists; try overriding
at Barotrauma.PrefabSelector`1.AddInternal(T prefab, Boolean isOverride) in B:\programming\c#\Barotrauma\Barotrauma\BarotraumaShared\SharedSource\Prefabs\PrefabSelector.cs:line 116
at Barotrauma.PrefabSelector`1.Add(T prefab, Boolean isOverride) in B:\programming\c#\Barotrauma\Barotrauma\BarotraumaShared\SharedSource\Prefabs\PrefabSelector.cs:line 35
at Barotrauma.PrefabCollection`1.Add(T prefab, Boolean isOverride) in B:\programming\c#\Barotrauma\Barotrauma\BarotraumaShared\SharedSource\Prefabs\PrefabCollection.cs:line 405
at Barotrauma.GenericPrefabFile`1.LoadFromXElement(ContentXElement parentElement, Boolean overriding) in B:\programming\c#\Barotrauma\Barotrauma\BarotraumaShared\SharedSource\ContentManagement\ContentFile\GenericPrefabFile.cs:line 39
at Barotrauma.GenericPrefabFile`1.LoadFromXElement(ContentXElement parentElement, Boolean overriding) in B:\programming\c#\Barotrauma\Barotrauma\BarotraumaShared\SharedSource\ContentManagement\ContentFile\GenericPrefabFile.cs:line 53
at Barotrauma.ContentPackage.<>c__DisplayClass52_0.<<LoadContentEnumerable>g__loadFiles|1>d.MoveNext() in B:\programming\c#\Barotrauma\Barotrauma\BarotraumaShared\SharedSource\ContentManagement\ContentPackage\ContentPackage.cs:line 280
---

I don't get what it means by that. Anyone know what I've done wrong?
< >
Showing 1-1 of 1 comments
spaceweezle 7 Oct, 2023 @ 9:58pm 
Well it seems by "family" it was actually referring to the identifier of the first string, and later subsequent strings.

I have since encapsulated everything with override tags. The mod loads but it doesn't actually work. I replaced a Captain perk with another yet the one that was replaced still shows in the characters talent sheet.

Maybe it will work on a new game?

Bummer still not working. I tried going a different route by modifying the Talent trees themselves but it throws this error:

GenericPrefabFile: Invalid TalentsFile element: TalentTrees in LocalMods/Perkswap/Talents/TalentTrees.xml

Seems it does like the Security officer perk tree in place of Captain. I'd love to know where it references that data.
Last edited by spaceweezle; 7 Oct, 2023 @ 10:19pm
< >
Showing 1-1 of 1 comments
Per page: 1530 50