GithubHelp home page GithubHelp logo

tr4wzified / knowyourarmorpatcher Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 11.0 14.99 MB

Skyrim Mutagen Patcher replacing the Know Your Armor zEdit version for increased performance and being able to run >= 255 plug-ins

License: GNU General Public License v3.0

C# 100.00%
mutagen zedit

knowyourarmorpatcher's Introduction

KnowYourArmorPatcher

Skyrim Mutagen Patcher replacing the zEdit version for better performance and being able to run > 255 plugins

Settings

Settings can be configured via settings.json next to the executable.

  • effect_intensity - float: The higher the effect intensity is, the stronger the resistances and weaknesses applied to the armors will be.
  • patch_armor_descriptions - bool: Patches armor descriptions to show the effect intensity on the armor.

knowyourarmorpatcher's People

Contributors

aljoxo avatar deigue avatar noggog avatar reaperanon avatar theskyses avatar tr4wzified avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

knowyourarmorpatcher's Issues

LibGit2Sharp Not Found?

Here's the error it's giving me when I try and run it:
LibGit2Sharp.NotFoundException: revspec 'master' not found
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result)
at LibGit2Sharp.Core.Proxy.git_annotated_commit_from_revspec(RepositoryHandle repo, String revspec)
at LibGit2Sharp.Core.Proxy.git_branch_create_from_annotated(RepositoryHandle repo, String branch_name, String targetIdentifier, Boolean force)
at LibGit2Sharp.BranchCollection.Add(String name, String committish, Boolean allowOverwrite)
at LibGit2Sharp.BranchCollection.Add(String name, String committish)
at LibGit2Sharp.RepositoryExtensions.CreateBranch(IRepository repository, String branchName)
at Synthesis.Bethesda.Execution.Patchers.Git.GitPatcherRun.CheckoutRunnerRepository(String proj, String localRepoDir, GitPatcherVersioning patcherVersioning, NugetVersioningTarget nugetVersioning, Action`1 logger, CancellationToken cancel, Boolean compile)

I've tried fiddling with the versioning settings, but nothing seems to fix it. This popped up just yesterday, and it was running fine the week before.

Error when Patching

Compiling
(C:\Users\YizTJ\AppData\Local\Temp\Synthesis\uriwlp5d.0ly\Git\nsabojpu.gfz\Runner\KnowYourArmorPatcher): dotnet build --runtime win-x64 "KnowYourArmorPatcher.csproj" -c Release
Extra data folder already exists. Leaving as is: D:\Games\Tools\Synthesis\Data\KnowYourArmorPatcher
Compiled
Sha 0fdf3c6
(): dotnet run --project "C:\Users\YizTJ\AppData\Local\Temp\Synthesis\uriwlp5d.0ly\Git\nsabojpu.gfz\Runner\KnowYourArmorPatcher\KnowYourArmorPatcher.csproj" -c Release --runtime win-x64 --no-build check-runnability --DataFolderPath D:\Games\Offline\Skyrim\Data --GameRelease SkyrimSE --LoadOrderFilePath C:\Users\YizTJ\AppData\Local\Temp\Synthesis\uriwlp5d.0ly\Workspace\Plugins.txt
Running
(): dotnet run --project "C:\Users\YizTJ\AppData\Local\Temp\Synthesis\uriwlp5d.0ly\Git\nsabojpu.gfz\Runner\KnowYourArmorPatcher\KnowYourArmorPatcher.csproj" --runtime win-x64 --no-build -c Release run-patcher --DataFolderPath D:\Games\Offline\Skyrim\Data --ExtraDataFolder D:\Games\Tools\Synthesis\Data\KnowYourArmorPatcher --DefaultDataFolderPath C:\Users\YizTJ\AppData\Local\Temp\Synthesis\uriwlp5d.0ly\Git\nsabojpu.gfz\Runner\KnowYourArmorPatcher\Data --GameRelease SkyrimSE --LoadOrderFilePath C:\Users\YizTJ\AppData\Local\Temp\Synthesis\uriwlp5d.0ly\Workspace\Plugins.txt --OutputPath "C:\Users\YizTJ\AppData\Local\Temp\Synthesis\uriwlp5d.0ly\Workspace\0 - KnowYourArmorPatcher" --PatcherName KnowYourArmorPatcher --PersistencePath C:\Users\YizTJ\AppData\Local\Temp\Synthesis\uriwlp5d.0ly\Persistence
Mutagen version: 0.32
Mutagen sha: b9ecd83527de2313df5b1e1b33fab451c4df28b3
Synthesis version: 0.19.4
Synthesis sha: 35e30ef2f0373de308999718f7d55ca10ad8a859
run-patcher --DataFolderPath D:\Games\Offline\Skyrim\Data --ExtraDataFolder D:\Games\Tools\Synthesis\Data\KnowYourArmorPatcher --DefaultDataFolderPath C:\Users\YizTJ\AppData\Local\Temp\Synthesis\uriwlp5d.0ly\Git\nsabojpu.gfz\Runner\KnowYourArmorPatcher\Data --GameRelease SkyrimSE --LoadOrderFilePath C:\Users\YizTJ\AppData\Local\Temp\Synthesis\uriwlp5d.0ly\Workspace\Plugins.txt --OutputPath "C:\Users\YizTJ\AppData\Local\Temp\Synthesis\uriwlp5d.0ly\Workspace\0 - KnowYourArmorPatcher" --PatcherName KnowYourArmorPatcher --PersistencePath C:\Users\YizTJ\AppData\Local\Temp\Synthesis\uriwlp5d.0ly\Persistence
Prepping state.
Using TextFileSharedFormKeyAllocator allocator
Reading settings: D:\Games\Tools\Synthesis\Data\KnowYourArmorPatcher\settings.json
*** DETECTED SETTINGS ***
effect_intensity: 1


System.InvalidCastException: Unable to cast object of type 'Newtonsoft.Json.Linq.JObject' to type 'Newtonsoft.Json.Linq.JArray'.
at KnowYourArmorPatcher.Program.RunPatch(IPatcherState2 state) in C:\Users\YizTJ\AppData\Local\Temp\Synthesis\uriwlp5d.0ly\Git\nsabojpu.gfz\Runner\KnowYourArmorPatcher\Program.cs:line 287 at Mutagen.Bethesda.Synthesis.SynthesisPipeline.<>c__DisplayClass12_02.<b__0>d.MoveNext() in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\SynthesisPipeline.cs:line 94
--- End of stack trace from previous location ---
at Mutagen.Bethesda.Synthesis.SynthesisPipeline.Run(RunSynthesisMutagenPatcher args, ModKey exportKey) in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\SynthesisPipeline.cs:line 456
at Mutagen.Bethesda.Synthesis.SynthesisPipeline.Run(RunSynthesisMutagenPatcher args) in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\SynthesisPipeline.cs:line 404
at Mutagen.Bethesda.Synthesis.SynthesisPipeline.<>c__DisplayClass36_0.<b__1>d.MoveNext() in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\SynthesisPipeline.cs:line 378
Synthesis.Bethesda.Execution.CliUnsuccessfulRunException: Error running solution patcher
at Synthesis.Bethesda.Execution.Patchers.SolutionPatcherRun.Run(RunSynthesisPatcher settings, CancellationToken cancel)
at Synthesis.Bethesda.Execution.Runner.Run[TKey](String workingDirectory, ModPath outputPath, String dataFolder, IEnumerable1 loadOrder, GameRelease release, IEnumerable1 patchers, IRunReporter`1 reporter, CancellationToken cancellation, ModPath sourcePath, PersistenceMode persistenceMode, String persistencePath)

Update Required

Know Your Enemy (Know your armor) got a pretty significant update a week ago. Was wondering if there's any intentions of updating the synthesis patch. This patch is a godsend

Know Your Enemy 9.2.0 Incompatibility

Know Your Enemy version 9.2.0 compacted the form id's to ESlify the mod breaking this patcher.(It complains about missing... somthing)
Install KYE 9.1.0 Patcher runs without errors.

*SOLVED* Getting Error when Running - Log Included

Hate to say it but I think I'm getting the same (or similar) error as the other post. I deleted the user/admin/app data/synthesis file and didn't help. But maybe I missed something...

Know Your Armor - Error Log:

Compiling
Extra data folder already exists. Leaving as is: "C:\Games\Phoenix Flavour\tools\Synthesis\Data\Skyrim Special Edition\KnowYourArmorPatcher"
("C:\Users\Administrator\AppData\Local\Temp\Synthesis\woq0jem3.so5\Git\pgzadd3g.e31\Runner\KnowYourArmorPatcher"): "dotnet" "build "KnowYourArmorPatcher.csproj" --runtime win-x64 -c Release"
Compiled
Sha "23cded3450c4bd0dfb9ff6bd1242eeadd975b739"
(""): "dotnet" "run --project "C:\Users\Administrator\AppData\Local\Temp\Synthesis\woq0jem3.so5\Git\pgzadd3g.e31\Runner\KnowYourArmorPatcher\KnowYourArmorPatcher.csproj" --runtime win-x64 -c Release --no-build check-runnability --DataFolderPath "C:\Games\STEAM\steamapps\common\Skyrim Special Edition\Data" --GameRelease SkyrimSE --LoadOrderFilePath C:\Users\Administrator\AppData\Local\Temp\Synthesis\woq0jem3.so5\Workspace\Plugins.txt"
Running
(""): "dotnet" "run --project "C:\Users\Administrator\AppData\Local\Temp\Synthesis\woq0jem3.so5\Git\pgzadd3g.e31\Runner\KnowYourArmorPatcher\KnowYourArmorPatcher.csproj" --runtime win-x64 -c Release --no-build run-patcher --DataFolderPath "C:\Games\STEAM\steamapps\common\Skyrim Special Edition\Data" --ExtraDataFolder "C:\Games\Phoenix Flavour\tools\Synthesis\Data\Skyrim Special Edition\KnowYourArmorPatcher" --DefaultDataFolderPath C:\Users\Administrator\AppData\Local\Temp\Synthesis\woq0jem3.so5\Git\pgzadd3g.e31\Runner\KnowYourArmorPatcher\Data --GameRelease SkyrimSE --LoadOrderFilePath C:\Users\Administrator\AppData\Local\Temp\Synthesis\woq0jem3.so5\Workspace\Plugins.txt --OutputPath "C:\Users\Administrator\AppData\Local\Temp\Synthesis\woq0jem3.so5\Workspace\1 - KnowYourArmorPatcher" --PatcherName KnowYourArmorPatcher --PersistencePath C:\Users\Administrator\AppData\Local\Temp\Synthesis\woq0jem3.so5\Persistence"
Mutagen version: 0.33.2
Mutagen sha: f14bb1e2d9591e1f23e4785686fb22db7c22365a
Synthesis version: 0.20.4
Synthesis sha: c2f7d7adcde3c39ad375b6ef1053e3b6836609fb
run-patcher --DataFolderPath "C:\Games\STEAM\steamapps\common\Skyrim Special Edition\Data" --ExtraDataFolder "C:\Games\Phoenix Flavour\tools\Synthesis\Data\Skyrim Special Edition\KnowYourArmorPatcher" --DefaultDataFolderPath C:\Users\Administrator\AppData\Local\Temp\Synthesis\woq0jem3.so5\Git\pgzadd3g.e31\Runner\KnowYourArmorPatcher\Data --GameRelease SkyrimSE --LoadOrderFilePath C:\Users\Administrator\AppData\Local\Temp\Synthesis\woq0jem3.so5\Workspace\Plugins.txt --OutputPath "C:\Users\Administrator\AppData\Local\Temp\Synthesis\woq0jem3.so5\Workspace\1 - KnowYourArmorPatcher" --PatcherName KnowYourArmorPatcher --PersistencePath C:\Users\Administrator\AppData\Local\Temp\Synthesis\woq0jem3.so5\Persistence
Prepping state.
Using TextFileSharedFormKeyAllocator allocator
Reading settings: C:\Games\Phoenix Flavour\tools\Synthesis\Data\Skyrim Special Edition\KnowYourArmorPatcher\settings.json
Settings Used:
effect_intensity: 1.05

System.InvalidCastException: Unable to cast object of type 'Newtonsoft.Json.Linq.JObject' to type 'Newtonsoft.Json.Linq.JArray'.
at KnowYourArmorPatcher.Program.RunPatch(IPatcherState2 state) in C:\Users\Administrator\AppData\Local\Temp\Synthesis\woq0jem3.so5\Git\pgzadd3g.e31\Runner\KnowYourArmorPatcher\Program.cs:line 325 at Mutagen.Bethesda.Synthesis.SynthesisPipeline.<>c__DisplayClass12_02.<b__0>d.MoveNext() in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\SynthesisPipeline.cs:line 101
--- End of stack trace from previous location ---
at Mutagen.Bethesda.Synthesis.SynthesisPipeline.Run(RunSynthesisMutagenPatcher args, ModKey exportKey, IFileSystem fileSystem) in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\SynthesisPipeline.cs:line 507
at Mutagen.Bethesda.Synthesis.SynthesisPipeline.Run(RunSynthesisMutagenPatcher args, IFileSystem fileSystem) in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\SynthesisPipeline.cs:line 428
at Mutagen.Bethesda.Synthesis.SynthesisPipeline.<>c__DisplayClass36_0.<b__1>d.MoveNext() in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\SynthesisPipeline.cs:line 400
Synthesis.Bethesda.Execution.CliUnsuccessfulRunException: Error running solution patcher
at Synthesis.Bethesda.Execution.Patchers.Running.Solution.SolutionPatcherRunner.Run(RunSynthesisPatcher settings, CancellationToken cancel)
at Synthesis.Bethesda.Execution.Patchers.Running.Solution.SolutionPatcherRun.Run(RunSynthesisPatcher settings, CancellationToken cancel)
at Synthesis.Bethesda.Execution.Running.Runner.RunAPatcher.Run(ModKey outputKey, PatcherPrepBundle prepBundle, CancellationToken cancellation, Nullable`1 sourcePath, String persistencePath)

RecordException

RecordException => HousecarlWindhelm (0A2C90:Skyrim.esm): Specified argument was out of the range of valid values. (Parameter 'length') System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'length')

This occurs, not sure what's causing it. Never happened before.

error on patching

System.InvalidCastException: Unable to cast object of type 'Newtonsoft.Json.Linq.JObject' to type 'Newtonsoft.Json.Linq.JArray'.
at KnowYourArmorPatcher.Program.RunPatch(IPatcherState2 state) in C:\Users\Bob\AppData\Local\Temp\Synthesis\czbbgtdi.hm0\Git\cab4xis5.v5m\Runner\KnowYourArmorPatcher\Program.cs:line 287 at Mutagen.Bethesda.Synthesis.SynthesisPipeline.<>c__DisplayClass12_02.<b__0>d.MoveNext() in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\SynthesisPipeline.cs:line 94
--- End of stack trace from previous location ---
at Mutagen.Bethesda.Synthesis.SynthesisPipeline.Run(RunSynthesisMutagenPatcher args, ModKey exportKey) in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\SynthesisPipeline.cs:line 456
at Mutagen.Bethesda.Synthesis.SynthesisPipeline.Run(RunSynthesisMutagenPatcher args) in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\SynthesisPipeline.cs:line 404
at Mutagen.Bethesda.Synthesis.SynthesisPipeline.<>c__DisplayClass36_0.<b__1>d.MoveNext() in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis\SynthesisPipeline.cs:line 378
Synthesis.Bethesda.Execution.CliUnsuccessfulRunException: Error running solution patcher
at Synthesis.Bethesda.Execution.Patchers.SolutionPatcherRun.Run(RunSynthesisPatcher settings, CancellationToken cancel)
at Synthesis.Bethesda.Execution.Runner.Run[TKey](String workingDirectory, ModPath outputPath, String dataFolder, IEnumerable1 loadOrder, GameRelease release, IEnumerable1 patchers, IRunReporter`1 reporter, CancellationToken cancellation, ModPath sourcePath, PersistenceMode persistenceMode, String persistencePath)

