Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
3a9176e
Created Inital workflow
97saundersj Dec 15, 2024
ca32120
renamed main branch in workflow
97saundersj Dec 15, 2024
8f9b30a
removed bootstrap step
97saundersj Dec 15, 2024
591fc86
Changes based on compiling source info
97saundersj Dec 15, 2024
768640d
Changes
97saundersj Dec 15, 2024
24386d3
more changes
97saundersj Dec 15, 2024
edae9ff
changes
97saundersj Dec 15, 2024
0deadd6
trying something different
97saundersj Dec 15, 2024
10648e8
fixed name
97saundersj Dec 15, 2024
5217ec7
test
97saundersj Dec 15, 2024
fb50b52
name
97saundersj Dec 15, 2024
cc2321b
fix?
97saundersj Dec 15, 2024
1d048b4
fix minhooks?
97saundersj Dec 15, 2024
b4e9a01
fix issue
97saundersj Dec 15, 2024
56943fb
fix?
97saundersj Dec 15, 2024
859445e
fix issue with moving files to halo dir
97saundersj Dec 15, 2024
f36f94b
testing
97saundersj Dec 15, 2024
49953f3
updated ci build
97saundersj Dec 15, 2024
6d4340d
updated release
97saundersj Dec 15, 2024
3f96722
filex uploaded files
97saundersj Dec 15, 2024
87bd756
Updated build steps
97saundersj Dec 15, 2024
5d2f286
updated artifact location
97saundersj Dec 15, 2024
c3f300d
attempt auto comment
97saundersj Dec 15, 2024
5f8540c
Attempting Comment fix
97saundersj Dec 16, 2024
7f2a86a
Changed to Linux
97saundersj Dec 16, 2024
f85ccfc
reverted back to windows
97saundersj Dec 16, 2024
ad42dac
Updated artifact version
97saundersj Dec 16, 2024
4deff4d
Added Python prebuild step
97saundersj Dec 20, 2024
5793d26
Updated pipeline Configuration
97saundersj Dec 20, 2024
3158d31
Ensure that Package will always be built
97saundersj Dec 22, 2024
536dcbc
Merge branch 'master' of https://github.com/97saundersj/HaloCEVR into…
97saundersj Dec 22, 2024
e064456
Reverted accidental changes
97saundersj Dec 22, 2024
ab7b58b
Updated readme
97saundersj Dec 22, 2024
2109ba6
Removed redunant Bindings Build in post build
97saundersj Dec 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/build-on-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Package Pull Request

on:
pull_request:
branches:
- master

jobs:
build:
runs-on: windows-latest

steps:
# Step 1: Checkout repository
- name: Checkout repository
uses: actions/checkout@v3

# Step 2: Set up MS Build
- name: Set up MS Build
uses: microsoft/setup-msbuild@v1

# Step 3: Build the project using the Package configuration
- name: Build HaloCEVR
run: |
msbuild HaloCEVR.sln /p:Configuration=Package /p:Platform=x86 /p:WholeProgramOptimization=false

