Skip to content

A fork of the CnC_Remastered_Collection repo that includes instructions and Visual Studio 2019 configuration.

License

Notifications You must be signed in to change notification settings

haohb13/CnC_Remastered_Collection

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CnC_Remastered_Collection

This code is the game logic for Command and Conquer: Tiberian Dawn, and Command and Conquer: Red Alert. EA did not open source any assets beyond this source and only this source is under GPLv3. In order to obtain the rest of the game you must purchase from Steam or Origin. Once you have purchased the game you can play it and mod it to your heart's content.

Building this source

This source has been updated to be built in Visual Studio 2019. Simply load the project (CnCRemastered.sln) in VS 2019 and build.

Note: The below changes have already been commited to this repo.

For reference, here is what I changed to get this source code to build in VS 2019:

  1. Loaded .sln into VS
  2. Retargeted to Windows 10 and C++ v142 build tools
  3. Downloaded v142 build tools (C++ MFC) via Visual Studio Installer
  4. Defined WINDOWS_IGNORE_PACKING_MISMATCH
    • Open RedAlert Property Pages -> C/C++ -> Preprocessor -> Add to Preprocessor Definitions
    • Use semicolon to separate definitions
    • Double check that it gets added to TiberianDawn Property Pages too.
    • This is an important step. An alterative (and apparently incorrect) way is to set the struct alignment to "default" however this could crash the game as the struct alignment/packing should be preserved.
  5. Build

Artifacts

The artifacts (what you get after building) of this source are RedAlert.dll and TiberianDawn.dll.

Creating a Red Alert mod

To create a RA mod that includes RedAlert.dll:

  1. Create a directory with the name you want for your mod. This directory should go in ~/Documents/CnCRemastered/Mods/Red_Alert
  2. Inside your new mod directory, create a json file called ccmod.json. Below is an example for a mod named "Test".

{ "name": "Test", "description": "Just a test", "author": "alexlk42", "load_order": 1, "version_low": 2, "version_high": 1, "game_type": "RA" }

  1. Create a new directory alongside ccmod.json inside your mod directory called Data.
  2. Put RedAlert.dll in this new Data directory.

Creating a Tiberian Dawn mod

To create a TD mod that includes TiberianDawn.dll:

  1. Create a directory with the name you want for your mod. This directory should go in ~/Documents/CnCRemastered/Mods/Tiberian_Dawn
  2. Inside your new mod directory, create a json file called ccmod.json. Below is an example for a mod named "Test".

{ "name": "Test", "description": "Just a test", "author": "alexlk42", "load_order": 1, "version_low": 2, "version_high": 1, "game_type": "TD" }

  1. Create a new directory alongside ccmod.json inside your mod directory called Data.
  2. Put TiberianDawn.dll in this new Data directory.

Loading the mod

Open CnC and in the options go to the "Mod" tab. You should see a checkbox for your mod. Simply check it to activate the mod. The game will need to restart.

About

A fork of the CnC_Remastered_Collection repo that includes instructions and Visual Studio 2019 configuration.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 93.6%
  • C 4.0%
  • Assembly 2.4%