I just wanted to say this mod is awesome. I originally installed it to fix a bug I encountered with a mission and an explore data event conflicting. More recently I been testing some of the mechanics in the game around colony and planets. Here is some code I learned that may be useful to others:
Colony test, wanted the hazard lower to compare with another colony
RunCode Global.getSector().getStarSystem("Galaver").getEntityByName("Hantu Raya").getMarket().removeCondition("high_gravity")
Creating planet with low yield of several things for testing
RunCode Global.getSector().getStarSystem("Beta Labraxas").addPlanet("Matrix", Global.getSector().getStarSystem("Beta Labraxas").getEntityByName("Beta Labraxas"), "Matrix", "terran", 0, 190, 2250, 30)
RunCode Global.getSector().getStarSystem("Beta Labraxas").getEntityByName("Matrix").getMarket().addCondition("habitable")
RunCode Global.getSector().getStarSystem("Beta Labraxas").getEntityByName("Matrix").getMarket().addCondition("extreme_weather")
RunCode Global.getSector().getStarSystem("Beta Labraxas").getEntityByName("Matrix").getMarket().addCondition("farmland_poor")
RunCode Global.getSector().getStarSystem("Beta Labraxas").getEntityByName("Matrix").getMarket().addCondition("rare_ore_sparse")
RunCode Global.getSector().getStarSystem("Beta Labraxas").getEntityByName("Matrix").getMarket().addCondition("volatiles_trace")
# Reference for more planetary modifiers
http://fractalsoftworks.com/starfarer.api/constant-values.html#com.fs.starfarer.api.impl.campaign.ids.Conditions.RUINS_WIDESPREADFixing one of the bugged planets in Penelope's Star, by adding suitable conditions
RunCode import com.fs.starfarer.api.impl.campaign.procgen.PlanetConditionGenerator; import com.fs.starfarer.api.impl.campaign.procgen.StarAge; PlanetConditionGenerator.generateConditionsForPlanet((PlanetAPI)Global.getSector().getStarSystem("Penelope's Star").getEntityByName("Ithaca"), StarAge.OLD)
And just because I thought of it now, another suggestion for a feature that I could not find yet is to respec an officer or administrator. But seriously man, thanks for the mod!