-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbase-loader.cfg
More file actions
157 lines (120 loc) · 3.95 KB
/
base-loader.cfg
File metadata and controls
157 lines (120 loc) · 3.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
#textdomain wesnoth-Invasion_from_the_Unknown
#
# Naia library
#
#ifhave ~add-ons/Naia/loader.cfg
{~add-ons/Naia/loader.cfg}
#else
#ifhave ./Naia/loader.cfg
#define NAIA_EMBEDDED
Invasion_from_the_Unknown#enddef
{./Naia/loader.cfg}
#endif
#endif
#ifndef NAIA_VERSION
#error Naia or a Naia base library component is missing. Cannot continue loading this add-on.
#endif
#
# Local library
#
# LD provides a simpler, shorter way of including WML files by using only
# relative paths (to the add-on's directory).
#define LD __PATH__
{~add-ons/Invasion_from_the_Unknown/{__PATH__}}#enddef
{LD /mainline-strings.cfg}
#ifndef EDITOR
#ifndef __WMLUNITS__
# DIFF includes WML conditionally depending on the selected difficulty. I
# prefer this to mainline's ON_DIFFICULTY macro, which has an exceedingly
# long name for such an ubiquitous purpose. There is no whitespace (e.g.
# tabs, newlines, blanks) around the inclusions in order to avoid issues
# when the substitution is performed in middle of a string literal.
#ifdef EASY
#define DIFF _ON_EASY _ON_NORMAL _ON_HARD
{_ON_EASY}#enddef
#endif
#ifdef NORMAL
#define DIFF _ON_EASY _ON_NORMAL _ON_HARD
{_ON_NORMAL}#enddef
#endif
#ifdef HARD
#define DIFF _ON_EASY _ON_NORMAL _ON_HARD
{_ON_HARD}#enddef
#endif
#define PERSISTENT_NS_IFTU
"Project_Ethea.Invasion_from_the_Unknown" #enddef
#define ACHIEVEMENT:NAMESPACE
{PERSISTENT_NS_IFTU} #enddef
[language]
type_union= _ "damage_type^union"
[/language]
# NOTE: do not change the order in which these files are preprocessing unless
# you are very sure of what you are doing.
[lua]
code = <<
PROJECT_ETHEA_RECONSTRUCTION_VERSION = '>>+"{LD dist/VERSION}"+<<'
naia_package {
global_id = 'project_ethea.Invasion_from_the_Unknown',
name = 'Invasion from the Unknown',
i18n_name = wesnoth.textdomain('wesnoth-Invasion_from_the_Unknown')('Invasion from the Unknown'),
version = PROJECT_ETHEA_RECONSTRUCTION_VERSION,
abbreviation = 'IftU',
tracker_url = 'https://github.com/project-ethea/Invasion_from_the_Unknown/issues',
forum_thread = 'https://forums.wesnoth.org/viewtopic.php?t=43309',
maintainer_mode = filesystem.have_file('~add-ons/Invasion_from_the_Unknown/base-maint.cfg'),
minimum_host = '1.17.23',
maximum_host = '1.20.x',
-- cf. <https://github.com/project-ethea/After_the_Storm/issues/108>
disallow_hosts = { '1.19.19',
'1.19.19+dev',
'1.19.20',
'1.19.20+dev',
'1.19.21' },
experimental = (...).experimental,
lua_prefix = '~add-ons/Invasion_from_the_Unknown/lua',
modules = {
'overrides',
'theme',
'gui/outro_teaser',
'Invasion_from_the_Unknown',
}
}
local journeylog_cfg = wml.get_child(..., "journeylog_config")
journeylog.register_character_profiles(journeylog_cfg)
journeylog.register_world_lore_entries(journeylog_cfg)
journeylog.register_recap_entries(journeylog_cfg)
journeylog.register_achievements(journeylog_cfg)
>>
[args]
#ifver WESNOTH_VERSION >= 1.19.0
experimental=yes
#endif
[journeylog_config]
{LN /journey}
{LD /journey}
{LD /achievements.cfg}
[/journeylog_config]
[/args]
[/lua]
#endif
{LD /base-debug.cfg}
{LD /base-rc.cfg}
{LD /macros}
[+units]
{LD /units}
[/units]
#ifndef __WMLUNITS__
{GLOBAL_EVENTS ({LD /global-events.cfg})}
#define MAP __FILE__
map_file="~add-ons/Invasion_from_the_Unknown/maps/{__FILE__}"
#enddef
#define MASK __FILE__
mask="{LD /masks/{__FILE__}}"
#enddef
#define SHROUD_DATA __FILE__
shroud_data="{LD /masks/{__FILE__}}"
#enddef
{LD /scenarios}
#endif
#endif
# EOF