danjiang@live.ca

Where is the source code for Babylon.js Editor?

Recommended Posts

I tried to run it by opening index.html and got almost a blank screen with only two tabs on the left side: General and Material  (I ran chrome like this: start chrome --allow-file-access-from-files)

 

Then I tried to load the sln project into vs2012 and got the the following error in the VS output window:

http://localhost:1411 : error  : Error opening web http://localhost:1411. Unable to open the Web site 'http://localhost:1411'.  The Web server 'http://localhost:1411' could not be found.

 

I am new to Babylon, so I definitely do not know what I am doing here. For one thing, I have VS2012 ultimate, not 2013 which the solution is created for. But I think the "localhost:1411" error shall be due to something else though.

 

-Thanks

Dan

Share this post


Link to post
Share on other sites

I can already run the Editor (and hence load the shaders) as is. My problem right now is not being able to open the VS2013 solution with my VS2012. I understand my VS version is lower than VS2013  that creates the solution file, but the "http://localhost:1411" error does not appear to be caused by the version difference. 

 

Peeking into the solution file, it seems to refers to /localhost_1411 specifically (seems that the Visual Studio solution requires a local server to be running???).

 

Below is the complete solution file for the Editor:

 
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "BabylonJSEditor", "http://localhost:1411", "{3D481FEA-281D-4E78-BE69-62A1841C25D7}"
ProjectSection(WebsiteProperties) = preProject
UseIISExpress = "true"
TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.5"
Debug.AspNetCompiler.VirtualPath = "/localhost_1411"
Debug.AspNetCompiler.PhysicalPath = "..\BabylonJSEditor\"
Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_1411\"
Debug.AspNetCompiler.Updateable = "true"
Debug.AspNetCompiler.ForceOverwrite = "true"
Debug.AspNetCompiler.FixedNames = "false"
Debug.AspNetCompiler.Debug = "True"
Release.AspNetCompiler.VirtualPath = "/localhost_1411"
Release.AspNetCompiler.PhysicalPath = "..\BabylonJSEditor\"
Release.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_1411\"
Release.AspNetCompiler.Updateable = "true"
Release.AspNetCompiler.ForceOverwrite = "true"
Release.AspNetCompiler.FixedNames = "false"
Release.AspNetCompiler.Debug = "False"
SlnRelativePath = "..\BabylonJSEditor\"
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3D481FEA-281D-4E78-BE69-62A1841C25D7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3D481FEA-281D-4E78-BE69-62A1841C25D7}.Debug|Any CPU.Build.0 = Debug|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

Share this post


Link to post
Share on other sites

 

@AlexeyJr - This is a VS2013 Project. Open is with visual studio and run it

@danjiang@live.ca - VS2013 comes with an internal web server (i assume 2012 as well?). It randomally selects a port to each project. The port selected here is 33404 (https://github.com/BabylonJS/Editor/blob/develop/BabylonJSEditor.csproj#L174) . Not sure when you got this port number. What file content did you paste here? 

Share this post


Link to post
Share on other sites
On 20.03.2016 at 11:20 PM, Luaacro said:

Hi AlexeyJr,

To run the editor, you can use Visual Studio 2015 Community (free) or simply using node.js

Install the packages: "npm install"

Build Editor: "gulp build"

Run the editor: "gulp webserver"

Thank You, Luaacro.

I installed "node.js" & "npn" from here: https://nodejs.org/en/
Then run "cmd" and paste this "npm install --save-dev gulp-webserver", and this "npm install -g gulp-server-livereload"
But Action Builder is still "script error"
Honestly i don't fully understand what is npm and gulp webserver...
Shall I make virtual http server via this "gulp webserver" or somthing?
Please, one more help )
 

Share this post


Link to post
Share on other sites

no worry, you do not need to go too deep :)

Just install node.js ans npm (done), open a command line interface (cmd, done), go to the directory of the editor and type these commands :

- npm install

- gulp build

- gulp webserver

that's all :)

for the actions builder, can you get the latest version of the editor ? It is possible that the version you have now has some bugs. Now with the latest version it should be ok :)

 

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.