New in 0.1.2: - Debug color overlay: tint cars by physics state (yellow=frozen, cyan=fast-path, magenta=full-accuracy), individual toggles per state - Exclude locomotives from Physics Optimizer and Auto Freeze - Debug stats line in overlay showing live counts per state - Resync quality 1/16 option added Defaults tuned for new installs: - Resync quality: 1/4 -> 1/8 - Speed threshold: ~0.7 mph -> 0.2 mph - Overlay opacity: 100% -> 75% Rename: Physics Overhaul -> Physics Optimizer throughout
70 lines
3.2 KiB
XML
70 lines
3.2 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>netstandard2.1</TargetFramework>
|
|
<LangVersion>10</LangVersion>
|
|
<AssemblyName>RailroaderPhysicsOverhaul</AssemblyName>
|
|
<RootNamespace>RailroaderPhysicsOverhaul</RootNamespace>
|
|
<OutputPath>..\..\Railroader\Mods\RailroaderPhysicsOverhaul\</OutputPath>
|
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
|
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
|
<!-- Don't copy game DLLs to output - they live in the game folder -->
|
|
<CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>
|
|
<ModVersion>0.1.2</ModVersion>
|
|
</PropertyGroup>
|
|
|
|
<!-- Release build only: package the mod into a zip ready for Forgejo/UMM upload.
|
|
Zip structure: RailroaderPhysicsOverhaul/Info.json + .dll
|
|
UMM drag-and-drop install expects exactly this layout. -->
|
|
<Target Name="PackageRelease" AfterTargets="Build" Condition="'$(Configuration)' == 'Release'">
|
|
<PropertyGroup>
|
|
<_PkgDir>$(MSBuildProjectDirectory)\obj\pkg\RailroaderPhysicsOverhaul\</_PkgDir>
|
|
<_ZipOut>$(MSBuildProjectDirectory)\RailroaderPhysicsOverhaul-$(ModVersion).zip</_ZipOut>
|
|
</PropertyGroup>
|
|
<RemoveDir Directories="$(MSBuildProjectDirectory)\obj\pkg" />
|
|
<MakeDir Directories="$(_PkgDir)" />
|
|
<Copy SourceFiles="$(OutputPath)RailroaderPhysicsOverhaul.dll;$(OutputPath)Info.json"
|
|
DestinationFolder="$(_PkgDir)" />
|
|
<Exec Command="powershell -NoProfile -Command "Compress-Archive -Path '$(MSBuildProjectDirectory)\obj\pkg\RailroaderPhysicsOverhaul' -DestinationPath '$(_ZipOut)' -Force"" />
|
|
<Message Text="Release zip ready: $(_ZipOut)" Importance="High" />
|
|
</Target>
|
|
|
|
<ItemGroup>
|
|
<!-- Info.json is required by UMM in the output mod folder -->
|
|
<None Include="Info.json">
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
</None>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Reference Include="Assembly-CSharp">
|
|
<HintPath>..\Railroader_Data\Managed\Assembly-CSharp.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
<Reference Include="UnityModManager">
|
|
<HintPath>..\Railroader_Data\Managed\UnityModManager\UnityModManager.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
<Reference Include="0Harmony">
|
|
<HintPath>..\Railroader_Data\Managed\UnityModManager\0Harmony.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
<Reference Include="UnityEngine.CoreModule">
|
|
<HintPath>..\Railroader_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
<Reference Include="UnityEngine.IMGUIModule">
|
|
<HintPath>..\Railroader_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
<Reference Include="UnityEngine.PhysicsModule">
|
|
<HintPath>..\Railroader_Data\Managed\UnityEngine.PhysicsModule.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
<Reference Include="UnityEngine.JSONSerializeModule">
|
|
<HintPath>..\Railroader_Data\Managed\UnityEngine.JSONSerializeModule.dll</HintPath>
|
|
<Private>false</Private>
|
|
</Reference>
|
|
</ItemGroup>
|
|
|
|
</Project>
|