本パッケージは、NINTENDO TWL-System 2.2.0です。
NINTENDO TWL-System は、ニンテンドーDSシリーズ用ゲームソフトの開発に使用できる基本的なツール&ライブラリ群の総称です。 この文書は、NINTENDO TWL-System 2.2.0のリリースノートです。
NINTENDO TWL-System パッケージには、下記に示すライブラリやツールが含まれています。
NINTENDO TWL-System のパッケージをローカルディスクの任意の場所に展開します。 NINTENDO TWL-System のパッケージはzip 形式で圧縮されていますので、各種解凍ツールを用いて展開してください。 パッケージを展開しますと、TwlSystem という名前のディレクトリが作成されます。
NINTENDO TWL-Systemを使用する場合には、環境変数TWLSYSTEM_ROOTが設定されている必要があります。 環境変数TWLSYSTEM_ROOT に、展開されたディレクトリTwlSystem の絶対パスを設定してください。 環境変数TWLSYSTEM_ROOT が指定されていない場合には、C:\TwlSystem が設定されたものとして扱われます。
TWL-System 2.2.0 PR版において、アーカイバnnsarc を1.1.2 版に更新しましたが、 この変更により互換性が無くなることによる影響が大きいため、 変更を取り消し、1.1.1 版に戻しました。
IS-TWL-DEBUGGER ソフトウェアがインストールされていない環境において mcsライブラリのビルドができるようになりました。
ただし、上記環境でビルドされたSRLファイルを IS-TWL-DEBUGGER ハードウェアで 動作させた場合、通信が機能しません。
PC の言語設定が日本語/英語以外の特定言語の場合に、中間ファイルに記述されている数値データの読み込みが正常に行われない不具合を修正しました。
アーカイバnnsarc が1.1.2 版になりました。1.1.2 版での変更点は下記の通りです。
VRAMマネージャマニュアル 3.1.2.1項 にある、 標準テクスチャの確保に関する記述を、実際の動作に合わせて修正しました。
セルアニメーションモジュールのApplyCurrentAnimResult_()関数内で 冗長な記述を修正しました。
NNS_G2D_POINTER_ASSERTがMAIN_EXアリーナ内のポインターに対して 正しく機能しない不具合を修正しました。
TWLビットマップフォント用の文字順序ファイル追加しました。
g2dcvgtrで、-cr/オプションが指定されなくてもキャラクタ位置情報ブロックが出力される不具合を修正しました。
-oオプションで指定したフォルダが存在しない場合、何も処理せずに正常終了していました。 これを、標準エラーメッセージを出力し、エラー終了するように修正しました。
5.5 付属文字順序ファイルに、TWLビットマップフォントの記述を追加しました。
TWLビットマップフォント追加に伴い、ファイル構成の記述を修正しました。
存在しない、引数typeに関する記述を削除しました。
g2d_screen.c の LoadScreenPartText関数にて、利用されていない変数の初期化をするコードを削除しました。
以下の関数の、関数リファレンスを追加しました。
ジョイント、マテリアル、シェイプの最大数をチェックするオプション -maxjnt、-maxmat、-maxshp を追加しました。
各種アニメーションにおいて範囲外のフレームが呼ばれた時に、種類によってアサートされたり最終フレームに丸め込むなど処理が統一されていなかったため、最終フレームに丸め込むように統一しました。
警告/エラー一覧を追加しました。
SMF ファイルをコンバートする際、 マーカーなどのテキストイベントのテキスト長がゼロの場合、 アプリケーションエラーが発生する問題がありましたが、 これを修正しました。
「バンクデータマニュアル」と「サウンドアーカイブマニュアル」に、 波形個別ロードの際、管理領域として 4 波形につき 32 バイト消費する旨 明記しました。
波形アーカイブの個別ロードオプションが有効なときと、 無効なときの挙動の違いについて説明を追加しました。
SoundPlayer を TWL 開発用実機や IS-TWL-DEBUGGER の NAND にインポートできる NANDSoundPlayer.tad を追加しました。 インポートした NAND SoundPlayer を実行すると、 SD カードのルートフォルダにある sdat ファイルのうち、 一番最初に見つかったものを自動的にロードします。
詳しくは、「サウンドデザイナーガイド」に「9.10 NAND SoundPlayer」をご覧ください。
TWL または IS-TWL-DEBUGGER で実行した場合、 I2S 周波数を切り替えられるようになりました。
詳しくは、「サウンドデザイナーガイド」の「9.4.5 I2S 周波数」をご覧ください。
SoundPlayer.srl を IS-TWL-DEBUGGER および TWL 開発用実機で起動し、 ストリームサウンドを再生すると暴走してしまうことがありましたが、 これを修正しました。
次の終了処理を行う関数を追加しました。 終了処理を呼ぶことで、初期化時に割り当てたワーク用メモリが 解放されます。
IS-TWL-DEBUGGER ソフトウェアがインストールされていない環境においても ビルドができるようになりました。
ただし、上記環境でビルドされたSRLファイルを IS-TWL-DEBUGGER ハードウェアで 動作させた場合、通信が機能しません。
IS-TWL-DEBUGGER ハードウェア上で動作している場合において、NNS_McsInit() の中で OS_InitTick(), OS_InitAlarm() を呼び出すようにしました。
TWL-Systemライブラリ(2.2.0 正式版)での変更を反映しました。
「NITRO-Player ユーザーマニュアル」で、 IS-NITRO-DEBUGGER と IS-TWL-MIDI を組み合わせて利用する方法について 説明を追加しました。
Adobe Photoshop CS のサポートを終了しました。
Maya 8.0 のサポートを終了しました。
3ds Max 8.0 のサポートを終了しました。
アーカイバnnsarc で作成したバイナリファイルには、 ByteOrderMarkが本来と逆の順序で格納されていまう問題があります。
修正により後方互換性が無くなることへの影響が大きいため、 現時点では、修正の予定はありません。
.nsbmd, .nsbtxファイルが持つテクスチャブロックのサイズの上限は、524272バイトになります。 つまり、512キロバイトには16バイト足りないサイズになります。 これは、VRAMキー内部のサイズ部が15ビットのフィールドを4ビット左シフトしたものであることが原因となっています。
MayaにおけるSSC(Segment Scale Compensate)もしくはSOFTIMAGE|XSIのHierarchical Scalingを使用したモデルに対して、スケール(特に強いスケールがかかったもの)アニメーションを含む複数のアニメーションをブレンドさせた場合、ブレンド後のスケールが不適切になることがあります。 この問題に対しては、以下のような対応策があります。
TwlSystem/build/libraries/g3d/src/anm.c 31行目 //#define FIX_SCALEEX_BLEND_BUG
同一のマテリアルを再送信しないように判定する処理に不具合があるため、 マテリアルの不要な更新処理のコストがかかります。 関連: ノート 81-R03、ノート 82-R01
現状 NAND SoundPlayer から IS-TWL-MIDI を認識できないため、 NAND SoundPlayer ではリアルタイム MIDI 再生ができません。 今後の TWL SystemUpdater (バージョン1.4以降) で改善される見込みです。
NITRO-Playerでのストリーム再生は、実際にはROMからリアルタイムにデータをロードするものを、PCから転送することで実現しています。従って、ストリーム再生中に音の途切れが生じる場合があります。特にADPCMデータの再生時には、顕著に発生します。
また逆に、NITRO-Player上で音の途切れが発生しないとしても、ゲーム中での再生時に音の途切れが発生しない保証にはなりませんので、注意してください。
ストリーム再生の確認には、SoundPlayerのご利用をお勧めします。
以下の3つの条件を満たしたとき、最後の2つのリージョンが読み込み時に1つのリージョンに結合されてしまう不具合があります。
ただし、結合される前と後とで、出力されるデータや音に、違いはありません。
NINTENDO TWL-System に関する情報は、TWL-System ソースツリーのdocs ディレクトリの中に収められています。 まずは、下記の文書からご覧ください。
TWL-System のセットアップ方法と、 TWL-System ライブラリとデモプログラムをビルドする為の手順について説明しています。
TWL-Systemに関する概要を説明しています。
以前のバージョンまでの変更点が記載されています。
TWL-System ライブラリは、基本的にスレッドセーフ(マルチスレッドに対応した形)に設計されていません。 このため、TWL-System の各ライブラリのAPI を割り込みハンドラや異なるスレッドから呼び出した場合、 正常に動作しない可能性があります。
ただし、サウンドドライバ(SND)の関数はスレッドセーフですので、 割り込みハンドラや異なるスレッドから呼び出すことができます。
TWL-System のG2D およびG3D ライブラリでは除算器を使用しています。 そのため、割り込み処理内で除算器の状態の退避/復元を行わずにTWL-System を使用しますと、 割り込み元の演算結果を破壊してしまう可能性があります。
割り込み処理でTWL-System を使用する場合には、TWL-SDK のCP_SaveContext(), CP_RestoreContext() を使用して、除算器の状態を退避・復元するようにしてください。
このパッケージに含まれるデモプログラムやサンプルプログラム等で使用されています画像データや音楽データの著作権は、 任天堂株式会社に有ります。 これらのデータは、デモプログラムやサンプルプログラム以外ではご使用頂けませんのでご了承ください。
NINTENDO TWL-System には、フォントコンバータfontcvtr が集録されています。 このfontcvtr を使用しますと、PC にインストールされている任意のフォントをニンテンドーDS で利用できるようなりますが、 これらのフォントを利用したソフトを発売するには、利用するフォントのライセンスが必要になります。 各ゲームソフトごとに適切なライセンスを取得してください。 fontcvtr およびTWL-System にはLC フォントを含め、いかなるフォントのライセンスも付属しません。
TWL-System に含まれる3DCGツール及びPhotoshop用プラグインは、TWL-System でも NITRO-System でもご利用頂けます。
なお、各アプリケーション上での表示は NITRO-System となりますのでご注意ください。
このパッケージには、Apache Software Foundation (http://www.apache.org/) により開発されたソフトウェアが組み込まれています。 Xerces-C++のNOTICEファイルとライセンスファイルのコピーは、下記のディレクトリに収録しています。
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
© 2005-2009 Nintendo © 2005-2009 HAL Laboratory, Inc. 任天堂株式会社の許諾を得ることなく、本書に記載 されている内容の一部あるいは全部を無断で複製・ 複写・転写・頒布・貸与することを禁じます。