I'm new at modding, so forgive me if this is a stupid question.
I'm trying to add the vasari phase gate stabalizer tactical structure to the rebel advent faction. I edited the playerPsiRebel.entity file so that it includes PLANETMODULE_PHASEORBITALPHASEGATE in the planetModuleInfo section and increased the count by one. This adds the planet module to to the rebel advent faction like I wanted. Then, in order to actually build it, I removed the research requirements from the PLANETMODULE_PHASEORBITALPHASEGATE.entity file. This I managed to get working, and was able to successfully load the mod and build the phase gate stabilizer while playing as a rebel advent.
What I want to to do is make a custom phase gate stabalizer entity file that is specific to the rebel advent faction, so that only the rebel advent faction does not have the research requirements, but the vasari factions still do. I thought this would be as simple as making a new entity file with a different name that has the same info as the original, just without the research requirements, have the new entity file listed in playerPsiRebel.entity, and then add it to the enitity file manifest and increasing the count. However, the game crashes when I try to load the mod.
So, basically, I'm trying to figure out how have an existing race use a custom named entity file that has (mostly) the same info as the original. In the future, I'd like to customize the stats on the rebel advent battleships, but without effecting the loyalist faction.
I'm pretty sure I have the mod format correct. I have the new entity.manifest (with the custom enitity and updated count) in the mod directory, with the two modified entity files (PLANETMODULE_APHASEORBITALPHASEGATE and PlayerPsiRebel) in the Game info directory, which in turn is located in the mod directory (for the custom phasegate entity file, I just added the character 'A' to the name, don't know if that would effect anything, so long as the files listed match).
Edit: And after testing the modification that worked, I realized that the phase gate stabalizers won't work; Advent ships will follow the normal phase lanes. Anyone know how you would go about making them work for the advent faction?