-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.3.0.0 * Update for Rimworld 1.3 * The Numbering scheme has been changed, mostly to back to what it was, the first two will match the version of Rimworld it was built for, then the next two will be major and minor versions of the mod.
- Loading branch information
Showing
31 changed files
with
2,186 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{980DEC02-7956-4981-98E6-E82BB4EB6FFA}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>EnhancedDevelopment.EnhancedOptions</RootNamespace> | ||
<AssemblyName>ED-EnhancedOptions</AssemblyName> | ||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<TargetFrameworkProfile /> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>false</DebugSymbols> | ||
<DebugType>none</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>..\..\ED-EnhancedOptions\1.3\Assemblies\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>none</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>..\..\ED-EnhancedOptions\1.3\Assemblies\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="0Harmony"> | ||
<HintPath>..\..\..\..\RW-DLL\Harmony\~Release 4.7.2\0Harmony.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="Assembly-CSharp"> | ||
<HintPath>..\..\..\..\RW-DLL\1.3\Assembly-CSharp.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Runtime.InteropServices.RuntimeInformation" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Xml" /> | ||
<Reference Include="UnityEngine"> | ||
<HintPath>..\..\..\..\RW-DLL\1.3\UnityEngine.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.CoreModule"> | ||
<HintPath>..\..\..\..\RW-DLL\1.3\UnityEngine.CoreModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.IMGUIModule"> | ||
<HintPath>..\..\..\..\RW-DLL\1.3\UnityEngine.IMGUIModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
<Reference Include="UnityEngine.TextRenderingModule"> | ||
<HintPath>..\..\..\..\RW-DLL\1.3\UnityEngine.TextRenderingModule.dll</HintPath> | ||
<Private>False</Private> | ||
</Reference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="GameComps\GameComponent_LogFileCleanup.cs" /> | ||
<Compile Include="Patches\PatchBlightGraphics.cs" /> | ||
<Compile Include="Patches\Patch.cs" /> | ||
<Compile Include="Patches\PatchBuildingTurretGunCE.cs" /> | ||
<Compile Include="Patches\PatchDebug.cs" /> | ||
<Compile Include="Patches\PatchPreventGreateMemoryTrait.cs" /> | ||
<Compile Include="Patches\PatchSkillRecord.cs" /> | ||
<Compile Include="Patches\PatchFireWatcher.cs" /> | ||
<Compile Include="Patches\PatchRoofCollapseBuffer.cs" /> | ||
<Compile Include="Patches\PatchBuildingTrap.cs" /> | ||
<Compile Include="Patches\PatchBuildingTurretGun.cs" /> | ||
<Compile Include="Patches\PatchPerfs.cs" /> | ||
<Compile Include="Patches\PatchCompBreakdownable.cs" /> | ||
<Compile Include="Patches\PatchMainTabsRoot.cs" /> | ||
<Compile Include="Patches\PatchSkillUI.cs" /> | ||
<Compile Include="Patches\PatchToils_Recipe.cs" /> | ||
<Compile Include="Patches\PatchTimeSlower.cs" /> | ||
<Compile Include="Patches\PatchTimeControls.cs" /> | ||
<Compile Include="Patches\PatchPowerNetGraphics.cs" /> | ||
<Compile Include="Patches\PatchLetterStack.cs" /> | ||
<Compile Include="Patches\PatchCompSchedule.cs" /> | ||
<Compile Include="Patches\PatchPlant.cs" /> | ||
<Compile Include="Patcher.cs" /> | ||
<Compile Include="Mod_EnhancedOptions.cs" /> | ||
<Compile Include="ModSettings_EnhancedOptions.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="packages.config" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
Other similar extension points exist, see Microsoft.Common.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
/*using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using Verse; | ||
namespace EnhancedDevelopment.EnhancedOptions.GameComps | ||
{ | ||
class GameComponent_LogFileCleanup : Verse.GameComponent | ||
{ | ||
private System.IO.FileInfo LogFile; | ||
public GameComponent_LogFileCleanup(Game game)// : base() | ||
{ | ||
Log.Message("GameComponent_LogFileCleanup.GameComponent_LogFileCleanup()"); | ||
if (LogFile != null) | ||
{ | ||
Log.Message("GameComponent_LogFileCleanup Skipping Setup, LogFile initilised."); | ||
return; | ||
} | ||
String _FolderNamre = System.IO.Directory.GetDirectories("./").Where(d => d.Contains("Data")).FirstOrDefault(); | ||
if (_FolderNamre == null) | ||
{ | ||
Log.Message("GameComponent_LogFileCleanup Failed, Folder not Found."); | ||
return; | ||
} | ||
this.LogFile = new System.IO.FileInfo("./" + _FolderNamre + "/output_log.txt"); | ||
Log.Message("LogFile Found: " + this.LogFile.Exists.ToString()); | ||
} | ||
public override void GameComponentTick() | ||
{ | ||
base.GameComponentTick(); | ||
//Only Run if Enabled. | ||
if (!Mod_EnhancedOptions.Settings.CheckLogFileSize) | ||
{ | ||
return; | ||
} | ||
//In - Game Time Ticks Real Time | ||
//1.5 Min 60 1s | ||
//1 Hour 60 Min 2,500 41s | ||
//1 Day 24 Hours 60,000 16m 40s | ||
//1 Quadrum 15 Days 900,000 4h 10m 0s | ||
//1 Year 4 Quadrums 3,600,000 16h 40m 0s | ||
//Only Run every x Ticks. | ||
if (Find.TickManager.TicksGame % 60000 != 0) | ||
{ | ||
return; | ||
} | ||
//Only Run if LogFile is Setup | ||
if (this.LogFile == null) | ||
{ | ||
return; | ||
} | ||
this.LogFile.Refresh(); | ||
long _FileSizeInBytes = this.LogFile.Length; | ||
long _FileSizeInMB = _FileSizeInBytes / (1024 * 1024); | ||
int _MaxFileSizeMB = Mod_EnhancedOptions.Settings.LogFileSizeThresholdMB; | ||
//Log.Message("_FileSizeInMB" + _FileSizeInMB); | ||
if (_FileSizeInMB > _MaxFileSizeMB) | ||
{ | ||
String _Message = "Warning: Log File Size Exceeds " + _MaxFileSizeMB + " MB - Current Size " + _FileSizeInMB + " MB. This Probably indicates repeating Errors that should be fixed."; | ||
//Log.Error(_Message); | ||
Find.LetterStack.ReceiveLetter("Warning: Log File Size", _Message, RimWorld.LetterDefOf.NegativeEvent, (string)null); | ||
Messages.Message(_Message, RimWorld.MessageTypeDefOf.NegativeEvent); | ||
} | ||
} | ||
} | ||
} | ||
*/ |
Oops, something went wrong.