# Step 4: Upload Zip file
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: HaloCEVR
path: HaloCEVR.zip

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ mono_crash.*
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Pp]ackage/
[Rr]eleases/
x64/
x86/
Expand Down
6 changes: 6 additions & 0 deletions HaloCEVR.sln
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Package|x64 = Package|x64
Package|x86 = Package|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
Expand All @@ -17,6 +19,10 @@ Global
{4EE74470-E365-48E4-9920-237AA8B6F6D0}.Debug|x64.Build.0 = Debug|x64
{4EE74470-E365-48E4-9920-237AA8B6F6D0}.Debug|x86.ActiveCfg = Debug|Win32
{4EE74470-E365-48E4-9920-237AA8B6F6D0}.Debug|x86.Build.0 = Debug|Win32
{4EE74470-E365-48E4-9920-237AA8B6F6D0}.Package|x64.ActiveCfg = Package|x64
{4EE74470-E365-48E4-9920-237AA8B6F6D0}.Package|x64.Build.0 = Package|x64
{4EE74470-E365-48E4-9920-237AA8B6F6D0}.Package|x86.ActiveCfg = Package|Win32
{4EE74470-E365-48E4-9920-237AA8B6F6D0}.Package|x86.Build.0 = Package|Win32
{4EE74470-E365-48E4-9920-237AA8B6F6D0}.Release|x64.ActiveCfg = Release|x64
{4EE74470-E365-48E4-9920-237AA8B6F6D0}.Release|x64.Build.0 = Release|x64
{4EE74470-E365-48E4-9920-237AA8B6F6D0}.Release|x86.ActiveCfg = Release|Win32
Expand Down
89 changes: 89 additions & 0 deletions HaloCEVR/HaloCEVR.vcxproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Package|Win32">
<Configuration>Package</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Package|x64">
<Configuration>Package</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
Expand Down Expand Up @@ -39,6 +47,14 @@
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Package|Win32'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
<DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
Expand All @@ -52,6 +68,13 @@
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Package|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>Unicode</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
Expand All @@ -63,12 +86,18 @@
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Package|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Package|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<IncludePath>$(VC_IncludePath);$(WindowsSDK_IncludePath);$(SolutionDir)ThirdParty\MinHook\include</IncludePath>
Expand All @@ -80,6 +109,13 @@
<LibraryPath>$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);$(SolutionDir)ThirdParty\MinHook\lib;$(SolutionDir)ThirdParty\OpenVR\lib</LibraryPath>
<TargetName>d3d9</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Package|Win32'">
<IncludePath>$(VC_IncludePath);$(WindowsSDK_IncludePath);$(SolutionDir)ThirdParty\MinHook\include</IncludePath>
<LibraryPath>$(VC_LibraryPath_x86);$(WindowsSDK_LibraryPath_x86);$(SolutionDir)ThirdParty\MinHook\lib;$(SolutionDir)ThirdParty\OpenVR\lib</LibraryPath>
<TargetName>d3d9</TargetName>
<OutDir>$(SolutionDir)$(Configuration)\</OutDir>
<IntDir>$(Configuration)\</IntDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
Expand Down Expand Up @@ -113,6 +149,7 @@
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<LanguageStandard>stdcpp17</LanguageStandard>
<WholeProgramOptimization>false</WholeProgramOptimization>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -128,6 +165,39 @@
<Command>xcopy /D /Y "$(TargetDir)d3d9.dll" "E:\Halo"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Package|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;NDEBUG;HALOCEVR_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
<LanguageStandard>stdcpp17</LanguageStandard>
<WholeProgramOptimization>false</WholeProgramOptimization>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableUAC>false</EnableUAC>
<ModuleDefinitionFile>
</ModuleDefinitionFile>
<IgnoreSpecificDefaultLibraries>LIBCMT</IgnoreSpecificDefaultLibraries>
</Link>
<PostBuildEvent>
<Command>
cd "$(SolutionDir)"
call "makerelease.bat"</Command>
</PostBuildEvent>
<PreBuildEvent>
<Command>cd "$(SolutionDir)Bindings"
call "py" manifest.py</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
Expand Down Expand Up @@ -162,6 +232,25 @@
<EnableUAC>false</EnableUAC>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Package|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;HALOCEVR_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>NotUsing</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableUAC>false</EnableUAC>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="Helpers\CmdLineArgs.cpp" />
<ClCompile Include="Helpers\Cutscene.cpp" />
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,4 @@ This should be everything that needs to be done inside of the HaloCEVR project,
4. Build the libMinHook project, the result of which should be a libMinHook.x86.lib file.
5. Replace the file libMinHook.x86.lib in the HaloCEVR folder found at HaloCEVR-master\ThirdParty\MinHook\lib with this newly compiled libMinHook.x86.lib file

You should now be able to build successfully, this will generate a d3d9.dll file, using the "makerelease" bat file we can create a zip containing the d3d9.dll and the VR folder. You will need to add openvr_api.dll yourself, either by adding to the release folder so the bat file can pickup copy and zip it, or by adding it directly into your halo CE installation directory.
You should now be able to build successfully, this will generate a d3d9.dll file, using the "makerelease" bat file we can create a zip containing the d3d9.dll and the VR folder. Alternatively you can generate the zip by building the project using the Package Configuration. You will need to add openvr_api.dll yourself, either by adding to the release folder so the bat file can pickup copy and zip it, or by adding it directly into your halo CE installation directory.