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 Kroltan · Mar 24, 2012 at 10:14 PM · javascriptdllexternalparser

External DLL + Unityscript = Not Implemented

I am trying to implement JavaScript modding using Jurassic, a javascript parser. I can get it working with C#, but not with Unityscript. When i try to run some code, it gives me a "Not Implemented" error.

 NotImplementedException: The requested feature is not implemented.
 System.Reflection.Emit.DynamicMethod.GetDynamicILInfo ()
 Jurassic.Compiler.DynamicILGenerator..ctor (System.Reflection.Emit.DynamicMethod dynamicMethod)
 Jurassic.Library.FunctionBinder.CreateSingleMethodBinder (Int32 argumentCount, Jurassic.Library.FunctionBinderMethod binderMethod)
 Jurassic.Library.FunctionBinder.CreateBinder (Int32 argumentCount)
 Jurassic.Library.FunctionBinder.Call (Jurassic.ScriptEngine engine, System.Object thisObject, System.Object[] arguments)
 Jurassic.Library.ClrFunction.ConstructLateBound (System.Object[] argumentValues)
 Jurassic.JavaScriptException.CreateError (Jurassic.ScriptEngine engine, System.String name, System.String message)
 Jurassic.JavaScriptException..ctor (Jurassic.ScriptEngine engine, System.String name, System.String message, Int32 lineNumber, System.String sourcePath)
 Jurassic.Compiler.Parser.ParseExpression (Jurassic.Compiler.Token[] endTokens)
 Jurassic.Compiler.Parser.ParseLabelOrExpressionStatement ()
 Jurassic.Compiler.Parser.ParseStatementNoNewContext ()
 Jurassic.Compiler.Parser.ParseStatement ()
 Jurassic.Compiler.Parser.Parse ()
 Jurassic.Compiler.GlobalMethodGenerator.Parse ()
 Jurassic.ScriptEngine.Execute (Jurassic.ScriptSource source)
 Jurassic.ScriptEngine.Execute (System.String code)
 ParserTester.Update () (at Assets/ParserTester.js:5)

I am using Unity 3.5 with a free license. I have tried calling Jurassic both via import and defining a variable, with no success.

Comment
Add comment
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

1 Reply

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

Answer by rutter · Mar 24, 2012 at 11:52 PM

It looks like the Mono runtime Unity relies on may not support that GetDynamicILInfo() call. If you search around the net a bit, there are a number of people asking about similar problems over the past few years. There may be workarounds, but I'm not aware of any immediate solution.

Comment
Add comment · Show 4 · 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 Kroltan · Mar 25, 2012 at 12:18 AM 0
Share

I see. Then probably I'd need a parser, not a runtime compiler. But the C# scripting doesn't also use $$anonymous$$ono? How does it work in C# and not in US? I could also write a simple wrapper class in C# that just passes on to Jurassic's functions, but that's too hacky. Id' prefer using it as a ultimate solution

avatar image rutter · Mar 25, 2012 at 12:26 AM 0
Share

I agree that does seem strange. =\ Unity does create separate assemblies for US and C#, so I wonder if there may be some crucial distinction between them.

avatar image Kroltan · Mar 25, 2012 at 01:14 AM 0
Share

I tried JS parsers with no successs (jint and javascriptdotnet). I guess I'm going LUA! I hate that syntax, but whatever. Or maybe i'll do that wrapper.

avatar image Kroltan · Mar 26, 2012 at 12:20 AM 0
Share

Well I'm going to learn C# then.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

External Javascript call in Unity WebGL 1 Answer

Can Editor scripts be in external DLL's or assemblies? 1 Answer

Accessing functions on external JS in the same object 0 Answers

How can I find specific parts of an XML and feed them into dialogue? 2 Answers

Unity TestTools and External DLL conflict? 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