Difference between revisions of "Custom holidays calendar"

From War Thunder Wiki
Jump to: navigation, search
m (I tried making the creating the calendar files and the UserHolidays a bit more simpler.)
Line 7: Line 7:
  
 
== How to create your own holiday calendar in War Thunder ==
 
== How to create your own holiday calendar in War Thunder ==
To specify on which dates the fireworks will be displayed, you need to create your own holiday calendar in the <code>''[any name]''.blk</code> file in the <code>''[game folder]''/UserHolidays/</code> folder, and then choose the calendar you’ve created in the game in Settings → Other → Holiday Region.
+
To specify on which dates the fireworks will be displayed, you need to create your own holiday calendar. To create the holiday calendar you need to create a new folder in the game files called <code>UserHolidays</code> . Then you need to create the <code>''[any name]''.blk</code> file and put it into the <code>UserHolidays</code> folder. You can create multiple of the <code>''[any name]''.blk</code>   files and select each calendar you’ve created in the game in Settings → Other → Holiday Region.
  
 
The syntax of the calendar is a simple one: first there’s the block name (test_holidays in the example below), and inside it there’s a line with the name of the holiday and its date in the  “day, month” format. For example, the file with Victory Day and New Year will look like this:
 
The syntax of the calendar is a simple one: first there’s the block name (test_holidays in the example below), and inside it there’s a line with the name of the holiday and its date in the  “day, month” format. For example, the file with Victory Day and New Year will look like this:

Revision as of 23:20, 21 August 2023

User Calendar Main.jpg You have probably already seen fireworks that War Thunder celebrates important dates with, such as New Year or Victory Day. Now users can define when fireworks will be displayed for them in War Thunder.

Create your calendar — add, for example, your birthday or the anniversary of your wedding. And then on these important dates War Thunder will greet you with a display of fireworks that will begin at 20:00 (player local time) until 06:00 the following day.

How to create your own holiday calendar in War Thunder

To specify on which dates the fireworks will be displayed, you need to create your own holiday calendar. To create the holiday calendar you need to create a new folder in the game files called UserHolidays . Then you need to create the [any name].blk file and put it into the UserHolidays folder. You can create multiple of the [any name].blk files and select each calendar you’ve created in the game in Settings → Other → Holiday Region.

The syntax of the calendar is a simple one: first there’s the block name (test_holidays in the example below), and inside it there’s a line with the name of the holiday and its date in the “day, month” format. For example, the file with Victory Day and New Year will look like this:

test_holidays { 
VictoryDay { dateDM:ip2 = 9,5 }
NewYear { dateDM:ip2 = 31,12 }
}

In this example you can just switch the dates for the ones you need or add new lines to the file. In the case where the dates change from year to year another format is used that has day, month and year separated by commas. Here’s an example of a calendar with two next Chinese New Years:

test_holidays { 
LunarNY23 { dateDMY:ip3 = 22,1,2023 }
LunarNY23 { dateDMY:ip3 = 10,2,2024 }
}

If you set up your .blk file like this in the UserHolidays folder and choose this calendar in the game, the fireworks will be displayed on the specified dates.