Difference between revisions of "Custom holidays calendar"

From War Thunder Wiki
Jump to: navigation, search
m (I changed the second LunarNY23 to LunarNY24)
m
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. 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.
+
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. If there is no such folder and/or file, create them yorself.
  
 
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:
Line 20: Line 20:
 
<pre>test_holidays {  
 
<pre>test_holidays {  
 
LunarNY23 { dateDMY:ip3 = 22,1,2023 }
 
LunarNY23 { dateDMY:ip3 = 22,1,2023 }
LunarNY24 { dateDMY:ip3 = 10,2,2024 }
+
LunarNY23 { dateDMY:ip3 = 10,2,2024 }
 
}</pre>
 
}</pre>
  

Revision as of 15:23, 22 August 2023

Introducing Wiki 3.0
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 in the [any name].blk file in the [game folder]/UserHolidays/ folder, and then choose the calendar you’ve created in the game in Settings → Other → Holiday Region. If there is no such folder and/or file, create them yorself.

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.