Jump to content

Simple Module Manager Config Help


Recommended Posts

I am trying to write a simple MM config file that scales up all of the in-game parts by a factor of 1.6 to match the 'real' sizes of parts for RSS

With my limited knowledge of MM syntax, I wrote this:

@PART[*]:
{
	%rescaleFactor *= 1.6
}

As far as I understand, this should edit the 'rescaleFactor' property of each part in the Gamedata folder and multiply the current value by 1.6. It should also create the value if none exists. However this gives me an error during the game loading screen. 

Can anyone give me a hand with properly writing this simple config file? 

Thanks in advance! :) 

Link to comment
Share on other sites

9 hours ago, VonFrank said:

Nope. Still gives an error.

You need to do it in 2 pass because if rescaleFactor is missing it can not know what to multiply with.

 

// First pass. Add rescaleFactor to part that do not have the default value 
@PART[*]:HAS[~rescaleFactor[]]
{
    rescaleFactor = 1
}

// Second pass. Multiply rescaleFactor
@PART[*]
{
    @rescaleFactor *= 1.6
}

 

Link to comment
Share on other sites

12 hours ago, sarbian said:

You need to do it in 2 pass because if rescaleFactor is missing it can not know what to multiply with.

 


// First pass. Add rescaleFactor to part that do not have the default value 
@PART[*]:HAS[~rescaleFactor[]]
{
    rescaleFactor = 1
}

// Second pass. Multiply rescaleFactor
@PART[*]
{
    @rescaleFactor *= 1.6
}

 

Aha, that makes sense!

And it also seems to work perfectly. Thank you very much! :) 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

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