Начните вводить название — например, MoreHead, Sodium или PEAK

AutoHookGenPatcher — иконка
Обложка STRAFTATМод для STRAFTAT

AutoHookGenPatcher

от bananasov

Автоматически генерирует MonoMod. RuntimeDetour. Файлы HookGen MMHOOK на этапе предварительной загрузки BepInEx.

  • Редкий
  • 904 скачиваний
  • Версия 1.0.4
  • Обновлён 11 января 2025
  • Не обновлялся больше года
  • Инструменты

О моде AutoHookGenPatcher

AutoHookGenPatcher — мод для STRAFTAT (Страфтат) от автора bananasov. Автоматически генерирует MonoMod. RuntimeDetour. Файлы HookGen MMHOOK на этапе предварительной загрузки BepInEx.

Его скачали 904 раз: это 41-е место среди модов STRAFTAT в нашем каталоге, редкость — «редкий» (топ-50% по скачиваниям). Мод давно не обновлялся — проверьте совместимость с текущей версией игры, актуальная версия — 1.0.4.

Для работы ему нужны: BepInExPack, DetourContext Dispose Fix.

Полное описание AutoHookGenPatcher

Текст автора на языке оригинала

AutoHookGenPatcher

Automatically generates MonoMod.RuntimeDetour.HookGen's MMHOOK files during the BepInEx preloader phase.

Manual Installation: Move the BepInEx folder from the ZIP file to the BepInEx folder of the game.

This project is not officially linked with BepInEx nor with MonoMod.

This software is based off of HookGenPatcher by HarbingerOfMe, which is also licensed under MIT.

Differences to the original HookGenPatcher

  • Instead of only having a fixed list of files to generate MMHOOK files for, AutoHookGenPatcher will get the MMHOOK file references from installed plugins, and generates those MMHOOK files if possible.
  • AutoHookGenPatcher makes use of a cache file to quickly check if everything is still up to date, without needing to check every MMHOOK file for that information.
  • Hook Generation is now multithreaded, meaning that generating multiple MMHOOK files takes less time. For example, generating an MMHOOK file for every file in the Managed directory of Lethal Company takes about 22.5 seconds instead of 40.0 seconds it would take with no multithreading, on my machine.

Usage For Developers

Note: By default, AutoHookGenPatcher already generates an MMHOOK assembly for Assembly-CSharp.dll. So if you only need MMHOOK_Assembly-CSharp.dll, you don't need to do anything.

Using AutoHookGenPatcher is really simple, and the only thing you need to do is tell it to generate the MMHOOK files you want in the first place. This can be by editing the config file AutoHookGenPatcher.cfg, and setting the [Generate MMHOOK File for All Plugins] setting's Enabled value to true:

[Generate MMHOOK File for All Plugins]

## If enabled, AutoHookGenPatcher will generate MMHOOK files for all plugins
## even if their MMHOOK files were not referenced by other plugins.
## Use this for getting the MMHOOK files you need for your plugin.
# Setting type: Boolean
# Default value: false
Enabled = true

## Automatically disable the above setting after the MMHOOK files have been generated.
# Setting type: Boolean
# Default value: true
Disable After Generating = true

When you publish your mod, make sure to add AutoHookGenPatcher as a dependency in the package you upload.

Q&A

How does AutoHookGenPatcher figure out which MMHOOK files my mod references?

  • During the BepInEx Preloader phase, AutoHookGenPatcher will open and read the metadata of every DLL file\* for referenced assemblies and looks for references that start with MMHOOK_. It will then check if any installed assemblies match the rest of the name, and will run MonoMod's HookGen on those assemblies if they exist.

\*This is only done if the date modified metadata of the assembly on disk is newer than previous known date in AutoHookGenPatcher's cache file, if a cache entry exists for the assembly. Referenced MMHOOK assemblies are also saved in the cache.

Нужно для работы

В r2modman ставится автоматически

Как установить AutoHookGenPatcher

Файл скачивается с официального сервера Thunderstore, без перезаливов и сторонних установщиков

Подробная инструкция для STRAFTAT
  1. Скачайте менеджер модов r2modman (или Gale) и выберите в нём игру STRAFTAT.
  2. Создайте профиль — так моды не смешаются с чистой версией игры.
  3. Найдите «AutoHookGenPatcher» во вкладке Online и нажмите Download — BepInEx и все зависимости подтянутся сами.
  4. Нажмите «Start modded» — игра запустится с модами.
  5. Чтобы сыграть без модов, запустите игру как обычно из Steam — r2modman не трогает чистую версию игры.
Вы автор мода? Поставьте ссылку на русское описание

Вставьте значок в описание на Thunderstore, в README или в Discord — русскоязычные игроки сразу попадут на страницу с переводом и инструкцией.

Описание на русском — Модка
Markdown[![Описание на русском — Модка](https://modka.app/badge.png)](https://modka.app/straftat/bananasov-autohookgenpatcher/)
HTML<a href="https://modka.app/straftat/bananasov-autohookgenpatcher/"><img src="https://modka.app/badge.png" alt="Описание на русском — Модка" height="44"></a>
Steam (BBCode)[url=https://modka.app/straftat/bananasov-autohookgenpatcher/]Описание на русском — Модка[/url]

Частые вопросы о AutoHookGenPatcher

Как установить AutoHookGenPatcher?

Скачайте менеджер модов r2modman (или Gale) и выберите в нём игру STRAFTAT. Создайте профиль — так моды не смешаются с чистой версией игры. Найдите «AutoHookGenPatcher» во вкладке Online и нажмите Download — BepInEx и все зависимости подтянутся сами. Нажмите «Start modded» — игра запустится с модами. Чтобы сыграть без модов, запустите игру как обычно из Steam — r2modman не трогает чистую версию игры.

Безопасен ли AutoHookGenPatcher?

Файл скачивается с официального сервера Thunderstore, куда его загрузил bananasov. Мы не перезаливаем и не изменяем моды.

Что нужно для работы AutoHookGenPatcher?

Установите вместе с ним: BepInExPack, DetourContext Dispose Fix. В менеджере модов зависимости подтягиваются автоматически.

Когда AutoHookGenPatcher обновлялся последний раз?

11 января 2025, актуальная версия — 1.0.4. Это больше года назад: перед установкой проверьте, работает ли мод на текущей версии игры.

Похожие моды

Все моды на STRAFTAT
Custom Levels Reborn — иконка

Custom Levels Reborn

Пользовательская карта для STRAFTAT

Эпический3,2 тыс.Инструменты

WallLeaks — иконка

WallLeaks

Невидимые стены и коллайдеры с переключаемым красным наложением (F6)

Редкий1,1 тыс.Инструменты

Straftat LobbyRank — иконка

Straftat LobbyRank

Мод, который отображает ранги людей под их именами

Редкий1 тыс.Инструменты

TrueSens — иконка

TrueSens

Установите чувствительность в см/360, каждый зум соответствует 1:1

Обычный634Инструменты

STREPLAY — иконка

STREPLAY

Повторение для STRAFTAT. Каждый раунд записывается автоматически; наблюдайте за ним на реальной карте с собственного ракурса (HUD, руки, звуки), бесплатной камерой или любым игроком и визуализируйте клипы до 4K с размытием движения.

Обычный450Инструменты

Console — иконка

Console

Приставка разработчика в стиле Source для Straftat. Делает классные вещи и настраивает любой мод, который у вас есть!

Обычный362Инструменты