master
t0stiman 2023-11-12 16:35:28 +01:00
parent 49226d9fdf
commit 4e4ead80f3
8 changed files with 99 additions and 137 deletions

View File

@ -1,8 +0,0 @@
<Project>
<PropertyGroup>
<ReferencePath>
G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\
</ReferencePath>
<AssemblySearchPaths>$(AssemblySearchPaths);$(ReferencePath);</AssemblySearchPaths>
</PropertyGroup>
</Project>

View File

@ -1,13 +1,9 @@
using DV.ThingTypes; using DV.ThingTypes;
using HarmonyLib; using HarmonyLib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static dumb282tweaks.Main;
using UnityEngine; using UnityEngine;
using static dumb282tweaks.Main;
namespace dumb282tweaks; namespace dumb282tweaks;
[HarmonyPatch(typeof(TrainCar), "Start")] [HarmonyPatch(typeof(TrainCar), "Start")]

View File

@ -1,10 +1,6 @@
using HarmonyLib; using HarmonyLib;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine; using UnityEngine;
using static dumb282tweaks.Main; using static dumb282tweaks.Main;
namespace dumb282tweaks; namespace dumb282tweaks;

View File

@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityModManagerNet; using UnityModManagerNet;
using static dumb282tweaks.Settings; using static dumb282tweaks.Settings;

View File

