Jump to content

Patching Interstellar mod resource harvesting to work in "Working Multiple Stars with Planets"?


Recommended Posts

Wouldn't it be nice to have in-situ resource utilization for the remote star systems from "Working Multiple Stars with Planets"? This way, we would be able to establish self-sustained space missions in these star systems. These missions would need no additional resources from Kerbol system after the initial transfer of machinery. These missions would be able to explore remote star system indefinitely, harvesting fuel from the planets at hand.

But for this we have to code the resource compositions of atmospheres, oceans and land of these new planets. What configs in Interstellar mod and its ORS (Open Resource System) should I modify?

I tried this:

I tried to modifiy atmosphericresourcedefinitions.cfg inGameData\ORSResourcePack by adding:



[COLOR=#222222][FONT=Verdana]ATMOSPHERIC_RESOURCE_DEFINITION[/FONT][/COLOR]


{
name = KaiserHydrogen
guiName = Hydrogen
celestialBodyName = Kaiser
resourceName = LiquidFuel
abundance = 1
[COLOR=#000000][FONT=sans-serif][COLOR=#222222][FONT=Verdana]}
[/FONT][/COLOR][/FONT][/COLOR]

But it doesn't work. When I get into the Kaiser atmosphere, there's an error while getting its gas abundances:



[COLOR=#222222][FONT=Verdana] (Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)[/FONT][/COLOR]



[ORS] Loading atmospheric data from pack: InterstellarAtmosphericPack

(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)


[ORS] Exception while loading atmospheric resources : System.ArgumentOutOfRangeException: Argument is out of range.


Parameter name: index


at System.Collections.Generic.List`1[CelestialBody].get_Item (Int32 index) [0x00000] in <filename unknown>:0


at OpenResourceSystem.ORSAtmosphericResourceHandler+<>c__DisplayClassc.<getAtmosphericCompositionForBody>b__6 (.ConfigNode res) [0x00000] in <filename unknown>:0


at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[ConfigNode].MoveNext () [0x00000] in <filename unknown>:0


at System.Collections.Generic.List`1[ConfigNode].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0


at System.Collections.Generic.List`1[ConfigNode]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0


at System.Linq.Enumerable.ToList[ConfigNode] (IEnumerable`1 source) [0x00000] in <filename unknown>:0


at OpenResourceSystem.ORSAtmosphericResourceHandler.getAtmosphericCompositionForBody (Int32 refBody) [0x00000] in <filename unknown>:0

(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)


Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...