Prerequisites
Before you begin, ensure you have the following installed:- Visual Studio 2022 with the following components:
- Desktop development with C++
- MSVC v143 or later (x64/x86 build tools)
- Windows 10 SDK or later
- C++/CLI support for v143 build tools
- Git for cloning the repository
- Windows 10 or later (64-bit)
The project requires a 64-bit (x64) toolchain. Make sure you have the x64 build tools installed in Visual Studio.
Opening the project
Open the solution
Locate and open
MinecraftConsoles.sln in Visual Studio 2022. You can do this by:- Double-clicking the
.slnfile in File Explorer, or - Opening Visual Studio and selecting File > Open > Project/Solution
Build configuration
Selecting the configuration
The project supports two build configurations:- Debug (recommended): Includes debugging symbols and diagnostic menus. Best for development and testing.
- Release: Optimized for performance with compiler optimizations enabled. Note that Release mode may have some known bugs.
Selecting the platform
Set the target platform to Windows64 using the platform dropdown in the Visual Studio toolbar. The project only supports 64-bit Windows builds.Building the project
Select configuration and platform
In the Visual Studio toolbar:
- Set the configuration to Debug
- Set the platform to Windows64
Build the solution
Build the entire solution using one of these methods:
- Press
Ctrl+Shift+B - Select Build > Build Solution from the menu
- Right-click the solution in Solution Explorer and select Build Solution
Running the game
The game relies on relative paths (e.g.,
Common/Media/...) and must be launched from the output directory. Visual Studio handles this automatically when you run from the IDE.Build output
After a successful build, you’ll find the compiled files in:- Game media files (
Common/Media/) - Sound files (
Windows64/Sound/) - Tutorial and trial content
- Required DLL files (
iggy_w64.dll,mss64.dll)
Compiler settings
The Visual Studio project uses the following MSVC settings:Debug configuration
- Runtime Library:
MultiThreadedDebug - Warning Level:
/W3 - Exception Handling:
/EHsc - Multi-processor Compilation:
/MP - Preprocessor Definitions:
_LARGE_WORLDS_DEBUG_MENUS_ENABLED_DEBUG_CRT_NON_CONFORMING_SWPRINTFS_CRT_SECURE_NO_WARNINGS_WINDOWS64
Release configuration
- Runtime Library:
MultiThreaded - Warning Level:
/W0(warnings disabled for external code) - Optimizations:
/GL /O2 /Oi /GT /GF - Link-Time Code Generation:
/LTCG - Incremental Linking: Disabled (
/INCREMENTAL:NO)
Troubleshooting
Build fails with “cannot open file”
Ensure all required library files are present in:Minecraft.Client/Windows64/Iggy/lib/Minecraft.Client/Windows64/Miles/lib/Minecraft.Client/Windows64/4JLibs/libs/
Game crashes on launch
Make sure the working directory is set correctly. The game requires asset files in relative paths. Visual Studio automatically sets this, but if you’re running the executable directly, launch it from the output directory.Missing DLL errors
The build process should automatically copy required DLLs (iggy_w64.dll, mss64.dll) to the output directory. If they’re missing, check that the files exist in the source tree under Windows64/Iggy/lib/redist64/ and Windows64/Miles/lib/redist64/.
Next steps
- Learn about CMake builds for command-line compilation
- Review platform support for compatibility information
- Check the Controls documentation to learn how to play the game