Skip to content

Commit

Permalink
Creating Version 1.3.0.0
Browse files Browse the repository at this point in the history
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
jaxxa committed Aug 12, 2021
1 parent d24e8bf commit 0b1b819
Show file tree
Hide file tree
Showing 31 changed files with 2,186 additions and 4 deletions.
3 changes: 2 additions & 1 deletion ED-EnhancedOptions/About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
<li>1.0</li>
<li>1.1</li>
<li>1.2</li>
<li>1.3</li>
</supportedVersions>
<author>Jaxxa</author>
<url>https://github.com/jaxxa/JaxxaRimworldReleaseCollection/blob/master/README.md</url>
<description>Version: 2.1.0.0
<description>Version: 1.3.0.0
Links to all my mods including non steam versions available at: https://github.com/jaxxa/JaxxaRimworldReleaseCollection/blob/master/README.md

This now requires the seperate Harmony Mod:
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,17 @@ This is the Readme for ED-EnhancedOptions

#Change Log

2.1.0.0
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.

1.2.0.0 (Was 2.1.0.0)
* Update for Rimworld 1.2

2.0.0.1
1.1.0.1 (Was 2.0.0.1)
* Depends on seperate Harmony Mod

2.0.0.0
1.1.0.0 (Was 2.0.0.0)
* Update for Rimworld 1.1

1.0.0.1
Expand Down
107 changes: 107 additions & 0 deletions Source/1.3/ED-EnhancedOptions_1.3.csproj
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>
83 changes: 83 additions & 0 deletions Source/1.3/GameComps/GameComponent_LogFileCleanup.cs
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);
}
}
}
}
*/
Loading

0 comments on commit 0b1b819

Please sign in to comment.