Skip to content

Commit

Permalink
Version => 1.12.7
Browse files Browse the repository at this point in the history
  • Loading branch information
m00nl1ght-dev committed Oct 2, 2023
1 parent d0566d2 commit cf20cd9
Show file tree
Hide file tree
Showing 17 changed files with 169 additions and 10 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: release

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout latest commit
uses: actions/checkout@v4
with:
fetch-depth: '0'

- name: Read version file and build file names
id: read_version
run: |
echo "version=$(cat About/Version.txt)" >> $GITHUB_OUTPUT
echo "version_v=v$(cat About/Version.txt)" >> $GITHUB_OUTPUT
echo "mp_zip=Map_Preview_v$(cat About/Version.txt).zip" >> $GITHUB_OUTPUT
- name: Create MP release zip
uses: thedoctor0/zip-release@0.7.1
with:
type: 'zip'
filename: ${{ steps.read_version.outputs.mp_zip }}
exclusions: '/.git/* /Sources/* /AddOn/* /.github/* .git*'

- name: Read changelog
id: read_changelog
run: |
awk -v RS= 'NR==2 {print > ("LatestChanges.txt")}' Changelog.md
echo 'changes<<EOF' >> $GITHUB_OUTPUT
echo "$(cat LatestChanges.txt)" >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
echo 'changes_h<<EOF' >> $GITHUB_OUTPUT
echo "Update $(cat About/Version.txt)" >> $GITHUB_OUTPUT
echo "" >> $GITHUB_OUTPUT
echo "$(cat LatestChanges.txt)" >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
- name: Publish release
uses: ncipollo/release-action@v1
with:
artifacts: ${{ format('{0}', steps.read_version.outputs.mp_zip) }}
body: ${{ steps.read_changelog.outputs.changes }}
name: ${{ format('Map Preview v{0}', steps.read_version.outputs.version) }}
tag: ${{ steps.read_version.outputs.version }}
commit: ${{ github.sha }}
makeLatest: true

- name: Extract zip for workshop upload
env:
ZIP_FILE: ${{ steps.read_version.outputs.mp_zip }}
run: |
sudo apt-get install unzip
mkdir ws-upload/
unzip $ZIP_FILE -d ws-upload
- name: Upload to workshop
uses: AnarkisGaming/workshop@v1
env:
STEAM_ACCOUNT_NAME: ${{ secrets.STEAM_ACCOUNT }}
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}
with:
appID: 294100
publishedFileID: 2800857642
path: "ws-upload/"
changelog: ${{ steps.read_changelog.outputs.changes_h }}
Binary file modified 1.4/Assemblies/LunarLoader.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion 1.4/Lunar/Components/HarmonyLib.lfc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sNR$l;��� �Z&
H�S��Tu��^�n�Q
Binary file modified 1.4/Lunar/Components/HugsLogPublisher.dll
Binary file not shown.
3 changes: 2 additions & 1 deletion 1.4/Lunar/Components/HugsLogPublisher.lfc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
���(��A@U��t%�V
��e}Z*
�ּ��1
Binary file modified 1.4/Lunar/Components/LunarFramework.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion 1.4/Lunar/Components/LunarFramework.lfc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
�I��B�qţW5���Y
%^�03xz}Y��]��
Binary file modified 1.4/Lunar/Components/MapPreview.dll
Binary file not shown.
Binary file modified 1.4/Lunar/Components/MapPreview.lfc
Binary file not shown.
Binary file modified 1.4/Lunar/Components/MapPreviewMod.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion 1.4/Lunar/Components/MapPreviewMod.lfc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4��,������ne�o
�i��GWr�j���v
2 changes: 1 addition & 1 deletion 1.4/Lunar/Manifest.lfc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
�*��w&�38=�
7niA �]�S�S�ty
2 changes: 0 additions & 2 deletions About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
</modDependenciesByVersion>
<loadAfter>
<li>brrainz.harmony</li>
<li>UnlimitedHugs.HugsLib</li>
<li>UnlimitedHugs.MapReroll</li>
</loadAfter>
<incompatibleWith>
</incompatibleWith>
Expand Down
2 changes: 1 addition & 1 deletion About/Version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.12.6
1.12.7
87 changes: 87 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@

