31
Mods / Re: [0.9.1a] Shadowyards Reconstruction Authority 0.9.1rc3(10/20/19)
« on: June 21, 2020, 11:32:44 PM »
I finally figured out enough java to edit, recompile, and run a jar and despite some hiccups I think I know why you can't build the shadowyards station at station markets.
I went into MS_orbitalStationChecker.java and found this code.
boolean canBuild = market.getPlanetEntity() != null &&
(player.getRelationshipLevel(shadow).isAtWorst(RepLevel.WELCOMING) ||
Global.getSector().getPlayerFaction().knowsIndustry(getId()));
I removed market.getPlanetEntity() != null && to change the code so it only checks for the station blueprint or the necessary reputation with shadowyards. I came to the conclusion that market.getPlanetEntity() only checks that a market is a planet but I'm not sure if it does anything else. My edit runs seemingly fine and after testing in the campaign I can now build the station at station markets if I have the blueprint or if I have the reputation. I'm thinking you can just cut that single piece of code and the problem would be solved.
I went into MS_orbitalStationChecker.java and found this code.
boolean canBuild = market.getPlanetEntity() != null &&
(player.getRelationshipLevel(shadow).isAtWorst(RepLevel.WELCOMING) ||
Global.getSector().getPlayerFaction().knowsIndustry(getId()));
I removed market.getPlanetEntity() != null && to change the code so it only checks for the station blueprint or the necessary reputation with shadowyards. I came to the conclusion that market.getPlanetEntity() only checks that a market is a planet but I'm not sure if it does anything else. My edit runs seemingly fine and after testing in the campaign I can now build the station at station markets if I have the blueprint or if I have the reputation. I'm thinking you can just cut that single piece of code and the problem would be solved.