Incompatibility With Creation Club Mods

I had gotten a error message when running both of the patchers Know Your Armor and Know You Enemy, in which the error looks like it said that the master for the file was missing, but the master was itself:

Error Information Mutagen.Bethesda.MissingModException: A referenced mod was not present on the load order being sorted against: ccTWBSSE001-PuzzleDungeon.esm. This mod was referenced by MajorRecord: 000893:ccTWBSSE001-PuzzleDungeon.esm at Mutagen.Bethesda.Internals.ModHeaderWriteLogic.SortMasters(List`1 modKeys) at Mutagen.Bethesda.Internals.ModHeaderWriteLogic.ConstructWriteMasters(IModGetter mod) at Mutagen.Bethesda.Internals.ModHeaderWriteLogic.PostProcessAdjustments(MutagenWriter writer, IModGetter mod, IModHeaderCommon modHeader) at Mutagen.Bethesda.Internals.ModHeaderWriteLogic.WriteHeader(BinaryWriteParameters param, MutagenWriter writer, IModGetter mod, IModHeaderCommon modHeader, ModKey modKey) at Mutagen.Bethesda.Skyrim.Internals.SkyrimModCommon.WriteParallel(ISkyrimModGetter item, Stream stream, BinaryWriteParameters param, ModKey modKey) at Mutagen.Bethesda.Skyrim.SkyrimModMixIn.WriteToBinaryParallel(ISkyrimModGetter item, String path, BinaryWriteParameters param) at Mutagen.Bethesda.Skyrim.SkyrimMod.Mutagen.Bethesda.IModGetter.WriteToBinaryParallel(String path, BinaryWriteParameters param) at Mutagen.Bethesda.Synthesis.SynthesisPipeline.Patch[TMod,TModGetter](RunSynthesisMutagenPatcher settings, PatcherFunction`2 patcher, UserPreferences userPreferences) at Mutagen.Bethesda.Synthesis.SynthesisPipeline.<>c__DisplayClass4_0`2.b__1(RunSynthesisMutagenPatcher settings) Synthesis.Bethesda.Execution.CliUnsuccessfulRunException: Error running solution patcher

Yeah, really weird, but issues with Creation Club mods have always affected anything for Skyrim SE lol. Thank you for the great patcher too, never suspected to get something this good so soon.

Doubled descriptions

When I use the setting Patch armor descriptions, the description are doubled in return.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.