Skip to content

Commit bc979c3

Browse files
committed
New hash and conditional tester builds
1 parent 8c8d45e commit bc979c3

File tree

3 files changed

+45
-2
lines changed

3 files changed

+45
-2
lines changed

COMPILING.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,23 @@ $ dotnet build --configuration Release
2727
```
2828

2929
The built plugin assemblies can now be found inside the `bin` folder.
30+
31+
## For R.E.P.O. Testers
32+
33+
The main RepoXR codebase is designed to be compatible with all official R.E.P.O. releases (including some tester builds).
34+
However, if you want to develop against **private tester builds**, there are a few extra steps to follow.
35+
36+
Since tester builds are private, there are **no public NuGet packages available** for these versions. To let your local build reference the tester assemblies:
37+
38+
Add the following content, updating the `TesterGamePath` if your game is installed elsewhere:
39+
40+
```xml
41+
<Project>
42+
<PropertyGroup>
43+
<USE_TESTER>true</USE_TESTER>
44+
<TesterGamePath>C:\Program Files (x86)\Steam\steamapps\common\REPO</TesterGamePath>
45+
</PropertyGroup>
46+
</Project>
47+
```
48+
49+
> **Warning**: Do not share game code or mod code that targets private tester builds until those builds are officially public. Use private repositories or branches, and only merge changes into the main repository once the builds are public.

RepoXR.csproj

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
<RootNamespace>RepoXR</RootNamespace>
1818
<TargetFramework>netstandard2.1</TargetFramework>
1919
</PropertyGroup>
20+
21+
<PropertyGroup>
22+
<USE_TESTER>false</USE_TESTER>
23+
</PropertyGroup>
2024

2125
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
2226
<DebugType>embedded</DebugType>
@@ -34,7 +38,6 @@
3438
<PackageReference Include="Facepunch.Steamworks" Version="2.3.3" />
3539
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
3640
<PackageReference Include="PhotonUnityNetworking" Version="0.1.2" />
37-
<PackageReference Include="REPO" Version="0.3.1" />
3841
<PackageReference Include="Unity.InputSystem" Version="1.14.2" />
3942
<PackageReference Include="Unity.Rendering.PostProcessing" Version="3.4.0" />
4043
<PackageReference Include="Unity.RenderPipelines.Core" Version="14.0.11" />
@@ -47,6 +50,25 @@
4750
<PackageReference Include="UnityEngine.Modules" Version="2022.3.67" IncludeAssets="compile" />
4851
<PackageReference Include="UnityEngine.UI" Version="1.0.0" />
4952
</ItemGroup>
53+
54+
<!-- R.E.P.O. main game assembly for normal users -->
55+
<ItemGroup Condition="'$(USE_TESTER)' == 'false'">
56+
<PackageReference Include="REPO" Version="0.3.2" />
57+
</ItemGroup>
58+
59+
<!-- R.E.P.O. tester game assemblies for testers -->
60+
<ItemGroup Condition="'$(USE_TESTER)' == 'true'">
61+
<PackageReference Include="BepInEx.AssemblyPublicizer.MSBuild" Version="0.5.0-beta.2">
62+
<PrivateAssets>all</PrivateAssets>
63+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
64+
</PackageReference>
65+
<Reference Include="Assembly-CSharp" Publicize="true">
66+
<HintPath>$(TesterGamePath)\REPO_Data\Managed\Assembly-CSharp.dll</HintPath>
67+
</Reference>
68+
<Reference Include="Assembly-CSharp-firstpass" Publicize="true">
69+
<HintPath>$(TesterGamePath)\REPO_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
70+
</Reference>
71+
</ItemGroup>
5072

5173
<ItemGroup>
5274
<None Include="README.md" Pack="true" PackagePath="\" />

Source/Plugin.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ public class Plugin : BaseUnityPlugin
3535
private readonly string[] GAME_ASSEMBLY_HASHES =
3636
[
3737
"137D6E8475DEA976831CC95D7F56F4B7DA311E52A57B4C420591A5122F25589F", // v0.3.0
38-
"90F31BB66FB6FFA4793A1FE996312B5018AC4AF2E57D0037A98F36DFA201AF45" // v0.3.1
38+
"90F31BB66FB6FFA4793A1FE996312B5018AC4AF2E57D0037A98F36DFA201AF45", // v0.3.1
39+
"C4C1FCA809009DBFA0E72311D36332031DDA5BFAE91DF5C2124F18B5AC151CE6" // v0.3.2
3940
];
4041

4142
public new static Config Config { get; private set; } = null!;

0 commit comments

Comments
 (0)