-
Notifications
You must be signed in to change notification settings - Fork 81
build_with_msvc22_x64_jmarshall2323
Warning
This build guide refers to a fork that is not from TheSuperHackers. It may include additional modifications, software, and changes compared to the official TheSuperHackers version, and is included here for documentation purposes only.
-
Install Visual Studio 2022
Ensure that the necessary C++ development components, including MFC, are installed. -
Obtain the C&C Generals Source Code
Clone or download the source code repository:
jmarshall2323 VS2022 Fork. -
Install C&C Generals
The game installation is required to access the necessary asset files. -
Download the necessary SDKs as needed
3ds max sdk: 3ds-max sdk.
Download and extract the contents of the zip file to the folder
/Code/Libraries/max4sdk
-
Navigate to your C&C Generals installation directory, for example if using Steam:
C:\Program Files (x86)\Steam\steamapps\common\Command and Conquer Generals
-
Copy all necessary
.BIG
files into theRun
folder of your compiled project:EnglishZH.big Generals.big INIZH.big SpeechZH.big W3DZH.big (Other required files)
-
Copy the entire
Data
folder to theRun
folder as well.
- Launch Visual Studio 2022 and open the solution file
Code/RTS.sln
.
- Add to your PATH environment variable the following folder:
<base_git_folder>\Code\Tools\NVASM
- Load the RTS.sln Solution file in Visual Studio.
- Navigate to the max2w3d project folder in \toolchain\max2w3d
- Right-click on the project and select Properties.
- In the VC++ Directories tab, update the Additional Include Directories to the SDK Includes Folder (ie <base_git_folder>\Code\Libraries\max4sdk\Include)
- And the same tab, update the Additional Library Directories to the SDK Libraries Folder (ie <base_git_folder>\Code\Libraries\max4sdk\Lib)
- Navigate to Properties → Debugging.
- Set
Working Directory
to yourRun
folder.
Note
Ensure that the Run
folder within your build directory contains all required game assets.
- In the Solution Explorer, locate the following projects:
RTS
WorldBuilder
- Right-click each project and select Build.
- Ensure the build process completes without errors.
- After compiling, navigate to the
Run
folder. - Launch
RTSD.exe
orworldbuilder.exe
.
- Missing DLLs? Ensure that all required dependencies are installed.
-
Game not launching? Verify that all necessary
.BIG
files are correctly placed. - Build errors? Check Visual Studio settings and dependencies for any issues.
- How to Get Involved
- How to Contribution
- Replays for testing
- In-Game Debug Commands
- Community forks
- License
- Credits
- Changelog
- FAQ
- Known Issues
- Contact & Community
-
Visual Studio 6 Guides:
-
Visual Studio 2022 Guides:
- DirectX
- STLport
- Max4SDK
- NVASM
- Benchmark
- MilesSoundSystem
- Bink
- SafeDisk
- Asimp3
- GameSpy
- ZLib
- LZHCompress