Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Body/Head Scale Factor #104

Open
TurtleShroom opened this issue Aug 17, 2024 · 4 comments
Open

Body/Head Scale Factor #104

TurtleShroom opened this issue Aug 17, 2024 · 4 comments

Comments

@TurtleShroom
Copy link

TurtleShroom commented Aug 17, 2024

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

@juanosarg
Copy link
Contributor

We forgot to document the change! It is handled via a stat now. See the example in Hussars: https://github.com/Vanilla-Expanded/VanillaRacesExpanded-Hussar/blob/5352d16142bce69dd82098193030d412de19fbe7/1.5/Defs/GeneDefs/GeneDefs_Misc.xml#L66

@TurtleShroom
Copy link
Author

Thank you very much!

@TurtleShroom
Copy link
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.

@TurtleShroom TurtleShroom reopened this Aug 19, 2024
@juanosarg
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants