Albert7df Posted October 4 Share Posted October 4 i'm facing problems trying to patch a procedural part, RP1 creates a part for proceduralAvionics wich add a ModuleCommand, but in my patch when i tried to add some other module to parts (wich is filtered by this module name), it just does not found the part, i add a AFTER[RP-0] at the end of the patch and the game give me a warning, and anyway the patch is not applied, Could someone give me a hint ? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
HebaruSan Posted October 5 Share Posted October 5 2 hours ago, Albert7df said: Could someone give me a hint ? You will be much more likely to get a useful response if you share your patch. Quote Link to comment Share on other sites More sharing options...
Albert7df Posted October 5 Author Share Posted October 5 I'm triying to modify a mod (LRTR), i did the following: @PART[*]:HAS[!LRTFCONF,~lrtfConfName,@MODULE[ModuleCommand], #CrewCapacity[=0]]:FOR[LRTFConfig]:AFTER[xxxRP0] { lrtfUnmanned = true lrtfConfName = Unmanned } and then in another file i have done the folowwing: @PART[*]:HAS[#lrtfManned[true]]:NEEDS[LRTFConfig]:BEFORE[zTestFlight] { LRTFCONF { name = Avionics partName = #$../name$ @partName ^= :_:-: MTBF = 1200 @MTBF *= #$@LRTFSETTINGS/mtbfMulti$ duPerFlight = 800 mannedMulti = 3.0 //manned parts return more error data. cycleReliabilityStart = 0.35 cycleReliabilityEnd = 0.995 avionicsAxis = true avionicsClamp = true avionicsDeadZone = true avionicsGlitch = true maxDeadtime = 5 maxWorktime = 40 //avionicsInvert = true avionicsPartial = true //avionicsThrustJam = true //avionicsTotal = true } } it just cretes a config node in the part, and then in other file i assing the module like this: @PART[*]:HAS[@LRTFCONF[Avionics]:HAS[#avionicsSAS[?rue]]]:FOR[zTestFlight] { MODULE { name = LRTFFailure_AvionicsSAS configuration = #$../LRTFCONF[Avionics]/alias$ duFail = 100 @duFail *= #$../LRTFCONF[Avionics]/mannedDUMulti$ duRepair = 250 @duRepair *= #$../LRTFCONF[Avionics]/mannedDUMulti$ failureTitle = SAS Failure severity = minor weight = 8 failureType = software } } It works but for non procedural parts, the part when said ":AFTER[xxxRP0]" was added by me, and i have tried also with ":AFTER[RP-0]" when i add this line and KSP loads it give me a warning, but i don't know what is the problem, also i hhave changed the folder name of the mod to 'zzzz*' to ensure the mod is configuring after all other mods, and remove the ":AFTER" rule, but it does not work. i checked that RP-1 is creating a part for avionics with is a copy from procedulal part, and it adds a CommandModule on it, but this patch does not apply to that part. it does for non procedural parts.. Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.