author | Wuzzy |
Thu, 05 Dec 2019 15:26:31 +0000 | |
changeset 2112 | 940566498a62 |
parent 2094 | 255295dfbd3d |
child 2141 | 302320117edb |
permissions | -rw-r--r-- |
161
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
1 |
#summary Documentation of configuration files on desktop |
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
2 |
#labels Documentation |
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
3 |
|
758
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
4 |
= Configuration files = |
2094 | 5 |
|
758
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
6 |
== Introduction == |
161
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
7 |
|
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
8 |
This documents the structure and content of the configuration (.ini) files found in the desktop version of Hedgewars. |
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
9 |
|
759 | 10 |
<wiki:toc max_depth="2" /> |
166
26202b9ff10d
Edited wiki page ConfigurationFiles through web user interface.
jacoberen@gmail.com
parents:
165
diff
changeset
|
11 |
|
872
8aa46333bfe2
ConfigurationFiles: merge hedgewars.ini with settings.ini
Wuzzy
parents:
759
diff
changeset
|
12 |
== `settings.ini` == |
161
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
13 |
|
758
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
14 |
=== {{{[video]}}} === |
161
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
15 |
_Graphics rendering settings, back-end (engine)_ |
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
16 |
|
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
17 |
|| *Setting* || *Type* || *Description* || |
873 | 18 |
|| fullscreenResolution=1280x768 || String || Screen resolution the game is rendered when using fullscreen mode || |
19 |
|| windowedWidth=1280 || Integer || Window width when using window mode || |
|
20 |
|| windowedHeight=1024 || Integer || Window height when using window mode || |
|
162
d51550b90632
Edited wiki page ConfigurationFiles through web user interface.
jacoberen@gmail.com
parents:
161
diff
changeset
|
21 |
|| fullscreen=false || Boolean || If the game is rendered in fullscreen || |
873 | 22 |
|| quality=5 || Integer || Quality of game rendering (0-5, 5 is best quality) || |
161
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
23 |
|| stereo=0 || Integer || Mode of stereoscopic 3D rendering, 0 being no 3D || |
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
24 |
|
758
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
25 |
=== {{{[frontend]}}} === |
161
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
26 |
_Graphics and sound settings, front-end (GUI)_ |
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
27 |
|
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
28 |
|| *Setting* || *Type* || *Description* || |
162
d51550b90632
Edited wiki page ConfigurationFiles through web user interface.
jacoberen@gmail.com
parents:
161
diff
changeset
|
29 |
|| effects=true || Boolean || If game effects are displayed || |
d51550b90632
Edited wiki page ConfigurationFiles through web user interface.
jacoberen@gmail.com
parents:
161
diff
changeset
|
30 |
|| fullscreen=false || Boolean || If the game is in fullscreen-mode, instead of windowed-mode || |
161
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
31 |
|| width=800 || Integer || Width of the game window || |
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
32 |
|| height=600 || Integer || Height of the game window || |
873 | 33 |
|| sound=true || Boolean || If sounds are being played in the frontend || |
34 |
|| music=true || Boolean || If background music is being played in the frontend || |
|
161
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
35 |
|
758
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
36 |
=== {{{[misc]}}} === |
161
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
37 |
_Miscellaneous settings_ |
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
38 |
|
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
39 |
|| *Setting* || *Type* || *Description* || |
162
d51550b90632
Edited wiki page ConfigurationFiles through web user interface.
jacoberen@gmail.com
parents:
161
diff
changeset
|
40 |
|| weaponTooltips=true || Boolean || If tooltips should be shown in the ammo menu || |
d51550b90632
Edited wiki page ConfigurationFiles through web user interface.
jacoberen@gmail.com
parents:
161
diff
changeset
|
41 |
|| altdamage=false || Boolean || If damage pop-ups should be shown on every shot, instead of only at the end of a round || |
d51550b90632
Edited wiki page ConfigurationFiles through web user interface.
jacoberen@gmail.com
parents:
161
diff
changeset
|
42 |
|| appendTimeToRecords=false || Boolean || If date and time should be appended to the file name when demo records are saved || |
161
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
43 |
|| locale=en_US || String || Language used in game in the format "ISO 639-1 Code underscore ISO 3166-1 alpha-2 Code", or system default if left blank || |
874 | 44 |
|| teamtag || Boolean || Whether to show the team name above hedgehogs by default || |
45 |
|| hogtag || Boolean || Whether to show the hog name above hedgehogs by default || |
|
46 |
|| healthtag || Boolean || Whether to show the health above hedgehogs by default || |
|
47 |
|| tagopacity || Boolean || If true, name and health tags above hedgehogs are translucent || |
|
161
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
48 |
|
758
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
49 |
=== {{{[audio]}}} === |
873 | 50 |
_Sound settings for the sounds and music in the game itself_ |
161
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
51 |
|
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
52 |
|| *Setting* || *Type* || *Description* || |
873 | 53 |
|| sound=true || Boolean || If sound effects should be played in-game || |
54 |
|| music=true || Boolean || If background music should be played in-game || |
|
55 |
|| volume=100 || Integer || Volume level (in percent) of sound effects and music || |
|
161
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
56 |
|
758
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
57 |
=== {{{[net]}}} === |
161
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
58 |
_Online and LAN settings_ |
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
59 |
|
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
60 |
|| *Setting* || *Type* || *Description* || |
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
61 |
|| nick=username || String || Username/nickname used for online play, or promt the user when first connecting if left blank || |
873 | 62 |
|| passwordhash=d41d8cd98f00b204e9800998ecf8427e || String || Hash of password used for online play || |
875 | 63 |
|| passwordlength=0 || Integer || Currently unused || |
873 | 64 |
|| savepassword=true || Boolean || If true, password will be saved || |
874 | 65 |
|| ip=10.0.0.0 || String || Default IP address or hostname when connecting to a LAN server || |
161
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
66 |
|| port=46631 || Integer || Default port number when connecting to a LAN server || |
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
67 |
|| servername=hedgewars server || String || Default name when creating a LAN server || |
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
68 |
|| serverport=46631 || Integer || Default port number when creating a LAN server || |
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
69 |
|
758
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
70 |
=== {{{[fps]}}} === |
161
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
71 |
_Frames per second settings_ |
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
72 |
|
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
73 |
|| *Setting* || *Type* || *Description* || |
162
d51550b90632
Edited wiki page ConfigurationFiles through web user interface.
jacoberen@gmail.com
parents:
161
diff
changeset
|
74 |
|| show=false || Boolean || If the number of frames rendered per second should be shown in-game || |
168
f4f73967aa4e
Edited wiki page ConfigurationFiles through web user interface.
jacoberen@gmail.com
parents:
167
diff
changeset
|
75 |
|| limit=27 || Integer || Maximum number of frames rendered per second, calculated as _1000 / (35 - limit)_ || |
161
5341977e86a1
Created wiki page through web user interface.
jacoberen@gmail.com
parents:
diff
changeset
|
76 |
|
873 | 77 |
=== {{{[proxy]}}} === |
78 |
_Proxy settings_ |
|
79 |
||
80 |
|| *Setting* || *Type* || *Description* || |
|
81 |
|| type=0 || Integer || Proxy type. 0: no proxy, 1: system proxy, 2: SOCKS5 proxy, 3: HTTP proxy. The following settings are ignored if the proxy type is 0 or 1. || |
|
82 |
|| host || String || Hostname or IP adress of proxy || |
|
83 |
|| port || Integer || Port number of proxy || |
|
84 |
|| login || String || User name to login to the proxy || |
|
85 |
|| password || String || Password (in clear text) to login to the proxy || |
|
86 |
||
874 | 87 |
=== {{{[videorec]}}} === |
88 |
_Video recording settings_ |
|
89 |
||
90 |
|| *Setting* || *Type* || *Description* || |
|
91 |
|| format=mp4 || String || Container format (the file format of the resulting file) || |
|
92 |
|| videocodec || String || Video codec || |
|
93 |
|| audiocodec || String || Audio codec || |
|
94 |
|| framerate || Integer || Frame rate in frames per second || |
|
95 |
|| bitrate || Integer || The bit rate in 1000 bytes per second || |
|
96 |
|| width || Integer || Video width || |
|
97 |
|| height || Integer || Video height || |
|
98 |
|| usegameres || Boolean || If true, use the game resolution and ignore the width and height settings || |
|
99 |
|| audio || Boolean || Whether to use audio || |
|
100 |
||
101 |
=== {{{[colors]}}} === |
|
102 |
Setup 9 team colors here, the setting names are from `color0` to `color8`. The values are 3-byte hexadecimal numbers in RGB notation with “#” prefixed. |
|
103 |
||
104 |
|| *Setting* || *Default* || |
|
105 |
|| color0 || #ff0204 || |
|
106 |
|| color1 || #4980c1 || |
|
107 |
|| color2 || #1de6ba || |
|
108 |
|| color3 || #b541ef || |
|
109 |
|| color4 || #e55bb0 || |
|
110 |
|| color5 || #20bf00 || |
|
111 |
|| color6 || #fe8b0e || |
|
112 |
|| color7 || #874b06 || |
|
113 |
|| color8 || #ffff01 || |
|
873 | 114 |
|
876 | 115 |
=== {{{[Binds]}}} === |
672 | 116 |
This section defines the global key bindings. They can be overwritten by teams. |
117 |
||
118 |
Each key binding is written in the form `action=keycode`, e.g. “`ammomenu=b`” for opening the ammo menu with the B key. |
|
119 |
||
758
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
120 |
==== Actions ==== |
672 | 121 |
|| *Setting* || *Description* || |
122 |
|| %2Bup || Up || |
|
123 |
|| %2Bleft || Left || |
|
124 |
|| %2Bright || Right || |
|
125 |
|| %2Bdown || Down || |
|
126 |
|| %2Bprecise || Precise || |
|
127 |
|| ljump || Long jump || |
|
128 |
|| hjump || High jump || |
|
129 |
|| switch || Switch hog || |
|
130 |
|| ammomenu || Ammo menu || |
|
131 |
|| slot%201 || Slot 1 || |
|
132 |
|| slot%202 || Slot 2 || |
|
133 |
|| slot%203 || Slot 3 || |
|
134 |
|| slot%204 || Slot 4 || |
|
135 |
|| slot%205 || Slot 5 || |
|
136 |
|| slot%206 || Slot 6 || |
|
137 |
|| slot%207 || Slot 7 || |
|
138 |
|| slot%208 || Slot 8 || |
|
139 |
|| slot%209 || Slot 9 || |
|
140 |
|| slot%20%3A || Slot 10 || |
|
141 |
|| timer%201 || Timer: 1 second || |
|
142 |
|| timer%202 || Timer: 2 seconds || |
|
143 |
|| timer%203 || Timer: 3 seconds || |
|
144 |
|| timer%204 || Timer: 4 seconds || |
|
145 |
|| timer%205 || Timer: 5 seconds || |
|
146 |
|| %2Battack || Attack || |
|
147 |
|| put || Place hedgehog or select target || |
|
148 |
|| findhh || Automatic camera / find hedgehog || |
|
149 |
|| %2Bcur_u || Move camera or cursor up || |
|
150 |
|| %2Bcur_l || Move camera or cursor left || |
|
151 |
|| %2Bcur_r || Move camera or cursor right || |
|
152 |
|| %2Bcur_d || Move camera or cursor down || |
|
153 |
|| zoomin || Zoom in || |
|
154 |
|| zoomout || Zoom out || |
|
155 |
|| zoomreset || Reset zoom || |
|
156 |
|| chat || Open chat input || |
|
1525 | 157 |
|| chat%20team || Open clan chat input || |
672 | 158 |
|| history || Toggle chat history || |
159 |
|| pause || Toggle pause || |
|
160 |
|| quit || Quit || |
|
161 |
|| confirm || Confirm || |
|
162 |
|| %2Bvoldown || Raise volume || |
|
163 |
|| %2Bvolup || Lower volume || |
|
164 |
|| mute || Mute || |
|
165 |
|| fullscr || Toggle window mode (window/fullscreen) || |
|
166 |
|| capture || Take screenshot || |
|
167 |
|| %2Bspeedup || Increase demo replay speed || |
|
1045 | 168 |
|| rotmask || Toggle team bars || |
1405 | 169 |
|| rottags || Toggle hedgehog tags || |
672 | 170 |
|| record || Record video || |
171 |
||
758
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
172 |
==== Key codes ==== |
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
173 |
===== Keyboard ===== |
672 | 174 |
Keyboard names are based on the [https://wiki.libsdl.org/SDL_Scancode SDL scancode]. |
175 |
||
176 |
The key name is constructed as follows: |
|
177 |
||
677 | 178 |
* Take the name from the “Key Name” column of the aforementioned webpage |
179 |
* Convert it to lower-case |
|
180 |
* Replace spaces with underscores |
|
672 | 181 |
|
182 |
Examples: |
|
183 |
||
184 |
|| *Code* || Description || |
|
185 |
|| `a` || A || |
|
186 |
|| `f1` || F1 || |
|
187 |
|| `shift_left` || Left shift key || |
|
188 |
|| `space` || Space bar || |
|
189 |
|| `tab` || Tabulator || |
|
190 |
||
191 |
||
758
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
192 |
===== Mouse ===== |
672 | 193 |
The codes for the mouse are as follows: |
194 |
||
195 |
|| *Code* || Description || |
|
196 |
|| `mousel` || Left mouse button || |
|
197 |
|| `mousem` || Middle mouse button || |
|
198 |
|| `mouser` || Right mouse button || |
|
199 |
|| `wheelup` || Mouse wheel up || |
|
200 |
|| `wheeldown` || Mouse wheel down || |
|
201 |
||
758
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
202 |
===== Controller/Gamepad/Joystick ===== |
672 | 203 |
Controllers, gamepads and joysticks are written in a somewhat cryptic syntax. |
204 |
||
758
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
205 |
====== Buttons ====== |
672 | 206 |
|
207 |
Syntax: `jJbB` |
|
208 |
||
676 | 209 |
* `J`: Controller ID beginning with 0 |
210 |
* `A`: Button ID beginning with 0 |
|
672 | 211 |
|
212 |
Examples: |
|
213 |
|| *Code* || Description || |
|
214 |
|| `j0b0` || First controller, first button || |
|
215 |
|| `j0b1` || First controller, second button || |
|
216 |
|| `j1b2` || Second controller, third button || |
|
217 |
||
758
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
218 |
====== Axes ====== |
672 | 219 |
|
220 |
Syntax: `jJaAD` |
|
221 |
||
676 | 222 |
* `J`: Controller ID beginning with 0 |
223 |
* `A`: Axis |
|
224 |
* `D`: Axis direction. One of the following letters: |
|
225 |
* `u`: positive (“up”) |
|
226 |
* `d`: negative (“down”) |
|
672 | 227 |
|
228 |
Examples: |
|
229 |
||
230 |
|| *Code* || Description || |
|
231 |
|| `j0a0u` || First controller, first axis up || |
|
232 |
|| `j0a1d` || First controller, second axis down || |
|
233 |
|| `j1a1d` || Second controller, second axis down || |
|
234 |
||
758
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
235 |
====== Hats/D-pads ====== |
672 | 236 |
|
237 |
Syntax: `jJhHD` |
|
238 |
||
676 | 239 |
* `J`: Controller ID beginning with 0 |
240 |
* `A`: D-pad ID |
|
241 |
* `D`: Direction, it is one of 4 letters: |
|
242 |
* `u`: up |
|
243 |
* `r`: right |
|
244 |
* `d`: down |
|
245 |
* `l`: left |
|
672 | 246 |
|
247 |
Examples: |
|
248 |
|| *Code* || Description || |
|
249 |
|| `j0h0u` || First controller, first D-pad up || |
|
250 |
|| `j0h1l` || First controller, second D-pad left || |
|
251 |
|| `j1h1r` || Second controller, second D-pad right || |
|
252 |
||
1401 | 253 |
== `Schemes/Game/<SchemeName>.hwg` == |
1400 | 254 |
A game scheme. Each game scheme has its own file. `<SchemeName>` is the name of the scheme. Each game scheme setting is stored as a key-value pair, one setting per line: |
255 |
||
256 |
|| *Setting* || *Type* || *Description* || |
|
257 |
|| switchhog=false || Boolean || If free hog switching is enabled on turn start || |
|
258 |
|| divteams=false || Boolean || If teams start at the opposite side of the terrain || |
|
259 |
|| solidland=false || Boolean || If land is indestructible || |
|
260 |
|| border=false || Boolean || If an insestructible border is added around the map || |
|
261 |
|| lowgrav=false || Boolean || If gravity is lowered || |
|
262 |
|| laser=false || Boolean || If aiming is assisted with laser sights || |
|
263 |
|| invulnerability=false || Boolean || If hogs have a personal forcefield || |
|
264 |
|| resethealth=false || Boolean || If living hogs' health is reset to 100 at end of round || |
|
265 |
|| vampiric=false || Boolean || If hogs gain life equal to 80 percent of the damage they deal || |
|
266 |
|| karma=false || Boolean || If hogs lose life equal to the damage they deal || |
|
267 |
|| artillery=false || Boolean || If hogs are unable to move || |
|
268 |
|| randomorder=true || Boolean || If turn order is generated randomly || |
|
269 |
|| king=false || Boolean || If a chess-like king is used || |
|
270 |
|| placehog=false || Boolean || If players take turns placing their hogs before the start of a game || |
|
271 |
|| sharedammo=false || Boolean || If ammo is shared between all teams of the same color || |
|
272 |
|| disablegirders=false || Boolean || If girders are removed from randomly-generated maps || |
|
273 |
|| disablelandobjects=false || Boolean || If land objects are removed from randomly-generated maps || |
|
274 |
|| aisurvival=false || Boolean || If AI hogs respawn on death || |
|
275 |
|| infattack=false || Boolean || If hogs can attack an unlimited number of times each turn || |
|
276 |
|| resetweps=false || Boolean || If weapons are reset at end of each turn || |
|
277 |
|| perhogammo=false || Boolean || If each hog has seperate ammo || |
|
278 |
|| disablewind=false || Boolean || If wind is disabled || |
|
279 |
|| morewind=false || Boolean || If wind is much stronger then usually || |
|
280 |
|| tagteam=false || Boolean || If players in a team share time on each turn || |
|
281 |
|| bottomborder=false || Boolean || If an indestructible border is added at the bottom of the map || |
|
282 |
|| damagefactor=100 || Integer || Percentage of damage dealt || |
|
283 |
|| turntime=45 || Integer || Maximum time in seconds of each turn || |
|
284 |
|| health=100 || Integer || The initial health of the hogs || |
|
1576 | 285 |
|| suddendeath=15 || Integer || Number of rounds to play until Sudden Death begins, _after the first round was played_. 0 = SD starts in 2nd round || |
1400 | 286 |
|| caseprobability=5 || Integer || Number of turns between cases drops || |
287 |
|| minestime=3 || Integer || Seconds before mines explode || |
|
288 |
|| minesnum=4 || Integer || Number of mines on a level || |
|
289 |
|| minedudpct=0 || Integer || Percentage chance of each mine being a dud || |
|
290 |
|| explosives=2 || Integer || Number of explosives on a level || |
|
291 |
|| healthprobability=35 || Integer || Percentage chance of each crate being a health crate || |
|
292 |
|| healthcaseamount=25 || Integer || Amount of life restored by each health crate || |
|
293 |
|| waterrise=47 || Integer || Number of pixels the water rises each turn in "Sudden Death" mode || |
|
294 |
|| healthdecrease=5 || Integer || Damage dealth each turn to hogs in water during "Sudden Death" mode || |
|
295 |
|| ropepct=100 || Integer || Maximum length of rope as a percentage || |
|
296 |
|| getawaytime=100 || Integer || Time you have to get away from an explosive after arming it, as a percentage || |
|
297 |
|| worldedge=0 || Integer || Type of world edges at the left and right side. `0` for no edge (default), `1` for wrap-around, `2` for bouncy edges, `3` for ocean. || |
|
298 |
|| scriptparam="" || String || 0.9.21: Script parameter, this is read by scripts. Can have any arbitrary srting value, the meaning of this value depends on the script used. || |
|
299 |
||
1401 | 300 |
== `Schemes/Ammo/<SchemeName>.hwa` == |
1400 | 301 |
A weapon scheme. `<SchemeName>` is the name of this weapon scheme. This file contains a long sequence of numbers between `0` to `9` to configure all weapon settings. |
302 |
||
303 |
The number string has 4 equally long sections, in this order: |
|
304 |
||
305 |
* Start ammo (9 = infinite) |
|
306 |
* Crate probability (higher = more) |
|
307 |
* Ammo in crate |
|
308 |
* Delay |
|
309 |
||
1406 | 310 |
In each section, each number represents one weapon. The order of these weapons is noted in the source code file `weapons.h` ([https://hg.hedgewars.org/hedgewars/file/tip/QTfrontend/weapons.h#l24]). This means the first number of a section is for the grenade, followed by the cluster bomb, then bazooka, and so on. |
1400 | 311 |
|
312 |
== `schemes.ini` == |
|
313 |
Legacy file for game schemes for version 0.9.23 and older. Since 0.9.24, this file is no longer actively used, it is now only used to import schemes to the new format when the `Schemes/Game/` directory has not been created yet. |
|
314 |
||
315 |
=== {{{[schemes]}}} === |
|
1403 | 316 |
List of custom scheme settings as key-value pairs, each with a key of "index number of scheme backslash setting name". The only exception is `size` which holds the number of game schemes in this file. |
1400 | 317 |
|
318 |
|| *Setting* || *Type* || *Description* || |
|
319 |
|| size=1 || Integer || Number of custom scheme settings || |
|
320 |
|| 1\name=new || String || Name of scheme no. 1 || |
|
321 |
|| 1\fortsmode=false || Boolean || Whether forts are used in scheme no. 1. This is no longer used since 0.9.23 || |
|
1404 | 322 |
|| 1\<setting>=value || _See above_ || A setting of scheme no. 1. `<setting>` is any of the game scheme settings listed above in the new game scheme format || |
1400 | 323 |
|
872
8aa46333bfe2
ConfigurationFiles: merge hedgewars.ini with settings.ini
Wuzzy
parents:
759
diff
changeset
|
324 |
== `weapons.ini` == |
1400 | 325 |
Legacy file for weapon schemes for version 0.9.23 and older. Since 0.9.24, this file is no longer actively used, it is now only used to import weapon schemes to the new format when the `Schemes/Ammo/` directory has not been created yet. |
672 | 326 |
|
872
8aa46333bfe2
ConfigurationFiles: merge hedgewars.ini with settings.ini
Wuzzy
parents:
759
diff
changeset
|
327 |
=== {{{[General]}}} === |
8aa46333bfe2
ConfigurationFiles: merge hedgewars.ini with settings.ini
Wuzzy
parents:
759
diff
changeset
|
328 |
_List of weapon settings as key-value pairs, each with a string name and integer value_ |
672 | 329 |
|
872
8aa46333bfe2
ConfigurationFiles: merge hedgewars.ini with settings.ini
Wuzzy
parents:
759
diff
changeset
|
330 |
|| *Setting* || *Type* || *Description* || |
1400 | 331 |
|| `<Scheme name>`=93919...11101 || Integer || Weapon settings. `<Scheme name>` is the name of the scheme. The number string has the same meaning as in the new ammo scheme file || |
163
4f3c17649b16
Edited wiki page ConfigurationFiles through web user interface.
jacoberen@gmail.com
parents:
162
diff
changeset
|
332 |
|
758
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
333 |
== `TeamName.hwt` == |
671 | 334 |
These files are found in the `Teams` directory and contain the team settings, one file per team. |
163
4f3c17649b16
Edited wiki page ConfigurationFiles through web user interface.
jacoberen@gmail.com
parents:
162
diff
changeset
|
335 |
|
758
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
336 |
=== {{{[Team]}}} === |
163
4f3c17649b16
Edited wiki page ConfigurationFiles through web user interface.
jacoberen@gmail.com
parents:
162
diff
changeset
|
337 |
_General team settings_ |
4f3c17649b16
Edited wiki page ConfigurationFiles through web user interface.
jacoberen@gmail.com
parents:
162
diff
changeset
|
338 |
|
4f3c17649b16
Edited wiki page ConfigurationFiles through web user interface.
jacoberen@gmail.com
parents:
162
diff
changeset
|
339 |
|| *Setting* || *Type* || *Description* || |
498 | 340 |
|| Name=!TeamName || String || Name of team || |
163
4f3c17649b16
Edited wiki page ConfigurationFiles through web user interface.
jacoberen@gmail.com
parents:
162
diff
changeset
|
341 |
|| Grave=Statue || String || Type of grave created when hog dies || |
4f3c17649b16
Edited wiki page ConfigurationFiles through web user interface.
jacoberen@gmail.com
parents:
162
diff
changeset
|
342 |
|| Fort=Plane || String || Type of fort if Forts Mode is enabled || |
4f3c17649b16
Edited wiki page ConfigurationFiles through web user interface.
jacoberen@gmail.com
parents:
162
diff
changeset
|
343 |
|| Voicepack=Default || String || Sounds used for hog voice || |
574
3f98b812ba63
Minor fixes (mainly clarifications and markup).
almikes@aol.com
parents:
498
diff
changeset
|
344 |
|| Flag=hedgewars || String || Name of flag (flag file name without suffix). This is ignored for AI teams; their flags will always be based on their difficulty level || |
3f98b812ba63
Minor fixes (mainly clarifications and markup).
almikes@aol.com
parents:
498
diff
changeset
|
345 |
|| Difficulty=0 || Integer || Diffuculty of AI (1-5, 1 = most difficult), or human if 0 || |
1524 | 346 |
|| Rounds=0 || Integer || _Unused_ || |
347 |
|| Wins=0 || Integer || _Unused_ || |
|
348 |
|| !CampaignProgress=0 || Integer || _Unused_ || |
|
163
4f3c17649b16
Edited wiki page ConfigurationFiles through web user interface.
jacoberen@gmail.com
parents:
162
diff
changeset
|
349 |
|
758
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
350 |
=== {{{[Hedgehog0]}}} - {{{[Hedgehog7]}}} === |
575 | 351 |
_8 sections, one per hedgehog of the team_ |
163
4f3c17649b16
Edited wiki page ConfigurationFiles through web user interface.
jacoberen@gmail.com
parents:
162
diff
changeset
|
352 |
|
4f3c17649b16
Edited wiki page ConfigurationFiles through web user interface.
jacoberen@gmail.com
parents:
162
diff
changeset
|
353 |
|| *Setting* || *Type* || *Description* || |
4f3c17649b16
Edited wiki page ConfigurationFiles through web user interface.
jacoberen@gmail.com
parents:
162
diff
changeset
|
354 |
|| Name=Hedgehog Name || String || Name of hog || |
574
3f98b812ba63
Minor fixes (mainly clarifications and markup).
almikes@aol.com
parents:
498
diff
changeset
|
355 |
|| Hat=!NoHat || String || Type of hat used by hog || |
1524 | 356 |
|| Rounds=0 || Integer || _Unused_ || |
357 |
|| Kills=0 || Integer || _Unused_ || |
|
358 |
|| Deaths=0 || Integer || _Unused_ || |
|
359 |
|| Suicides=0 || Integer || _Unused_ || |
|
575 | 360 |
|
758
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
361 |
=== {{{[Binds]}}} === |
672 | 362 |
Key bindings of the team. Teams can optionally overwrite the global key bindings or leave everything at default. |
575 | 363 |
|
672 | 364 |
This section follows the same format as in `settings.ini`, with one addition: The key code `default` is used for using the default (global) key binding. |
643 | 365 |
|
758
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
366 |
==== Values ==== |
643 | 367 |
The special value “`default`” is for the default keybinding as specified in the game preferences. |
368 |
||
1835 | 369 |
Regarding other keys: See the [ConfigurationFiles#%5BBinds%5D “Binds” section of settings.ini]. |
643 | 370 |
|
575 | 371 |
|
758
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
372 |
=== {{{[Campaign%20<CAMPAIGN_NAME>]}}} === |
578 | 373 |
This section stores campaign variables which are stored and read by Lua scripts. Replace “`<CAMPAIGN_NAME>` with the folder name of the campaign. Example: The section for “A Classic Fairytale” would be “`[Campaign%20A_Classic_Fairytale]`”. |
374 |
||
375 |
Campaign variables are stored on a key-value basis, where the key is the name of the campaign variable and the value is the value of the campaign variable. |
|
376 |
||
2077
514babfbad9e
Remove outdated legacy hints as clutter
Wuzzy <almikes@aol.com>
parents:
2074
diff
changeset
|
377 |
Campaign variable names and their values can are chosen by the Lua script authors, but there are some special variables which are used to determine which missions are available in the main menu and to determine which missions and campaigns have been completed. |
927
726d9a6042ae
ConfigurationFiles: Update team info for new campaign vars
Wuzzy
parents:
877
diff
changeset
|
378 |
|
726d9a6042ae
ConfigurationFiles: Update team info for new campaign vars
Wuzzy
parents:
877
diff
changeset
|
379 |
For linear campaigns, the variables `Progress` and `Won` are used. |
726d9a6042ae
ConfigurationFiles: Update team info for new campaign vars
Wuzzy
parents:
877
diff
changeset
|
380 |
For non-linear campaigns, the variables `UnlockedMissions`, `MissionX`, `MissionXWon` and `Won` are used. |
726d9a6042ae
ConfigurationFiles: Update team info for new campaign vars
Wuzzy
parents:
877
diff
changeset
|
381 |
The variables should not be mixed up. |
726d9a6042ae
ConfigurationFiles: Update team info for new campaign vars
Wuzzy
parents:
877
diff
changeset
|
382 |
|
2074 | 383 |
Completed missions and campaigns get a check mark in the campaign screen. |
578 | 384 |
|
385 |
|| *Setting* || *Type* || *Description* || |
|
2074 | 386 |
|| `Progress` || Integer || This variable stands for the number of completed missions in a linear campaign, starting with mission 1. For each completed mission, the next one gets unlocked. If the number is `0`, only the first mission is available. || |
927
726d9a6042ae
ConfigurationFiles: Update team info for new campaign vars
Wuzzy
parents:
877
diff
changeset
|
387 |
|| `UnlockedMissions` || Integer || This number specifies how many missions are unlocked. If this variable is set, then the variables `Mission1`, `Mission2`, etc. must be used to specfify the IDs of the unlocked missions. || |
726d9a6042ae
ConfigurationFiles: Update team info for new campaign vars
Wuzzy
parents:
877
diff
changeset
|
388 |
|| `MissionX` || Integer || E.g. `Mission1`, `Mission2`, etc. Contains the `campaign.ini` ID of the `X`th unlocked mission, must be used together with `UnlockedMissions` || |
1721 | 389 |
|| `MissionXWon` || Boolean || E.g. `Mission1Won`, `Mission2Won`, etc. If `true`, the mission with the number `X` in `campaign.ini` has been completed. || |
390 |
|| `Won` || Boolean || If `true`, the team has completed the campaign. Note that campaign victory is completely separate from mission victory, so this setting must be set seperately. || |
|
580 | 391 |
|
1944 | 392 |
If neither `Progress` nor `UnlockedMissions` is set (which is the case for new teams), only the first mission (mission 1 in `campaign.ini`) is available. |
581
210498f64820
Corrected some factual mistakes about Progress campaign variable.
almikes@aol.com
parents:
580
diff
changeset
|
393 |
|
758
ecdd12db8754
ConfigurationFiles: Add title, fix header levels, simplify TOC
Wuzzy
parents:
677
diff
changeset
|
394 |
==== Examples ==== |
927
726d9a6042ae
ConfigurationFiles: Update team info for new campaign vars
Wuzzy
parents:
877
diff
changeset
|
395 |
Simple campaign with 10 missions, missions 1-5 are available and missions 1-4 count as completed: |
580 | 396 |
|
397 |
{{{ |
|
398 |
[Campaign%20Simple_Campaign] |
|
399 |
Progress=4 |
|
400 |
}}} |
|
401 |
||
2077
514babfbad9e
Remove outdated legacy hints as clutter
Wuzzy <almikes@aol.com>
parents:
2074
diff
changeset
|
402 |
Simple campaign with 6 missions. This campaign and all its missions have been unlocked and completed: |
927
726d9a6042ae
ConfigurationFiles: Update team info for new campaign vars
Wuzzy
parents:
877
diff
changeset
|
403 |
|
726d9a6042ae
ConfigurationFiles: Update team info for new campaign vars
Wuzzy
parents:
877
diff
changeset
|
404 |
{{{ |
726d9a6042ae
ConfigurationFiles: Update team info for new campaign vars
Wuzzy
parents:
877
diff
changeset
|
405 |
[Campaign%20Simple_Campaign_2] |
726d9a6042ae
ConfigurationFiles: Update team info for new campaign vars
Wuzzy
parents:
877
diff
changeset
|
406 |
Progress=6 |
726d9a6042ae
ConfigurationFiles: Update team info for new campaign vars
Wuzzy
parents:
877
diff
changeset
|
407 |
Won=true |
726d9a6042ae
ConfigurationFiles: Update team info for new campaign vars
Wuzzy
parents:
877
diff
changeset
|
408 |
}}} |
726d9a6042ae
ConfigurationFiles: Update team info for new campaign vars
Wuzzy
parents:
877
diff
changeset
|
409 |
|
726d9a6042ae
ConfigurationFiles: Update team info for new campaign vars
Wuzzy
parents:
877
diff
changeset
|
410 |
|
580 | 411 |
Complex campaign with 13 missions, missions 2, 7 and 3 are available (in that order): |
412 |
{{{ |
|
413 |
[Campaign%20Complex_Campaign] |
|
414 |
UnlockedMissions=3 |
|
415 |
Mission1=2 |
|
416 |
Mission2=7 |
|
417 |
Mission3=3 |
|
418 |
}}} |
|
419 |
||
420 |
Another campaign with some custom campaign variables: |
|
421 |
{{{ |
|
422 |
[Campaign%20Another_Campaign] |
|
423 |
Progress=2 |
|
424 |
MyCustomVariable=54 |
|
425 |
MyCustomString=Hedgewars |
|
1721 | 426 |
}}} |
427 |
||
428 |
=== {{{[Mission%20<MISSION_NAME>]}}} === |
|
429 |
This section stores mission variables. Mission variables are very similar to campaign variables, but they are for single missions (training/challenge/scenario) that are not part of a campaign. Replace “`<MISSION_NAME>` with the file name of the mission. |
|
430 |
||
431 |
Like campaign variables, mission variables are stored on a key-value basis. You can choose custom names but there are also a few special key names with a special meaning. |
|
432 |
||
433 |
`Won` is to mark victory and it's often useful to be used together with `onGameResult`. The other special keys are to store challenge records. Use these only when they make sense. |
|
434 |
||
435 |
|| *Setting* || *Type* || *Description* || |
|
436 |
|| `Won` || Boolean || If `true`, the team has completed the mission. || |
|
1722 | 437 |
|| `Highscore` || Integer || Team's best score in this mission, where higher = better || |
438 |
|| `Lowscore` || Integer || Team's best score in this mission, where lower = better || |
|
1943 | 439 |
|| `TimeRecord` || Integer || Team's best time (in milliseconds) in this mission, where lower = better || |
440 |
|| `TimeRecordHigh` || Integer || Team's best time (in milliseconds) in this mission, where higher = better || |
|
2077
514babfbad9e
Remove outdated legacy hints as clutter
Wuzzy <almikes@aol.com>
parents:
2074
diff
changeset
|
441 |
|| `AccuracyRecord` || Integer || Team's highest accuracy in this mission, in percent || |