-
Posts
303 -
Joined
-
Last visited
-
KCHS update: -Added Free-IVA support , Big thanks to @JonnyOThan
-
[1.10.1+] Contract Configurator [v1.30.5] [2020-10-05]
mark7 replied to nightingale's topic in KSP1 Mod Releases
I have been playing around with contract configurator to make some new contract lately and have encountered a pop-up exception in game which suggested me to post the error here. the exception is Exception occured while loading contract 'KerbalAcademy.KerbalAcademy_PilotingTraining': System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Invalid cast from 'System.String' to 'System.Collections.Generic.List`1[[ContractConfigurator.Kerbal, ContractConfigurator, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'. at System.Convert.DefaultToType (System.IConvertible value, System.Type targetType, System.IFormatProvider provider) [0x00269] in <9577ac7a62ef43179789031239ba8798>:0 at System.String.System.IConvertible.ToType (System.Type type, System.IFormatProvider provider) [0x00000] in <9577ac7a62ef43179789031239ba8798>:0 at System.Convert.ChangeType (System.Object value, System.Type conversionType, System.IFormatProvider provider) [0x0021b] in <9577ac7a62ef43179789031239ba8798>:0 at System.Convert.ChangeType (System.Object value, System.Type conversionType) [0x0000c] in <9577ac7a62ef43179789031239ba8798>:0 at ContractConfigurator.ConfigNodeUtil.ParseSingleValue[T] (System.String key, System.String stringValue, System.Boolean allowExpression) [0x006a0] in <20a3a039060941bfb465629683bb64bf>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke(System.Reflection.MonoMethod,object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00032] in <9577ac7a62ef43179789031239ba8798>:0 --- End of inner exception stack trace --- at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00048] in <9577ac7a62ef43179789031239ba8798>:0 at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <9577ac7a62ef43179789031239ba8798>:0 at ContractConfigurator.ConfiguredContract.OnLoad (ConfigNode node) [0x00233] in <20a3a039060941bfb465629683bb64bf>:0 and the exact contract is: CONTRACT_TYPE { name = KerbalAcademy_PilotingTraining title = Kerbal Academy: Pilot Training Program group = KerbalAcademy description = It seems that a group of pilots is ready to improve their piloting skills. Take them to @targetVessel, along with 2 mentors to train them, then bring them back home. genericDescription = Put a gourp of pilots throught the training Program. synopsis = Complete the training course. completedMessage = Congratulations, we now have more experienced pilots on our team agent = Kerbal Academy notes = The parameters must be completed in order. minExpiry = 1 maxExpiry = 7 maxSimultaneous = 1 cancellable = true declinable = true prestige = Significant targetBody = HomeWorld() rewardScience = 0.0 rewardReputation = 10 rewardFunds = 0 failureReputation = 0 failureFunds = 0 advanceFunds = -50000 - @crew_size * 20000 DATA { type = List<Kerbal> uniquenessCheck = CONTRACT_ACTIVE all_candidates = AllKerbals().Where(m => m.ExperienceTrait() == Pilot && m.ExperienceLevel()<= 2 && m.Type() == Crew && m.RosterStatus() == Available) trainee_list = @all_candidates.Random(@crew_size) title = Must have a group of Kerbals who qualify for the basic program. } DATA { type = int selectionIndex = Random(0, @validOTFs.Count() - 1) crew_size = @is_random_crewsize ? 2 : Random(3, 6) } DATA { type = double expAward = 8 } DATA { type = bool is_random_crewsize = 6 < @all_candidates.Count() } DATA { type = List<VesselIdentifier> requiredValue = false validOTFs = $KerbalAcademy_OrbitalTraingFacility.Where(vi => Vessel(vi).IsOrbiting() && Vessel(vi).EmptyCrewSpace() >= 8) } DATA { type = Vessel uniquenessCheck = CONTRACT_ACTIVE title = Must have an Orbital Training Facility with sufficient empty space targetVessel = @validOTFs.ElementAt(@selectionIndex) } BEHAVIOUR { name = AwardExperience type = AwardExperience kerbal = @/trainee_list experience = @/expAward } PARAMETER { name = HasTrainee type = HasCrew kerbal = @/trainee_list } PARAMETER { name = HasMentor type = HasCrew trait = Pilot title = Must have an experienced Pilot on board minExperience = 4 } PARAMETER { name = HasCommander type = HasCrew trait = Commander title = Must have a commander to oversee the training minExperience = 2 } PARAMETER { name = DockwithStation type = Docking vessel = @/targetVessel title = Dock with @/targetVessel completeInSequence = true } PARAMETER { name = Duration type = Duration duration = 15d preWaitText = Waiting for the Crew. waitingText = Crew at the station completionText = Mission accomplished! Bring the crew back home. completeInSequence = true } PARAMETER { name = RecoverKerbal type = RecoverKerbal completeInSequence = true kerbal = @/trainee_list } REQUIREMENT { name = check_crew_count type = Expression expression = @/all_candidates.Count() > 1 title = Must enough crew } } Anyone know what could be the problem?- 5,178 replies
-
- contract configurator
- career
-
(and 1 more)
Tagged with:
-
I have checked that commit, it's a bit complicated. Icecovery has made a Chinese Space Station several years ago but never really finish. OldCopper also made one in the recent years, but lacks IVA. So, with the merge of ICSP and NTCP (OldCopper's Chinese mod), we took the existing IVA from ICSP and apply to OldCopper's parts, hence the commit. I have checked with Icecovery and it could very well be that he did not finish that prop. Do you think maybe remove the prop could be better? Also, sorry for the delayed reply, I just went through a surgery and only recently bouncing back.
-
Any Prop from ICSP is inherited from Icecovery's Chinese Spacecraft pack. If you cannot find them, it probably means either I left some files or it was not finished by Icecovery. I'll have a look to see if I can find them but don't count on that... Also we might do a complete overhaul for the Shenzhou and Tiangong. It is on our roadmap, but currently we are focusing on the new Long March 10.
-
They all support 1.12.5
-
Thanks!A new release with MJ fix patch relocated is already uploaded
-
Weired. When I install it with CKAN, the patch was not included, but if download directly from spacedock, it worked without problem. For now I suggest you download KCHS from spacedock, unzip it, and find KIU/Common/Extra/Mechjeb_patch.cfg, copy it to anywhere inside the Gamedata folder (preferable inside KIU folder) and it should fix the problem. While I'm going to find out what's going on with CKAN.
-
Can you give KCHS 1.0.5 (the latest version) a shot? I included the mj fix patch and it should fix the problem.
-
As it turned out, I forget to include the mj fix patch in the release...An update is on its way.
-
4th stage is a SRB and it is not meant to shut down. Orient Space said that they are working on a liquid stage and we will make one once it starts flying.
-
Ladies and gentlemen, I present you, the Gravity-1! World largest SRB-only rocket, and, more importantly, world kerbalest rocket! KCLV v1.1.5 -Add Gravity-1 -Several bug fix. Some promotion video we made ;)
-
I am not familiar with JNSQ, you can give it a shot though.
-
When the memory leak went beyond control, your computer (or KSP) may decide to drop a few tasks to lighten the load. And in this case, the GUI of RealChute was dropped from memory, along with hundreds of other stuffs, so you are not able to open it in the VAB. If you did most of your installs by hand, then I need your entire gamedata folder, not just a screen shot.
-
Judging from the log file and your memory usage, I suspect that the most likely cause is a memory leak, which caused the component to stop functioning, like the options window and other things. You have like 900 of these warnings in you log. ↓ [LOG 15:49:55.618] [KSPCF:MemoryLeaks] A destroyed RealChute:RCToolbarManager instance is owning a onGUIApplicationLauncherDestroyed GameEvents callback. No action has been taken, but unless this mod is relying on this pattern, this is likely a memory leak. [LOG 15:49:55.618] [KSPCF:MemoryLeaks] A destroyed RealChute:RCToolbarManager instance is owning a onGUIEditorToolbarReady GameEvents callback. No action has been taken, but unless this mod is relying on this pattern, this is likely a memory leak. how exactly did you install these mods? If not all via CKAN, then is it possible for you to upload your Gamedata folder minus the squad content, so I can see if I can reproduce this on my end?
-
I'm glad it worked out for you. MJ module is not included in the Shenzhou parts. Will add a patch to add them in the next update. I am looking into that log file and I found an exceedingly high number of errors. There appears to be a memory leak, can you check your task manager during KSP uptime to see the memory usage? Also, is uninstalling KIU mods able to bring your chute functions back?