@ -7,10 +7,6 @@
<WarningsAsErrors>CS8600;CS8602;CS8603</WarningsAsErrors> <WarningsAsErrors>CS8600;CS8602;CS8603</WarningsAsErrors>
</PropertyGroup> </PropertyGroup>
<!-- Derail Valley -->
<!-- Unity -->
<!-- Mod Loader --> <!-- Mod Loader -->
<ItemGroup> <ItemGroup>
<PackageReference Include="UnityModManager" Version="0.27.2" /> <PackageReference Include="UnityModManager" Version="0.27.2" />
@ -22,96 +18,99 @@
<PackageReference Include="Nullable" Version="1.3.1" PrivateAssets="all" /> <PackageReference Include="Nullable" Version="1.3.1" PrivateAssets="all" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Reference Include="0Harmony"> <!-- Derail Valley -->
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\UnityModManager\0Harmony.dll</HintPath>
</Reference> <Reference Include="0Harmony" />
<Reference Include="Assembly-CSharp"> <Reference Include="Assembly-CSharp" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\Assembly-CSharp.dll</HintPath> <Reference Include="DV.BrakeSystem" />
</Reference> <Reference Include="DV.Common" />
<Reference Include="Assembly-CSharp-firstpass"> <Reference Include="DV.ControllerAnchors" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\Assembly-CSharp-firstpass.dll</HintPath> <Reference Include="DV.Highlighting" />
</Reference> <Reference Include="DV.Interaction" />
<Reference Include="DV.BrakeSystem"> <Reference Include="DV.Inventory" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\DV.BrakeSystem.dll</HintPath> <Reference Include="DV.Localization" />
</Reference> <Reference Include="DV.NAudio" />
<Reference Include="DV.Common"> <Reference Include="DV.PointSet" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\DV.Common.dll</HintPath> <Reference Include="DV.RadioPlayer" />
</Reference> <Reference Include="DV.Scenarios.CRUD" />
<Reference Include="DV.ControllerAnchors"> <Reference Include="DV.Simulation" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\DV.ControllerAnchors.dll</HintPath> <Reference Include="DV.Telemetry" />
</Reference> <Reference Include="DV.TerrainSystem" />
<Reference Include="DV.Highlighting"> <Reference Include="DV.TerrainTools" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\DV.Highlighting.dll</HintPath> <Reference Include="DV.ThingTypes" />
</Reference> <Reference Include="DV.UI" />
<Reference Include="DV.Interaction"> <Reference Include="DV.UIFramework" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\DV.Interaction.dll</HintPath> <Reference Include="DV.UserManagement" />
</Reference> <Reference Include="DV.Utils" />
<Reference Include="DV.Inventory"> <Reference Include="DV.WeatherSystem" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\DV.Inventory.dll</HintPath>
</Reference> <!-- Unity -->
<Reference Include="DV.Localization">
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\DV.Localization.dll</HintPath> <Reference Include="UnityEngine" />
</Reference> <Reference Include="UnityEngine.AccessibilityModule" />
<Reference Include="DV.NAudio"> <Reference Include="UnityEngine.AIModule" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\DV.NAudio.dll</HintPath> <Reference Include="UnityEngine.AndroidJNIModule" />
</Reference> <Reference Include="UnityEngine.AnimationModule" />
<Reference Include="DV.PointSet"> <Reference Include="UnityEngine.ARModule" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\DV.PointSet.dll</HintPath> <Reference Include="UnityEngine.AssetBundleModule" />
</Reference> <Reference Include="UnityEngine.AudioModule" />
<Reference Include="DV.RadioPlayer"> <Reference Include="UnityEngine.ClothModule" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\DV.RadioPlayer.dll</HintPath> <Reference Include="UnityEngine.ClusterInputModule" />
</Reference> <Reference Include="UnityEngine.ClusterRendererModule" />
<Reference Include="DV.Scenarios.CRUD"> <Reference Include="UnityEngine.CoreModule" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\DV.Scenarios.CRUD.dll</HintPath> <Reference Include="UnityEngine.CrashReportingModule" />
</Reference> <Reference Include="UnityEngine.DirectorModule" />
<Reference Include="DV.Simulation"> <Reference Include="UnityEngine.DSPGraphModule" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\DV.Simulation.dll</HintPath> <Reference Include="UnityEngine.GameCenterModule" />
</Reference> <Reference Include="UnityEngine.GridModule" />
<Reference Include="DV.Telemetry"> <Reference Include="UnityEngine.HotReloadModule" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\DV.Telemetry.dll</HintPath> <Reference Include="UnityEngine.ImageConversionModule" />
</Reference> <Reference Include="UnityEngine.IMGUIModule" />
<Reference Include="DV.TerrainSystem"> <Reference Include="UnityEngine.InputLegacyModule" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\DV.TerrainSystem.dll</HintPath> <Reference Include="UnityEngine.InputModule" />
</Reference> <Reference Include="UnityEngine.JSONSerializeModule" />
<Reference Include="DV.TerrainTools"> <Reference Include="UnityEngine.LocalizationModule" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\DV.TerrainTools.dll</HintPath> <Reference Include="UnityEngine.ParticleSystemModule" />
</Reference> <Reference Include="UnityEngine.PerformanceReportingModule" />
<Reference Include="DV.ThingTypes"> <Reference Include="UnityEngine.Physics2DModule" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\DV.ThingTypes.dll</HintPath> <Reference Include="UnityEngine.PhysicsModule" />
</Reference> <Reference Include="UnityEngine.ProfilerModule" />
<Reference Include="DV.UI"> <Reference Include="UnityEngine.ScreenCaptureModule" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\DV.UI.dll</HintPath> <Reference Include="UnityEngine.SharedInternalsModule" />
</Reference> <Reference Include="UnityEngine.SpatialTracking" />
<Reference Include="DV.UIFramework"> <Reference Include="UnityEngine.SpriteMaskModule" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\DV.UIFramework.dll</HintPath> <Reference Include="UnityEngine.SpriteShapeModule" />
</Reference> <Reference Include="UnityEngine.StreamingModule" />
<Reference Include="DV.UserManagement"> <Reference Include="UnityEngine.SubstanceModule" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\DV.UserManagement.dll</HintPath> <Reference Include="UnityEngine.SubsystemsModule" />
</Reference> <Reference Include="UnityEngine.TerrainModule" />
<Reference Include="DV.Utils"> <Reference Include="UnityEngine.TerrainPhysicsModule" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\DV.Utils.dll</HintPath> <Reference Include="UnityEngine.TextCoreModule" />
</Reference> <Reference Include="UnityEngine.TextRenderingModule" />
<Reference Include="DV.WeatherSystem"> <Reference Include="UnityEngine.TilemapModule" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\DV.WeatherSystem.dll</HintPath> <Reference Include="UnityEngine.TLSModule" />
</Reference> <Reference Include="UnityEngine.UI" />
<Reference Include="UnityEngine"> <Reference Include="UnityEngine.UIElementsModule" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\UnityEngine.dll</HintPath> <Reference Include="UnityEngine.UIModule" />
</Reference> <Reference Include="UnityEngine.UmbraModule" />
<Reference Include="UnityEngine.AssetBundleModule"> <Reference Include="UnityEngine.UNETModule" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\UnityEngine.AssetBundleModule.dll</HintPath> <Reference Include="UnityEngine.UnityAnalyticsModule" />
</Reference> <Reference Include="UnityEngine.UnityConnectModule" />
<Reference Include="UnityEngine.CoreModule"> <Reference Include="UnityEngine.UnityTestProtocolModule" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\UnityEngine.CoreModule.dll</HintPath> <Reference Include="UnityEngine.UnityWebRequestAssetBundleModule" />
</Reference> <Reference Include="UnityEngine.UnityWebRequestAudioModule" />
<Reference Include="UnityEngine.IMGUIModule"> <Reference Include="UnityEngine.UnityWebRequestModule" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath> <Reference Include="UnityEngine.UnityWebRequestTextureModule" />
</Reference> <Reference Include="UnityEngine.UnityWebRequestWWWModule" />
<Reference Include="UnityEngine.UI"> <Reference Include="UnityEngine.VehiclesModule" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\UnityEngine.UI.dll</HintPath> <Reference Include="UnityEngine.VFXModule" />
</Reference> <Reference Include="UnityEngine.VideoModule" />
<Reference Include="UnityModManager"> <Reference Include="UnityEngine.VRModule" />
<HintPath>G:\SteamLibrary\steamapps\common\Derail Valley\DerailValley_Data\Managed\UnityModManager\UnityModManager.dll</HintPath> <Reference Include="UnityEngine.WindModule" />
</Reference> <Reference Include="UnityEngine.XR.LegacyInputHelpers" />
<Reference Include="UnityEngine.XRModule" />
<Reference Include="UnityModManager" />
</ItemGroup> </ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent"> <Target Name="PostBuild" AfterTargets="PostBuildEvent">
@ -119,7 +118,8 @@
<Copy SourceFiles="$(TargetPath)" DestinationFolder="../build/" /> <Copy SourceFiles="$(TargetPath)" DestinationFolder="../build/" />
<!-- Package after Release build --> <!-- Package after Release build -->
<Exec Condition="'$(ConfigurationName)' == 'Release' And '$(OS)' == 'Windows_NT'" Command="powershell -executionpolicy bypass -Command &quot;(../package.ps1)&quot;" /> <Exec Condition="'$(OS)' == 'Windows_NT'" Command="powershell -executionpolicy bypass ../package.ps1 -NoArchive -OutputDirectory 'D:\Programs\Derail Valley\Mods'" />
<Exec Condition="'$(ConfigurationName)' == 'Release' And '$(OS)' != 'Windows_NT'" Command="pwsh -Command &quot;(../package.ps1)&quot;" /> <!-- todo fix linux below-->
<!-- <Exec Condition="'$(ConfigurationName)' == 'Release' And '$(OS)' != 'Windows_NT'" Command="pwsh -Command &quot;(../package.ps1)&quot;" />-->
</Target> </Target>
</Project> </Project>

