Hello! I've been having some trouble with adding a campaign system to my mod and saw
this post about getting them to work without compiling anything with using vanilla systems as a base. I copied the Yma system as a starting point and took a look at the Periphery mod as Great Wound suggested to the original poster of that thread, with a data/world/generators.csv and all, but whenever I try to generate a sector, the game crashes and I get this popup.
error in log
25411 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain - java.lang.ClassCastException: data.scripts.world.systems.Calcari cannot be cast to com.fs.starfarer.api.campaign.SectorGeneratorPlugin
java.lang.ClassCastException: data.scripts.world.systems.Calcari cannot be cast to com.fs.starfarer.api.campaign.SectorGeneratorPlugin
at com.fs.starfarer.loading.O00O.super(Unknown Source)
at com.fs.starfarer.campaign.save.CampaignGameManager.o00000(Unknown Source)
at com.fs.starfarer.title.TitleScreenState.dialogDismissed(Unknown Source)
at com.fs.starfarer.ui.N.dismiss(Unknown Source)
at com.fs.starfarer.ui.impl.K.dismiss(Unknown Source)
at com.fs.starfarer.campaign.save.if.actionPerformed(Unknown Source)
at com.fs.starfarer.ui.OoO0.buttonPressed(Unknown Source)
at com.fs.starfarer.ui.oooO.Ò00000(Unknown Source)
at com.fs.starfarer.ui.oooO.processInput(Unknown Source)
at com.fs.starfarer.ui.V.o00000(Unknown Source)
at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
at com.fs.state.AppDriver.begin(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I had a quick look and compared the modded system to mine and added "import com.fs.starfarer.api.campaign.SectorGeneratorPlugin;" in the same place, assuming that said plugin not being imported was the problem, but apparently I get the issue regardless of whether or not it's there? Sorry if this is a kinda obvious issue, I'm admittedly not very knowledgeable about programming.