Skip to content

Posts from disable unwanted weeks.

No ratings yet — be the first to rate!
11 years ago
Auto-translated
Could you please advise on how to remove the weekly plague and other events from an editable map, leaving only the events that increase creature numbers and neutral creatures?
User Avatar
11 years ago
Auto-translated
I'd like to add to the discussion and ask another question: how do you add your own week? For example, how do you do it like in Heroes of Might and Magic III, where you can build the "Eternal Week of Demons" when constructing the Grail?
User Avatar
11 years ago
Auto-translated
In the map properties tree, there is MoonCalendar – a property that controls the weeks. Although it is locked, the property still functions.
3 years ago
Auto-translated
And how do you disable them? They get in the way, especially the incredible ones, and they don't offer much in terms of growth, but they clutter the map significantly.
User Avatar
1 year ago
Auto-translated

The MoonCalendar files determine the types of weeks. By default, GameMechanics/MoonCalendar/Default.xdb is used for regular maps, and GameMechanics/MoonCalendar/NoMonsterWeeks.xdb is used for weeks without monsters in random maps. If you need to remove a specific week from the pool for all maps in the game, find its ID in Default.xdb and replace it with another. For example, replace WEEK_OF_DISEASE with WEEK_OF_FOX.

The map editor supports selecting a specific pool of weeks for individual maps. To do this, open the advanced map editor and configure the MoonCalendar table. Create a new MoonCalendar file (right-click => New), which will create a template for all months, but with the ID WEEK_OF_NOTHING instead of weeks. Fill in the weeks as desired. One block of five weeks corresponds to a month. For example, you can create months with only fox weeks, only salamander weeks, and so on. Explanatory screenshots from the editor are provided below.

After that, save the created file (when working with an open map, it will be saved directly to the map; when working in an empty editor, it will be saved to data/) and specify the path to it using the notepad in your map's map.xdb file, following the example shown in the screenshot.

IMPORTANT

I am attaching a "fix" for the editor that opens the MoonCalendar option in MapProperties. When using it, open your map, find the MoonCalendar line in the map properties, click New in it, and enter the name of the new "calendar." Then, as in the previous step, configure the weeks and save.
You do not need to attach the fix file to the map. Nor do you need to store it. It is enough to place it in the data/ folder of your game, create a calendar, and save. After configuring the calendar, the fix can be removed.

Place the fix like this: GameFolder/data/types.xml

Attachments 5
5 files attached • Total size: 254.9 KB

Statistics

Welcome our newest member: recijeb