sarbian Posted June 27, 2015 Author Share Posted June 27, 2015 So does anyone know what to add or adress with a patch wich forces it to take my textures instead?You have to remove the mesh value and add a MODEL node that loads the model and rename the textures. So something like : @PART[parachuteLarge]{ !mesh = delete MODEL { model = Squad/Parts/Utility/parachuteMk1/model texture = model000, MyTexture/myTexture000 texture = model001, MyTexture/myTexture001 }} Quote Link to comment Share on other sites More sharing options...
maculator Posted June 27, 2015 Share Posted June 27, 2015 Thanks alot! Quote Link to comment Share on other sites More sharing options...
wizzlebippi Posted June 27, 2015 Share Posted June 27, 2015 I'm attempting to mod a stock engine, and I want it to produce the same amount of electricity the engine does at full throttle. Using ModuleManager, is it possible to capture the rate from ModuleAlternator before it remove ModuleAlternator from the part? Quote Link to comment Share on other sites More sharing options...
Tahvohck Posted June 28, 2015 Share Posted June 28, 2015 I'm attempting to mod a stock engine, and I want it to produce the same amount of electricity the engine does at full throttle. Using ModuleManager, is it possible to capture the rate from ModuleAlternator before it remove ModuleAlternator from the part?Using the LV-T30 "Reliant" as an example:@PART[liquidEngine]{ %MODULE[ModuleMyAlternator] { capturedRate = #$../MODULE[ModuleAlternator]/RESOURCE[ElectricCharge]/rate$ } -MODULE[ModuleAlternator] {}}Some notes:I'm using the edit-or-create syntax with the "%" instead of just defining it. This is a personal preference of mine, you can just as easily do@PART[liquidEngine]{ MODULE { name = ModuleMyAlternator capturedRate = #$../MODULE[ModuleAlternator]/RESOURCE[ElectricCharge]/rate$ } -MODULE[ModuleAlternator] {}}Make sure you do it in that order, so that you grab it before you delete it.What this is doing is saying "capturedRate equals [go up one level (to the PART node), select node MODULE[ModuleAlternator], select node RESOURCE[ElectricCharge], select value of 'rate']". Quote Link to comment Share on other sites More sharing options...
wizzlebippi Posted June 28, 2015 Share Posted June 28, 2015 That's exactly what I was looking for, thanks. Quote Link to comment Share on other sites More sharing options...
Tahvohck Posted June 29, 2015 Share Posted June 29, 2015 What does the :FOR (colon FOR, to make this more searchable later) directive do, exactly? I've seen references for it, and there's a mention in the documentation on github, but it's not explained very well. Does it just mean that any node with :FOR[foo] will be found later with a :NEEDS[foo] directive? Quote Link to comment Share on other sites More sharing options...
seanth Posted June 29, 2015 Share Posted June 29, 2015 Looking for some advice on changing settings for the Alternate Resource Panel. I'd like to ship the BioMass mod so that the solid resources appear in kg vs the default setting, but the structure of the settings.cfg for ARP has me wondering if it's possible.The cfg structure is (simplified):Settings{ ResourceStorage{ Item{ name = someResourceName ... DisplayValueAs = [Units, Kilograms, Tonnes, Liters] } }}Would I use something like:@Settings:FOR[AlternateResourcePanel]{ @ResourceStorage:HAS[@Item[someResourceName]]{ @DisplayValueAs = Kilograms }}Halp? Quote Link to comment Share on other sites More sharing options...
Starwaster Posted June 29, 2015 Share Posted June 29, 2015 What does the :FOR (colon FOR, to make this more searchable later) directive do, exactly? I've seen references for it, and there's a mention in the documentation on github, but it's not explained very well. Does it just mean that any node with :FOR[foo] will be found later with a :NEEDS[foo] directive?If :FOR[foo] exists anywhere, then all :NEEDS[foo] requirements will be satisfied. (which kinda sucks if you are using :NEEDS to be sure that a mod exists as the mod could be absent but :FOR[foo] will make it seem as though it is present)More than that though, patch nodes can be ordered, if you need them to occur in a specific order.The order is:FIRST:LEGACY:BEFORE[Foo]:FOR[Foo]:AFTER[Foo]:FINALwhere Foo equals any mod (including Module Manager)Legacy doesn't actually need to be defined; any patch that you DONT specify the order in will occur during the :LEGACY pass.- - - Updated - - -Looking for some advice on changing settings for the Alternate Resource Panel. I'd like to ship the BioMass mod so that the solid resources appear in kg vs the default setting, but the structure of the settings.cfg for ARP has me wondering if it's possible.The cfg structure is (simplified):Settings{ ResourceStorage{ Item{ name = someResourceName ... DisplayValueAs = [Units, Kilograms, Tonnes, Liters] } }}Would I use something like:@Settings:FOR[AlternateResourcePanel]{ @ResourceStorage:HAS[@Item[someResourceName]]{ @DisplayValueAs = Kilograms }}Halp?No, you didn't actually specify the Item to patch after checking for its existence@Settings:FOR[AlternateResourcePanel]{ @ResourceStorage:HAS[@Item[someResourceName]] { @Item[someResourceName] { @DisplayValueAs = Kilograms } }}Uhm question, does that mod actually use config nodes loaded from cfg files? (that are not in PluginData)I can't tell from looking at it really and it has to be like that Quote Link to comment Share on other sites More sharing options...
seanth Posted June 30, 2015 Share Posted June 30, 2015 Uhm question, does that mod actually use config nodes loaded from cfg files? (that are not in PluginData)I can't tell from looking at it really and it has to be like thatI put an example settings.cfg that ARP makes at https://www.dropbox.com/s/7zx72f4zuvo4mnb/settings.cfg?dl=0I'm unsure MM will be able to figure out how to replace things in that, which is why I swung by here to ask. If I can confirm MM won't be able to cope, I'll pass a feature request along Quote Link to comment Share on other sites More sharing options...
Tahvohck Posted June 30, 2015 Share Posted June 30, 2015 If :FOR[foo] exists anywhere, then all :NEEDS[foo] requirements will be satisfied. (which kinda sucks if you are using :NEEDS to be sure that a mod exists as the mod could be absent but :FOR[foo] will make it seem as though it is present)More than that though, patch nodes can be ordered, if you need them to occur in a specific order.The order is:FIRST:LEGACY:BEFORE[Foo]:FOR[Foo]:AFTER[Foo]:FINALwhere Foo equals any mod (including Module Manager)Legacy doesn't actually need to be defined; any patch that you DONT specify the order in will occur during the :LEGACY pass.Hmm. I thought it might be something like that. It looks like it's both a sequencer and a...needs-satisfier or whatever you want to call it? Weird. Actually wait, does it actually have to be a mod that exists, or can it be any tag? And I was aware of BEFORE, AFTER, and FINAL, but not FIRST and LEGACY... FIRST would be the opposite of FINAL, I'd assume, but is there anything special about LEGACY? Quote Link to comment Share on other sites More sharing options...
sarbian Posted June 30, 2015 Author Share Posted June 30, 2015 I put an example settings.cfg that ARP makes at https://www.dropbox.com/s/7zx72f4zuvo4mnb/settings.cfg?dl=0I'm unsure MM will be able to figure out how to replace things in that, which is why I swung by here to ask. If I can confirm MM won't be able to cope, I'll pass a feature request alongI am quite sure Alternate Resource Panel loads the file with its code so any MM change will be ignored. Quote Link to comment Share on other sites More sharing options...
Sigma88 Posted June 30, 2015 Share Posted June 30, 2015 (edited) hi sarbian,would it be possible to do math using values coming from different keys?example:MODULE{ name = radius value = 2}MODULE{ name = pi value = 3.14}MODULE{ name = area value = #$../MODULE[radius]/value$ * #$../MODULE[radius]/value$ * #$../MODULE[pi]/value$}or something like thatEDITI guess this is the post I was looking for.Yes, INTERNAL are doable. Edited June 30, 2015 by Sigma88 Quote Link to comment Share on other sites More sharing options...
HafCoJoe Posted June 30, 2015 Share Posted June 30, 2015 I don't know how often you get it Sarbian but I just wanted to say thanks for being awesome and running such a core and depended upon mod. Transitioning from a user to a modder whose mod is dependent on this mod teaches one the full use of Module Manager. Thank you Quote Link to comment Share on other sites More sharing options...
Grimly Posted June 30, 2015 Share Posted June 30, 2015 hi sarbian,would it be possible to do math using values coming from different keys?example:MODULE{ name = radius value = 2}MODULE{ name = pi value = 3.14}MODULE{ name = area value = #$../MODULE[radius]/value$ * #$../MODULE[radius]/value$ * #$../MODULE[pi]/value$}or something like thatEDITI guess this is the post I was looking for.Of course you can if you go with intermediate steps :MODULE{ name = area value=#$../MODULE[radius]/value$ @value*=#$../MODULE[radius]/value$ @value*=#$../MODULE[pi]/value$} Quote Link to comment Share on other sites More sharing options...
Sigma88 Posted July 1, 2015 Share Posted July 1, 2015 Of course you can if you go with intermediate steps :MODULE{ name = area value=#$../MODULE[radius]/value$ @value*=#$../MODULE[radius]/value$ @value*=#$../MODULE[pi]/value$}yeah, after I posted the question I noticed that I could do it that waythanks anyway tho Quote Link to comment Share on other sites More sharing options...
Sigma88 Posted July 1, 2015 Share Posted July 1, 2015 I have another question:is it possible to load a value inside an :HAS[] check?example:PART{ DELETER { savedVAR = deleteME } MODULE { Description = deleteME // I want to delete this MODULE } MODULE { Description = DONTdeleteME // I DONT want to delete this MODULE }}[HR][/HR]@PART{ !MODULE:HAS[#Description[#$/DELETER/savedVAR$]] {}} Quote Link to comment Share on other sites More sharing options...
sarbian Posted July 1, 2015 Author Share Posted July 1, 2015 no. I'll have a look at how complex this would be. Quote Link to comment Share on other sites More sharing options...
Sigma88 Posted July 1, 2015 Share Posted July 1, 2015 (edited) wow, quick answer thanks.I'll have to see if I can find a way around it then --edit--btw, I'm learning how to write stuff for MM and I have to say, I love your syntax.I really think you don't get enough credit for what you are doing Edited July 1, 2015 by Sigma88 Quote Link to comment Share on other sites More sharing options...
seanth Posted July 2, 2015 Share Posted July 2, 2015 A potential bug: In theBioMass plugin, users can choose a difficulty level. The difficulty is controlled by a cfg meant to be read by module manager, so after the player picks a difficulty, they reload the database and the changes in what parts are available and how they work has taken effect.We'd built all this in prior to MM 2.5.2, and it seems like something about how newer MM is caching info in causing weirdness. Does MM look at cached data on forced database reloads? If so, is there a way to tell it not to? Quote Link to comment Share on other sites More sharing options...
G_glop Posted July 2, 2015 Share Posted July 2, 2015 err... is there any way to download older versions of it? Because some of my favorite mods haven't been updated for 1.0 and i'm having issues so i want to try out the latest version for 0.9 which is 2.5.13, but i can't find it anywhere Quote Link to comment Share on other sites More sharing options...
LostOblivion Posted July 2, 2015 Share Posted July 2, 2015 What's the best way to edit atmosphereCurve? Seeing as it doesn't have a name, should I just use indexes for atmosphereCurve as well as the keys? Quote Link to comment Share on other sites More sharing options...
NathanKell Posted July 2, 2015 Share Posted July 2, 2015 (edited) G_glop: Welcome to the forums!https://ksp.sarbian.com/jenkins/job/ModuleManager/On the left, the build history. That's all MM builds. Click on the #n for each build to see what MM version it corresponds to.LostOblivion:@atmosphereCurve{@key,0 = new_vals//etc}Note that @NODE[nodename] is just a shortcut for @NODE:HAS[#name[nodename]], there's nothing particularly magic about it Edited July 2, 2015 by NathanKell Quote Link to comment Share on other sites More sharing options...
Svm420 Posted July 2, 2015 Share Posted July 2, 2015 Okay I give up I have tried everything I can think of. I am trying to get my KIS iva fix patch perfect. I want to target parts without the INTERNAL node at all and without having any other INTERNAL node already. I always seem to get some parts with 2 INTERNAL nodes the normal and placeholder. I tried to make a patch to clean up instead, and just remove the placeholder from parts with placeholder INTERNAL and any other INTERNAL, but end up losing all placeholder INTERNALs instead of targeting just parts with 2 INTERNAL nodes. Thanks@PART[*]:HAS[#CrewCapacity[*],~CrewCapacity[0],!INTERNAL[],!INTERNAL[*]]:FINAL{ INTERNAL{ name = Placeholder}}and this was my attempted clean up.@PART[*]:HAS[@INTERNAL[Placeholder],@INTERNAL[*]]:FINAL{ !INTERNAL:HAS[#name[Placeholder]] {}} Quote Link to comment Share on other sites More sharing options...
Sigma88 Posted July 3, 2015 Share Posted July 3, 2015 (edited) Okay I give up I have tried everything I can think of. I am trying to get my KIS iva fix patch perfect. I want to target parts without the INTERNAL node at all and without having any other INTERNAL node already. I always seem to get some parts with 2 INTERNAL nodes the normal and placeholder. I tried to make a patch to clean up instead, and just remove the placeholder from parts with placeholder INTERNAL and any other INTERNAL, but end up losing all placeholder INTERNALs instead of targeting just parts with 2 INTERNAL nodes. Thanks@PART[*]:HAS[#CrewCapacity[*],~CrewCapacity[0],!INTERNAL[],!INTERNAL[*]]:FINAL{ INTERNAL{ name = Placeholder}}and this was my attempted clean up.@PART[*]:HAS[@INTERNAL[Placeholder],@INTERNAL[*]]:FINAL{ !INTERNAL:HAS[#name[Placeholder]] {}}try this@Part[*]:FINAL{ @INTERNAL[Placeholder] { @name = my_swag_internals_name }}or this@Part[*]:FINAL{ !INTERNAL[Placeholder] {}}oh wait, that's not what you are trying to do.... derp...how do you get parts with 2 internal modules? I thought all stock parts had just one "INTERNAL" module Edited July 3, 2015 by Sigma88 Quote Link to comment Share on other sites More sharing options...
Svm420 Posted July 3, 2015 Share Posted July 3, 2015 try this@Part[*]:FINAL{ @INTERNAL[Placeholder] { @name = my_swag_internals_name }}or this@Part[*]:FINAL{ !INTERNAL[Placeholder] {}}oh wait, that's not what you are trying to do.... derp...how do you get parts with 2 internal modules? I thought all stock parts had just one "INTERNAL" moduleThe patch I tried wasn't clean and hit parts it wasn't supposed to. I am asking for help to tighten my search so it only hits the nessasry parts. KIS needs all all crewed vessel to have Iva for the inventory to work properly. Maybe I am using VSR as it seemed to hit parts that added an Iva change. 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.