View File

@ -21,13 +21,6 @@ $ZipOutDir = "$ZipWorkDir/$modId"
New-Item "$ZipOutDir" -ItemType Directory -Force New-Item "$ZipOutDir" -ItemType Directory -Force
Copy-Item -Force -Path $FilesToInclude -Destination "$ZipOutDir" Copy-Item -Force -Path $FilesToInclude -Destination "$ZipOutDir"
# Get-ChildItem $sourceDir -filter "*" -recurse | `
# foreach{
# $targetFile = $targetDir + $_.FullName.SubString($sourceDir.Length);
# New-Item -ItemType File -Path $targetFile -Force;
# Copy-Item $_.FullName -destination $targetFile
# }
if (!$NoArchive) if (!$NoArchive)
{ {
$FILE_NAME = "$DistDir/${modId}_v$modVersion.zip" $FILE_NAME = "$DistDir/${modId}_v$modVersion.zip"

View File

@ -1,3 +0,0 @@
powershell -executionpolicy bypass .\package.ps1 -NoArchive -OutputDirectory `'G:\SteamLibrary\steamapps\common\Derail Valley\Mods`'
# Start-Sleep -Seconds 1
# steam steam://rungameid/588030

View File

@ -1,7 +0,0 @@
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,0
[InternetShortcut]
IDList=
IconIndex=0
URL=steam://rungameid/588030
IconFile=C:\Program Files (x86)\Steam\steam\games\ce91a672ac33c3038e50fc02fffa67e7133d2bf1.ico