Jump to content

[1.2.1] Spacetux - Contract Pack: Unmanned Contracts, Rover Contracts, Grand Tours and Sprite Missions


linuxgurugamer

Recommended Posts

17 minutes ago, nascarlaser1 said:

.

But how do your orbit something that is artificial??? it says to orbit the first artificial satellite (I'm assuming this means the first one you ever launched). How do you orbit your own satellite.

You don't. What the contract is asking you to do is, for the first time, to put an artificial satellite into orbit around the targeted celestial body.

Link to comment
Share on other sites

On 2/7/2017 at 6:30 AM, linuxgurugamer said:

I'm starting with the Unmanned Contracts.  When installed by CKAN, I'm not seeing what you are seeing.  I don't see any errors, and the contracts are showing up in the CC All tab in Mission Control

This is problematic and is causing quite a bit of head scratching because based off this alone, it seems that the error is on my end. Especially, since I seem to be the only one having this issue. Unfortunately, I have uninstalled and reinstalled now several times with CKAN and manually, always with the same results. Based almost exclusively out of stubbornness I have tried to find the error and have yet to find anything conclusive. Or at least anything that resolves the errors that CC is putting out.

Spoiler

JlFJmy0.jpg

On 2/7/2017 at 6:30 AM, linuxgurugamer said:

I do, however, have a problem with the Grand Tours contracts, they go in the NO_GROUP folder, but other than that, I haven't seen any errors yet with them. 

I noticed Grand Tours did not have a group.cfg file. I took a look at the Unmanned Contracts group.cfg and didn't notice anything unusual.

Spoiler

wTPZvJA.jpg

Which is why I cannot figure out why I am getting this error:

Spoiler

Output log:
[INFO] ContractConfigurator.ContractType: Loading CONTRACT_TYPE: 'First Orbit'
[ERROR] ContractConfigurator.ContractType: CONTRACT_TYPE 'First Orbit': Error parsing group
[EXCEPTION] System.ArgumentException: No contract group with name 'STGUnmannedMissions'
  at ContractConfigurator.ConfigNodeUtil.ParseSingleValue[ContractGroup] (System.String key, System.String stringValue, Boolean allowExpression) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseValue[ContractGroup] (.ConfigNode configNode, System.String key, Boolean allowExpression) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseValue[ContractGroup] (.ConfigNode configNode, System.String key, System.Action`1 setter, IContractConfiguratorFactory obj, ContractConfigurator.ContractGroup defaultValue, System.Func`2 validation) [0x00000] in <filename unknown>:0 
[WARNING] ContractConfigurator.ContractType: Errors encountered while trying to load CONTRACT_TYPE 'First Orbit'

The error specifically references " No contract group with name 'STGUnmannedMissions' ". But when looking at the group.cfg it is clearly there.

Upon further digging, I looked at other Unmanned Mission error logs and found additional errors:

Spoiler

Output log:
[INFO] ContractConfigurator.ContractType: Loading CONTRACT_TYPE: 'First Unmanned Flyby'
[ERROR] ContractConfigurator.ContractType: CONTRACT_TYPE 'First Unmanned Flyby': Error parsing group
[EXCEPTION] System.ArgumentException: No contract group with name 'STGUnmannedMissions'
  at ContractConfigurator.ConfigNodeUtil.ParseSingleValue[ContractGroup] (System.String key, System.String stringValue, Boolean allowExpression) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseValue[ContractGroup] (.ConfigNode configNode, System.String key, Boolean allowExpression) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseValue[ContractGroup] (.ConfigNode configNode, System.String key, System.Action`1 setter, IContractConfiguratorFactory obj, ContractConfigurator.ContractGroup defaultValue, System.Func`2 validation) [0x00000] in <filename unknown>:0 
[ERROR] ContractConfigurator.ContractType: CONTRACT_TYPE 'First Unmanned Flyby': Error parsing title
[EXCEPTION] System.ArgumentException: Contract group 'STGUnmannedMissions' does not exist, or is not a parent of this contract.
  at ContractConfigurator.ExpressionParser.DataNode.NodeForKey (System.String& key) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ExpressionParser.DataNode.IsInitialized (System.String key) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ExpressionParser.ExpressionParser`1[T].ParseSpecialIdentifier (ContractConfigurator.ExpressionParser.Token token) [0x00000] in <filename unknown>:0 
Rethrow as System.Exception: Error parsing statement.
Error occurred near '*':
Perform an unmanned @STGUnmannedMissions:UnmannedMissionPlanet flyby mission.
..............................................................* <-- HERE
  at ContractConfigurator.ExpressionParser.ExpressionParser`1[T].ParseExpression (System.String key, System.String expression, ContractConfigurator.ExpressionParser.DataNode dataNode) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseSingleValue[String] (System.String key, System.String stringValue, Boolean allowExpression) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseValue[String] (.ConfigNode configNode, System.String key, Boolean allowExpression) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseValue[String] (.ConfigNode configNode, System.String key, System.Action`1 setter, IContractConfiguratorFactory obj, System.String defaultValue, System.Func`2 validation) [0x00000] in <filename unknown>:0 
[ERROR] ContractConfigurator.ContractType: CONTRACT_TYPE 'First Unmanned Flyby': Error parsing subject
[EXCEPTION] System.ArgumentException: Contract group 'STGUnmannedMissions' does not exist, or is not a parent of this contract.
  at ContractConfigurator.ExpressionParser.DataNode.NodeForKey (System.String& key) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ExpressionParser.DataNode.IsInitialized (System.String key) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ExpressionParser.ExpressionParser`1[T].ParseSpecialIdentifier (ContractConfigurator.ExpressionParser.Token token) [0x00000] in <filename unknown>:0 
Rethrow as System.Exception: Error parsing statement.
Error occurred near '*':
@STGUnmannedMissions:UnmannedMissionPlanet
..........................................* <-- HERE
  at ContractConfigurator.ExpressionParser.ExpressionParser`1[T].ParseExpression (System.String key, System.String expression, ContractConfigurator.ExpressionParser.DataNode dataNode) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseSingleValue[String] (System.String key, System.String stringValue, Boolean allowExpression) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseValue[String] (.ConfigNode configNode, System.String key, Boolean allowExpression) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseValue[String] (.ConfigNode configNode, System.String key, System.Action`1 setter, IContractConfiguratorFactory obj, System.String defaultValue, System.Func`2 validation) [0x00000] in <filename unknown>:0 
[ERROR] ContractConfigurator.ContractType: CONTRACT_TYPE 'First Unmanned Flyby': Error parsing synopsis
[EXCEPTION] System.ArgumentException: Contract group 'STGUnmannedMissions' does not exist, or is not a parent of this contract.
  at ContractConfigurator.ExpressionParser.DataNode.NodeForKey (System.String& key) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ExpressionParser.DataNode.IsInitialized (System.String key) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ExpressionParser.ExpressionParser`1[T].ParseSpecialIdentifier (ContractConfigurator.ExpressionParser.Token token) [0x00000] in <filename unknown>:0 
Rethrow as System.Exception: Error parsing statement.
Error occurred near '*':
Send a probe to space within the SOI of @STGUnmannedMissions:UnmannedMissionPlanet
..................................................................................* <-- HERE
  at ContractConfigurator.ExpressionParser.ExpressionParser`1[T].ParseExpression (System.String key, System.String expression, ContractConfigurator.ExpressionParser.DataNode dataNode) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseSingleValue[String] (System.String key, System.String stringValue, Boolean allowExpression) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseValue[String] (.ConfigNode configNode, System.String key, Boolean allowExpression) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseValue[String] (.ConfigNode configNode, System.String key, System.Action`1 setter, IContractConfiguratorFactory obj, System.String defaultValue, System.Func`2 validation) [0x00000] in <filename unknown>:0 
[ERROR] ContractConfigurator.ContractType: CONTRACT_TYPE 'First Unmanned Flyby': Error parsing completedMessage
[EXCEPTION] System.ArgumentException: Contract group 'STGUnmannedMissions' does not exist, or is not a parent of this contract.
  at ContractConfigurator.ExpressionParser.DataNode.NodeForKey (System.String& key) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ExpressionParser.DataNode.IsInitialized (System.String key) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ExpressionParser.ExpressionParser`1[T].ParseSpecialIdentifier (ContractConfigurator.ExpressionParser.Token token) [0x00000] in <filename unknown>:0 
Rethrow as System.Exception: Error parsing statement.
Error occurred near '*':
You did it! We've send a probe on a @STGUnmannedMissions:UnmannedMissionPlanet flyby
..............................................................................* <-- HERE
  at ContractConfigurator.ExpressionParser.ExpressionParser`1[T].ParseExpression (System.String key, System.String expression, ContractConfigurator.ExpressionParser.DataNode dataNode) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseSingleValue[String] (System.String key, System.String stringValue, Boolean allowExpression) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseValue[String] (.ConfigNode configNode, System.String key, Boolean allowExpression) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseValue[String] (.ConfigNode configNode, System.String key, System.Action`1 setter, IContractConfiguratorFactory obj, System.String defaultValue, System.Func`2 validation) [0x00000] in <filename unknown>:0 
[ERROR] ContractConfigurator.ContractType: CONTRACT_TYPE 'First Unmanned Flyby': Error parsing deadline
[EXCEPTION] System.ArgumentException: Contract group 'STGUnmannedMissions' does not exist, or is not a parent of this contract.
  at ContractConfigurator.ExpressionParser.DataNode.NodeForKey (System.String& key) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ExpressionParser.DataNode.IsInitialized (System.String key) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ExpressionParser.ExpressionParser`1[System.Single].ParseSpecialIdentifier (ContractConfigurator.ExpressionParser.Token token) [0x00000] in <filename unknown>:0 
Rethrow as System.Exception: Error parsing statement.
Error occurred near '*':
@STGUnmannedMissions:travelTime * 10
...............................* <-- HERE
  at ContractConfigurator.ExpressionParser.ExpressionParser`1[System.Single].ParseExpression (System.String key, System.String expression, ContractConfigurator.ExpressionParser.DataNode dataNode) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseSingleValue[Single] (System.String key, System.String stringValue, Boolean allowExpression) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseValue[Single] (.ConfigNode configNode, System.String key, Boolean allowExpression) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseValue[Single] (.ConfigNode configNode, System.String key, System.Action`1 setter, IContractConfiguratorFactory obj, Single defaultValue, System.Func`2 validation) [0x00000] in <filename unknown>:0 
[ERROR] ContractConfigurator.ContractType: CONTRACT_TYPE 'First Unmanned Flyby': Error parsing targetBody
[EXCEPTION] System.ArgumentException: Contract group 'STGUnmannedMissions' does not exist, or is not a parent of this contract.
  at ContractConfigurator.ExpressionParser.DataNode.NodeForKey (System.String& key) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ExpressionParser.DataNode.IsInitialized (System.String key) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ExpressionParser.ExpressionParser`1[T].ParseSpecialIdentifier (ContractConfigurator.ExpressionParser.Token token) [0x00000] in <filename unknown>:0 
Rethrow as System.Exception: Error parsing statement.
Error occurred near '*':
@STGUnmannedMissions:UnmannedMissionPlanet
..........................................* <-- HERE
  at ContractConfigurator.ExpressionParser.ExpressionParser`1[T].ParseExpression (System.String key, System.String expression, ContractConfigurator.ExpressionParser.DataNode dataNode) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseSingleValue[CelestialBody] (System.String key, System.String stringValue, Boolean allowExpression) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseValue[CelestialBody] (.ConfigNode configNode, System.String key, Boolean allowExpression) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseValue[CelestialBody] (.ConfigNode configNode, System.String key, System.Action`1 setter, IContractConfiguratorFactory obj, .CelestialBody defaultValue, System.Func`2 validation) [0x00000] in <filename unknown>:0 
[ERROR] ContractConfigurator.ContractType: CONTRACT_TYPE 'First Unmanned Flyby': Error parsing uid
[EXCEPTION] System.ArgumentException: Contract group 'STGUnmannedMissions' does not exist, or is not a parent of this contract.
  at ContractConfigurator.ExpressionParser.DataNode.NodeForKey (System.String& key) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ExpressionParser.DataNode.IsInitialized (System.String key) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ExpressionParser.ExpressionParser`1[T].ParseSpecialIdentifier (ContractConfigurator.ExpressionParser.Token token) [0x00000] in <filename unknown>:0 
Rethrow as System.Exception: Error parsing statement.
Error occurred near '*':
FirstUnmannedFlyby:@STGUnmannedMissions:UnmannedMissionPlanet.Name()
.............................................................* <-- HERE
  at ContractConfigurator.ExpressionParser.ExpressionParser`1[T].ParseExpression (System.String key, System.String expression, ContractConfigurator.ExpressionParser.DataNode dataNode) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseSingleValue[String] (System.String key, System.String stringValue, Boolean allowExpression) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseValue[String] (.ConfigNode configNode, System.String key, Boolean allowExpression) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseValue[String] (.ConfigNode configNode, System.String key, System.Action`1 setter, IContractConfiguratorFactory obj, System.String defaultValue, System.Func`2 validation) [0x00000] in <filename unknown>:0 
[WARNING] ContractConfigurator.ContractType: Errors encountered while trying to load CONTRACT_TYPE 'First Unmanned Flyby'

 

The additional parsing errors start with the First Unmanned Flyby Mission. Error parsing title > Error parsing subject etc. The First Unmanned Flyby Mission is the 3rd mission in the UnmannedContracts.cfg. The first 2 missions (First Orbit and First Return from Orbit) in the UnmannedContracts.cfg do not have these additional parsing errors. 

So I looked at the UnmannedContracts.cfg and found this for First Orbit and First Return from Oribit:

Spoiler

GxNqC3T.jpg

Contrasted with this for the 3rd mission in the file on:

Spoiler

GaLd6k2.jpg

It should be noted that with the Text Reader I use, green colored text indicates that the game will not read it. However, green text should only follow a double forward slash ' // '. You can clearly see that there are several lines in the .cfg file that are green and do not follow a ' // '. 

I am completely confused as to why this is. Unless I am missing something, the Text Reader I use should have no impact on how the game reads files. However, despite there clearly not being a ' // ' in front of title = ..... for the First Unmanned Flyby CONTRACT_TYPE in the .cfg file, it is green and does correspond directly with the error logs produced and so on. Something isn't adding up and it appears to be only on my end and I have no idea why.. Hopefully it goes without saying, but the .cfg files referenced above are completely unedited by me and downloaded directly from CKAN.

I'd like to help if I can. Let me know if you there is anything else I can do to help.

Cheers,

Link to comment
Share on other sites

So, first thing is to make a totally clean install, then load ONLY the unmanned contract pack and CC, and see what happens.  KSPDev LogConsole is also useful. Assuming you see the problem, please send me the log file and the complete GameData directory (excluding the Squad folder).

If you don't have problems, then add a few more mods and try again.

Link to comment
Share on other sites

6 hours ago, linuxgurugamer said:

So, first thing is to make a totally clean install, then load ONLY the unmanned contract pack and CC, and see what happens.  KSPDev LogConsole is also useful. Assuming you see the problem, please send me the log file and the complete GameData directory (excluding the Squad folder).

If you don't have problems, then add a few more mods and try again.

Maddening. It works on a clean install..

Link to comment
Share on other sites

7 minutes ago, linuxgurugamer said:

So now add in the other contracts of mine and see if it happens 

I had all 3 of your contract packs installed on my test install and it worked. I am currently uninstalling everything I can think of that has anything to do with contracts. The search continues..

Thanks for the help.

Link to comment
Share on other sites

7 hours ago, eberkain said:

I can confirm that, with OPM installed I get alot of errors from contract configurator and different contract packs

What other contract packs are you getting errors for? I'll double check, but I was pretty sure CC was only throwing logs for Grand Tours and Unmanned Contracts. I'm also pretty sure a fix for Grand Tours was found and is waiting to be released. If it is indeed other contract packs than the scope of the problem is bigger and more likely with OPM and CC.

Cheers,

Edited by Stratickus
Link to comment
Share on other sites

2 hours ago, Stratickus said:

What other contract packs are you getting errors for? I'll double check, but I was pretty sure CC was only throwing logs for Grand Tours and Unmanned Contracts. I'm also pretty sure a fix for Grand Tours was found and is waiting to be released. If it is indeed other contract packs than the scope of the problem is bigger and more likely with OPM and CC.

Cheers,

I didn't look at it close enough before, so I added OPM back and checked.  Looks like its the contracts from CactEye causing CC to throw exceptions, only when OPM is also loaded.  Not sure if its a problem with CC or the way the contracts are setup, no idea, I just elected to not play with OPM for the moment and deal with it later.  I should probably ping @icedown   Here is my full ksp log and output log

EDIT: I take that back, I seem to get those without OPM now too, so I dunno. 

[WRN 12:22:56.624] ContractConfigurator.ConfigNodeUtil: Got an unexpected exception trying to load 'targetPlanet' as a list:
[EXC 12:22:56.627] ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
	System.Collections.Generic.List`1[CelestialBody].get_Item (Int32 index)
	ListExtension.MaxAt[CelestialBody,Double] (IList`1 list, System.Func`2 sortBy)
	ContractConfigurator.ExpressionParser.CelestialBodyParser.BodyType (.CelestialBody cb)
	ContractConfigurator.ExpressionParser.CelestialBodyParser+<>c.<RegisterMethods>b__5_5 (.CelestialBody cb)
	ContractConfigurator.ExpressionParser.Method`2[CelestialBody,System.Boolean].Invoke (.CelestialBody obj)
	ContractConfigurator.ExpressionParser.Method`2[CelestialBody,System.Boolean].Invoke (System.Object[] parameters)
	ContractConfigurator.ExpressionParser.ExpressionParser`1[CelestialBody].ParseMethod[Boolean] (ContractConfigurator.ExpressionParser.Token token, .CelestialBody obj, Boolean isFunction)
	Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
	System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
	System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters)
	ContractConfigurator.ExpressionParser.ExpressionParser`1[System.Boolean].ParseVarOrIdentifier (ContractConfigurator.ExpressionParser.Token token)
	Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
	System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
	System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters)
	ContractConfigurator.ExpressionParser.ExpressionParser`1[CelestialBody].ParseStatement[Boolean] ()
	Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
	System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
	System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters)
	ContractConfigurator.ExpressionParser.ExpressionParser`1[System.Collections.Generic.List`1[CelestialBody]].ParseMethod[List`1] (ContractConfigurator.ExpressionParser.Token token, System.Collections.Generic.List`1 obj, Boolean isFunction)
	Rethrow as Exception: Error parsing statement.
	Error occurred near '*':
	AllBodies().Where(cb => (cb.SemiMajorAxis() < @targetSMA ||  cb.Radius() > @targetRadius ) && cb.IsPlanet() && cb != HomeWorld()  )
	.............................................................................................* <-- HERE
	ContractConfigurator.ExpressionParser.ExpressionParser`1[System.Collections.Generic.List`1[CelestialBody]].ParseExpression (System.String key, System.String expression, ContractConfigurator.ExpressionParser.DataNode dataNode)
	ContractConfigurator.ConfigNodeUtil.ParseSingleValue[List`1] (System.String key, System.String stringValue, Boolean allowExpression)
	ContractConfigurator.ConfigNodeUtil.ParseValue[List`1] (.ConfigNode configNode, System.String key, Boolean allowExpression)
	UnityEngine.Debug:LogException(Exception)
	ContractConfigurator.LoggingUtil:LogException(Exception)
	ContractConfigurator.ConfigNodeUtil:ParseValue(ConfigNode, String, Boolean)
	ContractConfigurator.ConfigNodeUtil:ParseValue(ConfigNode, String, Action`1, IContractConfiguratorFactory, List`1, Func`2)
	ContractConfigurator.ConfigNodeUtil:ParseValue(ConfigNode, String, Action`1, IContractConfiguratorFactory)
	ContractConfigurator.ContractType:ParseDataExpandString(ConfigNode, String)
	System.Reflection.MethodBase:Invoke(Object, Object[])
	ContractConfigurator.ContractType:Load(ConfigNode)
	ContractConfigurator.<LoadContractConfig>d__26:MoveNext()
	ContractConfigurator.ContractConfigurator:PSystemReady()
	EventVoid:Fire()
	<Start>c__Iterator77:MoveNext()
	UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
