The Cortex Command Community Project is Free/Libre and Open Source under GNU AGPL v3
This is a community-driven effort to continue the development of Cortex Command.
Stay up to date in our Discord channel.
First you need to download the necessary files:
-
Install the necessary tools.
You'll probably want Visual Studio Community Edition (build supports both 2017 and 2019 versions).
You also need to have both x86 and x64 versions of the Visual C++ Redistributable for Visual Studio 2017 installed in order to run the compiled builds.
You may also want to check out the list of recommended Visual Studio plugins here. -
Clone this Source Repository and the Data Repository in neighboring folders.
Do Not change the folder names unless you want to make trouble for yourself. -
Copy the following libraries from
Cortex-Command-Community-Project-Source\external\lib\
into the Data Repository:
lua51.dll
lua51-64.dll
fmod.dll
fmodL.dll
- Copy
Scenes.rte
andMetagames.rte
from your purchased copy of Cortex Command into the Data Repository.
Now you're ready to build and launch the game.
Simply open RTEA.sln
with Visual Studio, choose your target platform (x86 or x64) and configuration, and run the project.
- Use
Debug Full
for debugging with all visual elements enabled (builds fast, runs very slow). - Use
Debug Minimal
for debugging with all visual elements disabled (builds fast, runs slightly faster). - Use
Debug Release
for a debugger-enabled release build (builds slow, runs almost as fast as Final). - Use
Final
to build release executable.
The first build will take a while, but future ones should be quicker.
The Linux build uses the meson build system, and builds against system libraries.
g++>=8.1
(needs to support c++17 filesystem)allegro4
loadpng
flac
luajit
minizip
lz4
libpng
libX11
meson>=0.49
(If your distro doesn't have a recent version of meson, use the pip version instead)boost>=1.55
xorg-misc-fonts
-
Install Dependencies (see below for some distro-specific instructions).
-
Clone this Source Repository and the Data Respository.
-
Open a terminal in the Source Repository.
-
meson build
ormeson --buildtype debug build
for debug build (default is release build) -
cd build
-
ninja
If you want to change the buildtype aftwerwards, you can use meson configure --buildtype {release or debug}
in the build directory or create a secondary build directory as in Step 4
-
Copy (or link, might be preferable for testing builds)
builddir/CCCP_debug.x86_64
orbuilddir/CCCP.x86_64
(depending on if you made a release build) into the Data Repository. -
Copy all
libfmod
files fromexternal/lib/linux/x86_64
into the Data Repository. -
Copy
Scenes.rte
andMetagames.rte
from your purchased copy of Cortex Command into Data Repository. -
Run
./CCCP.x86_64
or./CCCP_debug.x86_64
in the Data Repository.
Until borderless windows are implemented, you might seem get stuck in fullscreen mode. Try Alt-Return, or if that doesn't work kill CC with ctrl-alt-end.
On X11 media keys and such don't work in fullscreen, this is a known issue (this does not happen on Wayland).
Arch Linux:
# pacman -S allegro4 flac luajit minizip lz4 libpng libx11 meson xorg-fonts-misc
Ubuntu:
# apt-get install liballegro4-dev libloadpng4-dev libflac++-dev luajit-5.1-dev libminizip-dev liblz4-dev libpng++-dev libx11-dev
# pip install meson
For more information and recommendations, see here.