Skip to content

Releases: PassivePicasso/ThunderKit

Pipeline Logging

31 Oct 13:48
006e841
Compare
Choose a tag to compare

4.1.1

Pipelines and Logging

This update introduces a system to maintain logs of Pipeline runs. These logs saved under the Assets/ThunderKitAssets/Logs folder and grouped by Pipeline. Pipeline Logs are rich data sets which provides listings of runtime function and reporting of build artifacts. Logs will show you what was done during a pipeline run, what files were copied, deleted, and created during that run.

The pipeline logs will additionally show any errors, and provide any potentially relevant data from the errors that could lead to resolution. These errors are enhanced by ThunderKit's markdown system, allowing you to click on source code lines to open up your code editor to the source of errors for further debugging. This should help developers who extend ThunderKit with custom PipelineJobs and PathComponents.

The most recent log for a pipeline can be launched by inspecting the Pipeline then clicking on the Show Log button.

The execute button for pipelines have been moved from under the "Add Pipeline Button" to the top left of the Pipeline Inspector. This should reduce incidents of accidentally firing off the Pipeline.

Markdown Level Up

Text alignment and kerning has been improved significantly. I'm sorry for any mental anguish users have suffered.

The Markdown implementation performance and output quality has been significantly improved. Previously the UIElementsRenderer would break all string literals on whitespace separation and then render each word as an individual VisualElement of type Label. This provided an easy way to achieve flow document layouting, however resulted in large documents taking an exceptionally long time to render.

In this update the UIElementsRenderer will now scan each ParagraphBlock returned by MarkDig and if the Paragraph contains only simple string literals will opt to render the entire paragraph in a single Label. This reduces the number of elements generated in large documents by thousands. This results in significantly improved render times in large documents as well as faster layouting.

Additionally, the Markdown system now supports adding custom Schemes for Markdown links from external libraries which has enabled new features in ThunderKit.

Finally the code design of the MarkdownElement and its utilization has been improved to prevent cases where Markdown doesn't have the necessary visual styles to render correctly.

Documentation Improvements

The Markdown improvements has allowed the introduction of Documentation page links to be created. Now MarkdownElements can link to specific documentation pages. This hasn't been applied to all documentation to create a highly connected document graph yet, but additional enhancements to documentation will be done over time.

Some documents have been reformatted to improve their layout flexibility

Fixes and Improvements

  • Automatically generate a PackageSource for the ThunderKit Extensiosn Thunderstore

  • Remove ThunderKit.Core.Editor namespace due to code clarity issues a namespace named Editor creates in Unity

  • Fix bugs with Pipeline flow related to Asynchronous migration

  • Fix a number of cases where Exception context could be hidden

  • Add a new toggle to Copy jobs that indicates if the Job should try to create the target directory, default value is true

  • Fixed some cases where Pipelines would run to the end instead of halting when encountering what should have been a fatal exception

  • StageAssetBundles and StageAssemblies logging and code flow has been improved to clarify common cases where these jobs will fail to execute correct

  • Added and improved logging to Copy, Delete, ExecutePipepline, ExecuteProcess, StageAssemblies, StageAssetBundles, StageDependencies, StageManifestFiles, Zip and StageThunderstoreManifest

  • Fix issue where SteamBepInExLaunch could fail to start due to formatting of command line args

  • Fix issue in Zip that could cause the job to fail in a case it shouldn't

4.0.0

17 Oct 22:13
05ae02e
Compare
Choose a tag to compare

4.0.0

Important

This update is breaking support for .NET 3.5 due to the difficulty in providing functional tools for certain aspects of Unity which are asynchronous.
For people who need .NET 3.5 support, install ThunderKit using the net35compatibility branch which will receive fixes able to be ported upon request

"com.passivepicasso.thunderkit":"https://github.com/PassivePicasso/ThunderKit.git#net35compatibility",

This update changes how Manifest assets in the Unity AssetDatabase are managed. You will be asked to run an upgrade process that will update all your Manifests to the new configuration automatically.
Please make sure you back up your projects before updating in case of any problems.

Some games do not have their Unity game version properly identified in their executable. Due to this, ThunderKit will now read the games globalgamemanager file to identify the correct Unity version for the game. Some users may find they need to switch unity versions because of this change, but it is a necessary step to take to avoid unforseen issues.

Known Issues

  • Unity 2021.2.0b7 does not detect package installation or uninstallation automatically requiring the user to manually refresh the Project
    This is an issue which appears to be a bug with Unity's AssetDatabase.Refresh call and a bug report will be generated for Unity Technologies to investigate.
    This bug may be resolved in newer versions of the Unity 2021.2 beta, however there are no games available to test against which wouldn't introduce factors that could muddle results.
    If Unity doesn't appear to import packages installed from Thunderstore, or doesn't appear to fully remove an uninstalled package, refresh your project using the context menu option in the Project window, or on windows press Ctrl+R

  • Unity 2021.2.0b7 locks up when importing and loading assemblies from packages or games.

    • Work-around: Kill the Unity process after it seems like the import process has stopped loading new assemblies and restart Unity

Improvements

  • Unity 2021.2 beta can now succesfully install packages, however the user must manually refresh the project (Ctrl+R) to complete the installation.

  • Pipelines and PipelineJobs now execute asynchronously to support operations which require that Unity take control of processing.

  • StageAssemblies previously relied on simply copying assemblies from the project's Library/ScriptAssemblies folder. While fast and convenient this prevented users from taking control of build parameters which may be necessary for their projects. StageAssemblies now allows you to specify Build Targets and Build Target Groups in addition to allowing you to stage debug databases. Due to this change StageAssemblies now builds player assemblies, allowing the utilization of available optimization steps the compilation engine provides.

  • Package Installation has been improved to no longer utilize the AssetDatabase to create and place files to avoid edge cases with some versions of Unity that prevent installation. Due to this change Manifest's now have Asset GUIDs assigned by ThunderKit. This change ensures that Manifest's will easily and automatically reference their dependencies, and references to dependencies will continue to work after reinstallation them. This change is not backwards compatible

  • Added compiler directives and code to support Unity 2021.2

  • Add a utility to assist in migrating Non-ThunderKit modding projects to ThunderKit by updating asset references from Dll references to Script file references. This is available under Tools/ThunderKit/Migration

  • Added error messaging for PathReferences and Manifests

Fixes and Changes

  • Fix cases where Progress bars may not update or close as expected
  • Fix ManifestIdentities not always being saved during package installation
  • Fix issue where somtimes PackageSourceSettings will empty its reference array requiring manual repopulation
  • Fix PackageManager not removing Scripting Defines when removing a ThunderKit managed Package

3.4.1

06 Sep 19:23
67e5057
Compare
Choose a tag to compare

3.4.1

Fixes

  • Fix an issue where scanning some assemblies would result in a ReflectionTypeLoadException preventing the settings window from loading.

3.4.0

06 Sep 19:06
8982dc1
Compare
Choose a tag to compare

3.4.0

PackageSource Management

PackageSources have been updated with central management and the ability to setup multiple sources of the same types.

You can now manage your Package Sources in the ThunderKit Settings Window.
In the ThunderKit Settings window you will be able to Add, Remove, Configure, Rename and Refresh your PackageSources.

ThunderKit Extensions Thunderstore

With the ability to add multiple PackageSources to your project, you can now add the ThunderKit Extensions Thunderstore as a source.
Like all Thunderstores, this provides the ability for the community to add resources that help grow the platform in a modular way.

If you would like to take advantage of the ThunderKit Extensions Thunderstore, Add a new ThunderstoreSource to your PackageSources and set the url to https://thunderkit.thunderstore.io

3.3.1 - Steam Launch Support

05 Jun 18:08
Compare
Choose a tag to compare

Some Unity games require that Steam launches them in order to successfully start up, to support this requirement the previous update added the RegistryLookup PathComponent.
This update builds upon that by adding a Steam.exe PathReference asset which locates the Steam.exe using the Windows Registry via the RegistryLookup PathComponent.

To improve the coverage and usability of the BepInEx Template, the template now includes a SteamBepInExLaunch Pipeline and the Launch Pipeline was renamed to BepInExLaunch

In Order to use the SteamBepInExLaunch Pipeline, copy it over the BepInExLaunch pipeline in your Build and Launch Pipeline, or replace BepInExLaunch anywhere you used it with the SteamBepInExLaunch pipeline.

References to the Launch Pipeline will be automatically updated to BepInExLaunch.

Templates

Two new Templates have been added to ThunderKit under ThunderKit/Editor/Templates
DirectLaunch is a new pre-configured Launch pipeline which directly executes the game's Executable in its working directory.
SteamLaunch is a new pre-configured Launch pipeline which executes the game's Executable in its working directory using Steam and the applaunch command line argument.

GameAppId and Steam Launching

In order to use any of the pre-configured Steam launching pipelines you will need to provide ThunderKit with the games Steam App Id.

Follow these Steps to setup Steam Launching

  1. Create a new PathReference under your Assets directory and name it GameAppId
  2. Add the Constant PathComponent to the newly created PathReference
  3. Find the Steam App Id for the game you're modding
  • You can find the SteamAppId easily by copying it from the game's Steam Store page url

After Completing these steups you're seting to use Steam Launching.

Fixes and Improvements

  • Recently a ManifestIdentity data loss issue was re-discovered, this has not yet been resolved but some pieces of code have been updated in response while a proper resolution is pending
  • Some PipelineJobs and PathComponents referenced a Manifests's ManifestIdentity by using LINQ to query for it in the Manifest's Data elements, these have been updated to use the Manifest's cached Identity reference.
  • StageThunderstoreManifest has been updated to provide a clearer error when a dependency is missing its ManifestIdentity
  • Some minor code cleanup was done against commented out code and unnecessary usings
  • Fixed LocalThunderstoreSource not updating its listing when it already has Packages listed
  • Fixed PackageSource.Clear Failing to clear Packages successfully under some conditions
  • Fixed PackageManager failing to render correctly when a Package has invalid dependency information

Stability and Performance Update

29 May 22:18
Compare
Choose a tag to compare

New Feature: PathComponent: Registry Lookup

the Registry Lookup path component has been added to support cases where values from the registry are needed to complete Pipeline efforts.
For example, some games require steam to execute them, and you may need to do so using the Steam executable.
The installed Steam executable can easily be located by looking up the value in the registry, and this provides a path to that.

Performance Improvements

  • ThunderstoreAPI has been updated to utilize gzip compression in order to greatly increase the speed of acquiring package listings.
  • Fixed MarkdownRenderer's LinkInlineRenderer leaking handles and memory
  • Fix an issue with SettingsWindowData and ThunderstoreSettings that would cause the settings window to have poor responsiveness

Bugs

  • Fix a pageEntry.depth to be pageEntry.Depth in Documentation.cs for Unity 2019+
  • Fix a NullReferenceException that could show up on the Settings window sometimes
  • Fix cases in PackageManager that could cause a null reference and fail to load the manager UI
  • Fix a problem that would cause a PackageSource to have no packages and be unable to be populated

Fix major issues with Manifest and AssetBundle creation

20 Apr 01:35
Compare
Choose a tag to compare

An issue that would prevent a Manifest from being created has been fixed
An issue that would prevent a created Manifest from having its ManifestIdentity has been fixed
An issue with the PackageManager installation process that would cause the ProgressBar to never close has been fixed.
Fix some issues with packages source initializing

Less Bugs

08 Apr 00:01
Compare
Choose a tag to compare

Manifest's contain a ManifestIdentity by default and expose that in the internal api, however sometimes this field was null and prevented a variety of jobs from functioning correctly.
Manifest's now make a best effort attempt to always present their ManifestIdentity

StageAssetBundles was updated to use FileUtil

Fixes for Package Installation

07 Apr 03:10
Compare
Choose a tag to compare

Some issues were identified in the package installation system which would prevent Manifests from having their dependencies assigned correctly.

.NET 3.5 Compatibility Update

28 Mar 22:13
Compare
Choose a tag to compare

This update implements support for .NET 3.5 and includes a number of general improvements and fixes

New Features

Optimization & Cleanup

  • Special thanks to Therzok for doing an optimization pass to clean up a number of cases where the code could be more efficient and cleaner.
  • A number of small code cleanup changes were conducted as well

Package Manager

  • Now updates when package sources are refreshed.
  • Now refreshes package sources when opened.
  • Now has a Refresh button next to the Filters button which will refresh all available PackageSources
  • PackageSources now invoke the SourcesInitialized event when a source has been updated
  • PackageSources can register an event handler on the InitializeSources event to be informed when it should update
  • Thunderstore API no longer automatically updates on a timer

3.5 Migration changes

  • Added csc.rsp and mcs.rsp to AssemblyDefinition containing folders to ensure that the correct language version is used for ThunderKit regardless of Scripting Back End choice.
  • Removed Async/Await as its not available in 3.5
    • Some cases were replaced with other asynchronous mechanisms.
    • More cases will be moved to asynchronous mechanisms in the future, however there are currently a few that were migrated to synchronous execution.
  • Migrate to Directory.GetFiles and Directory.GetDirectories over Directory.EnumerateFiles and Directory.EnumerateDirectories due to lack of support in .NET 3.5

Zip Changes

  • Migrated to SharpCompress from System.IO.Compression
  • Updated zip handling in ThunderstoreSource and LocalThunderstoreSource
  • Updated Zip PipelineJob to use SharpCompress

Markdown / Documentation changes

  • Improved method of locating Documentation assets
  • Significant improvements made to the UIElementRenderer allocations
  • Improvements to Regex Usage

File System changes

  • Migrated many file system management facilities to use FileUtil instead of System.IO types
  • Updated Copy PipelineJob to use FileUtil This changes how Copy works, A recursive copy will Replace the designated destination directory, not fill its contents
  • Stage Manifest Files now uses FileUtil to deploy files

BepInEx Template Changes

The BepInEx template has been updated to use some new features that arose out of the .NET 3.5 changes.
First, the template is somewhat large so it has been broken up into 4 Pipelines

  1. Stage: This pipeline executes StageAssetBundles, StageAssemblies, StageDependencies, StageManifestFiles and finally StageThunderstoreManifest.
  2. Deploy: Conducts the following Copy jobs
    1. Copy BepInEx to ProjectRoot/ThunderKit/BepInExPack
    2. Copy plugins to ProjectRoot/ThunderKit/BepInExPack/BepInEx/plugins
    3. Copy patchers to ProjectRoot/ThunderKit/BepInExPack/BepInEx/patchers
    4. Copy monomods to ProjectRoot/ThunderKit/BepInExPack/BepInEx/monomod
    5. Copy winhttp.dll to the Games root directory
    6. Copy a BepInEx config targeted by the PathReference named BepInExConfig if it is defined in the project to ProjectRoot/ThunderKit/BepInExPack/BepInEx/config
  3. Launch: Executes the games executable with the necessary command line parameters to load BepInEx
  4. Rebuild and Launch: Executes the 3 prior Pipelines in order.

To get started on a new mod project you only need to copy the Rebuild and Launch pipeline into your Assets folder and then populate the Manifest field.

Fixes

  • Fix various errors and issues in bepinex templates