Alex, i have a question about for made a Nebula System.
I have look on the starsystemgenerator and i have see my problem, now i have a nebula system with jumppoint for out and in without crashing.
Because AutogenerateJumpPoint dislike the lack of Star.
But:
The script who made AutogenerateJumpPoint on random Nebula starsystem delete the Star before then after, re-insert. But do not work if you have market on the Nebula System, it seems, else crash.
So i have autogenerateJumpPoint with the Star, then i have deleted him.
So, like say before, all work perfectly, no crash when i try to pass a jump point or i put my cursor above, and i can return on the Nebula system without problem.
The unique problem than i have now is just than: Well, the system is not display on the Map.
Nebula starsystem who contains market:
StarSystemAPI system = sector.createStarSystem("Uclora");
system.getLocation().set(-10000, -17000);
system.setType(StarSystemType.NEBULA); <-- Put the system on Nebula.
system.setBackgroundTextureFilename("graphics/backgrounds/Noir_back.jpg");
PlanetAPI star = system.initStar("noir_staruclova", "star_yellow", 100, 10); <-- False Star
// [ . . . ] <- Planet,relay and jumppoint created here.
system.removeEntity(star);
StarCoronaTerrainPlugin coronaPlugin = Misc.getCoronaFor(star);
if (coronaPlugin != null) {
system.removeEntity(coronaPlugin.getEntity());
}
system.setStar(null);
system.initNonStarCenter();
for (SectorEntityToken entity : system.getAllEntities()) {
if (entity.getOrbitFocus() == star
|| entity.getOrbitFocus() == system.getCenter()) {
entity.setOrbit(null);
}
}
star.setSkipForJumpPointAutoGen(true);
system.setStar(star);
star.addTag(Tags.AMBIENT_LS);
system.autogenerateHyperspaceJumpPoints(true, false);
system.setStar(null);
system.initNonStarCenter();
system.getCenter().addTag(Tags.AMBIENT_LS);
Thank you!
Image of the two nebula hidden starsystem where i am: