Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Benajben · Dec 08, 2013 at 10:13 AM · syntax error

Getting an error on another computer that I can't recreate on my own

I had my friend playtest my game and it keeps throwing "IndexOutOfRangeException: Array index is out of range" in the Output_Log. I've tested the game on my own computer several times and haven't gotten any errors, and I've tested the code that is throwing the error and seems to only affect 1 particular level on his computer. I have honestly no idea why his computer would throw this exception, but not mine. Just for curiosity I imported my project into his Unity Editor and it throws the error in his editor as well.

Anyone have any ideas as to why this could happen?

Thanks

Comment
Add comment · Show 12
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image meat5000 ♦ · Dec 08, 2013 at 10:27 AM 1
Share

Is your system set to Full .Net and the other computer set to use Subset? It's in Player Settings

avatar image Benajben · Dec 08, 2013 at 10:31 AM 0
Share

$$anonymous$$ine is set to .Net 2.0. I'll have to see what their's is set to tomorrow. Thanks for the advice.

avatar image meat5000 ♦ · Dec 08, 2013 at 10:32 AM 0
Share

No problem :)

$$anonymous$$y thinking is that it's a .Net array, perhaps using extended commands that require the full set.

avatar image meat5000 ♦ · Dec 08, 2013 at 10:52 AM 1
Share

Aye, just set yours to subset and see if it throws an error. Also, I'm not entirely sure which version of .Net you need installed. $$anonymous$$ight be worth comparing that too.

If you've upgraded to 4.3.1 it might be worth reading the improvement section of What's New

avatar image meat5000 ♦ · Dec 08, 2013 at 11:33 AM 1
Share

Ok :) check which versions of .Net you have installed. I think older versions of $$anonymous$$ono used older sets.

See if there are any special Array commands in that one level, like System.Array.Resize which was introduced rather recently for resizing .Net arrays (I believe).

I noticed recently some inconsistency with .Net stuff. For example, someone had written a script with List, which worked for them but in order to use it on my system I had to

import System.Linq

to use the extended List functionality, but they did not have to do this!

So, er, yeah, check your imports too :P

Show more comments

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

18 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Syntax Error with WebGL Game 1 Answer

Error building Player because scripts had compiler errors 0 Answers

I want to change the animation of an object when it hits any object in a layer 2 Answers

Why am I getting a cannot convert error? 1 Answer

I have an error placing my pickup script into game 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges