This is a repository for VOXEL HORIZON's MOD development.
Visual Studio 2022 , Windows 10/11
This repository does not contain any resources from the game.
The contents of the 'VH_SDK\VOXEL_HORIZON\App\Data_Pak' and 'VH_SDK\VOXEL_HORIZON\App\Data_Pak' folders are empty.
Copy the files and folders in the 'VOXEL_HORIZON\App\Data_Pak' folder downloaded from steam to the 'VH_SDK\VOXEL_HORIZON\App\Data_Pak'.
Copy the files and folders in the 'VOXEL_HORIZON\App\Data' folder downloaded from steam to the 'VH_SDK\VOXEL_HORIZON\App\Data'.
- Open 'VH_SDK/VOXEL_HORIZON/Plugin/GameHook/GameHook.sln' in Visual Studio.
- Modify the code as you want.
- build the projtect.
- When you build a plugin project, a .dll file is created in the 'VH_SDK/VOXEL_HORIZON/Plugin/bin' folder.
-
goto to '/VH_SDK/VOXEL_HORIZON/App/'
-
Enter a command or create a shortcut in the following folder path.
use '/dx11' switch for DirectX 11 Renderer
Client_x64_release.exe /p /dx11 /nsuse '/dxr' switch for DirectX Raytracing
Client_x64_release.exe /p /dxr /nsuse '/su' switch To quickly use offline mode
Client_x64_release.exe /p /dxr /ns /suuse '/steam' switch to login with steam account
Client_x64_release.exe /p /dxr /ns /steam
- In the game, press the '`' key to open the console.
- Enter the load_plugin file's name in the console. ex) load_plugin GameHook_x64_debug.dll
- To unload the plugin, enter unload_plugin
Use the '/pl' switch to specify the file name of the plugin.
For example, when the plugin file name is GameHook_x64_debug.dll
- goto to '/VH_SDK/VOXEL_HORIZON/App/'
- Enter a command or create a shortcut in the following folder path.
Client_x64_release.exe /p /dxr /ns /pl GameHook_x64_debug.dll
- Open the Plugin Project in Visual Studio.
- Project -> Properties -> Debugging -> Command
'your dev folder'\VH_SDK\VOXEL_HORIZON\App\Client_x64_release.exe - Project -> Properties -> Debugging -> Working Directory
'your dev folder'\VH_SDK\VOXEL_HORIZON\App\ - Project -> Properties -> Debugging -> Command Arguments
/p /dxr /ns /su /pl GameHook_x64_release.dll - Set a breakpoint at the desired location in the code and press 'F5' key to start debugging.