Jump to content

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


sarbian

Recommended Posts

My PC turned itself in a 98°C overheating mess yesterday ;.; I know the source of the problem but I also have family vising for a few days so I won't be able do repair it right now.

So no fix for at least a week

Link to comment
Share on other sites

My PC turned itself in a 98°C overheating mess yesterday ;.; I know the source of the problem but I also have family vising for a few days so I won't be able do repair it right now.

So no fix for at least a week

see, I told you not to put the pc into the oven... Cookies do not work that way. ;)

Link to comment
Share on other sites

A question! How can I use Module Manager to edit a Kopernicus planet's orbit? Namely, Asclepius.

Asclepius itself uses MM and looks like this:


@Kopernicus:AFTER[Kopernicus]
{
Body
{
name = Asclepius

[...]

Orbit
{
[...]
eccentricity = 0.0025
semiMajorAxis = 16500000000
[...]
}

I want to change eccentricity and semiMajorAxis. I tried this:


@Kopernicus:AFTER[Asclepius]:NEEDS[Asclepius]
{
@Body[Asclepius]
{
@Orbit
{
@eccentricity = 0.015
@semiMajorAxis = 35500000000
}
}
}

in a .cfg file in GameData, to no avail.

The log says the patching was applied, but Asclepius' orbit looks the same in Tracking Center.

Now I see Asclepius is being applied by MM after my modified Asclepius. My patch is applied in the "after asclepius" pass and asclepius is applied in the "after kopernicus" pass, after mine. Isn't that not supposed to happen?


[LOG 21:14:52.206] [ModuleManager] Applying patches
[LOG 21:14:52.208] [ModuleManager] :FIRST pass
[LOG 21:14:52.223] [ModuleManager] :LEGACY (default) pass
[LOG 21:14:52.228] [ModuleManager] Applying node Asclepius/Asc_DMagicDefs/@EXPERIMENT_DEFINITION[*]:HAS[#id[magScan]] to DMagicOrbitalScience/Resources/ScienceDefs/EXPERIMENT_DEFINITION
[LOG 21:14:52.236] [ModuleManager] Applying node Asclepius/Asc_DMagicDefs/@EXPERIMENT_DEFINITION[*]:HAS[#id[scopeScan]] to DMagicOrbitalScience/Resources/ScienceDefs/EXPERIMENT_DEFINITION
[...]
[LOG 21:14:53.945] [ModuleManager] :BEFORE[ASCLEPIUS] pass
[LOG 21:14:53.960] [ModuleManager] :FOR[ASCLEPIUS] pass
[LOG 21:14:53.975] [ModuleManager] :AFTER[ASCLEPIUS] pass
[LOG 21:14:53.977] [ModuleManager] Applying node /modifiedAsclepius/@Kopernicus:AFTER[Asclepius] to Kopernicus/Config/System/Kerbol System
[...]
[LOG 21:14:54.434] [ModuleManager] :BEFORE[KOPERNICUS] pass
[LOG 21:14:54.446] [ModuleManager] :FOR[KOPERNICUS] pass
[LOG 21:14:54.458] [ModuleManager] :AFTER[KOPERNICUS] pass
[LOG 21:14:54.460] [ModuleManager] Applying node Asclepius/Asclepius/@Kopernicus:AFTER[Kopernicus] to Kopernicus/Config/System/Kerbol System
[LOG 21:14:54.463] [ModuleManager] Applying node Asclepius/Kruel/@Kopernicus:AFTER[KOPERNICUS] to Kopernicus/Config/System/Kerbol System
[...]

Edited by dronkit
Link to comment
Share on other sites

A question! How can I use Module Manager to edit a Kopernicus planet's orbit? Namely, Asclepius.

Asclepius itself uses MM and looks like this:


@Kopernicus:AFTER[Kopernicus]
{
Body
{
name = Asclepius

[...]

Orbit
{
[...]
eccentricity = 0.0025
semiMajorAxis = 16500000000
[...]
}

I want to change eccentricity and semiMajorAxis. I tried something like this:


@BODY[ASCLEPIUS]:AFTER[ASCLEPIUS]
{
@ORBIT[]
{
@eccentricity = 0.015
@semiMajorAxis = 35500000000
}
}

in a .cfg file in GameData, to no avail.

Is this possible?

Take out the empty brackets

Link to comment
Share on other sites

Thanks Starwaster! I tried something else ripped from Asclepius' new horizons patch, so i figured it had to work, but doesn't. I've edited my post. Please check it out if you can. Thanks!

Should work if the rest of the config is ok

Link to comment
Share on other sites

Your "AFTER[ASCLEPIUS]" disturb me. Where is the file that define the Asclepius planet ?

Well, I suppose it is gamedata\asclepius\Asclepius.cfg

while mine is gamedata\modifiedAsclepius.cfg

and just in case, Kopernicus is in GameData\Kopernicus\Config\Config.cfg

I have part of the contents of those files and logs in my post

Thanks!

Link to comment
Share on other sites

Well, I suppose it is gamedata\asclepius\Asclepius.cfg

while mine is gamedata\modifiedAsclepius.cfg

and just in case, Kopernicus is in GameData\Kopernicus\Config\Config.cfg

I have part of the contents of those files and logs in my post

Thanks!

:AFTER[ASCLEPIUS]

won't work since the planet ASCLEPIUS uses @Kopernicus:AFTER[Kopernicus]

this means that you are looking for the "Body" when it's not there yet.

try using :FINAL (if it's just some cfg you use for yourself)

or something like :BEFORE[squad]

if you have to release it

Link to comment
Share on other sites

I seem to be having an issue with a parameter for Kopernicus, specifically "givesOffLight." When I try to set the default sun's light to "false", the body still produces light, and when I set a custom star's light to "true", the body fails to produces light. Several different variations on the parameter have already been attempted, including %, @, and ! followed by immediately posting a new copy of the parameter. I've even tried flipping the values. It's been established that it's only on my computer, and the parameter functions on other computers in the same file I've put together, but I need to be able to see the changes I'm making on my own computer.

So, what could be going wrong and what could I do to fix it?

(I sure do hope this is the correct place to post this.)

Link to comment
Share on other sites

Use :AFTER[Kopernicus, Asclepius] so it applies your modifications after Kopernicus AND Asclepius.

Because now it applies your modifications first and after that it gets overwritten when it is applying :AFTER[Kopernicus]

Yes, that's what was happening. But I tried that and the space in between gives an error in the log. And with no space, or & instead of , seems to be ignored by MM.

On the other hand, with just :AFTER[Kopernicus], my patch gets applied in the AFTER KOPERNICUS pass, but right before Asclepius' !! DAMN!

(I guess changing the name or path of my cfg maybe it'll get applied later)

try using :FINAL (if it's just some cfg you use for yourself)

or something like :BEFORE[squad]

if you have to release it

In the end I did :FINAL and worked fine! Luckily it's not gonna be released. But messy.

Thanks guys!

Also, mr. MM devs: isn't the behavior I described unintended? Or shouldn't there be/isn't there a way to apply my patch after ALL of X's patches (i.e. Asclepius') even those that are specifically applied in another section (i.e. after Kopernicus)?

Link to comment
Share on other sites

Also, mr. MM devs: isn't the behavior I described unintended? Or shouldn't there be/isn't there a way to apply my patch after ALL of X's patches (i.e. Asclepius') even those that are specifically applied in another section (i.e. after Kopernicus)?

There is no dependency tree so it is working as intended.

Link to comment
Share on other sites

Version 2.6.8

- Fix a bug with nested :NEEDS when the top node also used a :NEEDS

Downloads :

ModuleManager.2.6.8.dll

ModuleManager-2.6.8.zip

SHA256 : cbb29a04e5c3915187e190a15ee2f105de90836e63d96c349f5c27a0c5496af6

It turns out the bug was always here but required some specific config.

This worked :


@PART[crewCabin]:NEEDS[XXXX]
{
RESOURCE
{
}
}

This worked too :


@PART[crewCabin]
{
RESOURCE:NEEDS[XXXX]
{
}
}

This did not work :


@PART[crewCabin]:NEEDS[XXXX]
{
RESOURCE:NEEDS[XXXX]
{
}
}

Link to comment
Share on other sites

Version 2.6.8

- Fix a bug with nested :NEEDS when the top node also used a :NEEDS

Downloads :

ModuleManager.2.6.8.dll

ModuleManager-2.6.8.zip

SHA256 : cbb29a04e5c3915187e190a15ee2f105de90836e63d96c349f5c27a0c5496af6

It turns out the bug was always here but required some specific config.

This worked :


@PART[crewCabin]:NEEDS[XXXX]
{
RESOURCE
{
}
}

This worked too :


@PART[crewCabin]
{
RESOURCE:NEEDS[XXXX]
{
}
}

This did not work :


@PART[crewCabin]:NEEDS[XXXX]
{
RESOURCE:NEEDS[XXXX]
{
}
}

Thanks - Downloaded and reloaded contracts in contract configurator but still red with the same error?

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