• Register
Post tutorial Report RSS Introduction To CryEngine3 Programming (Setting up the Project)

This is a basic introduction for people who started using the cryengine3. This is intended for non-programmers learning to set-up the solution files.

Posted by on - Basic Client Side Coding

Setting Up The CryEngine3 Project

The prerequisites of this tutorial are having the following:

Once You have both of these installed open the CryEngine3 SDK folder. Open the the following path Code\Solutions\CryEngine_GameCodeOnly.sln . You will then open this with Visual studio, which contains the game code. Once opened in visual Studio. The project in the solution you care about is called "CryGame" This is where all your C++ implementations will be done.First right click on CryGame and Click Properties as shown in the picture:

The Next step is to set the output and configure the debugger(F5). Once you clicked on properties a new window will be shown as follows:
Where it says output directory, you want to click on it and browse the location. Set this location to the bin32 or bin64 folder( which ever you prefer). Once this is done. Click on Debugging on the left side in the categories. In debugging Where it says command. Change the location of this to your launcher.exe file either bin32 or bin64 folder depending on what you chose as the output folder in the previous step. Take a look in the following figure:

Now those two steps are done. Your solution is ready for compiling and debugging your solution:
For example if you right click on the "CryGame" and press debug and start new instance as the following picture:

Your Game will compile and will affect the launcher with the changes you made: For example this is a code that I affected the main menu with my own flash background of wolfenstein enemy territory:

I will make a follow up tutorial later on explaining some of the .cpp/.h files.

Comments
SecretImbecile
SecretImbecile

Hey,

Thanks for the tutorial. It compiles up to the following error, "cannot open include file 'afxres.h'". Any idea what's up?

Reply Good karma Bad karma+2 votes
SecretImbecile
SecretImbecile

Ah, this thread sorted it out Crydev.net

Reply Good karma Bad karma+2 votes
atsebak Author
atsebak

So it compiles for you?

Reply Good karma+1 vote
SecretImbecile
SecretImbecile

yes.
The code is supposed to include windows.h instead of afxres.h in the express version, but the if statement didn't seem to be working

Reply Good karma Bad karma+2 votes
atsebak Author
atsebak

oh ok, i dont have the express edition. so it must have been from that, my version worked completely fine

Reply Good karma+1 vote
SecretImbecile
SecretImbecile

yes, that's the cause of the bug listed in the thread

Reply Good karma Bad karma+2 votes
atsebak Author
atsebak

just an fyi, I have tested out the CryEngine3 Solution for visual studio 2012 and it works perfectly fine. Its better for C++ than Visual Studio 2010 because it has intellisense in it.

Reply Good karma+1 vote
pauliesgrandson
pauliesgrandson

I replaced afxres.h with windows.h (the problem is actually caused by the MFC library not being loaded, so it can happen in the full VS as well), but when I compile I just get 'Failed to load the Game DLL!'

Reply Good karma Bad karma+1 vote
Guest
Guest

This comment is currently awaiting admin approval, join now to view.

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Tutorial
Browse
Tutorials
Report
Report
Share
Related Groups
CryENGINE  Developers
CryENGINE Developers Fans & Clans with 414 members