Jump to content

[1.10.1+] Contract Configurator [v1.30.5] [2020-10-05]


nightingale

Recommended Posts

@nightingale - it's been a while since I did this so I might just be a bit rusty.

I thought I'd make the required changes to Kerbal Academy, but I'm getting an exception - don't think it's me as literally all I've done is change the quotes.

This is the line that's causing it to fall over:

trait = @/roleString == "Pilots." ? Pilot : @/roleString == "Scientists." ? Scientist : Engineer

The exception I'm getting is "ArgumentException: Expected ':', but reached end of expression!" - now either I'm being stupid, or that expression finishes at the last "Engineer" correctly.

Full contract: https://github.com/severedsolo/KerbalAcademy/blob/master/KerbalAcademyBootCamp.cfg

 

Link to comment
Share on other sites

1 minute ago, severedsolo said:

@nightingale - it's been a while since I did this so I might just be a bit rusty.

I thought I'd make the required changes to Kerbal Academy, but I'm getting an exception - don't think it's me as literally all I've done is change the quotes.

This is the line that's causing it to fall over:


trait = @/roleString == "Pilots." ? Pilot : @/roleString == "Scientists." ? Scientist : Engineer

The exception I'm getting is "ArgumentException: Expected ':', but reached end of expression!" - now either I'm being stupid, or that expression finishes at the last "Engineer" correctly.

Full contract: https://github.com/severedsolo/KerbalAcademy/blob/master/KerbalAcademyBootCamp.cfg

 

I actually changed the line on this... I did not notice those other ones... Maybe they should not be changed?

Spoiler

            pilots = AllKerbals().Where(k => k.ExperienceTrait() == Pilot && k.RosterStatus() == Available && k.Type() == Crew)
            scientists = AllKerbals().Where(k => k.ExperienceTrait() == Scientist && k.RosterStatus() == Available && k.Type() == Crew)
            engineers = AllKerbals().Where(k => k.ExperienceTrait() == Engineer && k.RosterStatus() == Available && k.Type() == Crew)

 

Link to comment
Share on other sites

12 minutes ago, Warezcrawler said:

I actually changed the line on this... I did not notice those other ones... Maybe they should not be changed?

  Reveal hidden contents

            pilots = AllKerbals().Where(k => k.ExperienceTrait() == Pilot && k.RosterStatus() == Available && k.Type() == Crew)
            scientists = AllKerbals().Where(k => k.ExperienceTrait() == Scientist && k.RosterStatus() == Available && k.Type() == Crew)
            engineers = AllKerbals().Where(k => k.ExperienceTrait() == Engineer && k.RosterStatus() == Available && k.Type() == Crew)

 

Told you I was rusty :D - you are right, the trait line doesn't use the same format as the DATA node. That fixed it. Thanks!

Link to comment
Share on other sites

1 minute ago, severedsolo said:

Told you I was rusty :D - you are right, the trait line doesn't use the same format as the DATA node. That fixed it. Thanks!

glad to hear it..... I'm not rusty... I just don't really know what I'm doing .... LOL

Guesswork, Guesswork, Guesswork when it comes to contracts.

 

Link to comment
Share on other sites

 

2 hours ago, Beetlecat said:

So dared -- but I wouldn't risk any kind of $$ bet. :)

You lose. =P

Audit For The Listing of Contract Packs

 

  • Additional Progression Contracts - Thread Link Correct, No longer maintained 
  • Anomaly Surveyor - Page no longer exists. Heyyy isnt this @nightingale's.... =P  [New Thread] 
  • AntennaRange Relays - Page no longer exists 
  • Banking - Screw it, I'm coining an acronym, <PNLE>, ie this page no longer exists.  
  • Base Construction - <PNLE>  
  • Clever Sats - No longer maintained <NLM> (Tho I kinda think I may pick it up, but not for a while) 
  • Defence Contract Advisors - <NLM> You also spelled defense wrong.
  • Field Research - <PNLE> Wait isnt that yours? [New Thread]
  • Giving Aircraft a Purpose - Hey! I found a live one!
  • Grand Tours - <PNLE> [New Thread] Current Version is for 1.2.1
  • Historic Missions - <PNLE> [New Thread] (Sorta Same Mod) Ill give this a .5 out of 1 for still existing
  • Historical Progression - <NLM>
  • Initial Contracts (SETI) - <PNLE>
  • Interplanetary Mountaineer - <NLM>
  • The K-Files - <PNLE>
  • Kerbal Academy - Someoneee forgot to change the dev name.... =P
  • Kerbal Aircraft Builders - <PNLE>
  • Kerbin on Fire Military Contract Pack - <PNLE>
  • Kerbin Space Station - <PNLE> 
  • Kerbin-SideJobs  - <PNLE>
  • Kerbin Side GAP - On life support, but responding to treatment
  • Maritime Mission Pack - <PNLE>
  • Mission Based R&D - <PNLE>
  • RemoteTech Contract Pack - <PNLE> Yours again btw. [New Thread] On Life Support
  • Rover Contracts by Whyren! - <PNLE>
  • SETI-Contracts - <PNLE> Contact @theonegalen Seems to have picked up most SETI contracts
  • SCANsat Contract Pack - <PNLE> 
  • Sounding Rockets - Good lord! Its breathing! 
  • Spacetux - Unmanned Contracts - <PNLE> [New Thread] Current Version is for 1.2.1 
  • Tourism Plus - <PNLE> This one is also yours. [New Thread]

 

