「環境の準備」の編集履歴(バックアップ)一覧に戻る
環境の準備 - (2012/05/30 (水) 00:35:27) のソース
#contents ---- **はじめに(用意するもの) MODの開発をする為に用意するもの。 *** Module System いわゆる「ソース」と呼ばれているもの。 現在はVer1.010対応のものがリリースされています。 DL先:&s(){http://forums.taleworlds.net/index.php/topic,49267.0.html} http://www.mbrepository.com/file.php?id=1694 *** Python Pythonはオープンソースのプログラム言語です。参考→[[Wikipedia>http://ja.wikipedia.org/wiki/Python]] Module Systemを弄った後は自分でコンパイルしなければいけませんが、その際に必要となります。 DL先:http://www.python.org/download/ どれを落としたら良いか判らない時は「Python 2.6.1 Windows installer」を落としてください。 #ref(Python2.6.1_Download.png) インストール後、どのディレクトリからでもPythonを呼び出せるようにPathの設定をします。 環境変数PATHの設定:http://www.pythonweb.jp/install/setup/index1.html (環境変数PATHを反映させるため再起動する必要があるかもしれません) 上記Python2.6.1をデフォルトでインストールした場合、指定するPathは「C:\Python26」となります。 異なるバージョンをインストールした場合や、インストール先を変更した場合は適宜それに合わせてください。 ※python2.7.3を使用していますが、「’python’は、内部コマンドまたは外部コマンド~」と言う エラーでうまく行かなかった時に、環境変数にPATHを追加して「%PATH%;C:\Python27」と指定したら 上手く行きました。コメント欄が見られなかったので、ここに記入します。記入内容に違和感等ありましたら 修正お願いします *** Mount&Blade本体 コンパイルした後、テストするときに必要です。必ずModule Systemとバージョンを合わせてください。 EnableEditModeにするとMod制作に便利なコマンドが使えます。 有効にする方法はゲーム起動時に[Configure]→[Advanced]タブ→[EnableEditMode]にチェックを入れてください。 *** 自分のMODを作る準備 \Mount&Blade\Modules\にあるNativeというフォルダをコピーして好きな名前を付けます。半角英数字が無難です。 Module Systemの中のmodule_info.pyを開いて出力するパスを設定します。パスの設定する際に、スラッシュ</>を使いバックスラッシュ<\>を使わないこと。 たとえば自作Modのフォルダ名がnewmodならば、↓のように記述します。 C:/Program Files/Mount&Blade/Modules/newmod/ 次にModule Systemフォルダの中のbuild_module.batをダブルクリックするとコンパイルが始まります。 このように表示されれば成功です。 Initializing... Compiling all global variables... Exporting strings... Exporting skills... Exporting tracks... Exporting animations... Exporting meshes... Exporting sounds... Exporting skins... Exporting map icons... Creating new tag_uses.txt file... Creating new quick_strings.txt file... Exporting faction data... Exporting item data... Exporting scene data... Exporting troops data Exporting particle data... Exporting scene props... Exporting tableau materials data... Exporting presentations... Exporting party_template data... Exporting parties Exporting quest data... Exporting scripts... Exporting mission_template data... Exporting game menus data... exporting simple triggers... exporting triggers... exporting dialogs... Checking global variable usages... ______________________________ Script processing has ended. Press any key to exit. . . *** Module System内のファイルの説明 [[Module System]]の頁を参照してください。 ----