Command & Conquer™ Remastered Collection

Command & Conquer™ Remastered Collection

Not enough ratings
How to start modding in 4min
By EternalNooblet
Complete step-by-step guide to make a mod for C&C Remastered 2020. Beginner friendly, every step is shown. All downloads are free and from official sites. Everything you need to go from zero to running your own mod in-game.
   
Award
Favorite
Favorited
Unfavorite
Summary
Everything you need to install and setup in less than 4 mins. The only requirement is running windows. All downloads are free. No need to have specific versions of anything, just defaults during the install. Comments here and on YT are welcome. I want to help beginners like me get started with modding.

https://youtu.be/UIf1Wf0pLcA
PDB files
Quick note about the TiberianDawn.pdb and RedAlert.pdb files. When you are ready to upload your mod to the Steam Workshop, please do not include the PDB file. You would only keep them if you plan on debugging. Please see the link below, I have a short guide on that process.
ccmod.json file
Template for TD:
{ "name": "", "description": "", "author": "", "load_order": 1, "version_low": 0, "version_high": 1, "game_type": "TD" }

Template for RA:
{ "name": "", "description": "", "author": "", "load_order": 1, "version_low": 0, "version_high": 1, "game_type": "RA" }
Folder structure
TD
%UserProfile%\Documents\CnCRemastered\Mods\Tiberian_Dawn\ └─ CitizenKane\ └─ ccmod.json └─ Data\ └─ TiberianDawn.dll

RA
%UserProfile%\Documents\CnCRemastered\Mods\Red_Alert\ └─ CitizenKane\ └─ ccmod.json └─ Data\ └─ RedAlert.dll
Next Steps
Please checkout my next guide about how to debug the running game. It builds on top of this tutorial.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2157458592
12 Comments
Meru33 21 Dec, 2020 @ 12:12am 
Hello!

Many thanks for your guiding materials!

I have a couple of questions:

1) Do you know by the way how to access skirmish difficulty values in TD? or how to access the AI skirmish name (e.g., "AIPLAYER1 Medium")

2) How can one read the hotkey value assigned to a specific task. For example, how can I know if the deploy key was pressed given that each user can define a different key for that specific task...?

Many thanks in advance for your support!
MoonLite 19 Nov, 2020 @ 1:53pm 
(sorry, max 1000 chars limit here in comments, so my comments are split up in 2 parts. Also they show up in reversed order)
MoonLite 19 Nov, 2020 @ 1:51pm 
(...continued from previous comment)

And under Optional (checked items):
- Just-In-Time debugger
- VC++ 2017 version 15.9 v14.16 latest v141 tools
- C++ profiling tools
- Windows 10 SDK (10.0.17763.0)
- Visual C++ tools for CMake
- Visual C++ ATL for x86 and x64
- Test Adapter for Boost.Test
- Test Adapter for Google Test
- Visual C++ MFC for x86 and x64

Individual components (checked items):
- Visual C++ ATL for x86 and x64
- Visual C++ MFC for x86 and x64

Note that you need quite some disk space to install Ms Visual Studio and all components above (a dozen or so GBs).

This was the final hint that seemed to fix it for me:
"If you get an error about afxres.h, open the Visual C++ installer, hit "modify" on your installed copy, go to "individual components" and look for things labeled MFC and install those."

Based on this , I THINK (not sure) the only components you really need are:
- Windows 10 SDK (10.0.17763.0)
- Visual C++ ATL for x86 and x64
- Visual C++ MFC for x86 and x64
MoonLite 19 Nov, 2020 @ 1:51pm 
(Before you read on, try the above video by Eternal Nooblet first.
That looks easier/better than what I have below)

Just as an alternative on how to build mods , this is how I got things working:

---

I used this guide and that was very clear:
https://gameplay.tips/guides/7816-command-and-conquer-remastered-collection.html
There are lots of guides, but this one was the most concise and still detailed enough for me.


For building I use (downloaded free) Microsoft Visual Studio 2017, but picking the right "optional" bits was tricky and took some trial and error before building worked without errors.
Below I show which components I have installed now, and now building seems to work ok:

Building in Windows 10:

In "Visual Studio Installer", modify, under "Installation details" (right side) it shows:

- Visual Studio core editor
- Desktop development with C++

(continued in next comment...)
EternalNooblet  [author] 4 Sep, 2020 @ 7:12am 
Hey, Kerekupai-meru, good to hear it's working now. I was able to compile and update my mods with VS2019 without problems. If VS2017 fixed the issue for you, maybe it'll help someone else, thanks for updating the thread.
Meru33 2 Sep, 2020 @ 4:07pm 
HI again! I installed VS 2017 and problem solved! Cheers!
Meru33 2 Sep, 2020 @ 7:26am 
Hi! many thanks for the guide! I have followed the steps, but cannot mod anymore after the update. Any idea why?

Before it was working for me without problems. Now even when I compile the code in Visual Studio without modifying anything, the game crashes. In VS it says success without error after the build...

Many thanks in advance for the support!
EternalNooblet  [author] 9 Jul, 2020 @ 6:08am 
Added a note about PDB files. Removed them from the Folder Structure section. They are only useful for debugging.
EternalNooblet  [author] 3 Jul, 2020 @ 6:40am 
Using 8.1 SDK means you have to install that specific version. I opted for using the latest SDK and version of C++ tools. I have not had any issues. What problems do you think that flag will cause?
jfwfreo 3 Jul, 2020 @ 3:15am 
You shouldn't be using the WINDOWS_IGNORE_PACKING_MISMATCH at all, it will cause problems.
If you are having issues you probably dont have the correct Windows SDK installed (you need the Windows 8.1 SDK for the remasters to work)