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

FormatException: Input string was not in the correct format System.Int32.Parse (System.String s) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Int32.cs:629) AddAtoms.Awake () (at Assets/Scripts/AddAtoms.cs:172) #1

Open
flashsnake-so opened this issue Jul 6, 2016 · 8 comments

Comments

@flashsnake-so
Copy link

I tried to run this project in Unity on a Mac OSX platform. I tried to switch the project wth Android and PC & standalone platform. However, the project runs with the following error:

FormatException: Input string was not in the correct format
System.Int32.Parse (System.String s) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Int32.cs:629)
AddAtoms.Awake () (at Assets/Scripts/AddAtoms.cs:172)

I am unable to use the keyboard keys to move the camera. Do you know if I am doing something wrong.

Thanks,

@JBostrom
Copy link
Owner

JBostrom commented Jul 6, 2016

It doesn't run on Mac. The README lists the requirements.
Good luck
Jonas

2016-07-06 16:43 GMT-04:00 Eric So [email protected]:

I tried to run this project in Unity on a Mac OSX platform. I tried to
switch the project wth Android and PC & standalone platform. However, the
project runs with the following error:

FormatException: Input string was not in the correct format
System.Int32.Parse (System.String s) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Int32.cs:629)
AddAtoms.Awake () (at Assets/Scripts/AddAtoms.cs:172)

I am unable to use the keyboard keys to move the camera. Do you know if I
am doing something wrong.

Thanks,


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#1, or mute the thread
https://github.com/notifications/unsubscribe/AH09wABQhUn18r7c74HtonmrnWV6A3Qmks5qTBNlgaJpZM4JGe0o
.

@flashsnake-so
Copy link
Author

Alright. Thanks.

@flashsnake-so
Copy link
Author

I just setup the project and ran in a Windows machine. I am still getting the same error. This issue may not be platform specific issue.

@JBostrom
Copy link
Owner

What was your input?

Skickat från min iPhone

11 juli 2016 kl. 16:14 skrev Eric So [email protected]:

I just setup the project and ran in a Windows machine. I am still getting the same error. This issue may not be platform specific issue.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

@JBostrom
Copy link
Owner

What input do you use?
Den 11 jul 2016 4:14 PM skrev "Eric So" [email protected]:

I just setup the project and ran in a Windows machine. I am still getting
the same error. This issue may not be platform specific issue.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#1 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AH09wLkr56BiwYhp2q6wzVFY7tk3qV_jks5qUqRCgaJpZM4JGe0o
.

@flashsnake-so
Copy link
Author

I did not put any input. Can you please guide me where to put the input? What will be a good sample? Thanks.

@neon-ninja
Copy link

labelFontSize = int.Parse(PlayerPrefs.GetString("labelFontSize"));

Your labelFontSize can't be parsed as a number. Try set it to something like 12 (it's one of the options in the launcher)

@Coderious-GitHub
Copy link

Check if the length of your string matches. For some reason I had to delete the last char of my string with a substring function. It was not a empty space that Trim() could have get rid of.

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

4 participants