226
Modding / Re: Adding new star system
« on: February 04, 2018, 02:11:58 PM »
Ok, I added the code line, and got the following error when launching a new game (when starting on the character panel, before the game stabilize economy) :
Considering the log mention the Byzas system (the one I'm trying to add), I'm wondering if the error could come from the Byzas system file?
Yeah that's exactly why I want first to add the star systems then add the markets, seems pretty difficult to do the right way.
Spoiler
Quote
39611 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain - java.lang.NullPointerException
java.lang.NullPointerException
at com.fs.starfarer.combat.entities.terrain.Planet.<init>(Unknown Source)
at com.fs.starfarer.combat.entities.terrain.Planet.<init>(Unknown Source)
at com.fs.starfarer.campaign.CampaignPlanet.<init>(Unknown Source)
at com.fs.starfarer.campaign.CampaignPlanet.<init>(Unknown Source)
at com.fs.starfarer.campaign.BaseLocation.addPlanet(Unknown Source)
at data.scripts.world.systems.Byzas.generate(Byzas.java:35)
at data.scripts.world.FilgapGen.generate(FilgapGen.java:12)
at data.scripts.FilgapModPlugin.initFilgap(FilgapModPlugin.java:13)
at data.scripts.FilgapModPlugin.onNewGame(FilgapModPlugin.java:17)
at com.fs.starfarer.campaign.save.CampaignGameManager.o00000(Unknown Source)
at com.fs.starfarer.title.TitleScreenState.dialogDismissed(Unknown Source)
at com.fs.starfarer.ui.Oo0O.dismiss(Unknown Source)
at com.fs.starfarer.ui.impl.J.dismiss(Unknown Source)
at com.fs.starfarer.campaign.save.if.actionPerformed(Unknown Source)
at com.fs.starfarer.ui.j.super(Unknown Source)
at com.fs.starfarer.ui.I.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$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[close]
Considering the log mention the Byzas system (the one I'm trying to add), I'm wondering if the error could come from the Byzas system file?
Also, let me know if you need help implementing markets... they can be tricky. Especially if you want a balanced economy.
My first run at it had ~8 food shortages- 3 severe.. in the first month.
Yeah that's exactly why I want first to add the star systems then add the markets, seems pretty difficult to do the right way.