User Tools

Site Tools


modtools:newspapereditor

This is an old revision of the document!


Newspaper Editor

This is the random articles for the newspaper editor. This is only used for filler articles. Articles for historical events or player/ai actions are generated in the turn events and in game files respectively.

Files And How It Works

At the start of the game, the NewspaperArticles.xml file is read and stored in the game. Upon generation of a newspaper.html file, if there are not enough articles to fill the paper, the game will randomly select an article within the year range from this list. That article is then displayed in game.

The articles themselves are html. As such you can use html styling when creating the articles.

The Editor

The following picture is of the newspaper editor. Below it we will break down the parts of this editor.

 Newspaper Editor

  1. Ordered List Item

Examples

Troubleshooting

Articles are Not Appearing in the Newspaper

modtools/newspapereditor.1500054677.txt.gz · Last modified: 2022/02/15 17:58 (external edit)