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

#41
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.
Uniflare
CRYENGINE Community Coordinator
Here to help the community and social channels grow and thrive.

My personal belongings;
Beginner Guides | My GitHub | Splash Plugin

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

#44
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.
Small tips
How to add an image to a forum post
[C++] How to smoothly turn your character

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

#45
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.
Last edited by HDN on Mon Jan 15, 2018 10:57 am, edited 1 time in total.
Small tips
How to add an image to a forum post
[C++] How to smoothly turn your character

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

#46
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 1424 times
Uniflare
CRYENGINE Community Coordinator
Here to help the community and social channels grow and thrive.

My personal belongings;
Beginner Guides | My GitHub | Splash Plugin

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

#47
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...
Small tips
How to add an image to a forum post
[C++] How to smoothly turn your character

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

#48
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.
Uniflare
CRYENGINE Community Coordinator
Here to help the community and social channels grow and thrive.

My personal belongings;
Beginner Guides | My GitHub | Splash Plugin

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

#49
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
Small tips
How to add an image to a forum post
[C++] How to smoothly turn your character

Who is online

Users browsing this forum: No registered users and 0 guests