Wow. Thats a ummm... lets see 7.5/30... yep. Thats a 1:4 survival rate. 25-26% still exist, depending on how you count Historic Missions

 

@nightingale =P Enjoy

Edit @linuxgurugamer Says Unmanned Contracts and Grand Tours are still working 
 

 

 

Edited by Mark Kerbin
Link to comment
Share on other sites

2 hours ago, Mark Kerbin said:

 

You lose. =P

Audit For The Listing of Contract Packs

 

  • Additional Progression Contracts - Thread Link Correct, No longer maintained 
  • Anomaly Surveyor - Page no longer exists. Heyyy isnt this @nightingale's.... =P  [New Thread] 
  • AntennaRange Relays - Page no longer exists 
  • Banking - Screw it, I'm coining an acronym, <PNLE>, ie this page no longer exists.  
  • Base Construction - <PNLE>  
  • Clever Sats - No longer maintained <NLM> (Tho I kinda think I may pick it up, but not for a while) 
  • Defence Contract Advisors - <NLM> You also spelled defense wrong.
  • Field Research - <PNLE> Wait isnt that yours? [New Thread]
  • Giving Aircraft a Purpose - Hey! I found a live one!
  • Grand Tours - <PNLE>
  • Historic Missions - <PNLE> [New Thread] (Sorta Same Mod) Ill give this a .5 out of 1 for still existing
  • Historical Progression - <NLM>
  • Initial Contracts (SETI) - <PNLE>
  • Interplanetary Mountaineer - <NLM>
  • The K-Files - <PNLE>
  • Kerbal Academy - Someoneee forgot to change the dev name.... =P
  • Kerbal Aircraft Builders - <PNLE>
  • Kerbin on Fire Military Contract Pack - <PNLE>
  • Kerbin Space Station - <PNLE> 
  • Kerbin-SideJobs  - <PNLE>
  • Kerbin Side GAP - On life support, but responding to treatment
  • Maritime Mission Pack - <PNLE>
  • Mission Based R&D - <PNLE>
  • RemoteTech Contract Pack - <PNLE> Yours again btw. [New Thread] On Life Support
  • Rover Contracts by Whyren! - <PNLE>
  • SETI-Contracts - <PNLE> Contact @theonegalen Seems to have picked up most SETI contracts
  • SCANsat Contract Pack - <PNLE> 
  • Sounding Rockets - Good lord! Its breathing! 
  • Spacetux - Unmanned Contracts - <PNLE>
  • Tourism Plus - <PNLE> This one is also yours. [New Thread]

 

Wow. Thats a ummm... lets see 7.5/30... yep. Thats a 1:4 survival rate. 25-26% still exist, depending on how you count Historic Missions

 

@nightingale =P Enjoy

I don't see any of my contract packs listed 

Edited by linuxgurugamer
Link to comment
Share on other sites

Ah, sorry for the confusion. That list is from the first page of this thread, just a check up on whats still here. 

*waits for list of thousands for [Insert name here] Contract Pack Continued* :wink:

Also I feel like autocorrect may be messing with you here. =)

Edited by Mark Kerbin
Link to comment
Share on other sites

22 minutes ago, linuxgurugamer said:

I wasnt aware those pages had been lost.  I’ll see if i can create new ones in a day or so

The problem is that a lot of those links used the old forum links, for which we were promised backwards compatibility.  Until something broke and nobody seemed able to fix it.  So more than likely those are still there and I just need to fix up links.

Or they were lost in the great "oops" deletion a year or so back. :)

Link to comment
Share on other sites

1 hour ago, nightingale said:

The problem is that a lot of those links used the old forum links, for which we were promised backwards compatibility.  Until something broke and nobody seemed able to fix it.  So more than likely those are still there and I just need to fix up links.

Or they were lost in the great "oops" deletion a year or so back. :)

Indeed. Far more of those happening over the years than would see reasonable... ;)

Link to comment
Share on other sites

I'm pretty new to KSP but love this mod. (Thanks for this!)

I miss the stock rescue missions, though. (they were a good way to get random Kerbals and practice rendez-vous.) Are there any contract packs that still contain those missions?

 

 

Edited by TrueVulgarian
Link to comment
Share on other sites

