Skip to content

Commit

Permalink
Update 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronCRobinson committed Aug 21, 2021
1 parent 86dd4d4 commit 6b849f0
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 18 deletions.
15 changes: 13 additions & 2 deletions About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
<ModMetaData>
<name>Map Renderer</name>
<author>Why_is_that</author>
<description></description>
<targetVersion>1.0.0</targetVersion>
<supportedVersions>
<li>1.3</li>
</supportedVersions>
<modDependencies>
<li>
<packageId>brrainz.harmony</packageId>
<displayName>Harmony</displayName>
<steamWorkshopUrl>steam://url/CommunityFilePage/2009463077</steamWorkshopUrl>
<downloadUrl>https://github.com/pardeike/HarmonyRimWorld/releases/latest</downloadUrl>
</li>
</modDependencies>
<packageId>wit.maprenderer</packageId>
<description>Generates a rendering of a full map.</description>
</ModMetaData>
1 change: 0 additions & 1 deletion About/PublishedFileId.txt

This file was deleted.

Binary file modified Assemblies/0System.Drawing.dll
Binary file not shown.
Binary file modified Assemblies/1SettingsHelper.dll
Binary file not shown.
Binary file modified Assemblies/MapRenderer.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# MapRender [![RimWorld 1.0](https://img.shields.io/badge/RimWorld-1.0-green.svg?longCache=true&style=plastic)](http://rimworldgame.com/)
# MapRender [![RimWorld 1.3](https://img.shields.io/badge/RimWorld-1.3-green.svg?longCache=true&style=plastic)](http://rimworldgame.com/)

This mod allows you to generate the full map at high resolution as a png via using the settings menu (just below save).

Expand Down
7 changes: 3 additions & 4 deletions Source/MapRenderer/HarmonyPatches.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Reflection;
using System.Reflection.Emit;
using UnityEngine;
using Verse;
using RimWorld;
using Harmony;
using HarmonyLib;

namespace MapRenderer
{
Expand Down Expand Up @@ -35,7 +34,7 @@ static HarmonyPatches()
#if DEBUG
HarmonyInstance.DEBUG = true;
#endif
HarmonyInstance harmony = HarmonyInstance.Create("rimworld.whyisthat.maprenderer.main");
Harmony harmony = new Harmony("rimworld.whyisthat.maprenderer.main");

harmony.Patch(AccessTools.Method(typeof(MainMenuDrawer), nameof(MainMenuDrawer.DoMainMenuControls)), null, null, new HarmonyMethod(typeof(HarmonyPatches), nameof(Transpiler)));
//harmony.Patch(AccessTools.Method(typeof(GenMapUI), nameof(GenMapUI.LabelDrawPosFor), new Type[] { typeof(Thing), typeof(float) }), new HarmonyMethod(typeof(HarmonyPatches), nameof(LabelDrawPosForPrefix)), null);
Expand Down
28 changes: 20 additions & 8 deletions Source/MapRenderer/MapRenderer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MapRenderer</RootNamespace>
<AssemblyName>MapRenderer</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
Expand All @@ -22,6 +22,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
Expand All @@ -31,23 +32,26 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<RunPostBuildEvent>Always</RunPostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="0Harmony, Version=1.0.9.1, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\Assemblies\0Harmony.dll</HintPath>
<HintPath>D:\SteamLibrary\steamapps\common\RimWorld\Mods\Harmony\Current\Assemblies\0Harmony.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="0System.Drawing">
<Reference Include="0System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\Assemblies\0System.Drawing.dll</HintPath>
</Reference>
<Reference Include="1SettingsHelper">
<HintPath>..\..\..\SettingsHelper\Assemblies\1SettingsHelper.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>$(RimworldManagedDir)\Assembly-CSharp.dll</HintPath>
<HintPath>D:\SteamLibrary\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\Assembly-CSharp.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
Expand All @@ -57,7 +61,15 @@
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="UnityEngine">
<HintPath>$(RimworldManagedDir)\UnityEngine.dll</HintPath>
<HintPath>D:\SteamLibrary\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>D:\SteamLibrary\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.IMGUIModule">
<HintPath>D:\SteamLibrary\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
Expand All @@ -74,8 +86,8 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>xcopy /S /Y "$(TargetDir)*" "C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\$(ProjectName)\Assemblies\"
xcopy /S /Y "$(SolutionDir)..\About\*" "C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\$(ProjectName)\About\"
xcopy /S /Y "$(SolutionDir)..\Languages\*" "C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\$(ProjectName)\Languages\"</PostBuildEvent>
<PostBuildEvent>xcopy /S /Y "$(TargetDir)*" "D:\SteamLibrary\steamapps\common\RimWorld\Mods\$(ProjectName)\Assemblies\"
xcopy /S /Y "$(SolutionDir)..\About\*" "D:\SteamLibrary\steamapps\common\RimWorld\Mods\$(ProjectName)\About\"
xcopy /S /Y "$(SolutionDir)..\Languages\*" "D:\SteamLibrary\steamapps\common\RimWorld\Mods\$(ProjectName)\Languages\"</PostBuildEvent>
</PropertyGroup>
</Project>
4 changes: 2 additions & 2 deletions Source/MapRenderer/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.19.0.*")]
[assembly: AssemblyFileVersion("0.19.0")]
[assembly: AssemblyVersion("1.3.0.*")]
[assembly: AssemblyFileVersion("1.3.0")]

0 comments on commit 6b849f0

Please sign in to comment.