v1.12.7

- Added option to enable map preview only during new game setup (starting tile selection)
- Added option to not show previews when a settlement or quest site is selected
- Fixed an issue that caused the Undo Rerolls button to appear unexpectedly
- Fixed impassable tiles adjacent to settlements not being previewable
- Fixed an incompatibility with the mod "Clouds"

v1.12.6

- Fixed incorrect preview map size in games with zero active maps
- Removed a compatibility patch for "Biomes! Core" which is no longer needed

v1.12.5

- Added performance patches to make previews with caves generate around 3 times as fast
- Removed the need to wait for preview completion during new game setup
- Fixed a compatibility patch error that only happened with specific mod load order
- Fixed an error that could occur when caravans trigger a preview

v1.12.4

- Improved support for Terra Project Core (previews for cave maps will now generate faster)
- Some more compatibility improvements and bugfixes

v1.12.3

- Fixed compatibility with "Vanilla Base Generation Expanded"

v1.12.2

- Added support for RimNauts 2, you can now preview moons and asteroids!
- When selecting a tile to preview, it's now possible to directly select world objects (such as quest sites and settlements)
- Added toolbar button for quick access to Geological Landforms settings (disabled by default to avoid clutter)
- Added Chinese Traditional translation (thanks to @shiuanyue for submitting)
- Some small bug fixes and performance improvements

v1.12.1

- Added a reroll helper window that shows previews for multiple seeds at once and allows pinning favorites
- Fixed preview window not opening when a tile is clicked in some circumstances
- Fixed compatibility with RimThreaded

v1.12.0

- Added option to exclude caves from previews (makes preview generation faster)
- Added option to hide individual toolbar buttons (in case there is some you never use)
- Added option that locks preview and toolbar position to prevent accidental dragging
- When "WorldEdit" is installed, a new toolbar button will be displayed that opens the WorldEdit window
- When "Prepare Landing" is installed, a new toolbar button will be displayed that opens the Prepare Landing window
- The preview window will no longer auto-open immediately after switching to world map (no more lag spikes)
- Fixed UI sliders not working correctly after they were changed in a recent RimWorld update
- Reworked many Harmony patches into transpilers for better mod compatibility
- Added compatibility for the BetterLoading 1.4 fork (experimental, may be unstable)

v1.11.0

- Integration with Map Designer: Open it on the world map and Map Preview will act as a live preview for your changes
- Thanks to Zylleon for the code changes on Map Designer's side that make this possible!
- Moved the buttons from the preview window to a separate toolbar, so they no longer cover parts of the preview
- Added a button to quickly reroll the world seed (during starting site selection)
- Preview will now automatically refresh when you change the map size (also works with Better Map Sizes mod)
- Reworked how seeds for rerolls are chosen. They are still deterministic, but now tied to world seed and tile
- Fixed reroll button being unavailable for tiles that have quest sites on them

v1.10.3

- Added tooltip that shows terrain at hovered position in preview
- Fixed compatibility with "Performance Optimizer" mod in 1.4
- Some minor bugfixes

v1.10.2

- Added basic map seed reroll feature (disabled by default and can be enabled in the mod settings)

v1.10.1

- Fix for RimWorld version 1.4.3514 and later

v1.10.0

- Support for RimWorld 1.4
- Fixed a bug that caused terrain to generate slightly differently than in vanilla
- Added support for non-standard map sizes, and added integration with the "Better Map Sizes" mod
- Reworked how Harmony patches are applied to improve performance
- Added compatibility patches for Save Our Ship 2, Startup Impact, Fish Traps and Animal Traps
2 changes: 1 addition & 1 deletion Sources/MapPreview/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
// 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("1.12.6")]
[assembly: AssemblyVersion("1.12.7")]
2 changes: 1 addition & 1 deletion Sources/MapPreviewMod/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
// 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("1.12.6")]
[assembly: AssemblyVersion("1.12.7")]

0 comments on commit cf20cd9

Please sign in to comment.