Page 5 of 6

Re: Collection of image-based basic tutorials for CryEngine on Windows

Posted: Sun Jan 14, 2018 9:29 pm
by Cry-Flare
It is not required to install Windows 10 to obtain the Windows 10 SDK. If you are using VS2017, in the installer navigate to Individual components. In this list at the bottom you will find the various Windows SDK packages you can install. Also, make sure your Windows 8.1 installation is up-to-date.

Re: Collection of image-based basic tutorials for CryEngine on Windows

Posted: Mon Jan 15, 2018 3:28 am
by HDN
Make sure you install the Windows SDK, specifically 10.0.10586.0. It is available in the Visual Studio Installer.
You are so right Image I'm installing it. Thanks :D

Re: Collection of image-based basic tutorials for CryEngine on Windows

Posted: Mon Jan 15, 2018 4:18 am
by HDN
Maybe my Visual Studio is broken, after I install windows 10 SDK, these projects I created failed to load, It asked me to install Windows 8.1 SDK, after that, the projects loaded successfully, but when I build CryEngine solution, I still got the same errors.

Re: Collection of image-based basic tutorials for CryEngine on Windows

Posted: Mon Jan 15, 2018 5:03 am
by HDN
Image
Maybe my Visual Studio is broken, after I install windows 10 SDK, these projects I created failed to load, It asked me to install Windows 8.1 SDK, after that, the projects loaded successfully, but when I build CryEngine solution, I still got the same errors.
Ok, here is what I do that works.
Just to be sure, I reopen Visual Studio installer and install one more option: Tools (1.4.1) and Windows 10 SDK (10.0.14393)
And then, I read this article and realize that I need to re-generate the CryEngine solution with CMake.
After I regenerate the CryEngine Solution with CMake, the project build successfully. Cool.

Re: Collection of image-based basic tutorials for CryEngine on Windows

Posted: Mon Jan 15, 2018 6:44 am
by HDN
c. Setting up and Registering your local engine


Open the cloned repo in explorer.
Image
Original Size Image

Download required CRYENGINE SDKs.
Image
Original Size Image

Copy "engine" and "gamezero" folders from the CRYENGINE Launcher.
Image
Original Size Image

Paste them into your cloned CRYENGINE repo.
Image
Original Size Image

Merge the folders when prompted.
Image
Original Size Image

Create a file named "MyEngine.CRYENGINE".
Image
Original Size Image

Edit "MyEngine.CRYENGINE", put the following contents.
(Your version may differ)

Code: Select all

{ "info": { "version": "5.4.0", "name": "MYCRYENGINE 5.4", "id": "myengine-5.4" } }

Run "MyEngine.CRYENGINE".
Image
Original Size Image
e. Building and testing your local engine


Verify the Statup Project.
Image
Original Size Image

Select "Profile" build configuration.
Image
Original Size Image

Start building CRYENGINE.
Image
Original Size Image

Launch (Debug) CRYENGINE.
Image
Original Size Image
Thanks for your help, I have sucessfully build the solution, but now I hit the new problem - I can't run it (start up project is WindowsLauncher like your tutorial said). The exe just start and exit immediately
when I debug: ..\CRYENGINE\Code\Launcher\WindowsLauncher\Main.cpp
I see that the variable cmdLine is empty? So the exe just quit (I guess)

Code: Select all

string cmdLine = CryStringUtils::ANSIToUTF8(lpCmdLine);
So actually my purpose is to run my game project and debug the CryEngine source code so I know exactly what happen deep inside - Where should I look?

Edit: I guess the solution is trying to edit the lpCmdLine to make it run the desired project. I guess the command should be: -project "E:/Document/CryEngine Projects/CppTest/Game.cryproject", I've edited the memory of the string lpCmdLine to what I want, but I get the memory violation exception.

Re: Collection of image-based basic tutorials for CryEngine on Windows

Posted: Mon Jan 15, 2018 10:44 am
by Cry-Flare
You can specify this in Visual Studio by going to the properties of the WindowsLauncher project (assuming this is your startup project), then navigating to "Debugging" section and modifying the Command, Command Arguments and Working Directory fields. For example:
SettingDebuggerOptions.PNG
SettingDebuggerOptions.PNG (20.31 KiB) Viewed 1866 times

Re: Collection of image-based basic tutorials for CryEngine on Windows

Posted: Mon Jan 15, 2018 10:59 am
by HDN
You can specify this in Visual Studio by going to the properties of the WindowsLauncher project (assuming this is your startup project)
Thank you, it works :D Why didn't I think of this?

Edit; maybe this is not important, but when I quit my game, an exception from CryMonoBridge.dll is thrown due to memory violation. Image I can just ignore it, but it would be great if I could fix it...

Re: Collection of image-based basic tutorials for CryEngine on Windows

Posted: Mon Jan 15, 2018 11:42 am
by Cry-Flare
If you are not using C# you can safely disable CryMonoBridge in the CMake GUI and regenerate the engine solution.
This error you have shown appears to be a nullptr issue. It seems the order of component shutdown is incorrect.

Re: Collection of image-based basic tutorials for CryEngine on Windows

Posted: Mon Jan 15, 2018 1:09 pm
by HDN
If you are not using C# you can safely disable CryMonoBridge in the CMake GUI and regenerate the engine solution.
This error you have shown appears to be a nullptr issue. It seems the order of component shutdown is incorrect.
Thanks for your response :)
I've checked and I see that CryMono is already disable by default. Image Then I remember that I followed this tutorial section
g. Using sandbox with your custom engine


Copy "Editor", "Tools" and "Editor.cfg" from launcher engine.
Image
Original Size Image

Paste them into your cloned engine's folder.
Image
Original Size Image

Select YES to MERGE the folders.
Image
Original Size Image

Select "Don't Copy" or "Skip" when asked to OVERWRITE files.
Image
Original Size Image

Copy the binaries from the launcher engine.
Image
Original Size Image

Paste the binaries into your cloned engine's bin folder.
Image
Original Size Image

Choose "Don't Copy" or "Skip".
Image
Original Size Image

Launch Editor for your project.
Image
Original Size Image

Open a level from your project.
Image
Original Size Image
CryMonoBridge.dll is copied when I copy the binaries from the launcher engine. So I just delete the file CryMonoBridge.dll from my cloned git source, and everything is ok now. Thanks for your support :D

Re: Collection of image-based basic tutorials for CryEngine on Windows

Posted: Wed May 02, 2018 8:36 am
by a375816465
A large number of Chinese users need Chinese tutorials and Chinese documents.
If you want to make money, you have to consider the Chinese market.
China's purchasing power is quite strong.
For example: 《PUBG》
(by Google translation)