Skip to content

Adjust Exponent of a resource #73

@gomker

Description

@gomker

I have tried several variations and cannot seem to set the TWEAKSCALEEXPONENTS of a resource on a part

Part config

	MODULE 
	{ 
		name = TweakScale
		type = armor

	}

	RESOURCE
	{
		name = Armor
		amount = 500
		maxAmount = 1000
	}

TweakScale Config

	SCALETYPE
	{
		name = armor
		freeScale = true
		defaultScale = 100
		suffix = %
		scaleFactors   = 10, 50, 100,  200, 400
		incrementSlide =  1,  1,   2,    5
		TWEAKSCALEEXPONENTS { armor = -1 }
	}

	TWEAKSCALEEXPONENTS
	{
		name = BD4x1panelArmor //part name

		Resources
		{
			amount = -1
			maxAmount = -1		
		}
	}

Ultimately I would like to ignore the scaling of this resource as it translates to thickness in mm Realistically it should not go past 1000 as that would be 1 meter thick.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions