Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.98a is out! (03/27/25)

Pages: 1 2 [3] 4 5 ... 11

Author Topic: [0.98a] Customizable Star Systems (v3.0.0)  (Read 134882 times)

Clockwokis

  • Ensign
  • *
  • Posts: 15
    • View Profile
Re: [0.96a-RC10] Customizable Star Systems (v1.0.2)
« Reply #30 on: November 07, 2023, 07:46:08 PM »

i for some reason cant add extreme heat to any world, it always comes up as a fatl error, is it just not possible or something?
Logged

Tranquility

  • Captain
  • ****
  • Posts: 285
    • View Profile
Re: [0.96a-RC10] Customizable Star Systems (v1.0.3)
« Reply #31 on: November 08, 2023, 12:00:46 PM »

Another quick update to address a long-standing, well-hidden bug, as well as providing more error logging. It should be save-compatible.

v1.0.3
  • Fixed a bug where custom star systems with comm relays or similar entities were erroneously marked as though they contained a Coronal Hypershunt
    - This also fixes "isCoreWorldSystem" tags being overridden due to this same bug
  • Fixed logging for generating custom star systems during new game creation
  • "SpawnCustomStarSystems" command and the related LunaSnippet now print the exception messages for generation and syntax errors, respectively
  • Minor code refactors


i for some reason cant add extreme heat to any world, it always comes up as a fatl error, is it just not possible or something?

The vanilla Extreme Heat condition actually has an ID of "very_hot", which, if you are trying to add in the condition, might be why you are having this error. It's quite a common mistake, so just be aware that in-game names for conditions, planets, etc. do not necessarily match their respective IDs.

Clockwokis

  • Ensign
  • *
  • Posts: 15
    • View Profile
Re: [0.96a-RC10] Customizable Star Systems (v1.0.3)
« Reply #32 on: November 08, 2023, 01:09:31 PM »

Another quick update to address a long-standing, well-hidden bug, as well as providing more error logging. It should be save-compatible.

v1.0.3
  • Fixed a bug where custom star systems with comm relays or similar entities were erroneously marked as though they contained a Coronal Hypershunt
    - This also fixes "isCoreWorldSystem" tags being overridden due to this same bug
  • Fixed logging for generating custom star systems during new game creation
  • "SpawnCustomStarSystems" command and the related LunaSnippet now print the exception messages for generation and syntax errors, respectively
  • Minor code refactors


i for some reason cant add extreme heat to any world, it always comes up as a fatl error, is it just not possible or something?

The vanilla Extreme Heat condition actually has an ID of "very_hot", which, if you are trying to add in the condition, might be why you are having this error. It's quite a common mistake, so just be aware that in-game names for conditions, planets, etc. do not necessarily match their respective IDs.

oh, thanks for the info.
Logged

Renjack

  • Ensign
  • *
  • Posts: 2
    • View Profile
Re: [0.96a-RC10] Customizable Star Systems (v1.0.2)
« Reply #33 on: November 09, 2023, 03:31:53 AM »

You can find how the vanilla Core Systems are made via the .java files in the starsector-core/data/scripts/world/systems folder, which is how I was able to recreate much of the Penelope's Star system in this mod. I can't guarantee all vanilla star systems can be recreated this way with similar accuracy, though, as they generally do their own things and often go outside the boundaries/limitations of proc-gen star systems. Also, you'll need some basic literacy with Java code to interpret the star system code for the vanilla systems, but, once you can read it well, it shouldn't prove too difficult getting the numbers and options needed to make a custom star system similar to the original.

Great direction. Thank you.
I had success. Java files were easy enough to read though I was perplexed a bit about a few things.
Seems Magec's visible rings are all ring entities. There are asteroid belt lines in the code for Magec (spoiler.)
They put the belts on the system's map, but don't show in the system. Guess that's what null means?
I tried all of the innerBandindex options and none of them were invisible.
Spoiler
      system.addAsteroidBelt(star, 100, 3300, 256, 150, 250, Terrain.ASTEROID_BELT, null);
      system.addAsteroidBelt(star, 100, 3700, 256, 150, 250, Terrain.ASTEROID_BELT, null);
      
      system.addAsteroidBelt(star, 100, 4150, 128, 200, 300, Terrain.ASTEROID_BELT, null);
      system.addAsteroidBelt(star, 100, 4450, 188, 200, 300, Terrain.ASTEROID_BELT, null);
      system.addAsteroidBelt(star, 100, 4675, 256, 200, 300, Terrain.ASTEROID_BELT, null);
