Skip to content

Body/Head Scale Factor #104

Open
Open

Description

@TurtleShroom

Good evening.

I am updating one of my Mods to V1.5 , and one error I am, now getting concerns the Gene Mod Extensions.

`Exception parsing <bodyScaleFactor>(0.981,2.5)</bodyScaleFactor> to type System.Nullable`1[System.Single]: 
System.ArgumentException: Exception parsing System.Single from "(0.981,2.5)" ---> System.FormatException:
 Input string was not in a correct format.`

I searched your documentation, but got nothing but a verbatim copy and paste in cryptic C-Sharp. What actually changed?

This is the code I am using:

	<modExtensions MayRequire="ludeon.rimworld.biotech">
		<li Class="VanillaGenesExpanded.GeneExtension" MayRequire="ludeon.rimworld.biotech">
			<bodyScaleFactor>(0.981,2.5)</bodyScaleFactor>
			<headScaleFactor>(1.07,1.072)</headScaleFactor>
		</li>
	</modExtensions>

Thank you for any assistance you may render.

Warm regards,
-TURTLESHROOM

Activity

  1. juanosarg commented on Aug 18, 2024

    @juanosarg
    Contributor
  2. TurtleShroom commented on Aug 19, 2024

    @TurtleShroom
    Author

    Thank you very much!

  3. TurtleShroom commented on Aug 19, 2024

    @TurtleShroom
    Author

    We forgot to document the change! It is handled via a stat now. See the example in Hussars.

    How do I make them taller, but not wider? I have a Gene that makes those who have it very lanky, but also very tall. The only code I see here appears to be something that scales a Pawn's width AND height at the same time.

  4. juanosarg commented on Aug 20, 2024

    @juanosarg
    Contributor

    I don't think that functionality is there anymore, as it caused problems with heads, iirc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions