Jump to content

[1.3] Contract Pack: Bases and Stations Continued 6.7.0.0 - 24/06/17


LemonSkin
 Share

Recommended Posts

30 minutes ago, dochockin said:

I'm having the same issue with multiple Station contracts.  Where is the StationCore.cfg file?  I've tried looking through the game install folder but I must be missing it.

 

Thanks!

It locates at KSP\GameData\ContractPacks\KerbinSpaceStation\StationMissions

Link to comment
Share on other sites

On ‎11‎/‎07‎/‎2017 at 4:37 PM, WakabaGyaru said:

It locates at KSP\GameData\ContractPacks\KerbinSpaceStation\StationMissions

Many thanks for that, just suffered the exact same problem and unfortunately don't have a save before I've got the Kerbin and Mun station offers accepted

Link to comment
Share on other sites

Sorry all, I've been on overseas on vacation for the past two weeks, I probably should have updated the OP to let people know. I'll be back in a couple of days and I'll get working on fixing things ASAP.

 

As an aside, if you're upgrading from any version prior to 6.7, you must delete the folder in \ContractPacks and install it fresh. I changed the folder structure to make things easier for me as I continue working on things.

Thanks for your patience everyone :)

On 28/06/2017 at 2:20 AM, Gordon Dry said:

There is an error in the patching of the contracts.

Perhaps this is not the fault of this contract pack, because it says "ArgumentException: 'Gilly' is not a valid CelestialBody." - I got RSS installed.

[INFO] ContractConfigurator.ContractType: Loading CONTRACT_TYPE: 'StationCore'
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)

ContractConfigurator.OrbitFactory: CONTRACT_TYPE 'StationCore', PARAMETER 'LKO' of type 'Orbit': Error parsing maxAltitude
 
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)

ArgumentException: 'Gilly' is not a valid CelestialBody.
  at ContractConfigurator.ConfigNodeUtil.ParseCelestialBodyValue (System.String celestialName) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ExpressionParser.CelestialBodyParser.ParseIdentifier (ContractConfigurator.ExpressionParser.Token token) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ExpressionParser.ExpressionParser`1[T].ParseVarOrIdentifier (ContractConfigurator.ExpressionParser.Token token) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ExpressionParser.ExpressionParser`1[CelestialBody].ParseSimpleStatement[CelestialBody] () [0x00000] in <filename unknown>:0 
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ExpressionParser.ExpressionParser`1[System.Double].ParseStatement[Double] () [0x00000] in <filename unknown>:0 
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ExpressionParser.ExpressionParser`1[System.Double].ParseStatement[Double] () [0x00000] in <filename unknown>:0 
Rethrow as Exception: Error parsing statement.
Error occurred near '*':
@/targetBody1.IsSun() ? 113549713200 : @/targetBody1 == Gilly ? 16000 : @/targetBody1.SpaceAltitudeThreshold()
.......................* <-- HERE
  at ContractConfigurator.ExpressionParser.ExpressionParser`1[System.Double].ParseExpression (System.String key, System.String expression, ContractConfigurator.ExpressionParser.DataNode dataNode) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseSingleValue[Double] (System.String key, System.String stringValue, Boolean allowExpression) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseValue[Double] (.ConfigNode configNode, System.String key, Boolean allowExpression) [0x00000] in <filename unknown>:0 
  at ContractConfigurator.ConfigNodeUtil.ParseValue[Double] (.ConfigNode configNode, System.String key, System.Action`1 setter, IContractConfiguratorFactory obj, Double defaultValue, System.Func`2 validation) [0x00000] in <filename unknown>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
ContractConfigurator.LoggingUtil:LogException(Exception)
ContractConfigurator.ConfigNodeUtil:ParseValue(ConfigNode, String, Action`1, IContractConfiguratorFactory, Double, Func`2)
ContractConfigurator.OrbitFactory:Load(ConfigNode)
ContractConfigurator.ParameterFactory:GenerateParameterFactory(ConfigNode, ContractType, ParameterFactory&, ParameterFactory)
ContractConfigurator.ParameterFactory:GenerateParameterFactory(ConfigNode, ContractType, ParameterFactory&, ParameterFactory)
ContractConfigurator.ContractType:Load(ConfigNode)
ContractConfigurator.<LoadContractTypeConfig>d__29:MoveNext()
ContractConfigurator.<FinalizeContractTypeLoad>d__28:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
 
(Filename:  Line: -1)

ContractConfigurator.ContractType: Errors encountered while trying to load CONTRACT_TYPE 'StationCore'

Do you know a "well-known" issue regarding Gilly in RSS installs?

Log:
https://www.dropbox.com/s/xflvfnw8igjbd9d/2017-06-27-1 KSP.log.zip?dl=1

Sorry, not sure about that, I don't use RSS. I'll have a look into it when I get home, the contract pack doesn't have any planet names hardcoded in from memory (although there are one or two exceptions due to orbit heights, can't remember exactly which ones though)

Edit: @Gordon Dry I see that Nightingale believes that this an issue with CC. Let me know if you're still having this issue after an update is released and I'll see if there's a problem with the contract.

Edited by LemonSkin
Link to comment
Share on other sites

On 04/07/2017 at 0:39 AM, Volt said:

Is it possible for me to reduce the number of Kerbals required to satisfy a crew rotation contract? It's asking me to uplift 4 Kerbals as a crew to replace my 2 Kerbal crew on the station. I ask you, how many sensible rockets have a 4-Kerbal crew?

Edit: Looks like it glitched out and ticked off that requirement when I recovered the existing 2 crew. Odd.

Edit 2: Okay so this is definitely an issue. I even forced the contract to complete and then it immediately threw me a contract to 'crew the station now you have finished constructing it' which was odd given I'd just sent up three Kerbals to crew it. I'm not bothered that it's misbehaving but I am somewhat annoyed that the crewing requirement is 4 - there are three types of Kerbal, and the highest sensible crew capacity for a vessel is 3 without going nuts with hab containers etc.

Sorry it's causing you grief. I'll take a look at it when I get back from my holiday in a couple of days. The immediate contract is a quick fix and I might change the other requirement to "crew with between 1 and 4".

As for the highest sensible crew capacity being three, I disagree. I usually try to RP and have multiple of each class of Kerbal on board to take shifts doing work. Even the green space frogs need downtime :) That and if you're using Station Science, crewing a Station Science Laboratory with 4 scientists will make your experiments complete significantly faster than just having a single scientist. This pack was originally created with that mod in mind and I don't plan on deviating from that design choice.

Link to comment
Share on other sites

8 hours ago, LemonSkin said:

 

Sorry, not sure about that, I don't use RSS. I'll have a look into it when I get home, the contract pack doesn't have any planet names hardcoded in from memory (although there are one or two exceptions due to orbit heights, can't remember exactly which ones though)

If it helps, I remember that severedsolo made a change at my request to Gilly contracts to prevent them from wanting to be below the altitude at which KSP deletes objects. 

Link to comment
Share on other sites

For some reason, the contract system is telling me that I've failed the Mun station contract, while I'm trying to build it.

I've got a mostly-complete station that I've hauled into Munar orbit, but after two days there I'm told that the contract has been failed, before I can bring the remaining pieces.

Any idea what's going on, or how I can fix this?

Thanks!

Link to comment
Share on other sites

12 minutes ago, Seven_Indigo said:

For some reason, the contract system is telling me that I've failed the Mun station contract, while I'm trying to build it.

I've got a mostly-complete station that I've hauled into Munar orbit, but after two days there I'm told that the contract has been failed, before I can bring the remaining pieces.

Any idea what's going on, or how I can fix this?

Thanks!

We'd need more information than this.  A log file of when it happened would be best - but if you can't get that, can you tell us things like: Are there any other station contracts in progress?  How long have you had the contract since you picked it up?  Etc.

Link to comment
Share on other sites

36 minutes ago, DStaal said:

We'd need more information than this.  A log file of when it happened would be best - but if you can't get that, can you tell us things like: Are there any other station contracts in progress?  How long have you had the contract since you picked it up?  Etc.

Sure, let's see what I can get...

Here's the log from where it declared failure...

Spoiler

 

[LOG 14:36:16.732] [MessageSystem] Save Messages
[LOG 14:36:16.819] Game State Saved to saves/Progress/quicksave
[LOG 14:36:16.909] Game State Saved to saves/Progress/persistent
[LOG 14:36:35.291] 7/16/2017 2:36:35 PM,CapCom,Searching For Contract Configurator Scenario Module...
[LOG 14:36:35.292] 7/16/2017 2:36:35 PM,CapCom,Contract Configurator Scenario Module Loaded
[LOG 14:36:52.113] OnSave(Core) Fixed joint detected, saving info...
[LOG 14:36:52.114] OnSave(Core) Saving breakforce from joint config : 400
[LOG 14:36:52.115] OnSave(Core) Fixed joint detected, saving info...
[LOG 14:36:52.116] OnSave(Core) Saving breakforce from joint config : 400
[LOG 14:36:52.118] Flight State Captured
[LOG 14:36:52.128] Saving Achievements Tree...
[LOG 14:36:52.129] Saving Achievements Tree...
[LOG 14:36:52.129] Saving Achievements Tree...
[LOG 14:36:52.132] FF: saving hall of fame scenario module (at 920024.706309846)
[LOG 14:36:52.133] FF: saving hall of fame (913 logbook entries)
[LOG 14:36:52.137] FF: hall of fame saved in 2ms
[LOG 14:36:52.139] QuickStart(QPersistent)[2.14]: OnSave ac72a815-5509-468e-9afe-c52dc62a4efd
[LOG 14:36:52.141] [MessageSystem] Save Messages
[LOG 14:36:52.225] Game State Saved to saves/Progress/quicksave
[LOG 14:36:52.746] Game State Saved to saves/Progress/persistent
[LOG 14:36:55.809] Packing Kerbol Space Station 1 for orbit
[LOG 14:37:02.407] [CurrencyConverter for Unpaid Research Program]: 0 Reputation taken, yields 0 Science
[LOG 14:37:02.409] Awarding 182190 funds to player for contract completion
[LOG 14:37:02.410] [CurrencyConverter for Unpaid Research Program]: 0 Reputation taken, yields 0 Science
[LOG 14:37:02.411] Awarding 14 reputation to player for contract completion
[LOG 14:37:02.412] [CurrencyConverter for Unpaid Research Program]: 3.5 Reputation taken, yields 1.436935 Science
[LOG 14:37:02.413] Added 7.907753 (14) reputation: 'ContractReward'.
[LOG 14:37:02.415] [CurrencyConverter for Unpaid Research Program]: 3.5 Reputation taken, yields 1.436935 Science
[LOG 14:37:02.417] Contract (Launch the Kerbin Space Station!): Station Complete!

<b><color=#8BED8B>Completion Rewards:</color></b> 
<color=#B4D455><sprite="CurrencySpriteAsset" name="Funds" tint=1>  182,190   </color>
<color=#6DCFF6><sprite="CurrencySpriteAsset" name="Science" tint=1> <color=#caff00>(+1)</color>  </color>
<color=#E0D503><sprite="CurrencySpriteAsset" name="Reputation" tint=1> 11 <color=#feb200>(-4)</color>  </color>


[LOG 14:37:02.421] FF: ribbon Exceptional Contract Ribbon awarded to Jebediah Kerman at 932095.013946568 (Year 1, Day 44  00:54:55)
[LOG 14:37:02.423] FF: ribbon Exceptional Contract Ribbon awarded to Bob Kerman at 932095.013946568 (Year 1, Day 44  00:54:55)
[LOG 14:37:02.424] FF: ribbon Exceptional Contract Ribbon awarded to Bill Kerman at 932095.013946568 (Year 1, Day 44  00:54:55)
[LOG 14:37:02.472] [INFO] ContractConfigurator.CompleteContractRequirement: Contract StationCore: requirement CompleteContract was not met.
[LOG 14:37:02.474] Penalizing 300000 funds from player for contract failure
[LOG 14:37:02.475] Penalizing 202 reputation from player for contract failure
[LOG 14:37:02.476] Added -212.2043 (-202) reputation: 'ContractPenalty'.
[LOG 14:37:02.478] Contract (Launch the the Mun Space Station!): We have failed our contract for Base Construction: Launch the the Mun Space Station!

<b><color=#ED0B0B>Penalties for Failure:</color></b> <color=#ED0B0B><sprite="CurrencySpriteAsset" name="Funds" tint=1>  -300,000   </color><color=#ED0B0B><sprite="CurrencySpriteAsset" name="Reputation" tint=1> -202   </color>


[LOG 14:37:02.541] 7/16/2017 2:37:02 PM,KerbalAlarmClock,Contracts System Ready

 

 

 

I had the Kerbin space station contract active as well, and was surprised to find it marked as completed as I flew my partial station to the Mun.

I accepted both contracts before launching anything, and not particularly long ago game-time... maybe a few days?  There's no listed time limit on the missions.

Loading a slightly earlier save, though, gets me some interesting results when I look at the contracts with CapCom:

Spoiler
g6hGF3U.pngakUY8Sj.png

There's a countdown timer for satisfying the Kerbin space station contract, even though I'm not actually meeting its requirements (my vessel is in Munar orbit, and I don't have deployable solar panels).

I'm going to poke around more and see if I can get it between declaring success on the Kerbin station and declaring failure on the Mun station.

Edited by Seven_Indigo
Imgur album wasn't correct
Link to comment
Share on other sites

13 minutes ago, Seven_Indigo said:

Sure, let's see what I can get...

Here's the log from where it declared failure...

  Reveal hidden contents

 


[LOG 14:36:16.732] [MessageSystem] Save Messages
[LOG 14:36:16.819] Game State Saved to saves/Progress/quicksave
[LOG 14:36:16.909] Game State Saved to saves/Progress/persistent
[LOG 14:36:35.291] 7/16/2017 2:36:35 PM,CapCom,Searching For Contract Configurator Scenario Module...
[LOG 14:36:35.292] 7/16/2017 2:36:35 PM,CapCom,Contract Configurator Scenario Module Loaded
[LOG 14:36:52.113] OnSave(Core) Fixed joint detected, saving info...
[LOG 14:36:52.114] OnSave(Core) Saving breakforce from joint config : 400
[LOG 14:36:52.115] OnSave(Core) Fixed joint detected, saving info...
[LOG 14:36:52.116] OnSave(Core) Saving breakforce from joint config : 400
[LOG 14:36:52.118] Flight State Captured
[LOG 14:36:52.128] Saving Achievements Tree...
[LOG 14:36:52.129] Saving Achievements Tree...
[LOG 14:36:52.129] Saving Achievements Tree...
[LOG 14:36:52.132] FF: saving hall of fame scenario module (at 920024.706309846)
[LOG 14:36:52.133] FF: saving hall of fame (913 logbook entries)
[LOG 14:36:52.137] FF: hall of fame saved in 2ms
[LOG 14:36:52.139] QuickStart(QPersistent)[2.14]: OnSave ac72a815-5509-468e-9afe-c52dc62a4efd
[LOG 14:36:52.141] [MessageSystem] Save Messages
[LOG 14:36:52.225] Game State Saved to saves/Progress/quicksave
[LOG 14:36:52.746] Game State Saved to saves/Progress/persistent
[LOG 14:36:55.809] Packing Kerbol Space Station 1 for orbit
[LOG 14:37:02.407] [CurrencyConverter for Unpaid Research Program]: 0 Reputation taken, yields 0 Science
[LOG 14:37:02.409] Awarding 182190 funds to player for contract completion
[LOG 14:37:02.410] [CurrencyConverter for Unpaid Research Program]: 0 Reputation taken, yields 0 Science
[LOG 14:37:02.411] Awarding 14 reputation to player for contract completion
[LOG 14:37:02.412] [CurrencyConverter for Unpaid Research Program]: 3.5 Reputation taken, yields 1.436935 Science
[LOG 14:37:02.413] Added 7.907753 (14) reputation: 'ContractReward'.
[LOG 14:37:02.415] [CurrencyConverter for Unpaid Research Program]: 3.5 Reputation taken, yields 1.436935 Science
[LOG 14:37:02.417] Contract (Launch the Kerbin Space Station!): Station Complete!

<b><color=#8BED8B>Completion Rewards:</color></b> 
<color=#B4D455><sprite="CurrencySpriteAsset" name="Funds" tint=1>  182,190   </color>
<color=#6DCFF6><sprite="CurrencySpriteAsset" name="Science" tint=1> <color=#caff00>(+1)</color>  </color>
<color=#E0D503><sprite="CurrencySpriteAsset" name="Reputation" tint=1> 11 <color=#feb200>(-4)</color>  </color>


[LOG 14:37:02.421] FF: ribbon Exceptional Contract Ribbon awarded to Jebediah Kerman at 932095.013946568 (Year 1, Day 44  00:54:55)
[LOG 14:37:02.423] FF: ribbon Exceptional Contract Ribbon awarded to Bob Kerman at 932095.013946568 (Year 1, Day 44  00:54:55)
[LOG 14:37:02.424] FF: ribbon Exceptional Contract Ribbon awarded to Bill Kerman at 932095.013946568 (Year 1, Day 44  00:54:55)
[LOG 14:37:02.472] [INFO] ContractConfigurator.CompleteContractRequirement: Contract StationCore: requirement CompleteContract was not met.
[LOG 14:37:02.474] Penalizing 300000 funds from player for contract failure
[LOG 14:37:02.475] Penalizing 202 reputation from player for contract failure
[LOG 14:37:02.476] Added -212.2043 (-202) reputation: 'ContractPenalty'.
[LOG 14:37:02.478] Contract (Launch the the Mun Space Station!): We have failed our contract for Base Construction: Launch the the Mun Space Station!

<b><color=#ED0B0B>Penalties for Failure:</color></b> <color=#ED0B0B><sprite="CurrencySpriteAsset" name="Funds" tint=1>  -300,000   </color><color=#ED0B0B><sprite="CurrencySpriteAsset" name="Reputation" tint=1> -202   </color>


[LOG 14:37:02.541] 7/16/2017 2:37:02 PM,KerbalAlarmClock,Contracts System Ready

 

 

 

I had the Kerbin space station contract active as well, and was surprised to find it marked as completed as I flew my partial station to the Mun.

I accepted both contracts before launching anything, and not particularly long ago game-time... maybe a few days?  There's no listed time limit on the missions.

Loading a slightly earlier save, though, gets me some interesting results when I look at the contracts with CapCom:

  Reveal hidden contents
g6hGF3U.pngakUY8Sj.png

There's a countdown timer for satisfying the Kerbin space station contract, even though I'm not actually meeting its requirements (my vessel is in Munar orbit, and I don't have deployable solar panels).

I'm going to poke around more and see if I can get it between declaring success on the Kerbin station and declaring failure on the Mun station.

It's a known problem, there's a modification to make to a file a few posts back to solve it, will verify it as a fix that works

Link to comment
Share on other sites

13 minutes ago, Das_Sheep said:

It's a known problem, there's a modification to make to a file a few posts back to solve it, will verify it as a fix that works

WakabaGyaru's fix seems to have worked as far as failing the Mun contract.

It looked to me like these contracts latch onto specific vessel IDs...

Should I anticipate any problems from the partial Mun station apparently having been recognized as a Kerbin station?

Link to comment
Share on other sites

1 hour ago, Seven_Indigo said:

 

Should I anticipate any problems from the partial Mun station apparently having been recognized as a Kerbin

From what I understand it has an issue with multiple contracts being open at once, but it's entirely possible I'm wrong on that.

Link to comment
Share on other sites

I have a really strange problem with Stations and Bases contract pack.

 

The "Launch the @/targetBody1 Space Station!" contracts appear in my available contract list and then disappear a few seconds later, as if auto rejected, only to be replaced by other "Launch new xxx Space Station" contracts.

 

I do play with a heavily modded game but i tested the save game in a stripped down version and im still getting the same situation.

 

I skimmed through my output_log.txt and found nothing which seems related but i can provide it.

 

Im using ksp 1.3.0, contract configurator 1.23.1, module manager 2.8.1 and Bases and stations 7.0 (3.7.0 according to avc version file).

Link to comment
Share on other sites

On 7/19/2017 at 11:44 PM, Vrana said:

I have a really strange problem with Stations and Bases contract pack.

 

The "Launch the @/targetBody1 Space Station!" contracts appear in my available contract list and then disappear a few seconds later, as if auto rejected, only to be replaced by other "Launch new xxx Space Station" contracts.

 

I do play with a heavily modded game but i tested the save game in a stripped down version and im still getting the same situation.

 

I skimmed through my output_log.txt and found nothing which seems related but i can provide it.

 

Im using ksp 1.3.0, contract configurator 1.23.1, module manager 2.8.1 and Bases and stations 7.0 (3.7.0 according to avc version file).

This is an issue with CC itself, other users have reported similar issues on different contract pages. Sorry about that :\

Minor Update 3.7.0.1

  • Fixed issue with contracts failing (thanks WakabaGyaru)
  • Fixed issue with station/base population contract (thanks Volt)

 

Hey guys, I'm finally back. I've uploaded a quick hotfix, thanks to @WakabaGyaru and @Volt. Let me know if you're having any other issues!

Link to comment
Share on other sites

On 7/22/2017 at 1:33 AM, LemonSkin said:

This is an issue with CC itself, other users have reported similar issues on different contract pages. Sorry about that :\

Minor Update 3.7.0.1

  • Fixed issue with contracts failing (thanks WakabaGyaru)
  • Fixed issue with station/base population contract (thanks Volt)

 

Hey guys, I'm finally back. I've uploaded a quick hotfix, thanks to @WakabaGyaru and @Volt. Let me know if you're having any other issues!

Is this the problem?

 

Link to comment
Share on other sites

When i installed this mod, i already had a small crewed station orbiting kerbin. It was recognised for crew contract and tourism from tourism plus, yes. But- the first launch station contract is for the mun, aaaand it was not recognised for crew rotation and all other "must have station with crew in orbit". But it was recognised for supply run, med. emergency and docked exps. Will it be recognised later, after reload or at any other event?

Link to comment
Share on other sites

I am also experiencing the disappearing / reappearing contracts, only this mod seems affected. One thing I noticed that hasn't been reported, is that the contracts rapidly change between one, two, or three stars as they blink in and out. I have no idea if that's relevant; I can only hope it helps somehow.

Link to comment
Share on other sites

Hi, is this pack responsible for this?

Spoiler

[ERR 11:40:39.881] ContractConfigurator.ContractType: CONTRACT_TYPE 'SpaceStation': Error parsing targetBody1

[EXC 11:40:39.883] NullReferenceException: Object reference not set to an instance of an object
    ContractConfigurator.ExpressionParser.CelestialBodyParser.CheckTree (KSPAchievements.CelestialBodySubtree tree, ProgressItem pi)
    ContractConfigurator.ExpressionParser.CelestialBodyParser+<>c__DisplayClass9_0.<BodiesForItem>b__0 (KSPAchievements.CelestialBodySubtree node)
    System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[KSPAchievements.CelestialBodySubtree].MoveNext ()
    System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[KSPAchievements.CelestialBodySubtree,CelestialBody].MoveNext ()
    System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[CelestialBody].MoveNext ()
    System.Collections.Generic.List`1[CelestialBody].AddEnumerable (IEnumerable`1 enumerable)
    System.Collections.Generic.List`1[CelestialBody]..ctor (IEnumerable`1 collection)
    System.Linq.Enumerable.ToList[CelestialBody] (IEnumerable`1 source)
    ContractConfigurator.ExpressionParser.CelestialBodyParser+<>c.<RegisterMethods>b__6_43 ()
    ContractConfigurator.ExpressionParser.Function`1[System.Collections.Generic.List`1[CelestialBody]].Invoke ()
    ContractConfigurator.ExpressionParser.Function`1[System.Collections.Generic.List`1[CelestialBody]].Invoke (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 '*':
    ReturnedFromBodies().Where(body => @/stations.Where(v => v.CelestialBody() == body).Count() == 0).SelectUnique()
    ....................* <-- HERE
    ContractConfigurator.ExpressionParser.ExpressionParser`1[T].ParseExpression (System.String key, System.String expression, ContractConfigurator.ExpressionParser.DataNode dataNode)
    ContractConfigurator.ExpressionParser.ExpressionParser`1[T].ExecuteExpression (System.String key, System.String expression, ContractConfigurator.ExpressionParser.DataNode dataNode)
    ContractConfigurator.ConfigNodeUtil.ParseSingleValue[CelestialBody] (System.String key, System.String stringValue, Boolean allowExpression)
    ContractConfigurator.ConfigNodeUtil.ParseValue[CelestialBody] (.ConfigNode configNode, System.String key, Boolean allowExpression)
    ContractConfigurator.ConfigNodeUtil.ParseValue[CelestialBody] (.ConfigNode configNode, System.String key, System.Action`1 setter, IContractConfiguratorFactory obj, .CelestialBody defaultValue, System.Func`2 validation)
    UnityEngine.Debug:LogException(Exception)
    ContractConfigurator.LoggingUtil:LogException(Exception)
    ContractConfigurator.ConfigNodeUtil:ParseValue(ConfigNode, String, Action`1, IContractConfiguratorFactory, CelestialBody, Func`2)
    ContractConfigurator.ConfigNodeUtil:ParseValue(ConfigNode, String, Action`1, IContractConfiguratorFactory, Func`2)
    ContractConfigurator.DeferredLoadUtil:ExecuteLoad(DeferredLoadObject`1)
    System.Reflection.MethodBase:Invoke(Object, Object[])
    ContractConfigurator.<UpdateNonDeterministicValuesIterator>d__30:MoveNext()
    System.Linq.<CreateConcatIterator>c__Iterator1`1:MoveNext()
    ContractConfigurator.<GenerateContract>d__33:MoveNext()
    ContractConfigurator.<ContractEnumerator>d__32:MoveNext()
    ContractConfigurator.ContractPreLoader:Update()

 

Link to comment
Share on other sites

  • 2 weeks later...

Hi @LemonSkin

I'm getting a validation error from the BasePopulation.cfg:

Spoiler

[ERR 15:07:50.333] ContractConfigurator.HasCrewFactory: CONTRACT_TYPE 'BasePopulation', PARAMETER 'HasCrew' of type 'HasCrew': A validation error occured while loading the key 'maxCrew' with value '0'.

[EXC 15:07:50.354] ArgumentException: Must be greater than or equal to 1
    ContractConfigurator.Validation.GE[Int32] (Int32 val, Int32 referenceValue)
    ContractConfigurator.HasCrewFactory.<Load>b__7_8 (Int32 x)
    ContractConfigurator.ConfigNodeUtil.ParseValue[Int32] (.ConfigNode configNode, System.String key, System.Action`1 setter, IContractConfiguratorFactory obj, Int32 defaultValue, System.Func`2 validation)
    UnityEngine.Debug:LogException(Exception)
    ContractConfigurator.LoggingUtil:LogException(Exception)
    ContractConfigurator.ConfigNodeUtil:ParseValue(ConfigNode, String, Action`1, IContractConfiguratorFactory, Int32, Func`2)
    ContractConfigurator.HasCrewFactory:Load(ConfigNode)
    ContractConfigurator.ParameterFactory:GenerateParameterFactory(ConfigNode, ContractType, ParameterFactory&, ParameterFactory)
    ContractConfigurator.ParameterFactory:GenerateParameterFactory(ConfigNode, ContractType, ParameterFactory&, ParameterFactory)
    ContractConfigurator.ContractType:Load(ConfigNode)
    ContractConfigurator.<LoadContractTypeConfig>d__29:MoveNext()
    ContractConfigurator.<FinalizeContractTypeLoad>d__28:MoveNext()
    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
[WRN 15:07:50.379] ContractConfigurator.ContractType: Errors encountered while trying to load CONTRACT_TYPE 'BasePopulation'

 

Brand new career save with just Bases & Stations, CC 1.23.2 and MM 2.8.1.

KSP.log: https://www.dropbox.com/s/lm5t7gsetpamh9v/KSP.log?dl=0

Output_log.txt: https://www.dropbox.com/s/2hpfnvqw1gjgaq4/output_log.txt?dl=0

Hopefully, this will give you or @nightingale enough information to see what's wrong, but if you need any more, let me know.

Link to comment
Share on other sites

I haven't been getting any contracts to crew my Minmus station after completing it, so I checked in the CC debug menu and found this.

 

Also in the Mission Control when checking on the contracts for Bases and Stations, several of the contracts have 'Must have a crewed station in orbit: Unmet' while a couple do have this listed as met.

I did successfully complete the contract that generated to crew my Kerbin station. I am not sure why there are errors with this now.

Edited by Nachocuban
Link to comment
Share on other sites

@IntoSpaceAgain and @Nachocuban Some parts change their crew capacity "on-the-fly" (generally inflatable/deployable parts) which can mean that they are sometimes zero. This can cause the maxCrew in the contract to be less than minCrew (1) - which causes the error.

It's a simple one line fix and I've sent a pull-request to @LemonSkin on GitHub with the details.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...