/evecc

Primary LanguageCMIT LicenseMIT

evecc

evecc is a tool for generating compiled.code files EVE online build 360229.

getting started

Before starting, please make sure you have a copy of eveloader2 to run your code files.

  1. generate new keys
evecc.exe genkeys
  1. extract the game's crypt key using evecc.exe dumpkeys -i C:\path\to\Crucible\bin\blue.dll. This will generate ccp.keys.crypt and ccp.keys.pub files
  2. dump the game's client code with evecc.exe dumpcode -i C:\path\to\Crucible\script\compiled.code -o eve_code. this will take quite some time. once complete you can modify the code in the eve_code directory.
  3. compile the game code with the following command evecc.exe compilecode -o compiled.code -I eve_code\carbon\client -I eve_code\carbon\common -I eve_code\eve\common -I eve_code\eve\client. The output file should be copied to C:\ProgramData\eveloader2\script\ in order for eveloader2 to pick up the changes.
  4. inject a custom eveloader2 patch - create a new file in your eveloader2 folder called patches.ini and make a folder patches. you will also want to copy your evecc.keys.pub and ccp.keys.pub into the patches folder.
[patches]
patch_list=public_key
[public_key]
name="Patch public key"
original_data=./patches/ccp.keys.pub
patched_data=./patches/evecc.keys.pub
  1. please be aware that once you patch your public key in, the game will not recognize the original compiled.code file. You will have to compile one.

building evecc

  1. install Build Tools for Visual Studio 2022
  2. in the Visual Studio Installer, ensure the following items are installed
    1. .NET framework 4.7.2 SDK
    2. .NET framework 4.7.2 targeting pack
    3. CMake tools for Winddows
    4. MSVC v143 - VS 2022 c++ x64/x86 build tools (Latest)
    5. Windows Universal CRT SDK
    6. C++ ATL for latest v143 build tools (x86 & x64)
    7. C++ MFC for latest v143 build tools (x86 & x64)
    8. Windows 10 SDK (<any version>)
    9. Windows Universal C Runtime
  3. install Ninja
  4. in a command prompt, run the following bat file ``
  5. run the following commands from the source directory
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
set vcpkg_default_triplet=x64-windows
mkdir build
cd build
cmake -g "ninja" .. -DCMAKE_BUILD_TYPE=Release
ninja

notes

  • the current setup currently can only generate modified compiled.code files.
  • during my testing of loading *.ccp the game always failed to accept them. As EVECC reuses CCP's crypt keys, we should have no issues loading them without patching keys.