Jump to content

(1.12.x) Planes With Purposes (PWP)


Tudor Aerospace

Recommended Posts

i don't use Kerbal Konstructs,  witch contracts are  specific to locations?

 

EDIT: i removed the ones for the hanger and bridges, I'm pretty sure the plantey ones should still work, will report back

Edited by zakkpaz
Link to comment
Share on other sites

  • 3 weeks later...

FYI - contract loading error:

[LOG 15:36:49.181] [INFO] ContractConfigurator.ContractType: Successfully loaded CONTRACT_TYPE 'FirstFlight'
[LOG 15:36:49.187] [INFO] ContractConfigurator.ContractType: Loading CONTRACT_TYPE: 'LandOnGilly'
[ERR 15:36:49.192] ContractConfigurator.CompleteContractRequirement: contractType 'LandOnTheMun' must either be a Contract sub-class or ContractConfigurator contract type

[WRN 15:36:49.194] ContractConfigurator.ContractType: Errors encountered while trying to load CONTRACT_TYPE 'LandOnGilly'
[LOG 15:36:49.200] [INFO] ContractConfigurator.ContractType: Loading CONTRACT_TYPE: 'Jool5'

 

Link to comment
Share on other sites

  • 2 weeks later...

Hello/ Salut :)

Thank you for this mod ! unfortunately i cant seem to complete the " Reach space with a space plane" mission. I go over 70000 altitude and nothing happens :(

 

Any idea what is causing this ?

Link to comment
Share on other sites

  • 2 weeks later...
  On 3/25/2021 at 5:39 AM, ikarus said:

Hello/ Salut :)

