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

SpriteAtlasPacker. Invalid value for originX/originY command line options. #687

Open
pacoo2454 opened this issue Jul 14, 2021 · 1 comment

Comments

@pacoo2454
Copy link

I am trying to adjust the origin when packing sprites using your tool but I get the following errors. The other command line options seem to work just fine. Is there something that I am doing incorrectly?

image
image

@Tobi-Mob
Copy link
Contributor

Could you check what the DecimalSeperator on your system is?
Like this: string seperator = CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator;

At least on German Systems there are Common Problems with decimals since those systems expect a , instead of a dot .

You could try to replace your decimal dots with the CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator of your system.

Or you could try to force the SpriteAtlasPacker to use dots. To try that go here:

else if (type == typeof(float))
{
value = float.Parse(stringData);
return true;
}

And add a CultureInfo.InvariantCulture to the float.Parse
Like that: value = float.Parse(stringData, CultureInfo.InvariantCulture);

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