[close]
There were a few more lines I didn't understand referring to a "Guayota's Disk." All similar to the following.
Spoiler
      // add one ring that covers all of the above
      SectorEntityToken ring = system.addTerrain(Terrain.RING, new RingParams(600 + 256, 3500, null, "Guayota's Disk"));
      ring.setCircularOrbit(star, 0, 0, 100);
[close]
Might be covering all the visual ring entities in one collective terrain for sensor profile manipulations? Not sure.
Logged

TheFrostedTavern

  • Ensign
  • *
  • Posts: 2
    • View Profile
Re: [0.96a-RC10] Customizable Star Systems (v1.0.3)
« Reply #34 on: November 30, 2023, 09:52:08 AM »

If one was too add a custom derelict ship into a system, what would an example of said custom entity be?
Logged

JEENAH

  • Lieutenant
  • **
  • Posts: 53
    • View Profile
Re: [0.96a-RC10] Customizable Star Systems (v1.0.3)
« Reply #35 on: December 09, 2023, 04:18:26 AM »

So i'm using this mod to create some cool systems for my faction, but ... Seems like, i can't add another system (Except the already pre-existing one in the file).

My code seem to be correct (I used a code corrector to see if i forgot anything, but doesn't seems like it).





So i guess i'm stupid.

EDIT : Found source of the problem. It is solved. Took me ... A long time.
« Last Edit: December 09, 2023, 06:22:38 AM by JEENAH »
Logged

DaDemonicDiddler

  • Ensign
  • *
  • Posts: 1
    • View Profile
Re: [0.96a-RC10] Customizable Star Systems (v1.0.3)
« Reply #36 on: December 11, 2023, 02:16:45 AM »

I was trying to add a station to a custom system and it causes crashes on system generation with the cause being a "java.lang.NullPointerException". Anyone know what is causing it? Also sometimes after some changes to a planet the other crash cause would be a missing orbit radius, i thought it would default if the line was missing but i guess not.

{
  "PersonalSystem": {
    "isEnabled": true,
    "setLocation": [-30000, -19000],
    "systemBackground": "background4.jpg",
    "entities": [
      {
        "entity": "star",
        "type": "star_blue_giant",
        "name": "Methran",
        "radius": 1100,
        "coronaRadius": 500,
        "orbitRadius": 20000
      },
      {
        "entity": "planet",
        "type": "lava_minor",
        "orbitAngle": 30,
        "radius": 110,
        "orbitRadius": 2850,
        "orbitDays": 90,
        "conditions": []
      },
      {
        "entity": "planet",
        "type": "terran-eccentric",
        "orbitAngle": 50,
        "radius": 150,
        "orbitRadius": 4500,
        "orbitDays": 135,
        "conditions": []
      },
      {
        "entity": "planet",
        "type": "terran",
        "orbitAngle": 50,
        "radius": 250,
        "orbitRadius": 5000,
        "orbitDays": 180,
        "conditions": [
          "habitable",
          "farmland_rich",
          "low_gravity",
          "mild_climate",
          "ruins_vast",
          "rat_bionic_plantlife",
          "solar_array",
          "rat_kinetic_launchsystem"
        ]
      },
      {
        "entity": "planet",
        "type": "jungle",
        "orbitAngle": 80,
        "radius": 130,
        "orbitRadius": 6800,
        "orbitDays": 225,
        "conditions": []
      },
      {
        "entity": "planet",
        "focus": 4,
        "type": "water",
        "orbitAngle": 80,
        "radius": 60,
        "orbitRadius": 400,
        "orbitDays": 25,
        "conditions": []
      },
      {
        "entity": "planet",
        "type": "gas_giant",
        "orbitAngle": 230,
        "radius": 275,
        "orbitRadius": 9500,
        "orbitDays": 450,
        "conditions": ["volatiles_plentiful", "low_gravity"],
        "specChanges": {
          "planetColor": [150, 245, 255, 255],
          "glowTexture": "clouds_banded01.png",
          "glowColor": [250, 225, 55, 64],
          "useReverseLightForGlow": true
        }
      },
      {
        "entity": "planet",
        "focus": 6,
        "type": "tundra",
        "orbitAngle": 30,
        "radius": 50,
        "orbitRadius": 700,
        "orbitDays": 22,
        "conditions": []
      },
      {
        "entity": "planet",
        "focus": 6,
        "type": "rocky_ice",
        "orbitAngle": 120,
        "radius": 70,
        "orbitRadius": 1000,
        "orbitDays": 45,
        "conditions": []
      },
      {
        "entity": "planet",
        "type": "gas_giant",
        "orbitAngle": 250,
        "radius": 280,
        "orbitRadius": 12050,
        "orbitDays": 650,
        "conditions": [],
        "specChanges": {
          "planetColor": [170, 190, 255, 255],
          "glowTexture": "clouds_banded01.png",
          "glowColor": [250, 225, 155, 32]
        }
      },
      {
        "entity": "planet",
        "type": "cryovolcanic",
        "orbitAngle": 130,
        "radius": 100,
        "orbitRadius": 14520,
        "orbitDays": 335,
        "conditions": []
      },
      {
        "entity": "stable_location",
        "focus": [2, 4]
      },
      {
        "entity": "jump_point",
        "name": "Methran's Inner Jump-point",
        "focus": [3, 4]
      },
      {
        "entity": "stable_location",
        "focus": [5, 3]
      },
      {
        "entity": "asteroid_field",
        "name": "Methran L4 Asteroids",
        "size": 450,
        "focus": [5, 4]
      },
      {
        "entity": "asteroid_field",
        "name": "Methran L5 Asteroids",
        "size": 450,
        "focus": [5, 5]
      },
      {
        "entity": "stable_location",
        "focus": [5, 5]
      },
      {
        "entity": "jump_point",
        "name": "Methran's Outer Jump-point",
        "focus": [8, 5]
      },
      {
        "entity": "jump_point",
        "name": "Fringe Jump-point",
        "orbitRadius": 16000
      },
      {
        "entity": "asteroid_belt",
        "orbitRadius": 2200,
        "innerBandIndex": 3,
        "outerBandIndex": 3,
        "size": 100
      },
      {
        "entity": "magnetic_field",
        "focus": 5,
        "orbitRadius": 325,
        "size": 435,
        "middleRadius": 218,
        "outerRadius": 525,
        "baseColor": [50, 20, 100, 50],
        "auroraFrequency": 0.5,
        "auroraColors": [
          [90, 180, 40, 255],
          [130, 145, 90, 255],
          [165, 110, 145, 255],
          [95, 55, 160, 255],
          [45, 0, 130, 255],
          [20, 0, 130, 255],
          [10, 0, 150, 255]
        ]
      },
      {
        "entity": "station",
        "type": "station_sporeship_derelict",
        "focus": 8,
        "orbitAngle": 90,
        "orbitRadius": 420,
        "orbitDays": 25
      },
      {
        "entity": "ring",
        "type": "rings_special0",
        "focus": 8,
        "orbitRadius": 600
      },
      {
        "entity": "asteroid_belt",
        "orbitRadius": 13750,
        "innerBandIndex": 0,
        "outerBandIndex": 0,
        "size": 200
      },
      {
        "entity": "inactive_gate",
        "focus": [9, 4]
      },
      {
        "entity": "remnant_station",
        "orbitRadius": 300,
        "orbitAngle": 0,
        "orbitDays": 18
      },
      {
        "entity": "remnant_station",
        "orbitRadius": 300,
        "focus": 4,
        "isDamaged": true
      },
      {
        "entity": "alpha_site_weapons_cache",
        "orbitRadius": 11111
      },
      {
        "entity": "station",
        "focus": 11,
        "name": "Aegis Outpost",
        "type": "station_side04",
        "marketSize": 6,
        "factionId": "independant",
        "freePort": true,
        "industries": [
          ["population", "orbital_fusion_lamp", true],
          "megaport",
          "waystation",
          "heavybatteries",
          ["highcommand", "alpha_core"],
          ["starfortress_low", "alpha_core"],
          ["orbitalworks", "corrupted_nanoforge"]
        ],
        "conditions": [
          "very_cold",
          "dark",
          "vice_demand",
          "rat_rampant_military_core",
          "rat_defensive_drone",
          "rat_ancient_military_hub"
        ]
      }
    ]
  }
}
Logged

Tranquility

  • Captain
  • ****
  • Posts: 285
    • View Profile
Re: [0.96a-RC10] Customizable Star Systems (v1.0.3)
« Reply #37 on: December 13, 2023, 09:43:41 AM »

I was trying to add a station to a custom system and it causes crashes on system generation with the cause being a "java.lang.NullPointerException". Anyone know what is causing it? Also sometimes after some changes to a planet the other crash cause would be a missing orbit radius, i thought it would default if the line was missing but i guess not.

...

Always remember to include the starsector.log file if submitting a crash report (or at least, the lines showing the error/exception; the examples in this thread should help with figuring this out), as otherwise I literally cannot pinpoint what the error even is in the first place. With the limited information that's given here, all I can quickly deduce is that maybe there's an invalid parameter for one of the settings in this customStarSystems.json, but where that could be even I have no clue.
« Last Edit: December 13, 2023, 09:46:51 AM by Tranquility »
Logged

Fishbones

  • Ensign
  • *
  • Posts: 16
    • View Profile
Re: [0.96a-RC10] Customizable Star Systems (v1.0.3)
« Reply #38 on: December 14, 2023, 08:32:15 AM »

Been trying to convert my System from adversary(before this mod was separated from it) but kept hitting "JSONArray[1] not found" Error and only shows up when this mod is enabled

Log
Spoiler
140177 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.RuntimeException: org.json.JSONException: JSONArray[1] not found.
java.lang.RuntimeException: org.json.JSONException: JSONArray[1] not found.
   at org.tranquility.customizablestarsystems.CSSModPlugin.onNewGameAfterProcGen(CSSModPlugin.java:53)
   at com.fs.starfarer.campaign.save.CampaignGameManager.super(Unknown Source)
   at com.fs.starfarer.title.TitleScreenState.dialogDismissed(Unknown Source)
   at com.fs.starfarer.ui.public.dismiss(Unknown Source)
   at com.fs.starfarer.ui.impl.L.dismiss(Unknown Source)
   at com.fs.starfarer.campaign.save.J.actionPerformed(Unknown Source)
   at com.fs.starfarer.ui.n.buttonPressed(Unknown Source)
   at com.fs.starfarer.ui.I.Ò00000(Unknown Source)
   at com.fs.starfarer.ui.I.processInput(Unknown Source)
   at com.fs.starfarer.ui.W.super(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.o00000(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: org.json.JSONException: JSONArray[1] not found.
   at org.json.JSONArray.get(JSONArray.java:204)
   at org.json.JSONArray.getInt(JSONArray.java:265)
   at org.tranquility.customizablestarsystems.CSSUtil$CustomStarSystem.setLagrangePointOrbit(CSSUtil.java:395)
   at org.tranquility.customizablestarsystems.CSSUtil$CustomStarSystem.setEntityLocation(CSSUtil.java:337)
   at org.tranquility.customizablestarsystems.CSSUtil$CustomStarSystem.generateEntities(CSSUtil.java:322)
   at org.tranquility.customizablestarsystems.CSSUtil$CustomStarSystem.<init>(CSSUtil.java:208)
   at org.tranquility.customizablestarsystems.CSSUtil$CustomStarSystem.<init>(CSSUtil.java:198)
   at org.tranquility.customizablestarsystems.CSSUtil.generateCustomStarSystem(CSSUtil.java:175)
   at org.tranquility.customizablestarsystems.CSSModPlugin.onNewGameAfterProcGen(CSSModPlugin.java:45)
   ... 15 more
140307 [Thread-9] INFO  sound.oo0OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOO  - Creating streaming player for music with id [miscallenous_main_menu.ogg]
140308 [Thread-9] INFO  sound.H  - Playing music with id [miscallenous_main_menu.ogg]
[close]
Customstarsystem file (Added stuff during the conversion)
Spoiler
#-------------------------------------------------------------------------------------#
# Open referenceStarSystem.json for a reference guide on making a custom star system  #
# (It also includes some tips and warnings about making your own custom star systems) #
# Open presetStarSystems.json for some preset custom systems to copy, paste, and edit #
#-------------------------------------------------------------------------------------#

# This JSON file is reloaded during new game creation.
# Thus, it can be edited without needing to restart your Starsector application,
# as any changes here will apply on the next new game creation.
# Any customStarSystems.json in the data/config folder of other mods will merge together with this one

{
   # An uninhabited star system with desirable planets
   "css_Sothis":{
         "setLocation":[16000, -45000],
         "hasSystemwideNebula":false,
         "addCoronalHypershunt":false,
         "addDomainCryosleeper":true,
         "systemBackground":"US_background10.jpg",
          "entities":[
                             { #0
                                "name":"Sothis",
            "entity":"star",
            "type":"US_star_blue_giant",
            "radius":1000,
            "coronaRadius":50,
            "flareChance":0.0,
                             },
                             { #1
                                "name":"Aurelia",
                                "entity":"planet",
            "type":"aurorian",
                                "focus":0,
            "orbitRadius":300,
            "radius":8000,
            "conditions":["farmland_bountiful", "rare_ore_ultrarich", "ore_ultrarich", "IndEvo_RuinedInfra", "US_crystals",
                                        "organics_plentiful", "habitable" , "mild_climate" , "solar_array", "wispQuests_crystallineCatalyst", "US_shrooms",
                                        "US_crash", "US_elevator", "US_base", "US_religious", "IndEvo_ArtilleryStationCondition", "yunru_gaia", "yunru_crashedcryo"],
                             },
                             { #2
                                "name":"Astrion",
                                "entity":"planet",
            "type":"US_gas_giant",
                                "focus":1,
            "orbitRadius":2500,
            "radius":150,
            "conditions":["ruins_vast", "IndEvo_ArtilleryStationCondition", "IndEvo_mineFieldCondition", "no_atmosphere",
                                        "US_elevator", "US_crash", "ore_ultrarich", "rare_ore_ultrarich", "volatiles_plentiful", "organics_plentiful" ],
                             },
                             { #3
                                "name":"Astrion's Gate",
                                "entity":"jump_point",
                                "focus":2,
            "orbitRadius":100,
            "orbitAngle":-1,
            "orbitDays":0,
                             },
                             { #4
                                "name":"Caerula Arbor",
                                "entity":"planet",
            "type":"US_waterB",
                                "focus":0,
            "orbitRadius":11000,
            "radius":200,
            "conditions":["water_surface", "mild_climate", "habitable", "rare_ore_ultrarich", "ore_ultrarich", "ruins_vast",
                                        "organics_plentiful", "wispQuests_crystallineCatalyst", "US_crash", "US_elevator", "solar_array", "IndEvo_ArtilleryStationCondition" ],

                             },
                          #5
                        { # Caerula Arbor rings
            "entity":"ring",
            "type":"rings_special0",
            "focus":4,
            "orbitRadius":800,
         },
                             { #6
                                "name":" Ignitron Prime",
                                "entity":"planet",
            "type":"US_gas_giant",
                                "focus":0,
            "orbitRadius":4000,
            "radius":350,
            "conditions":["very_hot", "volatiles_plentiful", "ore_moderate", "rare_ore_moderate",
                                "US_floating", "US_base", "US_elevator", "IndEvo_ArtilleryStationCondition"],
                             },
                             { #7
                                "name":"Cyrus Prime",
                                "entity":"planet",
            "type":"US_blue",
                                "focus":0,
            "orbitRadius":13000,
            "radius":250,
            "conditions":["very_cold", "ore_ultrarich", "rare_ore_ultrarich",
                                        "volatiles_plentiful",  "US_bedrock", "US_crash", "US_elevator",
                                        "IndEvo_ArtilleryStationCondition", "IndEvo_mineFieldCondition", "IndEvo_RuinsCondition" ],
                             },
                          #8
         { # Cyrus' Ice rings
            "entity":"ring",
            "type":"rings_ice0",
            "focus":6,
            "orbitRadius":400,
         },
                             { #9
                                "name":"Gelidara Synthia",
                                "entity":"planet",
            "type":"US_blue",
                                "focus":6,
            "orbitRadius":900,
            "radius":60,
            "conditions":["very_cold", "ore_ultrarich", "rare_ore_ultrarich", "IndEvo_RuinsCondition",
                                        "volatiles_plentiful",  "US_bedrock", "US_crash", "US_elevator", "IndEvo_ArtilleryStationCondition", ],
                             },
                             { #10
                                "name":"Luminesce Crystara",
                                "entity":"planet",
            "type":"US_blue",
                                "focus":6,
            "orbitRadius":900,
            "radius":60,
            "conditions":["very_cold", "ore_ultrarich", "rare_ore_ultrarich", "IndEvo_RuinsCondition",
                                        "volatiles_plentiful",  "US_bedrock", "US_crash", "US_elevator", "IndEvo_ArtilleryStationCondition", ],
                             },
                             { #11
                                "name":"The Frozen Valley",
                                "entity":"asteroid_belt",
                                "focus":0,
            "orbitRadius":12000,
            "radius":60,
                             },
         {"entity":"comm_relay","focus":[0],},
         {"entity":"sensor_array","focus":[0],},
         {"entity":"jump_point","name":"Fringe Jump-point","orbitRadius":13000,},
         {"entity":"inactive_gate","orbitRadius":8000, "name":"Sothis Gate"},
         {"entity":"nav_buoy","orbitRadius":14000,"focus":[0],},
         {"entity":"ring","type":"rings_ice0","orbitRadius":12000,},
                        {"entity":"station_research","orbitRadius":300,"focus":[0],},
                        {"entity":"station_research","orbitRadius":600,"focus":[0],},
                        {"entity":"station_mining_remnant","orbitRadius":13000,"focus":[0],},
                 ],
              },
   #--------------------------------------#
   # Can add more star systems below here #
   #--------------------------------------#

                       #-------------------------------------------------------#
},
[close]
The System i was trying to convert
Spoiler
      { # An uninhabited star system with planets similar to the default Optimal system
         "isEnabled":true,
         "numberOfSystems":1,
         "setLocationOverride":[16000, -45000], # Location set to a random constellation
         "hasSystemwideNebula":false,
         "addCoronalHypershunt":false,
         "addDomainCryosleeper":true,
         "systemBackground":"US_background10.jpg",
         "fringeJumpPoint":{"orbitRadius":11500},
         "starsInSystemCenter":{
              "stars":[{"type":"US_star_blue_giant","radius":1000,"coronaSize":50,"name":"Sothis"}],
         },
         "orbitingBodies":[
            {   "name":"Nerva",
                                        "type":"US_gas_giant",
               "orbitRadius":4000,
               "radius":350,
               "conditions":["very_hot", "volatiles_plentiful", "ore_moderate", "rare_ore_moderate", "US_floating", "US_base", "US_elevator", "IndEvo_ArtilleryStationCondition"],
               "entitiesAtStablePoints":[{"type":"comm_relay"},{"type":"stable_location"},{"type":"stable_location"}],
            },
            {   
                                        "name":"Aurelia",
                                        "type":"aurorian",
               "radius":300,
                                        "focus":0,
               "orbitRadius":8000,
               "conditions":["farmland_bountiful", "rare_ore_ultrarich", "ore_ultrarich", "IndEvo_RuinedInfra", "US_crystals",
                                        "organics_plentiful", "habitable" , "mild_climate" , "solar_array", "wispQuests_crystallineCatalyst", "US_shrooms",
                                        "US_crash", "US_elevator", "US_base", "US_religious", "IndEvo_ArtilleryStationCondition", "yunru_gaia", "yunru_crashedcryo" ],
            },
            {   
                                        "name":"Aegir",
                                        "type":"US_waterB",
                                        "focus":0,
                                        "radius":200,
               "orbitRadius":11000,
               "conditions":["water_surface", "mild_climate", "habitable", "rare_ore_ultrarich", "ore_ultrarich", "ruins_vast",
                                        "organics_plentiful", "wispQuests_crystallineCatalyst", "US_crash", "US_elevator", "solar_array", "IndEvo_ArtilleryStationCondition" ],
            },
            {   
                                        "name":"Skadi",
                                        "type":"US_blue",
                                        "focus":0,
               "radius":250,
               "orbitRadius":13000,
               "conditions":["very_cold", "ore_ultrarich", "rare_ore_ultrarich",
                                        "volatiles_plentiful",  "US_bedrock", "US_crash", "US_elevator",
                                        "IndEvo_ArtilleryStationCondition", "IndEvo_mineFieldCondition", "IndEvo_RuinsCondition" ],
            },
                                {   
                                        "name":"Eira",
                                        "type":"US_blue",
                                        "focus":4,
                                        "orbitAngle":1,
               "radius":60,
               "orbitRadius":900,
               "conditions":["very_cold", "ore_ultrarich", "rare_ore_ultrarich", "IndEvo_RuinsCondition",
                                        "volatiles_plentiful",  "US_bedrock", "US_crash", "US_elevator", "IndEvo_ArtilleryStationCondition", ],
            },
                                {   
                                        "name":"Kalda",
                                        "type":"US_blue",
                                        "focus":4,
                                        "orbitAngle":180,
               "radius":60,
               "orbitRadius":1000,
               "conditions":["very_cold", "ore_ultrarich", "rare_ore_ultrarich", "IndEvo_RuinsCondition",
                                        "volatiles_plentiful",  "US_bedrock", "US_crash", "US_elevator", "IndEvo_ArtilleryStationCondition" ],
            },
                                {   
                                        "name":"Arcuied",
                                        "type":"lunamun",
                                        "focus":2,
               "radius":150,
               "orbitRadius":2500,
               "conditions":["ruins_vast", "IndEvo_ArtilleryStationCondition", "IndEvo_mineFieldCondition", "no_atmosphere",
                                        "US_elevator", "US_crash", "ore_ultrarich", "rare_ore_ultrarich", "volatiles_plentiful", "organics_plentiful" ],
            },
         ],
         "systemFeatures":[
            {"type":"jump_point","orbitRadius":2800,"name":"Inner System Jump-point"},
            {"type":"inactive_gate","orbitRadius":8000, "name":"Sothis Gate"},
            {"type":"asteroid_belt","orbitRadius":2500,"focus":0,"size":700},
            {"type":"rings_ice0","orbitRadius":12000,"focus":0},
            {"type":"rings_ice0","orbitRadius":400,"focus":4},
            {"type":"rings_ice0","orbitRadius":800,"focus":3},
            {"type":"asteroid_belt","orbitRadius":500, "size":90,"focus":1},
            {"type":"station_research","orbitRadius":425,"focus":1},
         ],
      },

[close]
« Last Edit: December 14, 2023, 08:38:06 AM by Fishbones »
Logged

Tranquility

  • Captain
  • ****
  • Posts: 285
    • View Profile
Re: [0.96a-RC10] Customizable Star Systems (v1.0.3)
« Reply #39 on: December 14, 2023, 07:42:20 PM »

Been trying to convert my System from adversary(before this mod was separated from it) but kept hitting "JSONArray[1] not found" Error and only shows up when this mod is enabled

...

I think these lines' "focus" options having square brackets with only one argument is what's causing this specific error; the "focus" option should either be a whole number (I think this one is probably what you want?), have two arguments to make a Lagrange Point orbit (e.g. "[1,4]" to make an entity orbit at the 2nd entity's L4 point), or be omitted altogether (if them orbiting the system center by default is fine with you):
Spoiler
         {"entity":"comm_relay","focus":[0],},
         {"entity":"sensor_array","focus":[0],},
         {"entity":"jump_point","name":"Fringe Jump-point","orbitRadius":13000,},
         {"entity":"inactive_gate","orbitRadius":8000, "name":"Sothis Gate"},
         {"entity":"nav_buoy","orbitRadius":14000,"focus":[0],},
         {"entity":"ring","type":"rings_ice0","orbitRadius":12000,},
                        {"entity":"station_research","orbitRadius":300,"focus":[0],},
                        {"entity":"station_research","orbitRadius":600,"focus":[0],},
                        {"entity":"station_mining_remnant","orbitRadius":13000,"focus":[0],},
[close]
« Last Edit: December 14, 2023, 07:50:43 PM by Tranquility »
Logged

Fishbones

  • Ensign
  • *
  • Posts: 16
    • View Profile
Re: [0.96a-RC10] Customizable Star Systems (v1.0.3)
« Reply #40 on: December 15, 2023, 05:14:02 AM »

Thx fixed it by removing the unneeded brackets.
Logged

nerodarker

  • Ensign
  • *
  • Posts: 3
    • View Profile
Re: [0.96a-RC10] Customizable Star Systems (v1.0.3)
« Reply #41 on: December 17, 2023, 01:53:18 PM »

so i have never coded anything so please forgive dumb mistakes.
so i just copied the perfect system that was in the mod fies and just removed a ore deposit nothing more.
i tought i did everything right when in game the custom list saw my starsystem and when spawning it in it said that is was adding the system but when trying to jump to it it stated it did not exist, the same problem wit lunaib.
am i missing a step ?
Logged

Tranquility

  • Captain
  • ****
  • Posts: 285
    • View Profile
Re: [0.96a-RC10] Customizable Star Systems (v1.0.3)
« Reply #42 on: December 17, 2023, 08:42:44 PM »

so i have never coded anything so please forgive dumb mistakes.
so i just copied the perfect system that was in the mod fies and just removed a ore deposit nothing more.
i tought i did everything right when in game the custom list saw my starsystem and when spawning it in it said that is was adding the system but when trying to jump to it it stated it did not exist, the same problem wit lunaib.
am i missing a step ?

Hi, welcome to the forums! I am assuming the "perfect system" you copied and are talking about is the one with an ID of "css_perfect_planets_system"? In that case (or in general, really), and assuming there were no errors or crashes, what likely happened is that it spawned in with a randomly-generated name in a random constellation by default, which is why you probably couldn't find it. The solution to that is to put in a "name" entry for the first "star" entity for that custom star system, which should basically rename the star system to a specified name. Then, you should be able to find it easily by using that name to the custom star system. If you are curious about how to do this, you should look at the other examples of custom star systems, or go through the referenceStarSystem.json for explainations about what various options/entries do.

Simbach Vazo

  • Lieutenant
  • **
  • Posts: 92
  • Professional Goober
    • View Profile
Re: [0.96a-RC10] Customizable Star Systems (v1.0.3)
« Reply #43 on: January 06, 2024, 02:00:55 AM »

"java.lang.RuntimeException: java.lang.IllegalArgumentException: Planet type terran_eccentric not found!"

"Planet type terran_eccentric not found!"
Line 63, planet_gen_data.csv, terran_eccentric, it is right there.

While I go look to try figuring out how that even happened on my own, and chasing down the log files, anyone got any ideas?
« Last Edit: January 06, 2024, 02:04:54 AM by Simbach Vazo »
Logged
G r o o v y

Tranquility

  • Captain
  • ****
  • Posts: 285
    • View Profile
Re: [0.96a-RC10] Customizable Star Systems (v1.0.4)
« Reply #44 on: January 11, 2024, 01:25:54 PM »

A small, save-compatible update, finally fixing the LunaLib soft dependency crash and adding in a few adjustments/fixes.

v1.0.4
  • Fixed the LunaLib soft dependency
        - This means this mod no longer requires either LunaLib or Java 8 to run
  • Added "orbitClockwise" option for most entities
      - If set to false, the entity will orbit counter-clockwise instead
  • Added more info for error messages
  • "isCoreWorldSystem" option now forcibly applies the THEME_CORE tags, instead of relying on those tags being automatically applied by the game
  • All custom colonies now always have the "population" (Population & Infrastructure) industry, even if it's not explicitly specified in an "industries" list
        - This avoids situations where removing or not having this industry causes colonies to not work properly
  • Minor code refactors
« Last Edit: January 11, 2024, 01:30:01 PM by Tranquility »
Logged
Pages: 1 2 [3] 4 5 ... 11