Cannot create new project using the compiled editor

Hi there,
I’ve successfully compiled Engine and Editor under Windows from the github source.
However after starting it, I am always forced to open an already existing project. Is there some way to create one after startup? Tried just the quick’n dirty way to comment the loadup out, which well… as I was already thinking not working / breaking.
I have the feeling, I’m fundamentally doing something wrong and the workflow could be more like in Unreal, that a project is created and the Editor can be run out of a project solution.
Anyway, would be great if someone could help me out here and clear it up.

Thank you.

From what i know the only way to create a new project is to use the launcher or duplicate an already existing project.

1 Like

Hi,
Thanks for the reply. So I guess, I need to download the actual Installer to get the launcher? Doesn’t seem as if it’s included in the source-code. Would be cool, if there’s any way to get something like a small standalone application for that, or even a feature included into the editor.
But yeah, I cloned the sample-projects, and they opened up fine in the self-compiled editor. So I guess, that’s a good starting point.
But that’s good to know, thank you.

Hello together,

i have some problems to continous.
i cloned the actual source code to my local and was able to compile like on GitHub:
Windows
* Install Visual Studio 2015 or newer
* Install Windows 8.1 SDK or newer
* Install Microsoft Visual C++ 2015.3 v140 toolset for desktop (x86, x64)
* Clone repo (with LFS)
* Run GenerateProjectFiles.bat
* Open Flax.sln and set solution configuration to Editor.Development and solution platform to Win64
* Compile Flax project (hit F7 key)
* Run Flax (hit F5 key)

but here im not able to make some json assets and so on.

My VS start a runtime für Flax an what is the next point?
i can open an old Project but get the old problems too.

Hello,
So you were able to correctly open already existing projects?
If yes, then you basically have two options now:

  • You can either use the sample-repository and use these projects as a base for your own ones
  • You download the launcher from the flax homepage and create a new project there. The new project can then be opened via the Editor which you can start from Visual Studio

For project generation @JimiVacarians hint did the trick. The project can be created via the launcher.
For me this also generated the GameSettings.json, which I guess is the one you are reporting to have issues with. If you can get to the editor, it might make sense to hit the GenerateProject Button again?

Maybe to help you further it would also make sense, if you could tell us which version of Visual Studio you are using?

Hello Durpler,

in the beginning to compile the source with “GenerateProjectFiles.bat” i had a lot of issues, got many errors and warnings.
It was missing all the links to Visual Studio NuGet (like ionic…) and after this it send out only errors and was not able to compile.

I play a lot around with my pc and make many changes, but after reinstalling of Win10 and installing Visual Studio Community 2019, version 16.8.3, it was working.

i cant upload my VS configuration but here:

{
“version”: “1.0”,
“components”: [
“Microsoft.VisualStudio.Component.CoreEditor”,
“Microsoft.VisualStudio.Workload.CoreEditor”,
“Microsoft.NetCore.Component.Runtime.5.0”,
“Microsoft.NetCore.Component.Runtime.3.1”,
“Microsoft.NetCore.Component.SDK”,
“Microsoft.VisualStudio.Component.NuGet”,
“Microsoft.VisualStudio.Component.Roslyn.Compiler”,
“Microsoft.VisualStudio.Component.Roslyn.LanguageServices”,
“Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions”,
“Microsoft.VisualStudio.Component.DockerTools”,
“Microsoft.Net.Component.4.8.SDK”,
“Microsoft.Net.Component.4.7.2.TargetingPack”,
“Microsoft.VisualStudio.Component.TypeScript.4.0”,
“Microsoft.VisualStudio.Component.JavaScript.TypeScript”,
“Microsoft.VisualStudio.Component.JavaScript.Diagnostics”,
“Microsoft.Component.MSBuild”,
“Microsoft.VisualStudio.Component.TextTemplating”,
“Component.Microsoft.VisualStudio.RazorExtension”,
“Microsoft.VisualStudio.Component.IISExpress”,
“Microsoft.VisualStudio.Component.SQL.ADAL”,
“Microsoft.VisualStudio.Component.SQL.LocalDB.Runtime”,
“Microsoft.VisualStudio.Component.Common.Azure.Tools”,
“Microsoft.VisualStudio.Component.SQL.CLR”,
“Microsoft.VisualStudio.Component.MSODBC.SQL”,
“Microsoft.VisualStudio.Component.MSSQL.CMDLnUtils”,
“Microsoft.Net.Component.4.5.2.TargetingPack”,
“Microsoft.Net.Component.4.5.TargetingPack”,
“Microsoft.VisualStudio.Component.SQL.SSDT”,
“Microsoft.VisualStudio.Component.SQL.DataSources”,
“Microsoft.VisualStudio.Component.Web”,
“Microsoft.VisualStudio.Component.IntelliCode”,
“Microsoft.VisualStudio.Component.WebDeploy”,
“Component.Microsoft.VisualStudio.LiveShare”,
“Microsoft.VisualStudio.Component.VC.CoreIde”,
“Microsoft.VisualStudio.Component.VC.Tools.x86.x64”,
“Microsoft.VisualStudio.Component.Graphics.Tools”,
“Microsoft.VisualStudio.Component.VC.DiagnosticTools”,
“Microsoft.VisualStudio.Component.Windows10SDK.18362”,
“Microsoft.VisualStudio.Component.Node.Tools”,
“Microsoft.VisualStudio.Workload.Node”,
“Microsoft.VisualStudio.Component.Debugger.JustInTime”,
“Microsoft.VisualStudio.Component.VC.Redist.14.Latest”,
“Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core”,
“Microsoft.VisualStudio.ComponentGroup.WebToolsExtensions.CMake”,
“Microsoft.VisualStudio.Component.VC.CMake.Project”,
“Microsoft.VisualStudio.Component.VC.ATL”,
“Microsoft.VisualStudio.Component.VC.TestAdapterForBoostTest”,
“Microsoft.VisualStudio.Component.VC.TestAdapterForGoogleTest”,
“Microsoft.VisualStudio.Component.VC.ASAN”,
“Microsoft.VisualStudio.Component.Windows10SDK.17763”,
“Microsoft.VisualStudio.Component.Windows10SDK.17134”,
“Microsoft.VisualStudio.Component.Windows10SDK.16299”,
“Microsoft.VisualStudio.Component.VC.v141.x86.x64”,
“Microsoft.Component.VC.Runtime.UCRTSDK”,
“Microsoft.VisualStudio.Component.VC.140”,
“Microsoft.VisualStudio.Workload.NativeDesktop”,
“Microsoft.VisualStudio.Component.Windows10SDK.19041”,
“Microsoft.Net.Component.3.5.DeveloperTools”,
“Microsoft.VisualStudio.Component.NuGet.BuildTools”,
“Component.GitHub.VisualStudio”,
“Microsoft.VisualStudio.Web.Mvc4.ComponentGroup”,
“Microsoft.Net.Component.4.6.1.SDK”,
“Microsoft.Net.Component.4.6.2.SDK”,
“Microsoft.Net.Component.4.7.SDK”,
“Microsoft.Net.Component.4.7.1.SDK”,
“Microsoft.Net.Component.4.7.2.SDK”
]
}

i will try out the points you wrote.

So right now the GenerateProjects.bat is not throwing any more errors for you?
Btw. Are you building it with the VulkanSDK or are you using OpenGL?

For me I’ve build it without Android and Linux-Toolchain, but with the VulkanSDK and so far it’s been working quite well. I’ve built it against the most recent VulkanSDK, which should be V*.162 if I recall correctly. (Don’t nail me down on the exact version number, but it was 162 at the end)

On a side note: did you install the MSVC_140 Toolchain via Standalone-Installer or did you use the Optional feature of the Visual Studio Installer?

yeah you are right,

Generating Flax Engine project files…
Missing Android SDK. Cannot build for Android platform.
Missing Linux Toolchain. Cannot build for Linux platform.
Building for Windows without Vulkan rendering backend (Vulkan SDK is missing)
Building for Windows without Vulkan rendering backend (Vulkan SDK is missing)
Building for Windows without Vulkan rendering backend (Vulkan SDK is missing)
Building for Windows without Vulkan rendering backend (Vulkan SDK is missing)
Building for Windows without Vulkan rendering backend (Vulkan SDK is missing)
Building for Windows without Vulkan rendering backend (Vulkan SDK is missing)
Building for Windows without Vulkan rendering backend (Vulkan SDK is missing)
Building for Windows without Vulkan rendering backend (Vulkan SDK is missing)
Building for Windows without Vulkan rendering backend (Vulkan SDK is missing)
Building for Windows without Vulkan rendering backend (Vulkan SDK is missing)
Building for Windows without Vulkan rendering backend (Vulkan SDK is missing)
Building for Windows without Vulkan rendering backend (Vulkan SDK is missing)
Building for Windows without Vulkan rendering backend (Vulkan SDK is missing)
Building for Windows without Vulkan rendering backend (Vulkan SDK is missing)
Building for Windows without Vulkan rendering backend (Vulkan SDK is missing)
Building for Windows without Vulkan rendering backend (Vulkan SDK is missing)
Building for Windows without Vulkan rendering backend (Vulkan SDK is missing)
Building for Windows without Vulkan rendering backend (Vulkan SDK is missing)
Done!

i used the “Visual Studio Installer”

Hmm… Our Setups are identical apart from the VulkanSDK.
Are you running the editor with attached debugger? If so, you could show me the exception it’s causing?

OK here you need to help me out a bit.

I compiled the code in VS and started with VS. Then it asked me to open a Project and a opened an new created (over the launcher).

one thing i get in the Flax “Output Log” is:

[ 00:00:03.417 ]: [Error] Missing file ‘C:\Users\XXXXX\AppData\Roaming\Flax\EditorOptions.json’
[ 00:00:03.417 ]: [Warning] Missing or invalid editor setting

Interesting. I don’t have this file as well, however I think this folder is being populated by the launcher. I didn’t install any Editor from the Launcher which might explain why the editor-settings are missing.
I just created an empty project and everything works fine.

I can’t seem to debug the load-in for the json file properly, since I’m not yet fully familiar with the project, however, since it works fine for me I don’t believe, that the file is mandatory. So I would suggest to skip over this error for now?

Edit: Just realized, I have this error message in the output as well.