I am sorry for asking too much questions, but somehow i am still unable to set up my faction's system. I have set up the faction file, gen file, and the system file itself (in .java).
{
id:"renis_imperium",
"color":[224,213,37,255],
"baseUIColor":[59,76,90,255],
"darkUIColor":[39,56,70,175],
"gridUIColor":[65,82,96,75],
#"darkUIColor":[100,100,100,175],
#"gridUIColor":[120,120,120,75],
#"color":[170,0,110,255],
"displayName":"Renis Imperium",
"logo":"graphics/renis/factions/renis_imperium.png",
"displayNameWithArticle":"the Renis Imperium",
"shipNamePrefix":"RIS",
"shipNameSources":{
"BRITISH_NAVY":1,
"ROMAN":1,
"GREEK":1,
},
"names":{
"old english":1,
},
"illegalCommodities":[
"drugs",
"organs",
],
"internalComms":"renis_imperium_internal",
"portraits":{
"standard_male":[
"graphics/portraits/portrait_hegemony01.png",
"graphics/portraits/portrait_hegemony02.png",
"graphics/portraits/portrait_hegemony05.png",
"graphics/portraits/portrait_mercenary01.png",
"graphics/portraits/portrait_mercenary03.png",
"graphics/portraits/portrait13.png",
"graphics/portraits/portrait15.png",
],
"standard_female":[
"graphics/portraits/portrait_hegemony03.png",
"graphics/portraits/portrait_hegemony04.png",
"graphics/portraits/portrait_mercenary02.png",
"graphics/portraits/portrait16.png",
],
},
"shipRoles":{
"interceptor":{
"r_seberat_wing":10,
"thunder_wing":10,
"fallback":{"fighter":1},
},
"fighter":{
"r_seberat_wing":10,
"fallback":{"interceptor":1},
},
"bomber":{
"piranha_wing":10,
},
"fastAttack":{
"r_enim_support":10,
"r_enim_assault":10,
"r_fasustport_assault":2,
"fallback":{"combatSmall":1},
},
"escortSmall":{
"r_enim_support":10,
"r_dreneder_balanced":1,
"r_enim_assault":10,
"fallback":{"combatSmall":1},
},
"escortMedium":{
"r_arloneria_balanced":10,
"r_arloneria_flas":10,
"r_fasustport_elite":10,
"r_fasustport_assault":10,
"fallback":{"combatMedium":1},
},
"combatSmall":{
"r_enim_assault":10,
"r_enim_support":10,
"r_dreneder_balanced":10,
"fallback":{"escortSmall":1},
},
"combatMedium":{
"r_fasustport_assault":10,
"r_fasustport_elite":10,
"r_fasustport_support":10,
"r_arloneria_balanced":10,
"r_arloneria_flas":10,
"sunder_CS":10,
"sunder_Assault":10,
"fallback":{"combatSmall":2},
},
"combatLarge":{
"r_minet_balanced":10,
"fallback":{"combatMedium":2},
},
"combatCapital":{
"r_ultima_balanced":10,
"fallback":{"combatLarge":2},
},
# hybrid ships with good combat and cargo capacity
"combatFreighterSmall":{
"fallback":{"freighterSmall":1},
},
"combatFreighterMedium":{
"fallback":{"combatFreighterSmall":2},
},
"combatFreighterLarge":{
"fallback":{"combatFreighterMedium":2},
},
"civilianRandom":{
"mercury_Standard":10,
"hermes_Standard":10,
"fallback":{"freighterSmall":1},
},
# carriers
"carrierSmall":{
"r_cafarrstier_support":10,
"fallback":{"carrierMedium":1},
},
"carrierMedium":{
"fallback":{"carrierSmall":2},
},
"carrierLarge":{
"fallback":{"carrierMedium":2},
},
# freighters and such
"freighterSmall":{
"hermes_Standard":10,
"fallback":{"freighterMedium":1},
},
"freighterMedium":{
"buffalo_Standard":10,
"fallback":{"freighterSmall":2},
},
"freighterLarge":{
"atlas_Standard":10,
"fallback":{"freighterMedium":2},
},
"tankerSmall":{
"dram_Light":10,
"fallback":{"tankerMedium":1},
},
"tankerMedium":{
"phaeton_Standard":10,
"fallback":{"tankerSmall":2},
},
"tankerLarge":{
"prometheus_Super":10,
"fallback":{"tankerMedium":2},
},
"personnelSmall":{
"mercury_Standard":10,
"fallback":{"personnelMedium":1},
},
"personnelMedium":{
"valkyrie_Elite":10,
"fallback":{"personnelSmall":2},
},
"personnelLarge":{
"fallback":{"personnelMedium":2},
},
# utility ships
"tug":{
"ox_Standard":10,
"fallback":{"utility":1},
},
"crig":{
"crig_Standard":10,
"fallback":{"utility":1},
},
"utility":{
"crig_Standard":10,
"ox_Standard":10,
},
},
"traits":{
"admiral":{
},
"captain":{
"cowardly":1,
"cautious":1,
"steady":1,
"aggressive":1,
"suicidal":1,
"fearless":1,
},
},
"dialogue":{
"greetingFriendly":"RIIC received. Friendly status confirmed. Good to see you.",
"greetingNeutral":"You have been scanned and identified. Communique on protocol Nu established. Over.",
"greetingHostileAggressive":"For violation of Rule 98 of the , power down your vessel and surrender. Over.",
"greetingHostileTimid":"For violation of Rule 56 of the , nearby patrol fleets has already been dispatched to intercept your fleet. You are advised to power down weapon systems and surrender. Over.",
}
},
package data.scripts.world.renisimsystems;
import com.fs.starfarer.api.Global;
//import com.fs.starfarer.api.InteractionDialogImageVisual;
import com.fs.starfarer.api.campaign.JumpPointAPI;
import com.fs.starfarer.api.campaign.LocationAPI;
import com.fs.starfarer.api.campaign.OrbitAPI;
import com.fs.starfarer.api.campaign.PlanetAPI;
import com.fs.starfarer.api.campaign.SectorAPI;
import com.fs.starfarer.api.campaign.SectorEntityToken;
import com.fs.starfarer.api.campaign.StarSystemAPI;
import java.awt.Color;
import com.fs.starfarer.api.impl.campaign.ids.Conditions;
import com.fs.starfarer.api.impl.campaign.ids.Submarkets;
import java.util.ArrayList;
import java.util.Arrays;
public class Lorenais {
public void generate(SectorAPI sector) {
StarSystemAPI system = sector.createStarSystem("Lorenais");
system.getLocation().set(8500, -8500);
LocationAPI hyper = Global.getSector().getHyperspace();
system.setBackgroundTextureFilename("graphics/backgrounds/background4.jpg");
PlanetAPI lorenais = system.initStar("lorenais", "star_yellow", 800f);
PlanetAPI lore1 = system.addPlanet("hexis", lorenais, "Hexis", "barren", 36, 80, 1000, 64);
lore1.setFaction("renis_imperium");
PlanetAPI lore2 = system.addPlanet("poliensar", lorenais, "Poliensar", "gas_giant", 196, 180, 2250, 179);
PlanetAPI lore3 = system.addPlanet(null, lore2, "Crelanom", "cryovolcanic", 50, 50, 600, 40);
system.addRingBand(lore2, "misc", "rings1", 128f, 2, Color.white, 128f, 550, 40f);
SectorEntityToken relay = system.addCustomEntity("lorenais_relay", // unique id
"Lorenais Relay", // name - if null, defaultName from custom_entities.json will be used
"comm_relay", // type of object, defined in custom_entities.json
"renis_imperium"); // faction
relay.setCircularOrbit( system.getEntityById("lorenais"), 279, 2000, 485);
SectorEntityToken l1 = system.getEntityById("hexis");
JumpPointAPI jumpPoint = Global.getFactory().createJumpPoint("hexis_gate", "Hexis Gate");
OrbitAPI orbit = Global.getFactory().createCircularOrbit(l1, 0, 550, 30);
jumpPoint.setOrbit(orbit);
jumpPoint.setRelatedPlanet(l1);
jumpPoint.setStandardWormholeToHyperspaceVisual();
system.addEntity(jumpPoint);
system.autogenerateHyperspaceJumpPoints(true, true);
}
}
Looking into other mod's files, i assume the three files above are the only files necessary to set up a system. But still, it only shows the faction in the intel screen without any known enemies nor allies (even if it has been defined in the gen class) and the systems i am trying to set up are missing. Am i missing something? Thank you.