MolecularRiftv2 icon indicating copy to clipboard operation
MolecularRiftv2 copied to clipboard

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)

Open flashsnake-so opened this issue 9 years ago • 8 comments

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,

flashsnake-so avatar Jul 06 '16 20:07 flashsnake-so

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 https://github.com/JBostrom/MolecularRiftv2/issues/1, or mute the thread https://github.com/notifications/unsubscribe/AH09wABQhUn18r7c74HtonmrnWV6A3Qmks5qTBNlgaJpZM4JGe0o .

JBostrom avatar Jul 06 '16 20:07 JBostrom

Alright. Thanks.

flashsnake-so avatar Jul 06 '16 20:07 flashsnake-so

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.

flashsnake-so avatar Jul 11 '16 20:07 flashsnake-so

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 avatar Jul 12 '16 02:07 JBostrom

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 https://github.com/JBostrom/MolecularRiftv2/issues/1#issuecomment-231850717, or mute the thread https://github.com/notifications/unsubscribe/AH09wLkr56BiwYhp2q6wzVFY7tk3qV_jks5qUqRCgaJpZM4JGe0o .

JBostrom avatar Jul 12 '16 12:07 JBostrom

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

flashsnake-so avatar Jul 12 '16 15:07 flashsnake-so

https://github.com/JBostrom/MolecularRiftv2/blob/4b0f6a87c20115b756012ef84b5a774e3ebee246/Assets/Scripts/AddAtoms.cs#L172

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)

neon-ninja avatar Oct 31 '16 21:10 neon-ninja

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.

Coderious-GitHub avatar Apr 05 '20 18:04 Coderious-GitHub