[ERR 12:22:56.651] ContractConfigurator.ContractType: CONTRACT_TYPE 'CactEyeBigPlanetObservation': Error parsing targetPlanet

[EXC 12:22:56.654] ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
	System.Collections.Generic.List`1[CelestialBody].get_Item (Int32 index)
	ListExtension.MaxAt[CelestialBody,Double] (IList`1 list, System.Func`2 sortBy)
	ContractConfigurator.ExpressionParser.CelestialBodyParser.BodyType (.CelestialBody cb)
	ContractConfigurator.ExpressionParser.CelestialBodyParser+<>c.<RegisterMethods>b__5_5 (.CelestialBody cb)
	ContractConfigurator.ExpressionParser.Method`2[CelestialBody,System.Boolean].Invoke (.CelestialBody obj)
	ContractConfigurator.ExpressionParser.Method`2[CelestialBody,System.Boolean].Invoke (System.Object[] parameters)
	ContractConfigurator.ExpressionParser.ExpressionParser`1[CelestialBody].ParseMethod[Boolean] (ContractConfigurator.ExpressionParser.Token token, .CelestialBody obj, Boolean isFunction)
	Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
	System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
	System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters)
	ContractConfigurator.ExpressionParser.ExpressionParser`1[System.Boolean].ParseVarOrIdentifier (ContractConfigurator.ExpressionParser.Token token)
	Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
	System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
	System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters)
	ContractConfigurator.ExpressionParser.ExpressionParser`1[CelestialBody].ParseStatement[Boolean] ()
	Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
	System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
	System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters)
	ContractConfigurator.ExpressionParser.ExpressionParser`1[CelestialBody].ParseMethod[CelestialBody] (ContractConfigurator.ExpressionParser.Token token, .CelestialBody obj, Boolean isFunction)
	Rethrow as Exception: Error parsing statement.
	Error occurred near '*':
	AllBodies().Where(cb => (cb.SemiMajorAxis() < @targetSMA ||  cb.Radius() > @targetRadius ) && cb.IsPlanet() && cb != HomeWorld()  )
	.............................................................................................* <-- HERE
	ContractConfigurator.ExpressionParser.ExpressionParser`1[T].ParseExpression (System.String key, System.String expression, ContractConfigurator.ExpressionParser.DataNode dataNode)
	ContractConfigurator.ConfigNodeUtil.ParseSingleValue[CelestialBody] (System.String key, System.String stringValue, Boolean allowExpression)
	System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
	Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
	System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)
	System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters)
	ContractConfigurator.ConfigNodeUtil.ParseValue[List`1] (.ConfigNode configNode, System.String key, Boolean allowExpression)
	UnityEngine.Debug:LogException(Exception)
	ContractConfigurator.LoggingUtil:LogException(Exception)
	ContractConfigurator.ConfigNodeUtil:ParseValue(ConfigNode, String, Action`1, IContractConfiguratorFactory, List`1, Func`2)
	ContractConfigurator.ConfigNodeUtil:ParseValue(ConfigNode, String, Action`1, IContractConfiguratorFactory)
	ContractConfigurator.ContractType:ParseDataExpandString(ConfigNode, String)
	System.Reflection.MethodBase:Invoke(Object, Object[])
	ContractConfigurator.ContractType:Load(ConfigNode)
	ContractConfigurator.<LoadContractConfig>d__26:MoveNext()
	ContractConfigurator.ContractConfigurator:PSystemReady()
	EventVoid:Fire()
	<Start>c__Iterator77:MoveNext()
	UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
[WRN 12:22:56.675] ContractConfigurator.ContractType: CONTRACT_TYPE 'CactEyeBigPlanetObservation': Received an empty list of values when trying to do a DATA_EXPAND
[ERR 12:22:56.680] ContractConfigurator.ContractType: CONTRACT_TYPE 'CactEyeBigPlanetObservation': Error parsing isMoho

 

Edited by eberkain
Link to comment
Share on other sites

1 hour ago, eberkain said:

I didn't look at it close enough before, so I added OPM back and checked.  Looks like its the contracts from CactEye causing CC to throw exceptions, only when OPM is also loaded.  Not sure if its a problem with CC or the way the contracts are setup, no idea, I just elected to not play with OPM for the moment and deal with it later.  I should probably ping @icedown   Here is my full ksp log and output log

I don't use CactEye, so that's why I was only getting errors with Unmanned and GT. All of these Contract Packs use celestial bodies in their setup though. Apparently neither is quite setup correctly to accommodate new planets or at least OPM. I don't think this is an OPM issue.

Cheers,

Link to comment
Share on other sites

On 2/12/2017 at 11:45 AM, Stratickus said:

What other contract packs are you getting errors for? I'll double check, but I was pretty sure CC was only throwing logs for Grand Tours and Unmanned Contracts. I'm also pretty sure a fix for Grand Tours was found and is waiting to be released. If it is indeed other contract packs than the scope of the problem is bigger and more likely with OPM and CC.

Cheers,

Yes, I have a fix for GT, just haven't had time, I'll see if I can get that out tonight

Link to comment
Share on other sites

On 2/11/2017 at 1:33 PM, Stratickus said:

The error specifically references " No contract group with name 'STGUnmannedMissions' ". But when looking at the group.cfg it is clearly there.

With my full mod list I get a bunch of these too.  I went through and did the same, starting with a clean install and gradually adding mods to figure out what causes this. 

For me Sigma Binary does it, which is also Kopernicus related.  

This install folder...

xQcdChE.png

will produce this log and this output_log, which is full of stuff like this

[EXC 19:50:40.037] ArgumentException: Contract group 'STGUnmannedMissions' does not exist, or is not a parent of this contract.
	ContractConfigurator.ExpressionParser.DataNode.NodeForKey (System.String& key)
	ContractConfigurator.ExpressionParser.DataNode.IsInitialized (System.String key)
	ContractConfigurator.ExpressionParser.ExpressionParser`1[T].ParseSpecialIdentifier (ContractConfigurator.ExpressionParser.Token token)
	Rethrow as Exception: Error parsing statement.
	Error occurred near '*':
	@STGUnmannedMissions:UnmannedMissionPlanet
	..........................................* <-- HERE
	ContractConfigurator.ExpressionParser.ExpressionParser`1[T].ParseExpression (System.String key, System.String expression, ContractConfigurator.ExpressionParser.DataNode dataNode)
	ContractConfigurator.ConfigNodeUtil.ParseSingleValue[String] (System.String key, System.String stringValue, Boolean allowExpression)
	ContractConfigurator.ConfigNodeUtil.ParseValue[String] (.ConfigNode configNode, System.String key, Boolean allowExpression)
	ContractConfigurator.ConfigNodeUtil.ParseValue[String] (.ConfigNode configNode, System.String key, System.Action`1 setter, IContractConfiguratorFactory obj, System.String defaultValue, System.Func`2 validation)
	UnityEngine.Debug:LogException(Exception)
	ContractConfigurator.LoggingUtil:LogException(Exception)
	ContractConfigurator.ConfigNodeUtil:ParseValue(ConfigNode, String, Action`1, IContractConfiguratorFactory, String, Func`2)
	ContractConfigurator.ConfigNodeUtil:ParseValue(ConfigNode, String, Action`1, IContractConfiguratorFactory, String)
	ContractConfigurator.ContractType:Load(ConfigNode)
	ContractConfigurator.<LoadContractConfig>d__26:MoveNext()
	ContractConfigurator.ContractConfigurator:PSystemReady()
	EventVoid:Fire()
	<Start>c__Iterator77:MoveNext()
	UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
