Help needed SolarSystemConfigSuffix causing NullReferenceException: Object reference

Discussion in 'Scenarios' started by Gamers_Cafe, Apr 3, 2022.

  1. Gamers_Cafe

    Gamers_Cafe Ensign

    Joined:
    Jan 21, 2020
    Messages:
    13
    Likes Received:
    0
    Greetings;

    I am trying to use the SolarSystemConfigSuffix to make it so that all the sun's in one galaxy will use the same SolarSystemConfig. I have the following lines on the Sun defines;

    Code:
    # Type A9 Andromeda Stars
    { GalaxyConfig, Name: A Type Star
      StarClass: AndromedaA9
      SolarSystemConfigSuffix: _Andromeda
      # Model: SunWhiteDwarf
      Model: SunGeneric
      Probability: 0.02
      SizeClass: 11
      Color: "0.92,0.95,1"
      LightColor: "0.9,0.94,1"
      ModelColor: "0.65, 0.85, 1" # (can be used if you want a different color apart from Color or LightColor)
      # ModelColor2: "1, 0.7, 0.7" # (use only if you want to switch to "two color" mode...I need to check out what areas this 2nd color affects)
      ModelBrightness: 0.65 # (overall brightness)
      ModelNoiseTiling: 105 # (default is 40, set to higher values for bigger stars)
      ModelCoronaSpikesSize: 0.75 # (default is 0.75, values < 0.6 will hide the spikes completely)
      ModelPlasmaArcsSize: 0.55 # (default is 0.5)
      ModelFlareBrightness: 0.65 # (values < 1 will make the flare smaller)
      SurfaceTemperature: "7220, 7400"
      Mass: 1.75
      Radius: 1.75
      Luminosity: 8
      ColorName: White-Blue
      Age: 0.5
      InnerSystem: "5, 78"
      HabitableHot: "79, 97"
      HabitableTemperate: "98, 139"
      HabitableCold: "140, 179"
      OuterSystem: "180, 250"
      Description: "[c][00ff00]Habitable system.[-][/c] An A-type main-sequence star is a main-sequence (hydrogen-burning) star of spectral type A and luminosity class V. They have masses from 1.4 to 2.1 times the mass of the Sun and surface temperatures between 7600 and 10,000  K"
    }
    I have the file named SolarSystemConfig_Andromeda.yaml saved on the \RandomPresets

    However when i try to goto a star, i get the error

    Code:
    03-08:38:44.051 18_38 -LOG- Generating solar system Belphuria/(26400000, -16400000, -775699968) in C:\Program Files (x86)\Steam\steamapps\common\Empyrion - Galactic Survival\Client/../Saves/Games/NewGame_10/Sectors
    NullReferenceException: Object reference not set to an instance of an object
      at Assembly-CSharp.GroupType.RegisterImage (System.String ) [0x0000d] in <8051e5a36e984f4a81152694a329219e>:0
      at Assembly-CSharp.GroupType.ProcessTextFile (System.String , System.Random ) [0x00000] in <8051e5a36e984f4a81152694a329219e>:0
      at Assembly-CSharp.GroupType.RemovePlugin (Assembly-CSharp.GroupType+LineSet , System.Collections.Generic.List`1[T] , System.Random , System.Int32 ) [0x0038c] in <8051e5a36e984f4a81152694a329219e>:0
      at Assembly-CSharp.GroupType.AllocateDatabase (System.String , System.Int32 ) [0x00020] in <8051e5a36e984f4a81152694a329219e>:0
      at Assembly-CSharp.ActivatorInfo.QuoteAction (Vector3i ) [0x000e7] in <8051e5a36e984f4a81152694a329219e>:0
      at Assembly-CSharp.FileLoader.ShowDatabase (System.Collections.Generic.List`1[T] , Assembly-CSharp.BitmapService ) [0x00310] in <8051e5a36e984f4a81152694a329219e>:0
      at Assembly-CSharp.StreamLoader.JoinPciture (System.String , Assembly-CSharp.BitmapService , System.Collections.Generic.List`1[System.String]& ) [0x0007b] in <8051e5a36e984f4a81152694a329219e>:0
      at Assembly-CSharp.StreamLoader.DisconnectBuilder (System.String , Assembly-CSharp.DomainSite , System.Collections.Generic.List`1[System.String]& ) [0x0002a] in <8051e5a36e984f4a81152694a329219e>:0
      at Assembly-CSharp.EmulatorSiteBitmapLayout.UnregisterOptions (System.String , System.Boolean ) [0x0007d] in <8051e5a36e984f4a81152694a329219e>:0
      at Assembly-CSharp.EmulatorSiteBitmapLayout.EnableActivity (System.String ) [0x00000] in <8051e5a36e984f4a81152694a329219e>:0
      at UnityEngine.Events.InvokableCall`1[T1].Invoke (T1 args0) [0x00010] in <d7375679dfdc43ca8468d8ff6317fdc5>:0
      at UnityEngine.Events.UnityEvent`1[T0].Invoke (T0 arg0) [0x00025] in <d7375679dfdc43ca8468d8ff6317fdc5>:0
      at UnityEngine.UI.InputField.SendOnEndEdit () [0x00019] in <2ba995fad250446c950205958cb31f59>:0
      at UnityEngine.UI.InputField.DeactivateInputField () [0x00065] in <2ba995fad250446c950205958cb31f59>:0
      at Eleon.Ugui.CustomInputField.OnUpdateSelected (UnityEngine.EventSystems.BaseEventData eventData) [0x00028] in <8051e5a36e984f4a81152694a329219e>:0
      at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IUpdateSelectedHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00000] in <2ba995fad250446c950205958cb31f59>:0
      at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) [0x00067] in <2ba995fad250446c950205958cb31f59>:0
    UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    UnityEngine.Logger:LogException(Exception, Object)
    UnityEngine.Debug:LogException(Exception)
    UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
    Eleon.Ugui.StandaloneInputModule:ReplaceNetwork()
    Eleon.Ugui.StandaloneInputModule:Process()
    UnityEngine.EventSystems.EventSystem:Update()
    
     
    #1
  2. Gamers_Cafe

    Gamers_Cafe Ensign

    Joined:
    Jan 21, 2020
    Messages:
    13
    Likes Received:
    0
  3. Kassonnade

    Kassonnade Rear Admiral

    Joined:
    May 13, 2017
    Messages:
    2,816
    Likes Received:
    4,111
    If you look at the top of the GalaxyConfig.ecf :

    # CONFIGS:
    # SolarSystemConfigSuffix: K ; SolarSystemConfigSuffix can be used to override the use of the sun type in thesolar system config file. Use it f.e. like that: SolarSystemConfigSuffix: K = use that suntype in the SolarSystemConfigK.yaml


    Then right after line 517 :

    # Type O
    { GalaxyConfig, Name: O Type Star # Name of Star Class
    StarClass: O # Must be unique. Referenced in SolarSystemConfig and Sector files; Will be displayed in brackets behind system name on galaxy map


    Did you define your star type in the GalaxyConfig.ecf ?
     
    #3
    Last edited: Apr 6, 2022
  4. Gamers_Cafe

    Gamers_Cafe Ensign

    Joined:
    Jan 21, 2020
    Messages:
    13
    Likes Received:
    0
    Greetings;

    So i am trying to use SolarSystemConfigSuffix: _Andromeda as a way of calling up the file SolarSystemConfig_Andromeda which is located in the RandomPresets files.

    That file has star types which are all defined in the SolarSystemConfig.
     
    #4
  5. Gamers_Cafe

    Gamers_Cafe Ensign

    Joined:
    Jan 21, 2020
    Messages:
    13
    Likes Received:
    0
    #5
  6. Kassonnade

    Kassonnade Rear Admiral

    Joined:
    May 13, 2017
    Messages:
    2,816
    Likes Received:
    4,111
    I don't see your SolarSystemConfig_Andromeda in your RandomPresets folder. Your GalaxyConfig.ecf also does not have what you show here on the forum ( #Type A9 Andromeda Stars).

    Also, if you are trying to replicate the Default Multiplayer scenario, there is no "sectors" file for the default scenarios, so you may get into problems because of this.
     
    #6
    Last edited: Apr 7, 2022

Share This Page