Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

theAutomaters


code: its neverending

CryEngine: Engine as a service

CryEngine has now been available as a monthly service via steam for just a few months. The service is fairly cheap at $9.90/month. I enjoy experimenting with game programming and I really wanted to try it out. Currently with EaaS you can only write games for PC, but with nearly full access to the source code it is hard to resist checking it out.

Getting Ready

  1. Install CryEnging EaaS from steam: http://cryengine.com/get-cryengine/eaas

Setup git repo

  1. Open Git Bash
  2. Change directory to the install directory:

    cd /C/Program\ Files\ \(x86\)/Steam/SteamApps/common/CRYENGINE/
    
  3. Initialize a new git repo

    git init
    
  4. Run the following command to create a .gitignore file in the root installation:

    cat < .gitignore Bin32/ Bin32Dedicated/ Bin64Dedicated/ Bin64/ BinTemp/ Editor/ Engine/ GameSDK/ Localization/ Tools/ USER/ _CommonRedist/ ipch editor.cfg system.cfg AntiCheatLog.xml CRYENGINE_.zip *.log *.opensdf *.sdf *.suo EOF

  5. Open windows explorer in the installation directory and Extract the CRYENGINE_GameCode_PC_v3_6_4_2715.zip file into it. It should look like this:

    • There will also be a few extra Flash source files under GameSDK\Libs\UI\FlashAssets. Note: These won't be under version control.
  6. In order to build the CryInput.dll, you must copy some of the files from the Windows Kit to a folder in the Code directory. Perform the following steps in the Command Prompt:

    Change to the SDKs Folder:

    cd C:\Program Files (x86)\Steam\SteamApps\common\CRYENGINE\Code\SDKs
    

    Create missing directories:

    mkdir DXSDK\lib\x64
    mkdir DXSDK\lib\x86 
    

    Copy 9.1.0 xinput.lib files from Windows Kit to folders:

    copy "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x86\Xinput9_1_0.lib" DXSDK\lib\x86\xinput.lib
    copy "C:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x64\Xinput9_1_0.lib" DXSDK\lib\x64\xinput.lib     
    
  7. Type git citool then stage all the files and commit

To the code

  1. Open the solution with Visual Studio 2012
    • It is located here: Code\Solutions\CryEngine_GameCodeOnly.sln.
  2. Under the Build menu select Configuration Manager make sure you have x64 as the Active solution platform:

  3. Select the Build menu , then Build Solution.

If all is well everything should build without errors. If you see some IntelliSense errors, they are safe to ignore.

http://docs.cryengine.com/display/SDKDOC1/Getting+Started+with+the+SDK

Debugging

  1. Within Visual Studio, right click the CryGameSDK project and select Set as Startup Project
  2. Next you will need to right click the same project and select Properties
  3. Under the Configuration Properties select Debugging
  4. Set the value for Command to $(PropsFolder)..\..\Bin64\GameSDK.exe
  5. Set the value for Command Arguments to +map Airfield
  6. Set the value for Working Directory to $(PropsFolder)..\..\

  1. Press F5 or Select Start Debugging from the Debug menu and you should see something like this:


In my next post we will get into the code and really start experimenting.

Have any ideas? Leave me a comment.


About the author

Kevin Thompson

Fresno, California Area

I am a software developer that likes to experiment with emerging or interesting technologies.


Discussions

comments powered by Disqus