1 hour ago, TrueVulgarian said:

I'm pretty new to KSP but love this mod. (Thanks for this!)

I miss the stock rescue missions, though. (they were a good way to get random Kerbals and practice rendez-vous.) Are there any contract packs that still contain those missions?

 

 

CC doesn't disable stock missions by itself, if you have a pack that disables those (probably Kerbal Academy) you can re-enable them through the difficulty settings menu.

Link to comment
Share on other sites

1 minute ago, severedsolo said:

CC doesn't disable stock missions by itself, if you have a pack that disables those (probably Kerbal Academy) you can re-enable them through the difficulty settings menu.

Cool! Thank-you. :D

I'm pretty sure I have Kerbal Academy installed.

Edited by TrueVulgarian
Link to comment
Share on other sites

Hey... Thanks for keeping this mod alive.

I've noticed that I get an exception when I have this mod installed along EVA enhancements.

[EXC 19:53:25.202] ReflectionTypeLoadException: The classes in the module cannot be loaded.
	System.Reflection.Assembly.GetTypes ()
	ContractConfigurator.ContractConfigurator+<GetAllTypes>d__31`1[ContractConfigurator.ParameterFactory].MoveNext ()
	Rethrow as Exception: Error loading types from assembly EVAEnhancementsContinued, Version=0.1.13.1, Culture=neutral, PublicKeyToken=null
	UnityEngine.Debug:LogException(Exception)
	ContractConfigurator.LoggingUtil:LogException(Exception)
	ContractConfigurator.<GetAllTypes>d__31`1:MoveNext()
	System.Linq.<CreateWhereIterator>c__Iterator1D`1:MoveNext()
	ContractConfigurator.ContractConfigurator:RegisterParameterFactories()
	ContractConfigurator.ContractConfigurator:PSystemReady()
	EventVoid:Fire()
	<Start>c__Iterator0:MoveNext()
	UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

Both Contract Configurator and EVA enhancements is mentioned.  However, I'm pretty sure it is CC that throws.

Full log see line 30044 for above message.

Edited by Warezcrawler
Link to comment
Share on other sites

5 hours ago, Warezcrawler said:

Hey... Thanks for keeping this mod alive.

I've noticed that I get an exception when I have this mod installed along EVA enhancements.


[EXC 19:53:25.202] ReflectionTypeLoadException: The classes in the module cannot be loaded.
	System.Reflection.Assembly.GetTypes ()
	ContractConfigurator.ContractConfigurator+<GetAllTypes>d__31`1[ContractConfigurator.ParameterFactory].MoveNext ()
	Rethrow as Exception: Error loading types from assembly EVAEnhancementsContinued, Version=0.1.13.1, Culture=neutral, PublicKeyToken=null
	UnityEngine.Debug:LogException(Exception)
	ContractConfigurator.LoggingUtil:LogException(Exception)
	ContractConfigurator.<GetAllTypes>d__31`1:MoveNext()
	System.Linq.<CreateWhereIterator>c__Iterator1D`1:MoveNext()
	ContractConfigurator.ContractConfigurator:RegisterParameterFactories()
	ContractConfigurator.ContractConfigurator:PSystemReady()
	EventVoid:Fire()
	<Start>c__Iterator0:MoveNext()
	UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

Both Contract Configurator and EVA enhancements is mentioned.  However, I'm pretty sure it is CC that throws.

Full log see line 30044 for above message.

Contract Configurator looks at all assemblies to find classes that are extending CC.  That error is saying that CC couldn't read the EVAEnhancements assembly.  The most common cause is the .Net version being set incorrectly (but this is a @linuxgurugamer mod, so that's unlikely).  Next most common is a missing dependency, or version mismatch with a dependency (including KSP itself).  Finally it could just be a coding error of some kind.  The error that you should be looking at is:

[ERR 19:49:44.139] AssemblyLoader: Exception loading 'EVAEnhancementsContinued': System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0 
  at AssemblyLoader.LoadAssemblies () [0x00000] in <filename unknown>:0 

Additional information about this exception:

 System.TypeLoadException: Could not load type 'EVAEnhancementsContinued.SettingsWindow' from assembly 'EVAEnhancementsContinued, Version=0.1.13.1, Culture=neutral, PublicKeyToken=null'.

From the logs I see that you have the dependency correctly installed (Click Through Blocker and Toolbar Controller), so I'm betting it's an incompatibility with KSP 1.4.3 (the thread says 1.4.1+, but maybe it doesn't work in 1.4.3 and lgg isn't aware yet).  This guess is supported by the fact that someone's reporting it crashing for Mac under 1.4.3 (but that could just be a coincidence).

Anyway - you can safely ignore the Contract Configurator part of the error - it was never going to find anything it wanted in EVAEnhancements anyway.

Link to comment
Share on other sites

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...