Difference between revisions of "Addon/ja"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Directory system)
(Addon dependencies)
Line 22: Line 22:
 
**** Sourceフォルダ(作者が許可している場合にのみ同梱されているソースコード)
 
**** Sourceフォルダ(作者が許可している場合にのみ同梱されているソースコード)
  
=== Addon dependencies ===
+
=== アドオンの依存関係 ===
Sometimes mods require other mods to work which should be mentioned in the readme, Curse or forum page. These are distributed too in most cases with the original mod, which should be checked before copying the contents. Sometimes a mod distribute an older version which might break other plugins which require the newer version. Even worse are mods with a different name, because then the same mod is installed twice which usually break the game. The best way to handle is only installing the mod itself and manually checking if any requirements are already installed and if they might need to be updated.
+
一部のアドオンはreadmeファイル、Curse、フォーラムで言及されている前提アドオンを別途導入する必要がある。ほとんどの場合で一括配布はされていないため、導入作業開始前に確認する必要がある。また付属の前提アドオンのバージョンが古く、最新版に自身で差し替える必要がある場合もある。さらに別名で旧版が残っているとアドオンの二重適用でゲームがクラッシュしてしまう。最善の対応策は前提アドオンの有無とバージョンを手動で確認することである。
  
A common addon which falls into this category is [[thread:55219|ModuleManager]], because many mods rely on it. Because the version number is in the filename so newer versions of ModuleManager don't overwrite older versions so that multiple versions are installed. But on the other hand it is easy to see which versions are installed and in the case of ModuleManager newer versions of it usually support mods which come with older versions.
+
この状況に最も当てはまるのは多数のアドオンで使用されている[[thread:55219|ModuleManager]]である。ModuleManagerはファイル名にバージョンが付加されているため新版を導入しても旧版は上書きされない。一方でそれはアドオン付属の場合にバージョンが把握しやすいという利点もある。
  
The [[thread:60863|Toolbar]] mod is similar to the ModuleManager but all version share the same directory (''<tt>000_toolbar</tt>'') which can cause that a newer version may only partially overwrite an old version.
+
[[thread:60863|Toolbar]] MODはModuleManagerと似ているがフォルダ名は統一(''<tt>000_toolbar</tt>'')されており、新版を導入することで部分的に上書きすることができる。
  
 
== Removing addons ==
 
== Removing addons ==

Revision as of 09:16, 23 October 2014

KSPではアドオンまたはMODプラグインを導入して公式バージョンを改造することができる。新パーツ、機構、システムを追加したり既存のものを置き換えたりすることができる。アドオンは公式開発チームではなくコミュニティの手で作成されており、ゲーム体験の枠を大幅に広げることができる。Squadはかつて公式アドオン配布サイトを運営していたが現在は閉鎖されCurse Networkを公認配布サイトとしている。他にはKSP専門アドオン配布サイトのKerbal Stuffがある。KSPは開発中ゲームでありながら多数のアドオン制作者が配布を行っている。かつての公式配布サイト"Kerbal SpacePort"は現在"Curse Network"に自動転送するようになっている。

他の入手先としてはKSP公式フォーラムのこのポストで確認することができる。

インストール

一般的なアドオンはGameDataフォルダに移動するだけでインストールが完了する。もしインストール方法が通常と異なる場合は同梱のreadmeファイル、Curseやフォーラムの投稿を確認する必要がある。アドオンにはGameDataフォルダに移動するものだけ配布されているものと、GameDataフォルダでまとめて配布されているものがある。GameDataフォルダを内部に含むフォルダで圧縮されているものもある。そのためGameDataフォルダで始まっていないアドオンはフォルダ階層を確認してGameDataフォルダが内部に無いか常に確認したほうが良い。

見本craftファイル(機体データ)を含むアドオンを例にしよう。これらは"Gamedata"ではなく"Ships/SPH"・"Ships/VAB"フォルダに移動する必要がある。見本Subassemblyなら"Subassemblies"フォルダに移動させる必要がある。

配布形式が圧縮ファイルであってもアドオンは展開して導入する必要がある。通常アドオンに使用されている圧縮形式は各PCの標準機能でも展開可能だが、web上により有用な圧縮展開ソフトもある。

version0.20より現在のGameDataフォルダ構造が採用された。そのため旧式の複雑なフォルダ構造を利用するアドオンとは競合を起こす可能性がある。

フォルダ構造

ZIP圧縮ファイルの内部構造は通常以下の通りになっている。

  • アドオン名のフォルダ(省略あり)
    • GameDataフォルダ(省略あり)
      • アドオン名のフォルダ(前述のフォルダと2重になっているかは要確認)
        • readmeやchangelogなどのテキストファイル
        • Partsフォルダ(追加されるパーツの構成データ)
        • Pluginsフォルダ(追加される新システム用のプラグイン名.dll)
        • Sourceフォルダ(作者が許可している場合にのみ同梱されているソースコード)

アドオンの依存関係

一部のアドオンはreadmeファイル、Curse、フォーラムで言及されている前提アドオンを別途導入する必要がある。ほとんどの場合で一括配布はされていないため、導入作業開始前に確認する必要がある。また付属の前提アドオンのバージョンが古く、最新版に自身で差し替える必要がある場合もある。さらに別名で旧版が残っているとアドオンの二重適用でゲームがクラッシュしてしまう。最善の対応策は前提アドオンの有無とバージョンを手動で確認することである。

この状況に最も当てはまるのは多数のアドオンで使用されているModuleManagerである。ModuleManagerはファイル名にバージョンが付加されているため新版を導入しても旧版は上書きされない。一方でそれはアドオン付属の場合にバージョンが把握しやすいという利点もある。

Toolbar MODはModuleManagerと似ているがフォルダ名は統一(000_toolbar)されており、新版を導入することで部分的に上書きすることができる。

Removing addons

In most cases, addons can be easily removed by deleting the addon directory in the GameData directory. Sometimes it other mods require the removed addon which then need to be removed too. If the addon introduced additional parts, craft which use those parts can't be loaded or approached. To disable the functionality without losing the craft, it is possible to change the file extension of all DLL files or remove them completely in the mod directory. Upon loading the game, the mod's code won't be loaded but the parts are still available.

As for installing, removing addons which use the directory system prior to 0.20 is more complex. Each file which was added in that mod needs to be removed manually usually and if files were merged, those needs to be undone.

Addons described on this wiki

Deprecated Mods

See also

  • List of mods: an incomplete list of the most important mods.