Jump to content

[1.8.x-1.12.x] Module Manager 4.2.3 (July 03th 2023) - Fireworks season


sarbian

Recommended Posts

13 minutes ago, klefenz said:

How could I change the science point cost of a node of the tech tree?

@TechTree {
	@RDNode:HAS[#id[veryHeavyRocketry]] {
		@cost = 1234
	}
}

I don't have the hard drive with KSP on it handy, so I don't have the complete list of node IDs or the location of the file for the stock tree. What I do know is that the node ID for stock nodes is always the "camelCase" (no spaces, first word lower case, capital at the beginning of each later word) version of the in-game title.

Link to comment
Share on other sites

11 minutes ago, theonegalen said:

Is it at all possible to make a distinction between two mods in the same folder? For example, an install with just the Firespitter dll vs an install with all the Firespitter parts?

It isn't, unfortunately.

Link to comment
Share on other sites

8 hours ago, theonegalen said:

Is it at all possible to make a distinction between two mods in the same folder? For example, an install with just the Firespitter dll vs an install with all the Firespitter parts?

 

you could ask nicely to who is developing the mods to add a config that say ":FOR[FirespitterCore]" and ":FOR[FirespitterParts]"

that would allow you to check for the presence of the two mods separately.

I do that with all my mods since most of them are stored in the same main folder

Edited by Sigma88
Link to comment
Share on other sites

Hello, back again. Can anyone tell me why the following node might not be showing up?

Spoiler

@TechTree:NEEDS[Firespitter,!FantomWorks,!SETIctt,!ETT,!OpenTree,!RP-0]:AFTER[UnmannedBeforeManned]
{
    RDNode
    {
        id = earlyCargo
        nodeName = tog_earlyCargo
        title = Early Cargo Craft
        description = As our aerospace program has grown, we've identified the need for larger airplanes to carry Kerbals and cargo to our different bases around the system. Here's the solution: 2.5m diameter airplane parts and wings to match!
        cost = 5
        pos = -1946,1265,-1
        icon = RDicon_aerospaceTech2
        anyToUnlock = False
        hideEmpty = True
        hideIfNoBranchParts = False
        scale = 0.6
        Parent
        {
            parentID = stability
            lineFrom = RIGHT
            lineTo = LEFT
        }
    }
}

Figured it out. There was an unclosed bracket earlier in the cfg and that messed everything up.

Edited by theonegalen
Link to comment
Share on other sites

2 minutes ago, New Horizons said:

Do we already have MM for KSP 1.1.3?

2.6.25 works fine with KSP 1.1.3.  There's some information about that just a few replies above yours.

But perhaps the thread title should be updated @sarbian

Edited by blowfish
Link to comment
Share on other sites

49 minutes ago, blowfish said:

2.6.25 works fine with KSP 1.1.3.  There's some information about that just a few replies above yours.

But perhaps the thread title should be updated @sarbian

indeed :)

Link to comment
Share on other sites

1 hour ago, Gordon Dry said:

Only the SSL/TLS certificate is expired.
This happens sometimes if a web site admin does not use a proper calendar to remind  ... ^_^

But the connection is still SSL/TLS.

Or forgot to activate the cron that does it automagically. :)

Edited by sarbian
Link to comment
Share on other sites

 

Hi folks,

Quick question: I'm trying to write a config that halves the Isp and doubles the thrust of all engines. The ultimate aim is to compensate for Kerbin's smaller size and build realistic sized rockets, like Ferram's discontinued Kerbal Isp difficulty scaler.

However, the format for the Isp section is slightly different to the MM patch examples I've seen:

Spoiler

PART

{

    name = this is an engine

     ...

     MODULE

          {

               name=ModuleEngines

               ...

               atmosphereCurve

                    {

                         key = 0 100

                         key = 1 200

                         key = 5 1

                    }

     }

}

Editing the thrust is easy, but I want to edit the values inside the "atmosphereCurve" section. Specifically the second space-delineated value of "key" (key = 0 100) etc, and I'm not sure how, in spite of trying a few things.

Here's what I have so far:

Spoiler

@PART[*]:HAS[@MODULE[ModuleEngines*]]:Final
{
    
    @MODULE[ModuleEngines]
    {
        @maxThrust *= 2
        
            
        
        
    @atmosphereCurve
        {
            @key,1[2, ] *= 0.4
            @key,2[2, ] *= 0.4
        }        
    }
}

Which adjusts the thrust, as I said, but seems to leave the Isp untouched.

Any help would be much appreciated!

Edited by peadar1987
Turns out formatting these forum posts is far harder than using module manager!
Link to comment
Share on other sites

12 minutes ago, peadar1987 said:

 

Hi folks,

Quick question: I'm trying to write a config that halves the Isp and doubles the thrust of all engines. The ultimate aim is to compensate for Kerbin's smaller size and build realistic sized rockets, like Ferram's discontinued Kerbal Isp difficulty scaler.

However, the format for the Isp section is slightly different to the MM patch examples I've seen:

  Reveal hidden contents

PART

{

    name = this is an engine

     ...

     MODULE

          {

               name=ModuleEngines

               ...

               atmosphereCurve

                    {

                         key = 0 100

                         key = 1 200

                         key = 5 1

                    }

     }

}

Editing the thrust is easy, but I want to edit the values inside the "atmosphereCurve" section. Specifically the second space-delineated value of "key" (key = 0 100) etc, and I'm not sure how, in spite of trying a few things.

Here's what I have so far:

  Reveal hidden contents

@PART[*]:HAS[@MODULE[ModuleEngines*]]:Final
{
    
    @MODULE[ModuleEngines]
    {
        @maxThrust *= 2
        
            
        
        
    @atmosphereCurve
        {
            @key,1[2, ] *= 0.4
            @key,2[2, ] *= 0.4
        }        
    }
}

Which adjusts the thrust, as I said, but seems to leave the Isp untouched.

Any help would be much appreciated!

I am not really awake ATM but I guess the problem is that all index starts at 0 so you need 

@key,0[1, ] *= 0.4
@key,1[1, ] *= 0.4

Link to comment
Share on other sites

27 minutes ago, sarbian said:

I am not really awake ATM but I guess the problem is that all index starts at 0 so you need 

@key,0[1, ] *= 0.4
@key,1[1, ] *= 0.4

That sounds like it could be the problem, thanks

This is what happens when I work with MATLAB too much!

 

Edit: Yep, we're in business! Thanks Sarbian!

Edited by peadar1987
Link to comment
Share on other sites

2 minutes ago, RocketSquid said:

Is there a way to stop patches from effecting certain parts, or a way to make a patch happen after all other patches?

If you want to exclude certain parts, you can exclude them using some filter

@PART[*]:HAS[~name[part1],~name[part2]]
{
    // ...
}

If you want to want to make a patch run after all others, add :FINAL to it.  Don't do this in a mod you're actually releasing though (in that case, use something like :FOR[zzz-mymod] )

Link to comment
Share on other sites

@sarbian   Is it possible for you to make the Modulemanager working without loading KSP? Only parsing all configurations into a ModuleManager.ConfigCache

 

This would be very helpfull because the massive time we can save if we only try to implement support for a wide range of mods.

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