Gordon Dry Posted July 10, 2018 Share Posted July 10, 2018 @Apaseall 1. !MYMMmaxPowerMul = delete 2. @maxPowerPrimary *= #$/MYMMmaxPowerMul$ ^ #$/ <- the / makes MM search in the root Quote Link to comment Share on other sites More sharing options...
Siconix Posted July 13, 2018 Share Posted July 13, 2018 Hi all, I had a question about the "volume" parameter for RESOURCE_DEFINITION. What does this actually affect? I've tried changing it but I don't see anything changing in-game. Quote Link to comment Share on other sites More sharing options...
Starwaster Posted July 13, 2018 Share Posted July 13, 2018 1 hour ago, Siconix said: Hi all, I had a question about the "volume" parameter for RESOURCE_DEFINITION. What does this actually affect? I've tried changing it but I don't see anything changing in-game. It's used by mods but not by stock. It was added to the stock class for modders to use Quote Link to comment Share on other sites More sharing options...
Gordon Dry Posted July 13, 2018 Share Posted July 13, 2018 (edited) @blowfish How do I calculate a square root? Edit: Now I have a really weird issue - there is no MM error, but a variable is calculated to "Infinity" for whatever reason. This occurs to all parts this patch was tinkering with. I have the intuition that it could be there are too many decimal digits? But how to decrease the amount of digits, is there a math.round in MM to limit the amount of decimal digits? This is the calculation: tempdeploy = #$/MODULE[ModuleParachute]/semiDeployedDrag$ @tempdeploy /= #$/MODULE[ModuleParachute]/stowedDrag$ @tempdeploy *= 9.8696044010893586188344909998762 preDeployedDiameter = #$tempdeploy$ @preDeployedDiameter *= #$/mass$ Using the values of a specific reference part the result should be 0.62723495983369873586332051204075 But in ModuleManager.ConfigCache it says preDeployedDiameter = Infinity Fun fact is, the calculation part right after that works: @tempdeploy = #$/MODULE[ModuleParachute]/fullyDeployedDrag$ @tempdeploy /= #$/MODULE[ModuleParachute]/semiDeployedDrag$ @tempdeploy *= 9.8696044010893586188344909998762 deployedDiameter = #$tempdeploy$ @deployedDiameter *= #$/mass$ Using the same reference part the calculation gives the correct result of deployedDiameter = 68.9958455816896 Edited July 13, 2018 by Gordon Dry Quote Link to comment Share on other sites More sharing options...
Gordon Dry Posted July 13, 2018 Share Posted July 13, 2018 @blowfish Can I cut a substring, like make the value of a variable only have 2 decimal digits? before: 1.58614853107489 after: 1.58 At least this would be very helpful. Quote Link to comment Share on other sites More sharing options...
blowfish Posted July 14, 2018 Share Posted July 14, 2018 (edited) @Gordon Dry not sure about the Infinity issue, can you by chance edit it to output all the intermediate values as well? That would help in figuring out where something is going wrong. You can truncate with regex replacement. I think you want something like @value ^= :(\.\d\d)\d+$:$1: How does this work? You're matching a period followed by two decimals, followed by one or more decimals, followed by the end of the string, and replacing it with the part you're capturing (the period and two decimals) Disclaimer: I haven't tried this Edited July 14, 2018 by blowfish Quote Link to comment Share on other sites More sharing options...
Gordon Dry Posted July 14, 2018 Share Posted July 14, 2018 Testing ... works Quote Link to comment Share on other sites More sharing options...
Apaseall Posted July 21, 2018 Share Posted July 21, 2018 Hello folks. I am failing to change the model for a part I created by cloning. The original: Spoiler MODEL { model = blah } My patch: Spoiler @MODULE[MODEL] { @model = foo } I would like to edit rather than delete and create a new ie I do not want to do this: Spoiler -MODULE[MODEL] {} MODULE { model = foo } Am I missing something simple? I have the same problem when I try: Spoiler @MODULE[INTERNAL] { @name = bar } The other keys I seem to be able to edit with success, and delete those I do not want/need, be they under PART or in a MODULE. Just the model and INTERNAL that I fail with. There are no errors btw. But examining ModuleManager.ConfigCache I see the results. Quote Link to comment Share on other sites More sharing options...
blowfish Posted July 21, 2018 Share Posted July 21, 2018 @Apaseall there is no MODULE involved, so there should not be anything called that in your patch. If you want to edit the model node, it's @MODEL { } Quote Link to comment Share on other sites More sharing options...
Jesusthebird Posted July 25, 2018 Share Posted July 25, 2018 Is it possible to edit certain module key values via percentage? example would be editing any part with an engine module to increase/decrease max thrust by x%, or resource requirements, resource outputs for converters, EC generation, etc. or is that more of a plugin thing? Quote Link to comment Share on other sites More sharing options...
Killer_Garfin Posted July 30, 2018 Share Posted July 30, 2018 (edited) Can someone help ive been looking for a download button or link or something but cant find one and I need it for the KIS mod and dont anything on all this... math... tech... stuff yall are putting out there im just a sophomore never mind found it Edited July 30, 2018 by Killer_Garfin Quote Link to comment Share on other sites More sharing options...
Bit Fiddler Posted August 6, 2018 Share Posted August 6, 2018 looking at the order patches run in. I understand that they run in an alphabetical order, so naming can change the order of patches. What is the sort order used for this? as in, I see putting things like special characters or numbers can move something up in the list. but what about moving things down? what is the last character in the sort order? anything beyond "z"? Quote Link to comment Share on other sites More sharing options...
linuxgurugamer Posted August 6, 2018 Share Posted August 6, 2018 12 minutes ago, Bit Fiddler said: looking at the order patches run in. I understand that they run in an alphabetical order, so naming can change the order of patches. What is the sort order used for this? as in, I see putting things like special characters or numbers can move something up in the list. but what about moving things down? what is the last character in the sort order? anything beyond "z"? Look at the ascii character set Quote Link to comment Share on other sites More sharing options...
blowfish Posted August 6, 2018 Share Posted August 6, 2018 11 minutes ago, Bit Fiddler said: looking at the order patches run in. I understand that they run in an alphabetical order, so naming can change the order of patches. What is the sort order used for this? as in, I see putting things like special characters or numbers can move something up in the list. but what about moving things down? what is the last character in the sort order? anything beyond "z"? It's however KSP decides they should be sorted (ModuleManager doesn't do this explicitly). Probably ends up being whatever order things are in when each directory is listed. You can check the log to see what order things ended up in. In general though I'd say it's best not to depend on alphabetical order within a particular pass. If you need patch X to run before patch Y, put them in different passes. Quote Link to comment Share on other sites More sharing options...
waerth Posted August 28, 2018 Share Posted August 28, 2018 Hello all. A quick question. I am trying to give a part from the Making history expansion a new place in the tech tree. Now all other parts go to their new place in the tech tree. But not that one part from Making History. See the cfg file: @PART[parachuteSingle]:FINAL { @TechRequired = startx } @PART[trussPiece1x]:FINAL { @TechRequired = startx } @PART[kv1Pod]:FINAL { @Techrequired = startx } It is the kv1Pod (that's the name of the config file). It simply wont move to it's new place. All other non Making History parts DO move (there are many more parts I moved around then the ones in the example. Is there some extra thing needed to make it move? I tried different versions for the partname and none worked (KV1Pod, Kv1Pod and kv1Pod). Regards for any answer Quote Link to comment Share on other sites More sharing options...
Nightside Posted August 28, 2018 Share Posted August 28, 2018 5 hours ago, waerth said: Hello all. A quick question. I am trying to give a part from the Making history expansion a new place in the tech tree. Now all other parts go to their new place in the tech tree. But not that one part from Making History. See the cfg file: @PART[parachuteSingle]:FINAL { @TechRequired = startx } @PART[trussPiece1x]:FINAL { @TechRequired = startx } @PART[kv1Pod]:FINAL { @Techrequired = startx } It is the kv1Pod (that's the name of the config file). It simply wont move to it's new place. All other non Making History parts DO move (there are many more parts I moved around then the ones in the example. Is there some extra thing needed to make it move? I tried different versions for the partname and none worked (KV1Pod, Kv1Pod and kv1Pod). Regards for any answer Your TechRequired has a baby r, but it needs a big R. Quote Link to comment Share on other sites More sharing options...
waerth Posted August 29, 2018 Share Posted August 29, 2018 Quote Your TechRequired has a baby r, but it needs a big R. Thank you thank you thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Quote Link to comment Share on other sites More sharing options...
Tonka Crash Posted August 29, 2018 Share Posted August 29, 2018 (edited) Is there a syntax to prevent patches from being applied to a mod without modifying each foreign mod? I'm looking at the KOOSE pods and it's silly the number of toggles that are in the right click menu of the parts. I'm running about 70 mods and a good number of these are applying patches to the KOOSE parts that aren't really relevant to an escape pod. I'd like to be able to put together a patch in the KOOSE mod to tell other mods to skip it. The best I can come up with is deleting modules after they've been applied as part of a set of :FINAL patches in my personal mods. Edited August 29, 2018 by Tonka Crash Quote Link to comment Share on other sites More sharing options...
Nightside Posted August 29, 2018 Share Posted August 29, 2018 40 minutes ago, Tonka Crash said: Is there a syntax to prevent patches from being applied to a mod without modifying each foreign mod? I'm looking at the KOOSE pods and it's silly the number of toggles that are in the right click menu of the parts. I'm running about 70 mods and a good number of these are applying patches to the KOOSE parts that aren't really relevant to an escape pod. I'd like to be able to put together a patch in the KOOSE mod to tell other mods to skip it. The best I can come up with is deleting modules after they've been applied as part of a set of :FINAL patches in my personal mods. Your solution is probably the best way. Otherwise there is this, although I haven't tried it in 1.4.5 Quote Link to comment Share on other sites More sharing options...
FungusForge Posted August 30, 2018 Share Posted August 30, 2018 I've been trying to modify the afterburning jet to use a new resource, but I can't figure out how to get both ModuleEngineFX modules. I've managed to get one of them with this, but not both. @PART[turboJet]:FINAL { @MODULE[ModuleEnginesFX] { @PROPELLANT[LiquidFuel] { @name = AP1 } } } Quote Link to comment Share on other sites More sharing options...
4x4cheesecake Posted August 30, 2018 Share Posted August 30, 2018 (edited) 15 minutes ago, FungusForge said: I've been trying to modify the afterburning jet to use a new resource, but I can't figure out how to get both ModuleEngineFX modules. I've managed to get one of them with this, but not both. Try this: @PART[turboJet]:FINAL { @MODULE[ModuleEnginesFX],* { @PROPELLANT[LiquidFuel] { @name = AP1 } } } By adding the ,* , you will adress every module with the same name. You can also use numbers to adress them separately, i.e. @MODULE[ModuleEnginesFX],0 for the first module, and @MODULE[ModuleEnginesFX],1 for the second. Edited August 30, 2018 by 4x4cheesecake Quote Link to comment Share on other sites More sharing options...
FungusForge Posted August 30, 2018 Share Posted August 30, 2018 35 minutes ago, 4x4cheesecake said: By adding the ,* , you will adress every module with the same name. You can also use numbers to adress them separately, i.e. @MODULE[ModuleEnginesFX],0 for the first module, and @MODULE[ModuleEnginesFX],1 for the second. Thank you! Quote Link to comment Share on other sites More sharing options...
Gordon Dry Posted September 16, 2018 Share Posted September 16, 2018 There is this MM issue with CC / Kerbalism again, since I use KSP 1.4.5: @JH4C says Quote That filepath would appear to suggest the issue occurs while MM is processing a file supplied by Kerbalism; it's certainly not a file that's included in CC, and I don't have that error when I load my game (which does not include Kerbalism.) As such, you might have better luck asking in the Kerbalism thread. @PiezPiedPy says: Quote its not a CC error as CC is not referenced in that exception. Could be an MM issue I'm not sure where to start to eliminate this issue ... Quote Link to comment Share on other sites More sharing options...
Jacke Posted September 17, 2018 Share Posted September 17, 2018 4 hours ago, Gordon Dry said: I'm not sure where to start to eliminate this issue ... I just posted a reply in the CC topic to what I think it might be. Quote Link to comment Share on other sites More sharing options...
Gordon Dry Posted September 17, 2018 Share Posted September 17, 2018 Issue solved, was not easy to find (no "bad" word in the log to search for...): 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.