[ERR 19:50:40.046] ContractConfigurator.ContractType: CONTRACT_TYPE 'First Unmanned Flyby': Error parsing synopsis

I can load my entire mod list without getting these errors, only when I add Sigma Binary into the mix do they pop up.  

Link to comment
Share on other sites

5 hours ago, Stratickus said:

Interesting. I currently have both Sigma Binary and Kopernicus installed and am no longer getting those errors. For me it is isolated to OPM.

I tried doing a clean install with only Contract Configurator, Spacetux Contracts, Kopernicus and Outer Planets Mods.  And I did not get the errors, which is why I started the above process. 

Link to comment
Share on other sites

14 hours ago, eberkain said:

I tried doing a clean install with only Contract Configurator, Spacetux Contracts, Kopernicus and Outer Planets Mods.  And I did not get the errors, which is why I started the above process. 

I removed Sigma Binary and have no issues with the contracts. It would appear that it is not OPM that causes the issue, but rather OPM+Sigma Binary. I imagine it has something to do with the way it changes the orbits of Plock and Karen and the CP can't find Plock or Karen. Or something..

Cheers,

Link to comment
Share on other sites

I'm assuming these contracts are body specific, IE. wont work with a planet mod like GPP that removes the stock planets?

EDIT:  turns out there are not many errors from Rover Missions or Unmanned Contracts, so I created a github issue on one of them. 

Edited by eberkain
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...