Skip to content

Commit

Permalink
Merge pull request #8 from jonathan-robertson/1.2-update
Browse files Browse the repository at this point in the history
Update References for 7DTD 1.2 (b27) Stable
  • Loading branch information
jonathan-robertson authored Dec 12, 2024
2 parents ecd58fc + f9dbf2e commit acb65e8
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 17 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.0.0] - 2024-12-11

- update references for 7dtd-1.2-b27

## [No Release Necessary] - 2024-10-02

- update references for 7dtd-1.1-b14
Expand Down
2 changes: 1 addition & 1 deletion ModInfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<xml>
<Name value="kanaverum-protect-high-tier-prefabs" />
<DisplayName value="Protect High Tier Prefabs" />
<Version value="2.0.3" />
<Version value="3.0.0" />
<Description value="Prevent players from taking over Tier 4 or 5 prefabs." />
<Author value="Jonathan Robertson (Kanaverum)" />
<Website value="/~https://github.com/jonathan-robertson/protect-high-tier-prefabs" />
Expand Down
Binary file modified ProtectHighTierPrefabs.dll
Binary file not shown.
23 changes: 9 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
# Protect High Tier Prefabs

[![🧪 Tested On 7DTD 1.1 (b14)](https://img.shields.io/badge/🧪%20Tested%20On-7DTD%201.1%20(b14)-blue.svg)](https://7daystodie.com/) [![📦 Automated Release](/~https://github.com/jonathan-robertson/protect-high-tier-prefabs/actions/workflows/release.yml/badge.svg)](/~https://github.com/jonathan-robertson/protect-high-tier-prefabs/actions/workflows/release.yml)

- [Protect High Tier Prefabs](#protect-high-tier-prefabs)
- [Summary](#summary)
- [Support](#support)
- [Features](#features)
- [Positional Awareness](#positional-awareness)
- [Placement Prevention](#placement-prevention)
- [Compatibility](#compatibility)
[![🧪 Tested with 7DTD 1.2 (b27)](https://img.shields.io/badge/🧪%20Tested%20with-7DTD%201.2%20(b27)-blue.svg)](https://7daystodie.com/)
[![✅ Dedicated Servers Supported ServerSide](https://img.shields.io/badge/✅%20Dedicated%20Servers-Supported%20Serverside-blue.svg)](https://7daystodie.com/)
[![❌ Single Player and P2P Unsupported](https://img.shields.io/badge/❌%20Single%20Player%20and%20P2P-Unsupported-red.svg)](https://7daystodie.com/)
[![📦 Automated Release](/~https://github.com/jonathan-robertson/protect-high-tier-prefabs/actions/workflows/release.yml/badge.svg)](/~https://github.com/jonathan-robertson/protect-high-tier-prefabs/actions/workflows/release.yml)

## Summary

Expand Down Expand Up @@ -42,8 +37,8 @@ A notification will also trigger on the player's toolbelt to explain what just h

Supported Languages: `English` (for now)

Environment | Compatible | Does EAC Need to be Disabled? | Who needs to install?
--- | --- | --- | ---
Dedicated Server | Yes | no | only server
Peer-to-Peer Hosting | Untested | N/A | N/A
Single Player Game | Untested | N/A | N/A
| Environment | Compatible | Does EAC Need to be Disabled? | Who needs to install? |
| -------------------- | ---------- | ----------------------------- | --------------------- |
| Dedicated Server | Yes | no | only server |
| Peer-to-Peer Hosting | Untested | N/A | N/A |
| Single Player Game | Untested | N/A | N/A |
Binary file modified references/Assembly-CSharp.dll
Binary file not shown.
Binary file modified references/LogLibrary.dll
Binary file not shown.
Binary file modified references/System.Configuration.dll
Binary file not shown.
Binary file modified references/UnityEngine.CoreModule.dll
Binary file not shown.
Binary file modified references/UnityEngine.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion src/Patches/EntityAlive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace ProtectHighTierPrefabs.Patches
{
[HarmonyPatch(typeof(EntityAlive), "updateCurrentBlockPosAndValue")]
[HarmonyPatch(typeof(EntityAlive), nameof(EntityAlive.updateCurrentBlockPosAndValue))]
internal class EntityAlive_updateCurrentBlockPosAndValue_Patches
{
private static readonly ModLog<EntityAlive_updateCurrentBlockPosAndValue_Patches> _log = new ModLog<EntityAlive_updateCurrentBlockPosAndValue_Patches>();
Expand Down
2 changes: 1 addition & 1 deletion src/Patches/NetPackageSetBlock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace ProtectHighTierPrefabs.Patches
{
[HarmonyPatch(typeof(NetPackageSetBlock), "ProcessPackage")]
[HarmonyPatch(typeof(NetPackageSetBlock), nameof(NetPackageSetBlock.ProcessPackage))]
internal class NetPackageSetBlock_ProcessPackage_Patches
{
private static readonly ModLog<NetPackageSetBlock_ProcessPackage_Patches> _log = new ModLog<NetPackageSetBlock_ProcessPackage_Patches>();
Expand Down
16 changes: 16 additions & 0 deletions update-references.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh
references_folder=./references
harmony_filename="0Harmony.dll"
harmony_folder="/c/Program Files (x86)/Steam/steamapps/common/7 Days to Die Dedicated Server/Mods/0_TFP_Harmony"
managed_folder="/c/Program Files (x86)/Steam/steamapps/common/7 Days to Die Dedicated Server/7DaysToDieServer_Data/Managed"

cd $references_folder
for file in *; do
if [ -f "$file" ]; then
if [ "$file" = "$harmony_filename" ]; then
cp "$harmony_folder/$file" ./
else
cp "$managed_folder/$file" ./
fi
fi
done

0 comments on commit acb65e8

Please sign in to comment.