Thank you for this mod ! unfortunately i cant seem to complete the " Reach space with a space plane" mission. I go over 70000 altitude and nothing happens :(

 

Any idea what is causing this ?

Expand  

The file "ReachSpace.cfg" tests for an impossible condition and also doesn't retain it.

Find where it says 

                targetBody = Kerbin
                situation = FLYING
                minAltitude = 69999

You obviously cannot fly above the atmosphere!

Change this to:

                targetBody = Kerbin
                situation = SUB_ORBITAL
                minAltitude = 69999

Then, the next line, change 

disableOnStateChange = false

to

disableOnStateChange = true

This will make the parameter actually achievable, and will set it to retain it.

Link to comment
Share on other sites

  • 3 weeks later...

I was wondering if we could get separate "Drop tank spaceplane" contracts before the SSTO contracts. 

Drop tank spaceplanes would be only allowed to drop tanks, and not engines during their ascent.

Link to comment
Share on other sites

  • 1 year later...
  • 1 year later...

A bit of a forewarning:

As of now, the mod doesn't seem to be compatable with any mods that replace the stock Kerbolar system, such as Galileo Planets Pack or Real Solar System. To remedy this, for starters, I'd recommend replacing any instances of "Kerbin" with "HomeWorld()" (and also find ways to replace the other planetary bodies, such as the Mun and Duna, in an adaptable way), so that the contract configurator mod can auto-detect where the homeworld is located (along with other nearby challenge-appropriate worlds).

  Reveal hidden contents

If you'd like, I could try uploading my mod changes onto the cloud for others to download and see for themselves (especially if they have Real Solar System installed).

Link to comment
Share on other sites

  • 2 weeks later...
[ERR 21:43:55.446] ContractConfigurator.PartModuleUnlockedRequirement: CONTRACT_TYPE 'FirstFlight', REQUIREMENT 'PartModuleUnlocked' of type 'PartModuleUnlocked': A validation error occured while loading the key 'partModule' with value 'System.Collections.Generic.List`1[System.String]'.

[EXC 21:43:55.448] ArgumentException: No PartModule class for 'AJEInlet'.
	ContractConfigurator.Validation.ValidatePartModule (System.String name) (at <c2a685a5828145e6ac9df5f3f9c944a7>:0)
	System.Linq.Enumerable.All[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
	ContractConfigurator.PartModuleUnlockedRequirement+<>c.<LoadFromConfig>b__1_1 (System.Collections.Generic.List`1[T] x) (at <c2a685a5828145e6ac9df5f3f9c944a7>:0)
	ContractConfigurator.ConfigNodeUtil.ParseValue[T] (ConfigNode configNode, System.String key, System.Action`1[T] setter, ContractConfigurator.IContractConfiguratorFactory obj, T defaultValue, System.Func`2[T,TResult] validation) (at <c2a685a5828145e6ac9df5f3f9c944a7>:0)
	UnityEngine.DebugLogHandler:LogException(Exception, Object)
	ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
	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, Func`2)
	ContractConfigurator.PartModuleUnlockedRequirement:LoadFromConfig(ConfigNode)
	ContractConfigurator.ContractRequirement:GenerateRequirement(ConfigNode, ContractType, ContractRequirement&, IContractConfiguratorFactory)
	ContractConfigurator.ContractRequirement:GenerateRequirement(ConfigNode, ContractType, ContractRequirement&, IContractConfiguratorFactory)
	ContractConfigurator.ContractType:Load(ConfigNode)
	ContractConfigurator.<LoadContractTypeConfig>d__32:MoveNext()
	ContractConfigurator.<FinalizeContractTypeLoad>d__31:MoveNext()
	UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
[WRN 21:43:55.448] ContractConfigurator.ContractType: Errors encountered while trying to load CONTRACT_TYPE 'FirstFlight'
  Reveal hidden contents

 

I have added a few plane part related mods, and I began encountering the above error in my new save. First is ksp.log, second is from the contract configurator log folder.

 

This is my total modlist:

 

  Reveal hidden contents

 

 

I think it might be either Airplane Plus, Mark IV Spaceplane , Mk2.5 Spaceplane Parts, Mk-X Spaceplane Parts or OPT spaceplane that breaks things, as those are the ones I mass added. It's pretty late at night so I didn't test to find which broke it.

 

I fixed it locally by deleting the check.

Edited by RunaDacino
Added more logs
Link to comment
Share on other sites

  On 4/22/2024 at 10:53 PM, RunaDacino said:

I think it might be either Airplane Plus, Mark IV Spaceplane , Mk2.5 Spaceplane Parts, Mk-X Spaceplane Parts or OPT spaceplane that breaks things, as those are the ones I mass added. It's pretty late at night so I didn't test to find which broke it.

Expand  

It looks like a rogue mod is using a patch with :FOR[AJE] instead of :NEEDS[AJE] (or you have an leftover/empty directory called AJE in your GameData).

You can find which mod is responsible by searching <KSP>/Logs/ModuleManager/ModuleManager.log for ":FOR[AJE]"

Link to comment
Share on other sites

  On 4/23/2024 at 12:21 AM, Aelfhe1m said:

It looks like a rogue mod is using a patch with :FOR[AJE] instead of :NEEDS[AJE] (or you have an leftover/empty directory called AJE in your GameData).

You can find which mod is responsible by searching <KSP>/Logs/ModuleManager/ModuleManager.log for ":FOR[AJE]"

Expand  

It was DMichel's Fuselage mod. It has an Aje.cfg that goes

 

  Quote

@PART[DM-fuselage-intake]:NEEDS[AJE]:FOR[AJE]
{
        @description= AJE compatible adjustable inlet, optimized for supersonic speed. Like SpacePlane+ small rectangular intake but with larger inlet area.
        MODULE
        {
            name=AJEInlet
            Area=0.6
            TPRCurve
            {
                key = 0.0    0.85    0    0
                key = 1.0    0.96    0    0
                key = 2.0    0.95    0    0
                key = 2.5    0.90    0    0
                key = 3.0    0.80    0    0
                key = 4.0    0.65    0    0
                key = 8.0    0.00    0    0
            }
        }
}

Expand  

I changed it to "AFTER"

 


I'll make a report on Damichel's page.

Edited by RunaDacino
Link to comment
Share on other sites

  • 4 months later...

Hello and many thanks for the support.

I'm having trouble with one of the missions. This one.

N0oSPXM.png

I take the mission, go out with a valid aircraft, fly out to 2,500m, fly  at Mach 1.

I get a green check-mark after 200s.

dpNltSt.png

Sadly, as soon as I move out of the envelope (go slower or lower) to land the plane at KSC the check-mark goes away mid-flight.

Vl1bvSN.png

Any idea about this? I'm pretty sure I fulfill the contract demands (been flying with the check-mark green for more than 5 minutes just to make sure), no idea what is the problem.

Any help would be vastly appreciated, feel free to ask for any additional info if needed. Cheers.

Edited by Dante80
Link to comment
Share on other sites

I had a look at the contract in GameData/ContractPacks/PWP/FlightDuration/200s.cfg - I think if you change the last line (267) that says "disableOnStateChange = false" to  "disableOnStateChange = true" - that essentially disables (completes) those parameters once they're all done. Currently "false" means once any are no longer valid, it'll go back to requiring them all, which is what you're seeing.

This is from memory/CC docs and comparing 200s.cfg to 100s.cfg which I assume worked?

If you like this contract pack, I've been slowly developing a similar one which is derived from GAP but should be planet scale agnostic (tested with KSRSS Reborn and RSS). It's incomplete, but seems to work (I use it myself on KSRSS Reborn career).

Edited by 610yesnolovely
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...