User Tools

Site Tools


japanesemanual:ja_newspapereditor

This is an old revision of the document!


新聞エディター

プレイヤーが新聞を開くとき、ゲームの世界ではあまり何も起きていない可能性が高いです。プレイヤーに空っぽの新聞を与える代わりに、地元の新聞に載っているような些細なチラシ記事で新聞を埋め尽くします。

これらのチラシ記事は、このエディターのリストからランダムに選択されます。歴史的な出来事やプレイヤー/aiの行動に関する記事は、それぞれターンイベントやゲームファイルで生成されます。



ファイルとその仕組み

ゲーム開始時に、NewspaperArticles.xmlファイルが読み込まれ、ゲームに保存されます。newspaper.htmlファイルが生成されると、紙面を埋めるのに十分な記事がない場合、ゲームはこのリストから年の範囲内の記事をランダムに選択します。その記事がゲーム内に表示されます。

記事自体はhtmlです。そのため、記事を作成する際にhtmlのスタイルを使用することができます。



エディター

次の図は新聞のエディターです。その下に、このエディターのパーツを分解します。

 Newspaper Editor

  1. エディター内の既存データを消去し、新しい新聞リストを作成します。
  2. 既存の新聞リストを開きます。
  3. 新聞リストをxmlファイルに保存します。
  4. 前のエディターまたはメインメニューに戻ります。
  5. これは現在エディターにある新聞記事のリストです。このリストからエントリーを選択すると、以下の情報が入力されます。
  6. これは新聞記事の本文です。記事はhtml4で、htmlタグが動作します。画像はturnevents newspaper images modファイルに含めてください。
  7. このボックスをチェックすると、新聞記事本文はローカライズファイルでローカライズされます。そのため、新聞記事の本文はローカライズテキストのID番号になるはずです。
  8. Start year is the first year in which this newspaper article can appear in the newspaper. End year is the last year that the article can appear.
  9. Adds the article to the list of articles.
  10. Removes the selected article from the list of articles.



Examples

Video Tutorials Coming Eventually.



Troubleshooting

Articles are Not Appearing in the Newspaper

Be sure that your included the NewspaperArticle.xml in a place that the game can see it. For example if you're making a mod file, include it with the mod and load the mod.

japanesemanual/ja_newspapereditor.1749638616.txt.gz · Last modified: 2025/06/11 06:43 by nichirinmotor