emdim Posted July 20, 2017 Share Posted July 20, 2017 Hello everyone, I am a newbie in BabylonJS and I am having a question about the "Build Script" button at the exporter plugin. I an export and preview the scene, but when i am trying to build the scripts i am getting the errors in the attachments. Also i noticed that we can create typescript classes in Unity, how can I embed them in my game? UPDATE: the full typescript error log is the following: C:\2.4\tsc.exe:1 (function (exports, require, module, __filename, __dirname) { MZοΏ½ ^ SyntaxError: Invalid or unexpected token at createScript (vm.js:53:10) at Object.runInThisContext (vm.js:95:10) at Module._compile (module.js:543:28) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.runMain (module.js:605:10) at run (bootstrap_node.js:423:7) at startup (bootstrap_node.js:147:9) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 20, 2017 Share Posted July 20, 2017 Ping @MackeyK24 Quote Link to comment Share on other sites More sharing options...
emdim Posted July 20, 2017 Author Share Posted July 20, 2017 Hello again, I solved this issue, it ws a problem with the terminal call in the "Babylon/Source/Tools.cs" file. I can post my solution if you want. Now i am having a new issue, when i am creating a SceneController I am getting these two warnings in chrome browser: function not found: PROJECT.BallSceneController Failed to locate valid BABYLON.SceneController metadata instance UPDATE: everything is ok at the end my problem was that i was trying to use ms typescript compiler path and not the nodejs one. I just made a fix in Tools.cs because it had a problem with spaces in the paths. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.