<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>MOD on えやみぐさ</title>
    <link>https://blog.aoirint.com/tags/mod/</link>
    <description>Recent content in MOD on えやみぐさ</description>
    <generator>Hugo -- 0.164.0</generator>
    <language>ja</language>
    <lastBuildDate>Thu, 21 Aug 2025 22:30:00 +0900</lastBuildDate>
    <atom:link href="https://blog.aoirint.com/tags/mod/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Lethal Company Mod Zehs-StreamOverlaysを例としたMod改変手順</title>
      <link>https://blog.aoirint.com/entry/2025/lethal_company_mod_editing_stream_overlays/</link>
      <pubDate>Thu, 21 Aug 2025 22:30:00 +0900</pubDate>
      <guid>https://blog.aoirint.com/entry/2025/lethal_company_mod_editing_stream_overlays/</guid>
      <description>&lt;p&gt;Zehs-StreamOverlaysの手元での改変を試したので、他のMod改変で共通して使える知見として、メモしておきます。&lt;/p&gt;
&lt;p&gt;今回は公開を目的としたものではなく、知見も持っていないので、Thunderstoreへの公開は内容に含まれていません。&lt;/p&gt;
&lt;p&gt;Zehs-StreamOverlaysのソースコードは、MIT Licenseで配布されており、改変箇所を示すため、一部引用します。&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/ZehsTeam/Lethal-Company-StreamOverlays&#34;&gt;GitHub&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://thunderstore.io/c/lethal-company/p/Zehs/StreamOverlays/&#34;&gt;Thunderstore&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;バージョン情報&#34;&gt;バージョン情報&lt;/h2&gt;
&lt;p&gt;以下のバージョンを想定しています。&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Lethal Company v72 (Build ID: 18916695)&lt;/li&gt;
&lt;li&gt;Windows 11 24H2&lt;/li&gt;
&lt;li&gt;.NET SDK 9.0.201&lt;/li&gt;
&lt;li&gt;BepInEx v5.4.21&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/ZehsTeam/Lethal-Company-StreamOverlays/commit/8ba3632a2ba7b8f5a4e9564d0c737ea80f7e2847&#34;&gt;ZehsTeam/Lethal-Company-StreamOverlays@8ba3632&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;beplnex-プラグイン開発環境の設定&#34;&gt;BeplnEx プラグイン開発環境の設定&lt;/h2&gt;
&lt;p&gt;BeplnEx公式チュートリアルの開発環境の設定手順に従って、プラグイン開発環境を構築します。&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://docs.bepinex.dev/articles/dev_guide/plugin_tutorial/1_setup.html&#34;&gt;Basic plugin: Setting up the development environment | BepInEx Docs&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://github.com/BepInEx/bepinex-docs/blob/ca4a9972db33ba98034ba461aa820b110390241f/articles/dev_guide/plugin_tutorial/1_setup.md&#34;&gt;GitHub: 記事執筆時点のソース@ca4a997&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;依存関係のセットアップ&#34;&gt;依存関係のセットアップ&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://thunderstore.io/c/lethal-company/p/AinaVT/LethalConfig/&#34;&gt;Thunderstore: LethalConfig&lt;/a&gt; v1.4.6&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://thunderstore.io/c/lethal-company/p/LethalCompanyModding/ShipInventoryUpdated/&#34;&gt;Thunderstore: ShipInventoryUpdated&lt;/a&gt; v1.2.13&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://thunderstore.io/c/lethal-company/p/Sigurd/CSync/&#34;&gt;Thunderstore: CSync&lt;/a&gt; v5.0.1&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Thunderstoreの「Manual Download」からzipファイルをダウンロードして、中のDLLファイルを取り出します。&lt;/p&gt;
&lt;p&gt;そのままビルドに使うと、以下のようなエラーが発生します。&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-plain&#34; data-lang=&#34;plain&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ DOTNET_CLI_UI_LANGUAGE=en dotnet build --configuration Release       
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Restore complete (0.5s)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  StreamOverlays failed with 4 error(s) (0.3s)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    D:\workspaces\lethal_company_modding_workspace\Lethal-Company-StreamOverlays\StreamOverlays\Dependencies\ShipInventoryProxy\Patches\ChuteInteractPatch.cs(10,40): error CS0117: &amp;#39;ChuteInteract&amp;#39; does not contain a definition for &amp;#39;SpawnItemClientRpc&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    D:\workspaces\lethal_company_modding_workspace\Lethal-Company-StreamOverlays\StreamOverlays\Dependencies\ShipInventoryProxy\Patches\ItemManagerPatch.cs(10,38): error CS0117: &amp;#39;ItemManager&amp;#39; does not contain a definition for &amp;#39;UpdateCache&amp;#39;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    D:\workspaces\lethal_company_modding_workspace\Lethal-Company-StreamOverlays\StreamOverlays\Dependencies\ShipInventoryProxy\ShipInventoryProxy.cs(12,39): error CS0122: &amp;#39;LCMPluginInfo&amp;#39; is inaccessible due to its protection level
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    D:\workspaces\lethal_company_modding_workspace\Lethal-Company-StreamOverlays\StreamOverlays\Plugin.cs(16,18): error CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Build failed with 4 error(s) in 1.1s
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;BepInEx.AssemblyPublicizer&lt;/code&gt;を使って、エラーの原因のアクセス制御を無効化したDLLを作成します。これらのDLLはビルド時のみ使用します。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
