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
0
Question by Chickenator · Jan 27, 2015 at 08:15 PM · monodevelopscripterrorscripteditor

Script open help?

I made a script called GrappleScript

When I try to open it to edit it I get a windows error (see photo)alt text

What is the problem and how can I fix it?

error.png (19.9 kB)
Comment
Add comment · Show 8
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 Mmmpies · Jan 27, 2015 at 09:01 PM 0
Share

Open it with notepad, check for any odd characters, if needed make a backup .txt file of the contents and delete the original from your game.

copy the text from the .txt backup and recreate the script. Hopefully it'll pick up any errors in mono if there's still odd characters in there.

But always make a backup before doing anything.

avatar image Chickenator · Jan 27, 2015 at 09:19 PM 0
Share

@$$anonymous$$mmpies it's a completely new script and there should be nothing wrong

avatar image Mmmpies · Jan 27, 2015 at 09:24 PM 0
Share

100% correct @Chickenator if a new script then crazy. Can you create a script called something else?

If so then maybe a stray control character in the name.

If not, like I said, backup backup backup and the re-install Unity and mono.

avatar image Chickenator · Jan 27, 2015 at 09:28 PM 0
Share

@$$anonymous$$mmpies I tried opening some of the scripts made by unity in one of their default packages and got the same result from unityscripts but from C# script nothing even happens. Do you have any idea where monodevelop is installed be default so I could try and open the script with it?

avatar image Imtiaj Ahmed · Jan 27, 2015 at 09:37 PM 0
Share

You can find $$anonymous$$onoDevelop on the same folder where unity is installed. There will be two folders. Editor(Unity) and your $$anonymous$$onoDevelop. Are you sure you ticked $$anonymous$$onoDevelop while downloading and installing unity?

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Imtiaj Ahmed · Jan 27, 2015 at 09:00 PM

In explorer, if you want to open the file with double click, it will happen. Just right click and click edit to open in notepad. Otherwise you can choose your favorite editor(MonoDevelop maybe) by open with after right clicking it(windows). If you double click the file in unity editor, and get the same error message, then go to Edit -> preferences -> External tools and check what is the external script editor. If needed change it. I would suggest using MonoDevelop which is shipped with unity.

By the way, it's unity script not the so called javascript as you know it.

Hope it helps.

Comment
Add comment · Show 3 · Share
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 Chickenator · Jan 27, 2015 at 09:18 PM 0
Share

I looked and the external script editor and it's monodevelop. I always double click the file to open it and it was a new script so nothing should be wrong with it

avatar image Imtiaj Ahmed · Jan 27, 2015 at 09:23 PM 0
Share

Hmm...that's strange! I would try restarting computer first, and if not solved, reinstall unity along with monodevelop.

avatar image Chickenator · Jan 29, 2015 at 05:45 PM 0
Share

Reinstalled it and it works now, thanks

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

21 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 avatar image avatar image avatar image

Related Questions

MonoDevelop and UniSciTE not auto completing JavaScript with 3.4 3 Answers

Is there something better than Monodevelop? 1 Answer

having trouble with a return to main menu script 1 Answer

Monodevelop problems with curly braces 1 Answer

Monodevelop fatal error on execution 1 Answer


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