HAPPY HACKING OF NWN / CCG / 2DA


mule's NWN notebook

目次

1 一般

2 使用法

3 フォーマット

4 2DAsのタイプ

5 エンジン2DAs

6 アイテム特性/サブタイプ テーブル2DAs

7 アイテム特性/コスト修正 テーブル2DAs

8 アイテム特性/パラメーター テーブル2DAs

9 デザイン2DAs

General

一般

2DAは「2D配列」を表わします、それはデータのフィールドを含んでいるインデックスが付けられた列およびカラムを含む外にリストするテキストファイルです、ゲーム・エンジンは、様々なサブシステムの振る舞いを形成するためにこのデータを使用します。

Usage

使用法

それらはカスタムコンテンツを入れた上でオーバーライドまたはHakPaksの中でNWNの中のデフォルト2DA情報に取って代わるために使用されます。例えば、新しいクリーチャーを作成する場合、クリーチャーがどんなモデルファイルをしようするなかというような情報をNWNに伝えるためにappearance.2daファイルにラインを加えるか修正しなければなりません。血液の色、移動速度、歩くときの足跡音のようなものです。

Format

フォーマット

2daファイルは(カズタマイズやその他の理由で)書かれた時、Biowareによって定義されるように、正確なフォーマットでないといけません―また保存するときのファイル名は16文字(「XXXXXXXXXXXXXXXX.2da」)を越えてはなりません、また、これは実際には2次元の配列として解釈されるテキストファイル(つまり、Textpadで編集できる)です。  フォーマットは一行目では2DA V2.0 から成ります。新しいラインによってseperatedされて、2daのファイル中の各カラムのラベルが入ります、ただし1番目は「無名のラベル」です。次に、その下のラインにおいては、それぞれのカラムに情報が入ります。各カラムは1つ以上の「余白(スペース)」によってseperatedされます 。列が正確にカラム・ヘッダーと一致しない場合、エラーが生じます。

次に示すのは完全に正常な(カスタム)2daのファイルです:

2DA V2.0

   Label              ResRef

0 GNOME_SORCEROR gnome_1 1 HAPPY_ELF creature_happyguy 2 DEATH_STAR **** 3 **** **** 4 LUNCH plate_chips

Partly non-sensical, notworthy things a 2da file must conform to include (some of which are above): 部分的に非sensical(含めるために(それらのうちのいくらかは終わる)2daのファイルが一致しなければならないnotworthyもの):

4つの星、「****」は、エントリー・データ・フィールド(すなわち 「DEATH_STAR」とラベルされたカラムのための「ResRef」はありません。 および、列3にはなにもデータがありません)を意味します。 Each row must have a number reference (here, 0 to 4) that increments by one, leaving no gaps. Line 3 is a valid use of stars to extend a 2da file (padding) to make sure that the line with LUNCH one doesn't jump a row. We cannot add a new row which is numbered 7 here, without rows 5 and 6. 各列は(数)関係のあるに違いありません(ギャップを残さずに、1だけインクリメントする)(ここに0〜4)。3行目はLUNCH 1を備えたラインが列をジャンプしないことを確かめるために2daのファイル(パディング)を拡張する星の有効な使用です。私たちは、列5および6なしでは、ここに7と番号付けられる新しい列を加えることができません。 Each new row is on a new line. 個々の新しい列は新しいライン上にあります。 Each data field is seperated by one or more spaces " ", but it doesn't matter how many. 各データ・フィールドは1つ以上のスペースによってseperatedされます"「しかし、それは重要ではありません、どれくらい多く。 Note: this 2da file will do exactly the same as the one above: 注:この2daのファイルは、正確に上記のものと同じをするでしょう:

2DA V2.0

Label                         ResRef

0 GNOME_SORCEROR gnome_1 1 HAPPY_ELF creature_happyguy 2 DEATH_STAR **** 3 **** **** 4 LUNCH plate_chips

2DA V2.0ラベルResRef0 GNOME_SORCEROR gnome_11 HAPPY_ELF creature_happyguy2 DEATH_STAR****3の********4 ランチplate_chips However, readability is very important in some cases - so it is nice to have it properly formatted with readable columns, like Bioware uses. しかしながら、読みやすさはある場合には非常に重要です。したがって、Biowareが使用するように、判読可能なカラムで適切にフォーマットされて、それを持っていることはよい。

Types of 2DAs

2DAsのタイプ Most of the 2DAs in a default installation of NWN are engine 2DAs. These 2DAs are read directly by the engine on both the client and the server. Their formats (i.e. the number and names of the columns) are fixed and already set by the expectations of the game engine. You cannot add new columns to such 2DAs (you can, but they won't be read and will probably crash the game). NWNのデフォルト装置中のほとんどの2DAsはエンジン2DAsです。これらの2DAsは、クライアントおよびサーバーの両方上のエンジンによって直接読まれます。それらのフォーマット(つまりカラムの数および名前)はゲーム・エンジンの期待によって固定し既にセットされます。そのような2DAs(あなたはできる(それらは読まれず、恐らくゲームを衝突させるでしょう))に新しいカラムを加えることができません。 Design 2DAs are not read by the client engine. The data in these is only read by scripts using calls to Get2DAString(). Design 2DAs are only read by the server and thus do not need to be distributed within any HakPaks! These 2DAs can be used to configure custom-made systems. The format of these 2DAs is created by the designer. The number and names of the columns can be whatever suits the designer's purpose. Examples of these that come in the default installation are all the 2DAs beginning with "des_" which are used for some of the new crafting and treasure systems in HotU. 設計2DAsはクライアント・エンジンによって読まれません。これらの中のデータはGet2DAString()への呼び出しを使用して、スクリプトによって単に読まれます。設計2DAsはサーバーによって読まれるだけであり、任意のHakPaksの内にこのように分配される必要がありません!これらの2DAsは注文仕様のシステムを形成するために使用することができます。これらの2DAsのフォーマットはデザイナーによって作成されます。カラムの数および名前はデザイナーの目的に適するものすべてでありえます。デフォルト設置に来るものの例はすべて、"新しく巧妙に作ることおよびHotUの中の宝システムのうちのいくらかのために使用されるdes_"で始まる2DAsです。

In all 2DAs, you can normally change the number and contents of rows so long as you remember that some rows may have special meaning to other subsystems in the engine. すべての2DAsの中で、いくつかの列がエンジンに他のサブシステムに対して特別の意味を持っているかもしれないことを思い出す限り、通常列の数および内容を変更することができます。

Note that the filenames of 2da files may not exceed 16 characters in length. 2daのファイルのファイル名が長さの点で16文字にまさらないかもしれないことに注意してください。


Engine 2DAs

Here are all the engine .2DA's in NWN:

Item Properties, SubType Tables 2DAs

Item Properties, Cost Modifier Tables 2DAs

Item Properties, Parameter Tables 2DAs

Design 2DAs

Here are all the design .2DA's in NWN. Max Index is not limited as are in engine .2DAs. These are specific to the HotU OC modules though are useable elsewhere or not as the designer wishes: