]> git.pond.sub.org Git - empserver/blob - info/Empire4.3.t
client: Unbreak standalone build
[empserver] / info / Empire4.3.t
1 .TH Server "Empire4 Changes"
2 .NA Empire4.3 "Changes in Empire 4.3 (2006-2015)"
3 .LV Expert
4 .s1
5 This document outlines the various changes to the game and how they
6 will affect you, the player.  These were coded as the Wolfpack project.
7 .NF
8 Changes to Empire 4.3.33 - Wed May 20 18:17:43 UTC 2015
9  * New client option -r for restricted mode.  Contributed by Marisa
10    Giancarla.
11  * The add syntax deprecated in 4.3.29 is now gone.
12  * The explore, move, test, transport syntax deprecated in 4.3.27 is
13    now gone.
14  * The bmap flag syntax deprecated in 4.3.27 is now gone.
15  * Stricter configuration validation:
16    - Reject odd WORLD_X instead of making it even silently.
17    - Reject odd WORLD_Y.
18    - Reject missiles that lack capability VTOL instead of adding VTOL
19      silently.
20    - Reject ships that can carry planes, but have neither capability
21      plane nor miss, instead of adding miss silently.
22  * Outlaw ships that can drop depth charges, but not fire.  No such
23    ships exist in the stock game.  4.3.31 permitted them, but keeping
24    them working has turned out to be bothersome.
25  * Changes to fire and torpedo:
26    - Don't disclose that the torpedo's path to the target is blocked
27      by land when the target is out of range.  Screwed up in 4.2.2.
28    - When a submarine gets hit by return fire after firing its deck
29      gun, the defender again learns the submarine's UID and type, just
30      like for surface ships.  This is how it worked before Empire 2.3.
31    - When a submarine gets hit by return fire after launching a
32      torpedo, the defender again learns the submarine's UID.  Before
33      Empire 2.3, he learned UID and type.
34    - Print "Kaboom" even when the target is out of range.
35    - Always clear missions when firing guns or dropping depth charges.
36      Screwed up when missions were added in Chainsaw.
37    - Report "Sector X,Y ready to fire" instead of "Sector X,Y firing",
38      because the sector isn't firing, yet, then.  Also report ships
39      and land units ready to fire.
40    - Suppress bulletin when player shells or torpedoes his own ship.
41  * When artillery on a bridge span shelled down the supporting bridge
42    head, the bridge fell and the artillery drowned alright.  But then
43    the bridge rose right back.  Broken in 4.3.14.
44  * Fix board to charge mobility even when defender is less than 100%
45    efficient.  Broken in Empire 2.
46  * The convert command charged security land units mobility until
47    4.3.16 broke that.  Drop this undocumented feature instead of
48    fixing it.
49  * Fix news to report the actual owner of ships sunk by return
50    torpedoes instead of POGO.  Screwed up when return torpedoes were
51    added in Chainsaw.
52  * Don't disclose UID, type and owner of torpedoed submarines.  The
53    latter leaked through the news.
54  * Changes to bomb:
55    - Fix damage to mobility when bombing planes.  Has always been
56      broken.
57    - Include position when reporting bombing of a land unit, like we
58      do for ships.
59    - Suppress bulletin when player bombs his own assets.
60    - Report bombing of plane to owner once, not twice.
61    - Don't permit bombing of dead planes.  Missed when we did the same
62      for dead ships and land units in 4.3.16.
63  * Changes to retreat and lretreat:
64    - Be less loquacious when changing orders.
65    - Deprecate pseudo-condition 'c'.  Use retreat path 'h' to cancel
66      retreat orders.
67    - Change query syntax from "retreat SHIPS" to "retreat SHIPS q".
68      Consistent with mission, and makes prompting for arguments more
69      usable.  Keep accepting the old syntax for now, but deprecate it.
70    - Reject invalid retreat paths instead of silently ignoring invalid
71      characters during retreat.  Unfortunately, the path needs to be
72      valid even with deprecated pseudo-condition 'c', where it's not
73      actually used.  This might break some existing usage.
74    - Fail without charging BTUs when the player gives no conditions.
75    - Fix infinite loop when third argument contains '?'.  Broken in
76      4.3.16.
77  * Rename retreat flag "torped" to "torpedoed" in xdump retreat-flags.
78    This could conceivably break clients.  No actual breakage is known.
79  * Rewrite automatic retreat to fix its many bugs and inconsistencies
80    with navigate and march:
81    - When a ship defeats a boarding party, but suffers enough damage
82      to sink, retreat the victim's group (if any) instead of ship#0.
83    - Permit retreat exactly when navigate and march would be
84      permitted.  Before, land units happily retreated while on the
85      trading block (forbidden with march since 4.0.9), crewless
86      (likewise since 4.0.0), kidnapped in a foreign sector
87      (inconsistent since land units were added in Chainsaw 3), loaded
88      on a ship (likewise) or a land unit (inconsistent since that
89      became possible in 4.0.0).  Ships retreated while on the trading
90      block (forbidden with navigate since 4.0.9).
91    - Land units can now retreat into foreign sectors exactly when they
92      could march there: when the sector is allied, or when the land
93      unit is a spy (with the usual risks).
94    - Land units can now retreat into mountains.
95    - Land unit retreat now resets fortification.
96    - Group retreat now happens only along a single path.  Before, you
97      could scatter a group in several directions, and even retreat in
98      far away places.  The latter was a highly abusable design flaw.
99    - Bulletins provide more useful information in fewer words.  In
100      particular, they always report the end sector.
101    - Fix retreat after a torpedo hit to include the torpedo damage in
102      its mobility cost calculation.
103    - When retreat runs into a sector that cannot be entered, don't
104      consume the retreat direction.
105    - Don't charge mobility for retreating in direction 'h'
106    - You can no longer make your own ships or land units retreat.
107    - Clear mission only when the ship or land unit actually retreats.
108    - Land unit group retreat could corrupt the land unit file or crash
109      the server.  Screwed up when Chainsaw added land unit retreat.
110    - Fix ship retreat when helpless.  Surface ships claimed to retreat
111      in a bulletin, but that was a lie.  Submarines didn't even
112      pretend.
113  * Don't tell the player he sunk a ship when it survives an attack
114    with bomb, fire, launch or torpedo, but sinks during retreat.  bomb
115    even reported where it had retreated to when it sank.
116  * Land mine fixes, affecting march and, if option INTERDICT_ATT is
117    enabled, attack and assault:
118    - Fix march sub-command 'm' to not let non-engineers hit mines.
119      Broken in Empire 2.  Fixed in 4.0.17 for ships only.
120    - Engineers now risk hitting mines twice instead of once on sector
121      entry, just like minesweepers.
122    - No sweeping with zero mobility.  Screwed up when Chainsaw added
123      land units.
124  * Navigate and march cleanup and bug hunt:
125    - Stop on non-fatal mine hits, too.  Before, we carried on, and
126      ships that lost all crew were left behind only at the next
127      prompt.  Note that we already stop on non-fatal interdiction
128      damage since Empire 2.
129    - Fix use-after-free when a flagship or leader stays behind without
130      a prompt following immediately.
131    - When something other than movement charged mobility, the charge
132      was lost on the next movement, unless there was a prompt in
133      between.  For instance, mobility lost to mine hits could come
134      back.
135    - Fix parser not to get confused by white-space.
136    - Make ships use radar always, not just most of the time.
137    - Land units now use radar automatically like ships.
138    - Report flagship and leader changes immediately, and always.
139      Before, they were reported only around a prompt.
140    - Wipe mission and retreat orders less eagerly.  Before, they where
141      sometimes wiped even for ships and land units the command
142      rejected.
143    - Give up fortification only when a land unit actually moves or
144      sweeps.
145    - Report where exactly ships and land units sweep mines.
146    - Nicer error messages for sub-command 'm'.
147    - Fix sub-command 'm' not to drop engineers without mobility from
148      the march.
149    - When denying ships entry to an unfriendly sector with canals,
150      don't disclose whether it's above 2%.
151    - Both navigate and march now require all their ships and land
152      units to be in the same sector.  Support for scattered ships and
153      land units complicates the code and blows up the test matrix.
154      It's also rather obscure; I suspect accidental use has been more
155      frequent than intentional use.
156    - Check for sector abandonment before anyone marches instead of
157      right before moving the last land unit.  Fixes a bug that could
158      scatter the group when something interferes while waiting for the
159      player to confirm abandonment.
160    - When marching a mixed group of spies and non-spies into a
161      non-allied sector, remove non-spies from the group, and move the
162      spies.  Before, only the spies before the first non-spy moved
163      into the non-allied sector, which could scatter the group.
164      Screwed up when 4.0.0 added spy units.
165    - Don't permit trains to march out of sectors without rail.
166    - When navigating a mixed group of ships with and without canal
167      capability into a canal, remove incapable ships from the group,
168      and move the capable ships.  Before, only the ships before the
169      first incapable ship moved into the canal, which could scatter
170      the group.  Broken in 4.3.0.
171    - Fix navigate buffer overrun for impossibly long paths taken.  No
172      remotely sane game configuration provides a ship fast enough to
173      trigger it.  Broken in 4.0.0.
174  * Remove option SAIL (commands follow, mquota, sail, unsail; ship
175    selectors mquota, path, follow) and autonav (commands order,
176    qorder, sorder; ship selectors xstart, xend, ystart, yend,
177    cargostart, cargoend, amtstart, amtend, autonav) due to multiple
178    issues:
179    - The orders are executed at the update.  Crafty players can use
180      them to get around the update window.
181    - Usability is poor, especially for autonav.
182    - Few players use them.
183    - Documentation is inaccurate.
184    - Code has bugs, some of them critical.
185    - It's almost 1300 lines of rather crufty code nobody wants to
186      touch.
187    - Code sharing complicates maintenance of the navigate command.
188  * Configuration tables reader and empdump improvements:
189    - Better error messages.
190    - Export now omits redundant data by default.  Use empdump -c to
191      include it.
192    - Import can cope with omitted sectors and realms.  Omitted sectors
193      become sea, and omitted realms become empty.
194    - Column order is now unrestricted.  Before, some tables required
195      an ID field to come first.
196    - Support splitting any table.  Before, tables sect, news, lost,
197      realm, game, infrastructure could not be split.
198    - Support strings longer than 65535 characters.
199  * Fix empdump -i to reject strings that are one character too long.
200    The bug affected ship table columns path, name and rpath, land
201    table column rpath, nat table columns cname, passwd, ip, hostname
202    and userid.
203  * Reject nat selectors relations, contacts and rejects, because they
204    don't actually make sense.  They exist just for xdump.
205  * Drop the code to resolve player IP address.  It's been disabled
206    since 4.2.13.  Deprecate nat selector hostname.  Its value has
207    always been "" unless the deity messed with it.
208  * Fix bridge spans next to a bridge tower or head taking damage to
209    fall when they should with EASY_BRIDGES off.  Has always been
210    broken.
211  * Fix bridge spans next to a collapsing bridge tower to fall when
212    they should with EASY_BRIDGES on.  Broken in 4.3.12.
213  * When you scrap a plane, you get crew back only proportionally to
214    plane efficiency.
215  * Changes to build:
216    - Fail the attempt to build a bridge not next to land or bridge
217      tower more nicely.
218    - Deities can now build anywhere, without materials, work or money.
219    - Building a plane no longer uses at least one military.  Military
220      for crew are now rounded just like the other materials.  The
221      special case dates back to 4.2.3.
222    - Report missing materials more nicely.
223    - You now need the required materials rounded up to be present.
224      Actual use is still randomly rounded.  Before, crafty players
225      could exploit the rounding to save materials, or build
226      sufficiently cheap things without materials.  In the stock game,
227      linf and many plane types could be built without materials.
228  * Remove option TREATIES.  Usability is very poor, virtually nobody
229    uses them, conditions are incomplete, the code is buggy, and a
230    burden to maintain.
231  * Test suite improvements:
232    - Coverage extended to commands build, navigate, march, fire,
233      torpedo, retreat, lretreat, falling bridges, automatic retreat,
234      command info page completeness, and the empdump utility program.
235    - Maintainability of tests much improved.
236    - Test harness refactoring.
237    Much work remains.
238  * Adjust stack sizes.  Stack overflow was possibly for tiny worlds.
239  * Fix start, stop to not operate on dead units when used by a deity.
240    Screwed up when start, stop were extended to units in 4.3.6.
241  * Nukes can be grouped into stockpiles, just like ships can be
242    grouped into fleets.  The new command stockpile does for nukes what
243    fleet does for ships.  Likewise the new nuke selector stockpile.
244  * wingadd no longer costs BTUs, for consistency with fleetadd and
245    army.
246  * Changes to edit:
247    - Keep missions centered on ship, plane or land unit centered when
248      teleporting it.  Screwed up when Chainsaw added missions.
249    - Preserve "does not follow" when copying ships.  Preserve "no
250      distribution center" when copying sectors, and don't mess up
251      coastal flag.  Screwed when Chainsaw added the means to copy a
252      ship or sector.
253    - You can now edit nukes.
254    - Suppress bulletin on no-op ship, plane, land unit location
255      change.  Screwed up in 4.3.32.
256    - You can now edit ship, plane and land unit types.
257    - Changing the owner of a ship, plane or land unit away from POGO
258      now works.
259  * Fix "make uninstall" to remove HTML info pages (which are not
260    installed by default) and directory share/empire/.
261  * Fix "make install" to remove stale formatted info pages.
262  * Code refactoring and cleanup, portability improvements.
263  * Info file fixes and improvements.
264
265 Changes to Empire 4.3.32 - Sun Aug 25 07:55:34 UTC 2013
266  * Fix an LWP stack overflow observed on AIX 7.1.
267  * Fix portability bug in standalone client Makefile
268  * Fix portability bug in configure test for curses.
269  * The break command now honors new designation of sanctuaries.
270  * Changes to edit, give, setsector, setresource, swapsector:
271    - Generalize edit to multiple objects: accept
272      <SECTS|SHIPS|PLANES|LANDS|NATS> argument instead of just
273      <SECT|SHIP|PLANE|LAND|NAT>.  Obsoletes setsector and setresource.
274    - Make interactive "edit c" detect and handle concurrent updates,
275      like other edits do.
276    - Don't reprint edited object when done with it.
277    - Always print a message describing the actual change.  Necessary
278      to give the deity a chance to catch unexpected changes, e.g. a
279      player moving away stuff right before a give command, leaving
280      fewer items than the deity intends to take.  Existing messages
281      improved, missing ones added.
282    - Consistently send bulletins to the victim / beneficiary of deity
283      meddling, except when changing stuff mortals can't see.
284    - Report much more deity meddling in the news (subject to option
285      GODNEWS).
286    - More robust argument checking.  Before, careless deity edits
287      could cause internal errors.  Much bounds checking was missing,
288      inconsistent or wrong.
289    - Teleport planes and land units to carrier on load.
290    - Refuse to move planes and land units on carriers.
291    - Fix stack smash in edit l key 'L' that can mess up sector file.
292    - Fix setsector to again print actual landmine change for occupied
293      sectors.  Broken in 4.3.31.
294    - Suppress bulletins for acts of god to himself.
295    - Suppress news for acts of god to gods.
296    - Suppress news and bulletins on no-op acts of god.
297    - Always send bulletins from POGO.  Name the meddling deity in the
298      bulletin text instead.  Inconsistent since Chainsaw.
299    - Make interactive edit accept empty key argument again.
300    - Make interactive edit treat blank input like empty input.
301    - Don't let edit put a land unit or plane on two carriers
302    - Do not disclose when a deity destroys a ship, tell the ex-owner
303      only that he lost it.
304    - edit p and u now show the edited unit like edit s.
305    - edit s now shows the edited ship even when its owner is invalid.
306  * Clean up output of satellite, land, sorder and mission for world
307    sizes between 200 and 1998.  cutoff and level still have issues
308    there.
309  * Plug harmless file descriptor leak on OpenBSD with IPv6.  Broken in
310    4.3.31.
311  * New doc/contributing explains how to contribute to Empire.
312  * Code refactoring and cleanup.
313  * Info page, manual page and documentation fixes and clarifications.
314
315 Changes to Empire 4.3.31 - Sun May 12 16:58:34 UTC 2013
316  * Fix read beyond end of conditional argument on missing operand.
317  * Don't put broken links into info pages formatted as HTML.
318  * Permit ships that can drop depth charges, but not fire.  No such
319    ships exist in the stock game.
320  * Consistently require guns for dropping depth charges.  Before, only
321    the fire command required guns (since 4.3.12 and before 4.0.6).
322  * Change econfig key rollover_avail_max from 0 to 50.
323  * Make sector production more predictable.  Commands production and
324    budget are now a bit more accurate.
325  * Fix bugs that messed up xdump lost and xdump trade on big endian
326    hosts (broken in 4.3.8), and made the server fail during startup on
327    most big endian hosts (broken in 4.3.12).
328  * Build process robustness fixes.
329  * Use "Level: Obsolete" to mark obsolete info pages, and drop "info
330    Obsolete".
331  * Server now uses IPv4 format for IPv4-mapped addresses.  Simplifies
332    safe use of econfig key privip.
333  * Server logs a few more network connection details.
334  * Fixes and workarounds for econfig key listen_addr "" (which is the
335    default) when the system has both IPv4 and IPv6 addresses
336    configured:
337    - Server accepted only IPv6 connections on Windows and BSDs.  Fix
338      to accept IPv4 ones, too.
339    - Except for OpenBSD, where the fix doesn't work.  Accept IPv4
340      connections instead of IPv6 ones there, and document how to get
341      IPv6 accepted instead.
342    - Linux systems are frequently configured in a way that makes the
343      server accept only IPv4 connections.  Document workaround: use
344      listen_addr "::".
345  * Change fairland island size probability distribution: roll two dice
346    instead of one.  This makes extreme sizes much less likely.
347  * Make fairland record the island number in the deity territory.
348  * Fix extension of market bidding time when high bidder changes.
349    Introduced broken in 4.0.7, with insufficient fixes in 4.0.9 and
350    4.2.0.
351  * Fix market not to mess up ridiculously high unit prices.  Has been
352    broken since 4.0.0 introduced the market.
353  * Fix melting of big piles of stuff by ridiculously heavy fallout.
354    Has been broken since fallout exists.
355  * Fix crash on edit s, p, u key 'U' with negative argument.
356  * When a deity builds ships or land units in foreign sectors, they're
357    given to the sector owner.  This lets POGO build them, and it's how
358    build works for planes and nukes.
359  * Fix PRNG (pseudo-random number generator) seeding to resist
360    guessing: seed with a kernel random number.  If we can't get one,
361    fall back to a hash of high-resolution time and process ID.  This
362    should happen only on old systems or Windows.  Far worse than a
363    kernel random number, but far better than just low-resolution time.
364    Fairland's seeding used to be low-resolution time and process ID,
365    but regressed in 4.2.20 to just time.
366  * Switch PRNG from BSD random() to Mersenne Twister.  This is a is a
367    proven, high-quality PRNG.
368  * Fix tiny error in distribution of some die rolls.
369  * Increase land unit retreat chance and nuclear damage's chance to
370    destroy a nuke by one percentage point, for simplicity.
371  * Merge news items a bit more aggressively.
372  * Fix a year 2038 bug in news item merging.
373  * Retire the nightly build.
374  * New make target check.  Just a few tests for now, derived from the
375    smoke test that used to be part of the nightly build.
376  * Really fix accepting connections from "long" IPv6 address.  The fix
377    in 4.3.23 could mess up player's host address in player output and
378    logs, and cause extra "Last connection" messages.
379  * Take ship cost into account when picking missile interdiction
380    target.  Broken in 4.3.8.
381  * Really fix give, setsector and setresource not to wipe out
382    concurrent updates.  The fix in 4.3.27 was insufficient.
383  * Fix setsector not to disclose number of landmines to occupier.
384  * Make capital fail more nicely when the sector is unsuitable.  Its
385    argument must now be a single sector.  Before, it silently picked
386    the first suitable one when the argument selected several.  Has
387    always been that way, and never documented.
388  * Changes to option GODNEWS:
389    - Deity command give could downgrade the deity's relations to the
390      sector owner when GODNEWS was enabled.  No more.
391    - Likewise, deity commands edit and setsector can no longer
392      downgrade the victim's relations to the deity.
393    - News enabled by GODNEWS no longer affect news headlines.
394  * Fix bomb, drop, fly, paradrop, recon and sweep to again accept a
395    destination sector equal to the assembly point.  Broken in 4.3.27.
396  * Fix portability bug in configure test for Windows API.
397  * More user friendly server startup: journal open errors are detected
398    while the server still runs in the foreground, which makes it
399    possible to complain to stderr and to exit unsuccessfully.
400  * Market changes:
401    - Forbid selling conquered populace.  Only relevant when the deity
402      allows selling civilians, which is probably a bad idea.
403    - Permit selling military by default.
404    - Forbid selling ships and land units carrying unsalable cargo.
405  * Scrapping ships and land units now spreads the plague
406  * Don't let scrap give away civilians, kill them off instead.
407  * Pilots and air cargo now spread the plague.
408  * Don't let fly and drop give away civilians.
409  * Fix fly to permit flying civs to a carrier in an occupied sector.
410    Broken in 4.2.17.
411  * Don't let planes fly to a carrier without sufficient space.
412    Before, planes that didn't fit were teleported home, which could be
413    abused.  Broken in 4.3.17.  Almost the same bug was previously
414    fixed in 4.2.17.
415  * Fix tend to foreign ships:
416    - Refuse to tend civilians to foreign ships.
417    - Don't leak friendly foreign ships' commodity cargo.
418    - Continue with remaining target ships after skipping a foreign one
419      when tending a negative amount of commodities.
420    All broken when Chainsaw 2 added tending to allies.
421  * march sub-command 'm' can now sweep own landmines.
422  * Land units no longer sweep allied landmines, except when executing
423    march sub-command 'm'.  They don't hit them since 4.3.27.  Sweeping
424    was forgotten then.
425  * Fix bmap commands not to parse empty flags argument as "revert".
426    Broken in 4.3.27.
427  * Code refactoring and cleanup.
428  * Info page fixes and clarifications.
429
430 Changes to Empire 4.3.30 - Tue May 22 18:34:52 UTC 2012
431  * Disable damage to base sector or ship when missile explodes on
432    launch for now, because damage done to other missiles there can be
433    wiped out in some cases.  Broken in Empire 2.
434  * Fix navigate and march not to wipe out concurrent updates.
435    Abusable, but probably not worthwhile.
436  * Fix some buffer overruns in fairland.  Has always been broken.
437  * Fix arm to require nuke and plane to be in the same sector.  A
438    remote nuke got teleported to its plane when the plane moved.
439    Broken in 4.3.3.
440  * Change login command kill (used by client option -k) to kill less
441    ruthlessly: send a flash message and try to flush output, exactly
442    like a server shutdown does.
443  * Fix server shutdown to wait for player threads to reach a safe
444    state.  Before, player threads raced with shutdown, and failed to
445    update the treasury, record play time, and write log entries when
446    they lost.  Bug goes back to Empire 2.  Patched partially or
447    unsuccessfully in 4.2.10, 4.2.12, 4.2.20, 4.3.6, 4.3.10 and 4.3.23.
448    The race was hard to lose in practice, until an unrelated
449    "simplification" in 4.3.23 could get player threads stuck sending
450    output after shutdown aborted a command.
451  * Idle timeout changes:
452    - The grace period for clients to complete login and logout is now
453      separate from the idle timeout.  Configurable with new econfig
454      key login_grace_time, default is 120 seconds.
455    - The idle timeout for visitors is now separate from the one for
456      players.  Configurable with new econfig key max_idle_visitor,
457      default is five minutes.
458    - Fix the idle timeout when the connection gets stuck sending
459      output.  Broken in 4.3.20.
460    - Idle timeout during execute now terminates the connection, not
461      just the execute command.
462  * Fix stack smash in build.  Remote hole!  Broken when Empire 2 added
463    the confirmation prompt.
464  * Fix stack smash in scrap and scuttle.  Remote hole!  Broken when
465    Chainsaw added the confirmation prompt.  Additionally, the
466    confirmation prompt is misleading when the player supplies
467    conditionals.  Redesign the flawed prompt.
468  * Fix execute's echo of the command.  Broken in 4.3.28.
469  * The mobility cost of retreating a defending land unit was
470    calculated for an uninitialized sector.  This could charge
471    incorrect mobility, prevent retreat, or, if the stars align just
472    right, crash the server.  Broken in 4.3.6.
473  * Commands cutoff, headlines, land, lstat, motd, neweff, payoff,
474    qorder, sorder, and wall now behave like the other information
475    query commands when the player's connection can't take more output:
476    they pause to let other code run.
477  * Revised command permissions:
478    - arm and disarm no longer require money, for consistency with the
479      other commands to move stuff around.
480    - satellite no longer requires money, for consistency with lookout,
481      radar, sonar and skywatch.
482    - qorder, sorder, survey and test no longer require a capital, for
483      consistency with the other commands that report on stuff the
484      player owns.
485    - start and stop no longer require a capital, for consistency with
486      the other commands to control production.
487    - fortify now requires a capital, for consistency with mission,
488      morale and range.
489    - Anybody may now use country, echo and financial.
490    - Visitors can no longer use census, commodity, map, nmap,
491      sinfrastructure (useless without sectors), read (visitors don't
492      get any telegrams), and change (always failed).
493    - Players can no longer use map and nmap before break.  This is
494      consistent with all the other commands to examine the
495      environment.  It also prevents people from trying multiple
496      unbroken countries in a blitz to find the one with the nicest
497      vicinity.
498    - Players can now use resource before break, just like census.
499  * read could swallow the first telegram header when showing the
500    telegrams that arrived while waiting for the player to confirm
501    deletion.  Broken in 4.3.29.
502  * Fix 'm' in path argument of explore, move, transport:
503    - Don't moan about deprecated argument syntax ('m' without a space
504      before its argument) even when there's no argument.
505    - Recognize the flags argument again.
506    Broken in 4.3.27.
507  * Market fixes:
508    - Command market is no longer available to visitors, because it
509      triggers execution of trades that have become ready.
510    - Fix a race condition that could cause commodity trades to be
511      executed multiple times.  Abusing this to duplicate commodities
512      seems tricky, but possible.  Broken in Empire 3.
513    - Don't expropriate sellers of units.  POGO got the money, the
514      telegrams and made the news, the seller got nothing.  Broken in
515      4.3.17.
516  * Login command quit and server shutdown could lose player output.
517    4.3.23 tried to fix the shutdown case, but the fix was incomplete.
518  * Fix login command quit to really quit.  It sometimes just swallowed
519    buffered input, at least on some systems.
520  * 4.2.22's fairer command scheduling failed to cover the execute
521    command.  Fix that.
522  * When a client shuts down input transmission to log out, output
523    could get lost.  Our client never does that.
524  * Don't skip post command treasury update and status notification on
525    EOF from player, after quit command, and when command is aborted by
526    server shutdown.  An unluckily timed EOF or shutdown can deprive a
527    player of money gained from scuttling tradeships or sacking a
528    capital.  Can be abused to build bridges and infrastructure free of
529    charge.  Can also be abused to designate sectors for free, but the
530    stock game's sector types are all free anyway.  Has always been
531    broken.
532  * Fix client not to send an empty line on player interrupt (normally
533    ^C) before the first command.  This was missed in 4.3.26.
534  * Code and info page cleanup.
535  * Documentation fixes.
536
537 Changes to Empire 4.3.29 - Fri Jan 20 19:20:20 UTC 2012
538  * drop and fly from carrier could fail to load last civilian or
539    military.
540  * Telegram and announcement changes:
541    - wire no longer loops to show announcements that arrived while
542      waiting for the player to confirm deletion.
543    - At most five seconds worth of messages are now squashed together
544      into one.  Before, only the time between adjacent telegrams was
545      limited, not the total time.
546    - When telegrams arrived while read was waiting for the player to
547      confirm deletion, and we then showed them, we nevertheless
548      claimed "you have new telegrams" before the next command prompt.
549      Only with toggle inform off.  Known bug since Empire 2.
550    - Fix read not to clobber asynchronous notification of telegrams
551      arriving while waiting for the player to confirm deletion.
552    - Fix wire not to reset number of pending telegrams with toggle
553      inform on.  Broken when Empire 2 introduced toggle inform.
554    - The number of pending announcements was off when announcements
555      were squashed together.
556    - More careful error handling and logging.
557  * Ensure all of an update's output goes into a single production
558    report:
559    - Avoid splitting it up when the update is slow.  Empire 2 already
560      did that for the number of pending telegrams, but not for read.
561    - Don't turn parts of it into BULLETINs.  Autonav and sail could do
562      that since Empire 2.
563  * files now creates POGO with user interface flags beep, coastwatch,
564    sonar and techlists set, for consistency with add.
565  * Change newcap back to not wiping the country (it wiped since
566    4.3.12).  Additionally, leave levels and telegrams alone.
567  * Changes to deity command add:
568    - Require confirmation for unadvisable actions.
569    - Refuse to touch a country while it's being played.
570    - Don't crash on negative country number.
571    - Create deities with money, just like files creates POGO.
572    - Always reset the country completely, not just when adding a
573      player or a visitor.
574    - Rename argument "new" to "player".  Keep recognizing "new" for
575      now, but deprecate it.
576    - Drop argument "active".  If you really want to create a player
577      country without a capital, add the player country normally, then
578      activate it with edit instead of newcap.
579    - Drop the obscure sector check and wipe option.  If you really
580      need to wipe out a country, there's much more to wipe than just
581      sectors.
582    - Drop the undocumented land unit destruction feature.
583  * Permit no-op country name change again.  Accidentally outlawed in
584    4.3.20.
585  * Plug a few minor memory and file descriptor leaks.
586  * Fix use-after-free when plane gets shot down or aborted in
587    dogfight.  Broken in 4.3.27.
588  * Code cleanup.
589  * Info page and manual page fixes.
590
591 Changes to Empire 4.3.28 - Sat Jul 16 11:30:53 UTC 2011
592  * Don't let POGO (#0) navigate dead ships, and march dead land units.
593    The ghosts even got sighted and interdicted, and could hit mines.
594    Has always been that way.
595  * llook can't see land units and planes loaded on land units anymore.
596  * Fix board to ignore land units loaded on land units when testing
597    whether a sector can board.  Broken in 4.0.17.
598  * Fix transport to reject planes loaded on land units.  The plane
599    remained on its carrier.  When the land unit moved, the plane was
600    teleported right back to it.  Broken since Chainsaw 3 added land
601    units.
602  * Fix lradar not to let land units loaded on land units use radar.
603    Broken since 4.0.0 added trains.
604  * Fix strength to ignore land units loaded on land units.  Broken in
605    4.2.0.
606  * Fix navigate and march to find paths longer than a few sectors
607    again (7 for 64 bit hosts, 3 for 32 bit hosts).  Broken in 4.3.27.
608  * march sub-command 'i' now shows number of military and land units
609    loaded.
610  * New server option -F to force start even when state looks bad.
611    Risks crashes and further corruption, but gives deities a chance to
612    fix up a bad game state with edit commands and such.
613  * empdump -x no longer refuses to export game state that looks bad.
614    Gives deities another tool to fix up a bad game state.
615  * Land units loaded on land units fight che again, as they used to
616    before 4.3.26.
617  * When a land unit dies fighting che, land units loaded on it get
618    unloaded, and planes loaded on it die.  Before, the update left
619    them stuck on their dead carrier.  Impact like the next item.
620    Abusable.  Broken since Chainsaw 3 added land units.
621  * The update no longer destroys ships, planes and land units for lack
622    of maintenance.  Before, it left any embarked planes, land units
623    and nukes on their dead carrier.  In this state, units behaved as
624    if their carrier was still alive, with additional protection from
625    the fact that a dead carrier can't be damaged or boarded.  If
626    another unit with the same number got built, it picked up the stuck
627    cargo.  The cargo got teleported to its new carrier when the
628    carrier moved.  Abusable, but it involves going broke, so it's
629    rarely practical.  Slightly more practical before 4.3.6 removed
630    budget priorities.  Broken for ships and land units when Empire 2
631    added their maintenance cost, and for planes when 4.3.3 replaced
632    nuclear stockpiles by nuke units.
633  * Fix bogus internal error triggered by navigate and march
634    sub-commands 'r', 'l' and 's'.  Broken in 4.3.27.
635  * Fix client not to reject redirections and execute containing
636    non-ASCII characters with a bogus scary warning when using UTF-8.
637  * Fix execute not to mangle non-ASCII characters in the argument when
638    prompting for it while login option utf-8 is on.
639  * Fix handling of non-ASCII and control characters in batch files.
640  * Conversion from UTF-8 to ASCII ate the character following a
641    replaced non-ASCII character.  Buffer overrun possible if the
642    terminating zero gets eaten.  Could happen in players, read, flash,
643    wall, and execute.
644  * Fix handling of empty commands:
645    - Time used was not updated.
646    - Mortal player wasn't logged off for game hours, game down, and
647      time limit.
648    - Notifications were delayed: going broke, becoming solvent, new
649      telegrams (toggle inform off only), new announcements, capital
650      lost.
651  * Minor tweaks to nightly build.
652  * Server's and empdump's sanity checking of configuration and game
653    state is now more rigorous.
654  * Deity xdump no longer dumps unused countries' realms.
655  * Remove option LANDSPIES.  Deities can customize the land table to
656    disable spy units.
657  * Remove option TRADESHIPS.  Deities can customize the ship table to
658    enable trade ships.
659  * Configuration table changes (builtin and custom):
660    - Rows must be in ascending UID order.
661    - Omitting rows in tables item, sect-chr and infrastructure is no
662      longer permitted.
663    - Custom tables now replace the builtin table completely.  Before,
664      omitted rows defaulted to the builtin version, except at the end
665      of a table.  Commenting out unwanted stuff just works now.
666    - Permit custom table product having fewer than 14 entries.
667    - Reject custom tables where customization has no effect (updates,
668      table, meta, all symbol tables) or where it's unsafe (news-chr).
669    - Input is checked more rigorously.
670  * empdump -i fixes:
671    - Don't touch plane file when import fails.
672    - Refuse import of incorrectly sized table instead of silently
673      creating one the server will reject.
674    - Replace old state completely.  Before, omitted rows in the dump
675      defaulted to the old state, except at the end of a table.
676    - Input is checked more rigorously.
677  * Fix xdump updates not to dump bogus extra updates.
678  * Fix use-after-free when a plane got shot down or aborted by flak.
679    Broken in 4.3.27.
680  * Friendlier diagnostics in the build command.
681  * Fix build to set nuke's tech exactly like for ships, planes and
682    land units.  It's not currently used for anything.
683  * Research required for nukes was slightly off sometimes due to
684    incorrect rounding.
685  * Bridge building required 0.005 tech less than advertised, fix.
686  * "show nuke" now obeys toggle techlists.
687  * Fix "show land s" to show columns xpl and lnd again.  Broken in
688    4.3.15.
689  * Code refactoring and cleanup.
690  * Documentation on custom tables and xdump updated.
691  * Info file fixes.
692
693 Changes to Empire 4.3.27 - Sun Apr 17 11:36:29 UTC 2011
694  * License upgrade to GPL version 3 or later.
695  * Fix buy not to wipe out concurrent updates.  Can be abused to
696    duplicate commodities.
697  * Don't let fighters, SAMs and ABMs intercept while on trading block.
698  * Don't let missiles interdict ships or land units while on trading
699    block.
700  * Fix client to log long input lines untruncated.
701  * Fix client crash for long input lines.
702  * info subject pages now mark unusually long pages with a !.
703  * The edit command keys deprecated in 4.3.15, 4.3.17 and 4.3.20 are
704    now gone.
705  * Fix give, setsector and setres not to wipe out concurrent updates.
706  * Fix explore, move, test, transport not to ignore spaces in path
707    arguments.  Broken in 4.3.7.  Deprecate use of 'm' without space
708    before its argument.
709  * Improvements to map drawing commands:
710    - Don't fail silently when asked to draw a map around an invalid
711      unit, explain the problem.
712    - Deprecate bmap flag "r".  Use (a prefix of) "revert" instead.
713    - bmap flags following "t" are no longer ignored.  However, info
714      pages previously documented an argument "true" in addition to
715      flag "t".  To keep that working, keep ignoring flags following
716      "t" when they're bad.  But deprecate that usage.
717    - Reverting the bmap no longer draws a map.
718    - Bad conditionals could make the commands misinterpret their first
719      argument.
720    - The commands now fail when they reject their second argument.
721  * The xdump syntax deprecated in 4.3.12 is now gone.
722  * Fix satellite to fail on bad conditionals instead of ignoring them.
723  * Journal improvements:
724    - Optional logging of output.
725    - Long lines are no longer truncated.
726    - Login phase input is now logged, too.
727    - Commands are now logged.  Allows making sense of input without
728      context.
729  * Option BRIDGETOWERS is now disabled by default.
730  * Bridge towers now take 300 hcms to build, down from 400.
731  * Fix stop orders to expire even when the country is broke.  Broken
732    in 4.3.8.
733  * Fix march and navigate not to advise on "legal directions" when
734    path finding fails.
735  * New path finder:
736    - Much faster, especially for distribution, i.e. where it matters
737      most.  Speedups in excess of 30x have been observed for updates
738      taken from real games.
739    - Old land path finder leaked memory occasionally.
740    - Old land path finder overran buffers for very long paths.  A
741      malicious player can arrange sufficiently long paths, but it
742      takes a lot of land.  Distribution, the distribute command, land
743      unit reaction, and automatic supply now handle arbitrary long
744      paths.  Commands explore, move, test, transport, march, navigate
745      and path now handle paths up to 1023 characters.  Command
746      bestpath shows paths longer than 1023 characters with the tail
747      replaced by "...".
748    - Old sea and air path finder treated destinations as unreachable
749      when the best path was longer than 99 characters.  Command sorder
750      now handles arbitrary long paths.  Commands bomb, drop, fly,
751      paradrop, recon, sweep and sail now handle paths up to 1023
752      characters.  Autonav considers up to 1023 characters at the
753      update.  Planes can fly missions up to 1023 sectors from their
754      base.
755  * Automatic supply charged mobility for the path back to the source
756    instead forward to the sink.
757  * Make bestpath work for deities in foreign land.
758  * More robust savecore example script.
759  * Fix buffer overruns in the lookout, spy, map and nmap commands when
760    WORLD_X * WORLD_Y is not a multiple of 16.
761  * The path command's maps weren't always fitted to the path
762    correctly.  Broken in 4.3.17.
763  * Land units no longer hit allied mines.
764  * Change sharebmap with yourself to do nothing instead of telling you
765    you're not friendly to yourself.
766  * You can now flash yourself.  Enjoy!
767  * A race condition could make the flash command claim an ally was not
768    logged on when he was.  Hard to trigger outside the lab.
769  * The flash command no longer prints "Flash sent" for deities.  It's
770    annoying.  It never did that for mortals.
771  * Plug memory leaks in mission code on a number of conditions:
772    - Submarines moving where own planes would interdict hostile
773      submarines
774    - Ground combat where countries hostile to one of the parties would
775      support if relations were right (allied to one party, at war with
776      the other)
777    - Ships or land units moving within hostile missile mission op
778      areas
779    - Any player action within marine missile mission op areas that
780      could trigger the missile owners' missions.
781  * Attack fixes:
782    - When you ordered a sector to attack with military, but lost the
783      sector before the attack was executed, and the new owner was
784      allied to you, the server got confused: it let the military
785      attack even though they were already dead, but not occupy.
786    - When you ordered a land unit to attack from an allied sector, and
787      the sector got lost before the attack was executed, the server
788      reported things as if you had owned the sector yourself.  The
789      land unit still attacked when the new owner was also allied to
790      you.  No more.
791    - When a land unit attacked out of an allied sector, its mobility
792      cost was computed as if the ally owned the land unit.  Attacking
793      sectors old-owned by that ally was too cheap, and taking back
794      one's own was too expensive.
795  * Fix trade ships to pay off in own harbor.  Broken in 4.3.17.
796  * Remove option SLOW_WAR.  It hasn't been enabled in a public game
797    for years, and the code implementing it was buggy.
798  * Fix a bug in sail that limited the sail path to 27 instead of the
799    intended 28 characters.
800  * Fix race condition in transmission of flash and telegram
801    information messages that could double output and possibly crash
802    the server.
803  * Planes get to sweep and sonar only after flak and interception.
804  * Don't limit the radar command's range to fit its output into a
805    world map without clipping.  The limiting goes back to Chainsaw 2.
806  * Make flak vs. pinpoint bombing consistent with ordinary flak:
807    - 4.3.6 reduced the plane abort chance on damage, but missed the
808      additional flak vs. pinpoint bombing.  Fix that.
809    - Fix to charge mobility appropriate for damage.
810  * Prettier flak damage reporting.
811  * Fix bugs that could cause bmap updates from recon and satellite to
812    be lost.
813  * Fix lookout to properly report sector ownership to deities.
814  * Suppress bogus messages deities with non-zero country number got
815    when attempting to navigate foreign ships or march foreign land
816    units.  Such deity use hasn't worked since Empire 2.
817  * Deities can no longer fly foreign planes.  It didn't fully work
818    since Chainsaw 3, and can trigger internal errors since 4.3.11.
819  * Don't split lines over several bulletins.  The read command
820    normally merges these bulletins, but if they are more than five
821    seconds apart (clock jumped somehow), we get a bulletin header in
822    the middle of a line.  Broken since Empire 2.
823  * Don't beep when plane, land unit or nuke die on a collapsing
824    bridge.  Not nice, because it could beep many times, and could put
825    beeps in bulletins.  Beeping was added in 4.0.18.
826  * Minor improvements to nuclear damage reporting.
827  * When a deity dropped a foreign nuke, parts of the output went to
828    the owner of the nuke instead of the deity.
829  * When a player triggered a foreign missile launch (mission or
830    interception), and the missile exploded on launch, part of the
831    report went to the player instead of the missile owner.  This
832    disclosed the missile owner's origin.  Broken in Empire 2.
833  * When autonav reported to a ship owner that it can't load or unload
834    foreign civilians, it used the sector owner's coordinate system.
835    This disclosed the sector owner's origin.  Abusable.
836  * When nuclear damage bounced off a sanctuary, the bulletin to the
837    sanctuary owner used the attacker's coordinate system.  This
838    disclosed the attacker's origin.
839  * When a deity used sweep, lmine, sail or sabotage with a foreign
840    plane, land unit or ship, its location was reported in the foreign
841    coordinate system.
842  * When a deity asked for a foreign nation report, the capital
843    location was reported in the foreign coordinate system.
844  * Code refactoring and cleanup.
845  * Info file improvements.
846
847 Changes to Empire 4.3.26 - Mon May 24 16:37:40 UTC 2010
848  * Land units loaded on ships or land units can no longer fight che.
849  * When foreign land units were present, a che revolt could damage
850    them instead of the defending land units.  This could let defenders
851    survive the revolt.  They were captured or blown up if che took
852    over the sector.
853  * Fix che revolt to damage only land units that actually fight
854  * Fix loading x-light missiles on ships without capability plane.
855    These ships could only use their x-light slots for x-light planes,
856    not their plane slots.  Broken in 4.3.17.
857  * Update bmap when nuclear detonation makes wasteland.
858  * Fix fly and drop to report discarded cargo items correctly.
859  * New client option -s to specify server host and port.
860  * Hitting landmines could crash the server.  When not, the damage
861    reduction for capability engineer was applied unpredictably.
862    Broken in 4.3.24.
863  * Fix retreat and lretreat condition 'c'.  Broken in 4.3.16.
864  * coastwatch and skywatch could see too far.  Up to one sector for
865    practical radar ranges.
866  * skywatch now reports satellite UIDs.  The UID is required for
867    launching a-sats since 4.3.23.
868  * Fix client not to send an empty line of input before aborting the
869    command on player interrupt (normally ^C).
870  * Fix sabotage not to kill the spy every time.  Broken in 4.3.17.
871  * Code cleanup.
872  * Info page fixes, manual page improvements.
873
874 Changes to Empire 4.3.25 - Sun Mar 21 08:27:37 UTC 2010
875  * Hitting sea mines could crash the server.  When not, the damage
876    reduction for capability sweep was applied unpredictably.  Broken
877    in 4.3.24.
878  * When an interdiction did damage other than collateral damage, the
879    planes that intercepted it from interdicted carriers used no
880    petrol.  4.3.24 fixed only the "no damage" case.
881  * Ship anti-missile defense failed to charge shells when the ship was
882    interdicted.  The fix in 4.3.24 covered only launch.
883  * Fix a bug in navigate and march that let players lay mines free of
884    charge.  Also fix them not to prompt for the number of mines.
885  * Missile exploding on launch could not damage its base if it was
886    armed with a nuke.  Broken in 4.3.23.
887  * When a torpedo attack triggered a return torpedo, the news reported
888    it to be fired by the attacker instead of the defender.
889  * Interdiction attacked submarines with surface-only weapons.  Broken
890    in 4.3.24.
891  * Fix a bug in lradar, path, radar, route, satellite, sect and survey
892    that could leak maps to other players.  Broken in 4.2.0.  Fixed in
893    4.2.8 for bmap, lbmap, lmap, map, nmap, pbmap, pmap, sbmap and smap
894    only.
895  * files could clobber the game when reading confirmation fails.
896  * fairland no longer rejects small worlds without trying.
897
898 Changes to Empire 4.3.24 - Tue Jan 26 21:29:14 UTC 2010
899  * The client sometimes hung under Windows when the server closed the
900    connection.  Broken in 4.3.23.
901  * Fix navigate and march not to crash the server when a path argument
902    consists of a valid path plus whitespace.  Broken in 4.3.7.
903  * When a client sent a blank line in the login phase, the server
904    crashed on some systems.
905  * Fix crash bug in bomb, drop, fly, paradrop, recon and sail.  Broken
906    in 4.3.16.
907  * Fix bogus internal error on escort, recon, and satellite launch.
908    Mostly harmless, as error recovery worked fine.  Broken in 4.3.23.
909  * Stop ship and land unit movement on interdiction even when it does
910    no damage.
911  * When an interdiction did no or only collateral damage, the planes
912    that intercepted it from interdicted carriers used no petrol, and
913    interdicted land units were immune to collateral damage.
914  * The limit for the number of sectors, ships, planes, land units,
915    nukes, and so forth is now large enough not to matter.  It used to
916    be 32768 on common machines.  The sector limit was introduced in
917    4.3.12.  World x- and y-size are still limited to 65536 on common
918    machines.
919  * News use much less space, and thus I/O.  Space was wasted in
920    4.3.12.  Side effects of the change:
921    - Expiry of old news no longer updates news timestamps.  Updating
922      timestamps was wrong, because it defeated incremental xdump news.
923    - The empdump utility can no longer update timestamps of imported
924      news.  Unfortunate, as it breaks incremental xdump news.
925  * New news selector duration, the time span covered by this news item
926    in seconds.
927  * ABMs failed to charge supplies when their sector was the
928    intercepted missile's target.  The stock game's ABMs use no
929    supplies.
930  * Ship anti-missile defense failed to charge shells when the ship was
931    the missile's target.
932  * Code refactoring and cleanup.
933
934 Changes to Empire 4.3.23 - Sun Dec 13 16:34:49 UTC 2009
935  * Fix missile interception not to intercept tactical and marine
936    missiles attacking missiles or satellites.  No such missiles exist
937    in the stock game.  Interception of tactical ABMs could crash the
938    server.  Broken in Empire 2.
939  * Missiles missing their target do collateral damage again.  Was
940    disabled because of bugs in 4.0.18 for manual launch and in 4.3.16
941    for automatic launch.
942  * News reported victim as actor for sub-launched anti-sat and ABM.
943  * Defense value of missiles vs. ABMs and satellites vs. anti-sats
944    failed to improve with tech.
945  * Fix a bug that let missiles interdict ships outside their op area.
946    This could happen when a group navigating together was partly
947    inside the op area.
948  * Only bomb strategic and launch at sector can use nukes.  Before,
949    they could also be used by missions, bomb pinpoint, and launch at
950    ships, but there were several bugs and inconsistencies, and the
951    code was messy.  The arm command now rejects marine missiles in
952    addition to satellites, ABMs and SAMs, and clears the mission.  The
953    mission command now rejects planes armed with nukes.
954  * Missiles exploding on launch pad no longer set off their nukes.
955  * The launch command now more accurately reports why a missile can't
956    be equipped.  It no longer draws supplies automatically.
957  * Manually launched anti-sat now always kills when it hits, for
958    consistency with automatically launched ones.
959  * Don't permit nukes on satellites, ABMs and SAMs.  Nukes on
960    satellites could be armed and disarmed even in orbit.  Nukes on
961    ABMs and SAMs were lost without effect when their missile
962    intercepted.  The stock game is not affected, because its
963    satellites, ABMs and SAMs all have zero load.
964  * Remove obsolete plane capabilities stealth and half-stealth.  Not
965    used by the stock game.
966  * Penalize fighter combat value for any load, not just bombs.  The
967    stock game's fighters can't carry anything but bombs.
968  * Make bomb work for non-tactical cargo bomber.  No such planes exist
969    in the stock game.
970  * Revised cargo plane rules: a cargo flight can be either an airlift
971    or an airdrop now.  Airlifts carry more cargo than airdrops.  A
972    cargo drop or paradrop with a non-VTOL plane is an airdrop.
973    Anything else is an airlift.  This makes paradrop loads consistent
974    with drop loads.  Paradrop with VTOL transports now carries twice
975    the punch, and drop with non-VTOL transports hauls less than fly.
976    In particular, the stock game's tr can't drop guns anymore.
977  * Enforce plane selection rules more tightly:
978    - bomb command can select only planes with capability bomber or
979      tactical.  Before, other planes with non-zero load flew along,
980      but their bombs were silently lost.
981    - sweep command can select only planes with capability sweep.
982      Before, other planes performed ordinary reconnaissance instead.
983    - drop command can select only planes with capability cargo.
984      Before, other planes flew along but dropped nothing.
985  * Fix paradrop to fail without destroying the paratroopers when the
986    player owns the target sector.
987  * Launching an anti-sat now takes the target plane as argument.
988    Before, it took a sector argument, and targeted the lowest-numbered
989    satellite there.  Rather inconvenient when your own satellite masks
990    one of the enemy's.
991  * Remove option PINPOINTMISSILE.  Deities can customize the plane
992    table to disable marine missiles.
993  * Ridiculously impotent nukes could do unpredictable interdiction
994    damage.  No such nukes exist in the stock game.
995  * The production command could mispredict resource-depleting level
996    production.  No such products exist in the stock game.  In fact,
997    they'd be highly unusual.
998  * The update could crash or corrupt the game when a (misconfigured)
999    product depleted resource "none".
1000  * Revamp the Windows port based on ideas stolen from Gnulib.  Share
1001    the code between server and client.
1002  * Don't log out player when update aborts a command under Windows.
1003    Broken in 4.3.20, and not fully fixed in 4.3.21.
1004  * Fix accepting connections from hosts with "long" IPv6 address.  The
1005    internal buffer had insufficient space.
1006  * Delay shutdown up to 3s to let player output buffers drain.
1007  * Fix a race between main thread and player threads, which could
1008    theoretically make the server crash on start.
1009  * Clean up synchronization between commands, update and shutdown, and
1010    when player threads sleep on I/O.
1011  * Clean up the cruft that has accumulated in and behind the empio
1012    interface, and, to a lesser degree, the empthread interface.
1013  * Fix time difference underflows in pthread and Windows code.  They
1014    could potentially cause hangs, although none have been observed.
1015  * Make budget's "Sector building" line look better.
1016  * Make sector maintenance cost configurable.  New sect-chr selector
1017    maint.  Capitals now pay maintenance regardless of efficiency.
1018  * Overhaul show sect b.
1019  * Fix mine production resource limit for sector peffic != 100.  This
1020    affects mountains in the stock game, but only with an impractically
1021    large number of ETUs per update.
1022  * Code refactoring and cleanup.
1023  * Info file fixes and improvements.
1024
1025 Changes to Empire 4.3.22 - Sat Apr 25 11:56:29 UTC 2009
1026  * Fix a Windows client bug that could lead to hangs, at least with
1027    some versions of the C run-time.  Broken in 4.3.11.
1028  * Allow building without curses terminfo.  Highlighting in the client
1029    doesn't work then.
1030  * Really fix bomb not to wipe out plane updates made while it asked
1031    for pinpoint targets.  The fix in 4.3.21 didn't cover escorts.
1032  * Fix tend land not to wipe out concurrent updates.
1033  * Automatic supply fixes:
1034    - Ships with just two shells could fire a torpedo to return fire or
1035      interdict.
1036    - Ships with just one shell could use their anti-missile defense.
1037    - Land units were considered in supply even when they had not quite
1038      enough supplies.  Such land units could defend without penalty,
1039      attack and react.
1040    Broken in 4.3.20.
1041  * Fix update to take dead units off carriers.
1042  * Standalone client distribution built empire instead of empire.exe
1043    for Windows.  Broken in 4.3.0.
1044  * Fix client to abort script execution on SIGINT.
1045  * Fix Windows client not to hang on EOF on standard input when that
1046    is a tty.
1047  * Fix a client bug that could make it hang when EOF on standard input
1048    follows an execute command closely.
1049  * Sea mines under bridge spans were disabled a long time ago, in
1050    Empire 2.  The drop command refuses to mine there.  Change mine
1051    command to do so as well.
1052  * Sea mines under bridge spans were mistaken for landmines by ground
1053    combat, land units retreating from bombs, and non-land unit ground
1054    movement.
1055  * When a bridge tower collapsed, its landmines magically became
1056    sea mines.
1057  * Don't log out player when he interrupts a command.  Broken in
1058    4.3.19.
1059  * Code cleanup and portability improvements.
1060  * Info file and documentation fixes.
1061
1062 Changes to Empire 4.3.21 - Mon Mar  9 21:34:52 UTC 2009
1063  * Fix swapsector not to wipe out concurrent changes to the swapped
1064    sectors.
1065  * Fix a bug in crash dumping that could mess up the journal and, at
1066    least in theory, mess up commands info, read, turn, and wire;
1067    announcement expiry, and reading of econfig and schedule.
1068  * Fix bomb not to wipe out plane updates made while it asked for
1069    pinpoint targets.
1070  * When bombing ships with a force containing both planes with and
1071    without capability ASW, the bomb command could fail to report
1072    presence of submarines, and could refuse to bomb ships when there
1073    were only submarines.
1074  * Leaving land units behind after a victorious attack could in some
1075    cases wipe out changes made to them since the victory.
1076  * The timestamp selectors added to commodity, load and trade in
1077    4.3.12 could lead to spurious command failures.  None have been
1078    observed in the wild.
1079  * Don't log out player when update aborts a command.  Broken in
1080    4.3.20.
1081  * Code refactoring and cleanup.
1082
1083 .\" Work around "nroff: Out of temp file space":
1084 .FI
1085 .NF
1086
1087 Changes to Empire 4.3.20 - Fri Feb 20 18:14:20 UTC 2009
1088  * Option LOANS is now disabled by default.
1089  * Option RAILWAYS is now enabled by default.
1090  * Many fixes to automatic supply:
1091    - Planes flying interception or support missions, abms intercepting
1092      ballistic missiles, and the launch command for missiles and
1093      anti-sats could all supply more shells than necessary, lose
1094      shells, or conjure them up.
1095    - Ships shooting down marine missiles could supply more shells than
1096      necessary, or lose shells.
1097    - Supply ships could conjure up shells when firing guns using
1098      multiple shells, or launching torpedoes, or dropping depth
1099      charges, or shooting down marine missiles.  No supply ships
1100      capable of doing that exist in the stock game.
1101    - Supply engineers could conjure up shells when laying mines.  They
1102      don't exist in the stock game.
1103    - load, lload and supply could supply land units with enough food
1104      from the sector containing them to starve the sector.
1105    - Sectors were charged too much mobility for moving supplies
1106      sometimes.
1107    - Land units serving as supply source no longer draw supplies
1108      recursively, because the bugs there are too hard to fix to be
1109      worth it.
1110    - Defending and reacting units only checked whether they could draw
1111      supplies, but didn't actually draw them.
1112    - load, lload, supply, assault and board no longer supply land
1113      units from ships carrying them.  This feature, added in 4.0.14,
1114      was inconsistent with other ways to supply.
1115    - Don't use automatic supply to avoid starvation at the update.  It
1116      adds complexity to the update.  How much good it does to players
1117      is highly doubtful; certainly nobody can rely on it.  It isn't
1118      covered by the starvation command.  Ships or land units could
1119      steal enough food from their sector to make it starve.
1120    - lmine could only fetch shells for engineers that use ammo.  The
1121      stock game's engineers all do.
1122    The changes listed for load and lload are actually lies, because
1123    supply has been disabled there since 4.3.17.
1124  * Don't let an engineer lay mines while it is on a ship or land unit,
1125    or in a foreign sector.
1126  * Sectors and ships no longer need shells to fire flak.
1127  * Use IPv4 and v6 only when suitable interfaces are configured.
1128  * Fix turn off not to fail when the message is empty.  Broken in
1129    4.2.20.
1130  * Don't nag the deity about game hours restriction in force all the
1131    time.
1132  * Tell deity when the game is down, just like players.  Also make the
1133    information available in xdump, as game selector down.
1134  * Corrupt mailboxes could crash the server.
1135  * Fix reject accept.  Broken in 4.3.4.
1136  * If a player was at a prompt when the deity turned the game down, he
1137    was allowed to enter one more command.
1138  * Air defense is no longer separate from interception.  Putting a
1139    plane on air defense now merely changes where it intercepts.
1140    Separate air defense added too much pointless complexity.  Its
1141    implementation violated design assumptions of the intercept code.
1142    Because of that, the same plane could intercept both an air defense
1143    mission and the planes that triggered it, and the damage it
1144    received in the first interception was wiped out.
1145  * Intercept the same all along the flight path.  In each sector, any
1146    country owning the sector, a surface ship or a land unit there gets
1147    to intercept.  Before, only the sector owner got to intercept,
1148    except for the assembly point and the target sector.  In the target
1149    sector, any country owning surface ships or land units got to
1150    intercept in addition to the sector owner.  Thus, a sector owner
1151    with surface ships or land units there got to intercept twice.  The
1152    sector owner did not get to intercept at the assembly point,
1153    even when it was the target sector.
1154  * Spotting rule changes:
1155    - Ships and land units now spot overflying planes along all of the
1156      flight path instead of just the target sector, and no longer
1157      report allied planes.
1158    - Planes now spot ships and land units only when flying recon or
1159      sweep, and along all of their flight path instead of just the
1160      target sector.  It still takes a spy plane to identify ships and
1161      land units.
1162    - Planes now spot ships and land units in a sector even when all
1163      planes abort there.
1164    - Planes now spot all foreign ships and land units, not just
1165      hostile ones.
1166  * Fix SAM interception for intercepts other than the first.
1167  * Fix air defense and flak over sectors allied to the planes.  Air
1168    defense was broken in Empire 2.  Flak was broken in 4.2.8.
1169  * Establishing contact by spotting planes from sectors didn't work.
1170  * Fix reconnaissance patrols to use sonar when any capable plane is
1171    present.  Before, all planes had to be capable.
1172  * Fix recon and sweep not to spy after all spy planes are gone.
1173  * Fix a bug that made multiple clients running on the same Windows
1174    machine interfere with each other.  Broken in 4.3.11.
1175  * Fix enforcing game hours for players already logged in.  Broken in
1176    4.3.19.
1177  * Fix distribution not to abandon a distribution center by exporting
1178    the last civilian, or the last military if there are no civilians.
1179  * Many fixes to load, unload, lload and lunload:
1180    - Now usable for deities.
1181    - Plug loopholes that let you steal foreign commodities by making
1182      load/lload unload and unload/lunload load through use of negative
1183      amount arguments.
1184    - Fix not to let you give away civilians.
1185    - You can't use lload in foreign sectors or lunload with foreign
1186      land units anymore.  Loading stuff in foreign sectors was
1187      prohibited already for ships.
1188    - lload and lunload now work on foreign land units only when
1189      they're explicitly named by UID.  This matches behavior of load
1190      and unload.
1191    - Fix to test relations of foreign object's owner to player instead
1192      of the other way round.
1193  * Make sure land units with maximum mobility can attack mountains.
1194  * Fix land unit attack mobility cost.  Broken in 4.3.6.
1195  * Conditions comparing string-valued selectors like wing to unquoted
1196    values are now interpreted more smartly.  Before, unquoted strings
1197    were prone to be interpreted as selector names even when that made
1198    no sense.  You still have to disambiguate truly ambiguous cases
1199    like w=w for planes, e.g. as wing=w or w='w'.
1200  * Fix reporting of shot spies in news.  Broken in 4.3.16.
1201  * Remove econfig key mission_mob_cost.  Questionable feature, and
1202    hasn't been used in a long time.
1203  * Reserve and escort missions now have an op-area, like all the other
1204    missions.
1205  * Land units now react only when on a reserve mission.  The lrange
1206    command is gone.  The edit command still accepts and ignores the
1207    land unit key 'P' for compatibility, but it is deprecated.
1208  * Fix a bug that could mess up mission op-area when the range of
1209    ship, plane or land unit on the mission decreases, e.g. through the
1210    range command.
1211  * Reserve missions no longer give a bonus to reaction range.
1212  * Info file fixes.
1213  * Code refactoring and cleanup.
1214
1215 Changes to Empire 4.3.19 - Sun Dec  7 23:15:34 UTC 2008
1216  * LWP doesn't work with Darwin due to OS bugs, avoid it for now.
1217  * Don't let ships double-retreat first on 'i' (injured) and then on
1218    'h' (helpless) when shelled.
1219  * Fix a bug that suppressed the "sunk!" message.  Broken in 4.3.17.
1220  * Log out player when maximum time per day is exceeded.  Before, he
1221    could remain logged in with visitor privileges only, but once
1222    logged out could not log back in.
1223  * If a player was at a prompt when either game hours restriction
1224    started or maximum time per day was exceeded, he was allowed to
1225    enter one more command.
1226  * Deitying a capital failed to charge money and report news.  Broken
1227    in 4.3.17.
1228  * Overhaul accounting of play time, fixing minor inaccuracies.
1229  * Fix parsing of 24:00 in econfig key game_hours and
1230    update_demandtimes.
1231  * New option RAILWAYS.
1232  * Che ages just like military reserves (1% per 24 ETUs).
1233  * Permit ships to assault the sector they're in.
1234  * Sectors eating less than one unit of food don't make one unit of
1235    food for free anymore.  They still can't starve.
1236  * New concept sector terrain.  Deities can use it to make sectors
1237    other than wilderness redesignatable.  See sect.config for more
1238    info.
1239  * Represent play time in seconds rather than minutes.  This affects
1240    xdump: nat selector minused (counting minutes) is replaced by
1241    timeused (counting seconds).
1242  * Improved nightly build, with additional tests.
1243
1244 Changes to Empire 4.3.18 - Sat Oct 18 18:39:17 UTC 2008
1245  * Fix building of planes, land units and nukes with UIDs that have
1246    never been used before.  This could crash the server on some
1247    systems in certain states.  Broken in 4.3.17.
1248  * Improved nightly build, with restructured and extended tests.
1249
1250 Changes to Empire 4.3.17 - Sat Sep 20 16:07:44 UTC 2008
1251  * Fix standalone client build for Windows.  Broken in 4.3.11.
1252  * Disable automatic supply of land units on load for now, it's
1253    broken, and can be abused to duplicate supplies.
1254  * Make trade show exactly what's on sale, remove option SHOWPLANE.
1255  * Stop ships, planes, land units and nukes on violent takeover, just
1256    like sectors.
1257  * Wipe orders when ships, planes, land units and nukes are taken over
1258    violently or given away peacefully.  Fleet, wing, army and mission
1259    were already cleared in many, but not all cases.  Other orders were
1260    never cleared: mission op-areas (visible in xdump), ship autonav
1261    orders, ship sail path (including ship to follow and mobility
1262    quota), land unit retreat orders, plane range limit, and land unit
1263    retreat percentage.
1264  * Fix takeover of stuff by attack, assault, board, lboard, paradrop
1265    and pboard:
1266    - Corrupt land unit file could lead to infinite recursion.
1267    - Take over nuke armed on plane along with the plane.  Broken in
1268      4.3.3.
1269    - Taking over land units with negative mobility increased mobility
1270      to zero.  Ditto for planes embarked on ships or land units.
1271  * Fix a bug that made set and xdump not recognize unused trade lots
1272    as such.
1273  * Fix giving away stuff by trading it:
1274    - When an armed nuke is sold separately from its plane, take it off
1275      the plane.  You couldn't do that before 4.3.3.
1276    - Give away nuke armed on sold plane along with the plane.  Broken
1277      in 4.3.3.
1278    - Don't zero mobility of planes and land units on sold ships.
1279  * Fix giving away stuff by unloading from its carrier: Give away any
1280    nukes armed on planes (broken in 4.3.3) and land units loaded on
1281    land units.  The latter can't happen in the stock game.
1282  * Fix giving away stuff by scrapping or scuttling its carrier:
1283    - Fix up output.
1284    - Disarm the nuke from a plane instead of destroying it.
1285    - Give away any loaded land units and planes, too.
1286  * Tradeship fixes:
1287    - Fix scuttle to ask for confirmation when scuttling a tradeship in
1288      an unsuitable sector even when the tradeship is pirated.  Broken
1289      in 4.2.13.
1290    - Fix scuttle to require 2% harbor efficiency for a trade ship to
1291      pay.  Also require at least friendly relations.
1292    - Make autonav refuse scuttle orders in unsuitable sectors.
1293  * Clean up rules on where you can scrap stuff:
1294    - Ships in own or friendly, efficient harbors (relations used not
1295      to matter, contrary to info)
1296    - Planes in own or allied, efficient airfields (friendly used to
1297      work as well, contrary to info)
1298    - Land units in any own or allied sector (relations used not to
1299      matter, and you couldn't scrap them on ships)
1300    Also tell player why something can't be scrapped instead of
1301    ignoring it silently.
1302  * Rewrite the broken code to move land units, planes and nukes along
1303    with their carrier.  The old code was a hack that didn't update
1304    timestamps (so incremental dumps didn't pick up the movement), and
1305    it didn't cover all uses.  The update, in particular, was prone to
1306    see cargo in old locations, which could screw up repairs.
1307  * Expire lost items at the update instead of continuously.
1308  * Replace econfig key lost_items_timeout by lost_keep_hours.
1309  * Minor Windows threading fixes.
1310  * Journal now uses human-readable names to identify threads.
1311  * Ship and land unit load counters are no longer stored in game
1312    state, because they duplicate information already there.  Same for
1313    the type of nuke loaded on a plane.  Remove field nuketype from
1314    xdump plane.  Clients can simply find the plane's nuke instead.
1315    The edit command still accepts and ignores the plane key 'n' for
1316    compatibility, but it is deprecated.
1317  * Ship and land unit load counts as displayed by ship, sdump, land,
1318    ldump, ship selectors nplane, nxlight, nchoppers, nland, and land
1319    selectors nxlight, nland are now reliable.  They used to get out of
1320    sync at times.
1321  * Ship load counts now reflect what is loaded, not how it is stored.
1322    For instance, if a light carrier, capable of carrying 4 x-lights
1323    and 20 light planes carries nothing but 5 sams, we now have
1324    nxlight=5, nplane=0 instead of nxlight=4, nplane=1.
1325  * New cargo lists data structure to let code find loaded planes, land
1326    units and nukes easily and efficiently.
1327  * Revamped upkeep of lost file.  It should be reliable now.
1328  * Disable the ill-advised error recovery on sector access that swept
1329    bugs under the carpet rather than recovering from them.
1330  * Occupied sectors no longer revert to the old owner when all
1331    military and land units go away.  This feature was added in
1332    Chainsaw 3.  It wasn't integrated properly with the che code
1333    (things went wrong when che killed all defenders, but couldn't
1334    convert the sector due to its loyalty), and combat code (if an
1335    attack killed off all local defenders and got defeated by reacting
1336    units, the sector changed ownership anyway, silently).
1337  * Include destination coordinates in interception and plane mission
1338    messages.
1339  * Client could misdiagnose redirections and executes as unauthorized,
1340    or die outright.  Broken in 4.3.11.
1341  * Fix xdump realm to dump player instead of absolute coordinates.
1342    Disclosed the true origin.  Broken in 4.3.0.
1343  * Fix spy to reliably avoid spying same sector more than once.
1344  * The map drawing code could smash the heap when the world was
1345    ridiculously small.
1346  * When a satellite's launch trajectory was off, its coordinates could
1347    get screwed up, which made it invisible in skywatch.
1348  * Fix several bugs that made the path command screw up when the path
1349    spans large areas.
1350  * Fix the default size of the map shown by move, test and transport
1351    sub-command M.
1352  * Fix bugs that could make arguments in area or dist syntax miss
1353    ships, planes, land units and nukes at the border of the selected
1354    area, if that area spans the whole world.  In sufficiently small
1355    worlds, it could also make radar miss satellites and ships, sonar
1356    miss ships, satellite miss ships and land units, nuclear
1357    detonations miss ships, planes, land units and nukes, automatic
1358    supply miss ship and land unit supply sources, ships and land units
1359    fail to return fire, ships fail to fire support.
1360  * Maps sometimes showed x-coordinates as three lines instead of two
1361    unnecessarily.
1362  * Improved nightly build, tests in particular.
1363  * Code refactoring and cleanup.
1364
1365 Changes to Empire 4.3.16 - Sat Aug  9 15:56:52 UTC 2008
1366  * Production command incorrectly limited the number of graduates,
1367    happy strollers, technological breakthroughs and medical
1368    discoveries produced by a sector to 999.  Broken in 4.2.15.
1369  * Fix a bug in improve that could let you spend more money than you
1370    have.
1371  * Fix work command not to spend more mobility than requested, and to
1372    round mobility use randomly instead of down.
1373  * Commands demobilize, convert and work no longer let you spend more
1374    money than you have.  Commands demobilize and convert no longer ask
1375    for confirmation before spending more than half your money.  Saving
1376    that feature would have been more work than it's worth.
1377  * Remove undocumented key 'd' at bomb ship, plane and land unit
1378    target prompts.
1379  * Fix land unit flak when pin-bombed to match flak when overflown:
1380    proportional to efficiency, and randomly rounded.  Was missed in
1381    4.3.6.
1382  * Don't permit bombing of embarked planes and land units.
1383  * Fix capital maintenance to charge at 60% efficiency.
1384  * launch command now requires only 40% plane efficiency, for
1385    consistency with other ways to launch missiles.
1386  * Disable collateral damage when automatically launched missiles miss
1387    their target.  Collateral damage was done even when the launch
1388    failed or the missile got intercepted.  It's been disabled for
1389    manually launched missiles since 4.0.18, for the same reason.
1390  * Fix a bug that corrupted the lostitems file.  Broken in 4.3.12.
1391  * Show command changes:
1392    - Move product information from "show sect c" into new "show
1393      product", and reformat it to be easier to understand.
1394    - New column navigability in "show sect s".
1395    - "show sect s" now shows the packing bonus type instead of
1396      selected packing bonuses.  "show item" shows the actual bonuses
1397      for each type.
1398    - "show sect b" now shows the usual values in addition to unusual
1399      ones.
1400  * Fix interdiction to obey op-area for missiles.
1401  * Fix a bug that caused a stale sources.mk to be distributed in the
1402    4.3.14 an 4.3.15 tarballs.  The latter does not build out of the
1403    box because of that.
1404  * Don't strip tab characters from quoted command arguments.  Broken
1405    in 4.2.21.
1406  * shutdown commands now always take effect immediately.  Before, they
1407    could be delayed by up to a minute.
1408  * shutdown could start multiple shutdown threads when you initiated a
1409    shutdown shortly after cancelling one.  This screwed up the timing
1410    of the shutdown.
1411  * Deity syntax of zdone changed, and is now documented in info.
1412  * The threshold command could be tricked into accepting negative
1413    thresholds.
1414  * Fix designate to always write updated bmap to disk.
1415  * Fix bomb to fail on empty <pin|strat> argument instead of flying
1416    without bombs.
1417  * Fix a bug in distribute that screwed up the current sector's
1418    distribution center when the command got aborted.
1419  * Commands arm, bomb, deliver, drop, fire, fly, paradrop, recon,
1420    lmine, order, power, range, sail, shutdown, sweep and tend did not
1421    honor command abortion at some prompts.
1422  * Fix a bug in handling of EOF from client that could bite in the
1423    following ways:
1424    - EOF at target prompts for bombing commodities, ships, planes and
1425      land units sent the server into an infinite loop that ate all
1426      memory.
1427    - EOF at sail's path prompt crashed the server.
1428    - EOF at some prompts in deliver, designate, fly, morale, zdone,
1429      attack and assault didn't abort the command.
1430    Broken in 4.3.11.
1431  * Selector terr is now the same as terr0 for mortal players, and
1432    dterr for deities.  This matches how the territory command works.
1433    Unfortunately, this required us to rename xdump sect field terr to
1434    terr0.  Sorry about that.
1435  * Fix bomb not to let you bomb dead ships and land units.
1436  * Make the retreat command a bit more helpful on retreat conditions,
1437    and make it fail on bad conditions.
1438  * Fix the mapper scripts.  Broken in 4.2.0.
1439  * Fix flying commands not to let planes do double duty as escorts.
1440    Broken in 4.3.12.
1441  * When a minesweeper hit a mine after sweeping, the mine wasn't used
1442    up.  If it sank the minesweeper, the code accessed freed memory,
1443    which could clobber the ship file or worse.  Broken in 4.0.17.
1444  * Don't let non-light units board ships that can't carry them.
1445  * Capitals can now employ up to 1000 civilians instead of 999.
1446  * Spy command changes:
1447    - Spy now requires sector military.  Before, presence of land units
1448      was sufficient, but spies shot were only deduced from sector
1449      military.  If you lost more spies than you had sector military,
1450      the rest came back from the dead.
1451    - Spy no longer ignores non-sea sectors without civilians, military
1452      and land units.
1453    - Remove columns lnd, pln from spy report.  The values didn't match
1454      the reported land units and planes, and could leak the presence
1455      of spy units.
1456    - Establish contact when spy succeeds even though the spy was
1457      caught.
1458  * Fix news reporting and damage when land units interdict ships in
1459    sectors other than sea.
1460  * Fix land unit return fire damage to ships to take accuracy into
1461    account, like the fire command and interdiction does.
1462  * Remove the inconsistent shelling damage reduction for range.  Fire
1463    command got damage reduced by 10-20% with a chance depending on
1464    range ("Wind deflects shells").  Ships interdicting got it reduced
1465    by half.  Other ways to shell did not get damage reduced for range.
1466  * Fix ground combat to report defending land units.  Broken in 4.3.4.
1467  * Info file and documentation fixes and improvements.
1468
1469 Changes to Empire 4.3.15 - Sun May 18 08:59:30 UTC 2008
1470  * The edit command keys deprecated in 4.3.10 are now gone.
1471  * fairland now obeys game file locks.
1472  * Do not leak world creation time in files utility, because that
1473    facilitates attacks against fairland's PRNG.  Broken in 4.3.12.
1474  * Fix starvation not to starve one more than it should.  The last man
1475    on a boat or land unit now can't starve anymore.
1476  * Fix a crash bug in satellite.  Broken in 4.2.7 and not fixed
1477    correctly in 4.2.12.
1478  * Fix a coordinate normalization bug that could theoretically lead to
1479    buffer overruns and other unpleasantness.  None have been
1480    reproduced, though.  Broken in 4.3.12.
1481  * Remove option FUEL.  The abstract idea of tying ships and land
1482    units to a logistical tether is sound, the concrete implementation
1483    as option FUEL is flawed.  It adds too much busy-work to the game
1484    to be enjoyable.  It hasn't been enabled in a public game for
1485    years.  The code implementing it is ugly, repetitive, and a burden
1486    to maintain.  The edit command still accepts and ignores the fuel
1487    keys for compatibility, but they are deprecated.
1488  * Fix pin-bomb not to report subs when there are none.
1489  * You now have to take a capital to capture the victim's money, loans
1490    or market lots.  Merely obliterating the capital doesn't cut it.
1491    It still makes the victim lose money, though.
1492  * Fix a bug that could theoretically allow sacking of non-existant
1493    capitals of visitors, deities and such.
1494  * You now gain BTUs and MOB_ACCESS mobility before the first update
1495    again.  You didn't since 4.3.10 introduced the ETU clock.
1496  * Fix edit to detect when the edited object changes while it's being
1497    edited.
1498  * Fix xdump nat for relations: it got HIDDEN backwards.  Broken in
1499    4.3.12.
1500  * Fix origin command not to prompt twice for its argument.  Broken in
1501    4.3.0.
1502  * Info file improvements.
1503
1504 Changes to Empire 4.3.14 - Mon May  5 04:57:03 UTC 2008
1505  * Another round of fixes to the fire command:
1506    - Don't disclose where the target retreated to.
1507    - Charge the target shells for returning fire.
1508    - Always use guns when the target is out of range, even if it's a
1509      submarine.  Before, the difference in shell use disclosed whether
1510      the target is a submarine.  Loophole opened in 4.3.12.
1511    - Make depth charges again work with just one shell.  Failing the
1512      command in that case lets players find out whether the target is
1513      a submarine.  Loophole opened in 4.3.12.
1514    - Detect when the firing sector, ship or land unit changes across
1515      the target prompt.  Can be abused to duplicate commodities, and
1516      more.
1517  * Fix parsing of anchor-relative time in update schedule.  Broken in
1518    4.3.13.
1519  * Fix logging of player input in the journal to include command
1520    interruption and EOF.
1521  * Fix oversights in 4.3.12's change to keep track of flying planes:
1522    planes could be erroneously reported damaged by their own ground
1523    strikes.  Happened with missions and the launch command.
1524  * Fix load not load hardened missiles.
1525  * Fix harden not to harden missiles loaded on land units.
1526  * New server option -E to choose what to do on recoverable internal
1527    error.  You can now make the server dump core and keep going (not
1528    implemented for Windows).  New econfig key post_crash_dump_hook to
1529    run a program after crash-dumping.  See scripts/savecore for an
1530    example.
1531  * Journal entries are now flushed to disk right away even when the
1532    server is not running in debug mode.
1533  * Don't let land units load trains.
1534  * Allow deity to display power report for all types of countries,
1535    with power c.
1536  * Fix designate's check for disallowed sector types.  Broken in
1537    4.3.12.
1538  * Documentation fixes.
1539
1540 Changes to Empire 4.3.13 - Tue Apr 15 19:03:11 UTC 2008
1541  * Work around strptime() lossage on some systems.  Fixes the parsing
1542    of the schedule file there.
1543  * New selector maxnoc for xdump version.
1544  * Fix initialization of realms in newcap.  Broken in 4.3.12.
1545  * Fix add for status arguments active, god, delete.  Broken in
1546    4.3.12.
1547  * Info file, manual page and documentation fixes.
1548
1549 Changes to Empire 4.3.12 - Wed Apr  2 05:35:06 UTC 2008
1550  * Fix rounding error in update that could result in more babies than
1551    food permits, and negative food.
1552  * Fix a bug that could lead to unfair thread scheduling under
1553    Windows.
1554  * Fix ship and land unit missile interdiction and ballistic missile
1555    interception to require a proper base.  Before, missiles could
1556    launch from anywhere for that.
1557  * Launch bug fixes:
1558    - Don't allow launching from unowned sectors.
1559    - Don't destroy missiles stuck on foreign ships.
1560    - Use up the supplies required for launching an asat only when it
1561      actually launches.
1562    - Don't ignore satellites' fuel use.
1563  * Deity command newcap now requires its second argument (sanctuary
1564    coordinates).  Before, it tried to pick a suitable location when
1565    none was given.  The code implementing this feature had problems,
1566    and it's not worth fixing, because it is obscure, and rarely (if
1567    ever) used: no conscientious deity would use it for a real game,
1568    and for blitzes fairland does a better job.
1569  * Keep track of flying planes properly.  This fixes a number of bugs:
1570    - While the bomb command awaited pin-bombing target input from the
1571      player, other players could interact with the pin-bombers and
1572      escorts as if they were sitting in their bases: spy them, damage,
1573      capture, load, unload, or upgrade them, even get intercepted by
1574      them.  But any changes to those planes were wiped out when they
1575      landed.  Abusable.
1576    - The bomb command could bomb its own escorts, directly (pin-bomb
1577      planes) or through collateral damage, strategic sector damage,
1578      collapsing bridges or nuke damage.  The damage to the escorts was
1579      wiped out when they landed.
1580    - If you asked for a plane to fly both in the primary mission and
1581      escort, you got charged fuel for two sorties instead of one.
1582  * Plug memory leaks in plane interception.
1583  * Fix trade not to let the buyer teleport satellites (not in orbit)
1584    and asats to an arbitrary sector.  Abusable, because abms
1585    intercepted from anywhere, and satellites could be launched from
1586    unowned sectors.
1587  * The PRNG seed is now logged in the journal.
1588  * Fix nightly build for Windows.
1589  * Fix crash bug that bit when custom tables contained columns names
1590    that existed, but weren't supposed to be in the custom table.
1591  * New timestamp selector for commodity, country, game, loan, nation,
1592    news, realm, trade, treaty to support incremental xdump.
1593  * Deity commands newcap and add wipe the nation more thoroughly.  add
1594    no longer touches relations and flags for status active and god.
1595  * New utility program empdump to export and import game state as
1596    plain text.  Check its manual for details, including limitations.
1597  * Plane, ship and land unit stats are no longer stored as game state,
1598    but recomputed from tech and base stats as needed.
1599  * xdump ver is no longer a special case.  Syntax "xdump ver" is now
1600    deprecated.  Use "xdump version *".
1601  * Fire and torpedo cleanup and bug hunt:
1602    - Plug memory leak in fire command.
1603    - Fix ammunition use when returning fire: resupply could lose
1604      shells when returning fire to multiple targets, and land units
1605      were charged per target instead of just once.
1606    - Interdicting land units now resupply shells automatically, for
1607      consistency with other ways to fire.
1608    - torpedo and fire no longer resupply shells automatically.  The
1609      latter used to resupply land units only.
1610    - Land units no longer have to be in supply to fire actively, for
1611      consistency with other ways to fire.
1612    - Submarines with zero mobility can no longer interdict, for
1613      consistency with other ways to torpedo.
1614    - Fix bugs that let submarines without capability torp use
1615      torpedoes to return fire and interdict.
1616    - Fix torpedo command not to require a line of sight for return
1617      fire and depth charges, and to use torpedo range instead of
1618      firing range for return torpedoes.
1619    - Active fire and interdiction didn't work for ships with zero
1620      firing range, even though return fire and support did.  No such
1621      ships exist in the stock game.
1622    - Let land units with zero firing range and non-zero firing damage
1623      fire, for consistency with ships.  No such units exist in the
1624      stock game.
1625    - Ships required different numbers of military to operate their
1626      guns for the various kinds of fire.  Unify to require 2*N-1
1627      military to fire N guns.
1628    - Ship ammunition use differed for the various kinds of fire.
1629      Unify to use one shell per two guns.
1630    - Forts could fire support even when there were not enough mil.
1631    - Fix automatic shell resupply in several places to supply exactly
1632      the shells actually fired, no more, no less.
1633  * Change depth charges back to how they are documented and worked
1634    before 4.0.6, mostly: require no guns, one military, do damage like
1635    shell fire from three guns (before 4.0.6: two guns), use two
1636    shells.  In 4.0.6's model, they worked exactly like shell fire
1637    (require guns and gun crew, non-zero firing range, damage and
1638    ammunition use scales with available guns), except for missions,
1639    which was a bug.  Note that depth charge damage for all ships is
1640    now like fire from three guns for two shells.  No change for dd; af
1641    did two gun damage for one shell before, and nas did four gun
1642    damage for two shells.
1643  * The edit command keys deprecated in 4.3.3 are now gone.
1644  * Fix build not to screw up automatic dependencies on certain compile
1645    errors.
1646  * Fix a bug that could prevent repeated news from properly
1647    aggregating into one news item.
1648  * Properly initialize all bits in game state files, even those that
1649    aren't used.
1650  * Fix explore's test for stopping on a splashed bridge.  The bug made
1651    explore print to a bogus message.
1652  * Fix spelling of symbol airburst in table plane-flags.  This could
1653    affect clients.
1654  * Change designate not to check total cost before executing the
1655    redesignation.  The code implementing that was buggy and too ugly
1656    to live.  Designate doesn't cost anything in the stock game.
1657  * Always charge land units at least as much mobility for assaulting
1658    from non-landing ships as from landing ships.  Before, marines lost
1659    all mobility when assaulting from a non-landing ship, which could
1660    be less than what the same assault costs from a landing ship (half
1661    an update's worth).
1662  * Fix LWP's stack initialization for -s.  It caused crashes on some
1663    systems.
1664  * Fix confused and buggy bridge splashing code:
1665    - Flying planes could be reported drowned.
1666    - Pin-bombing a bridge head failed to collapse bridge spans for
1667      lack of support, unless the pin-bombing caused collateral damage.
1668    - Corrupt sector file could lead to infinite recursion.
1669  * Relative names now work for econfig keys data and info.
1670  * Fix utility programs to abort on internal errors.  They used to
1671    print a message and attempt to recover.
1672  * Fix off-by-one in fairland that ate the last expansion island.
1673  * Switch from CVS to git.
1674  * Code refactoring and cleanup.
1675  * Portability fixes.
1676  * Info file, manual page and documentation fixes and updates.
1677
1678 Changes to Empire 4.3.11 - Tue Jan  1 18:57:38 UTC 2008
1679  * New sector selector elev.  It's set by fairland, but has no effect
1680    on the game.  It can be useful for deities to customize a world
1681    created by fairland.
1682  * The client now copes with IDs greater than 15.  The Empire
1683    protocol currently uses 14 IDs.
1684  * Rewrite the client's code for reading server output during login.
1685    The old code could write one byte beyond the end of the buffer
1686    (theoretically a remote hole), got confused by long lines, and
1687    lines that didn't arrive in one piece.
1688  * Long country name, password or user name crashed the client.
1689  * Fix xdump not to deny access to game state tables when maximum
1690    minutes per day are exceeded.
1691  * The server considers a country bankrupt when its treasury is
1692    negative.  Except when it doesn't.  Fix that:
1693    - report misreported countries with $0 as broke.
1694    - If a command spent a few cents more than you had, commands requiring
1695      money became unavailable even when rounding brought you back to
1696      $0.  But logging out and back in then bankrupted you.
1697    - If your treasury rose to exactly $0, commands requiring money
1698      remained unavailable.
1699    - If you had $0, sectors didn't build and sectors and ships didn't
1700      produce at the update.
1701  * Fix a bug in trade that made your money evaporate when a trade fell
1702    through because you couldn't fully pay.  This bug was there since
1703    the introduction of the market in 4.0.0.  It got aggravated by the
1704    removal of forced loans in 4.3.0.
1705  * Fix printing of the new group in army, fleet and wing.  Broken in
1706    4.3.5.
1707  * Fix flash not to screw up the message when the first argument
1708    contains white-space.
1709  * Don't let planes intercept when they are stuck in foreign bases, on
1710    inefficient ships or land units, or on land units loaded on ships
1711    or land units.
1712  * Fix a bug that made interception require petrol to be present even
1713    for planes that don't use fuel (SAMs).  Broken in 4.3.3.  Air
1714    defense missions weren't affected.
1715  * fairland and setsector now limit fertility to 100 instead of 120,
1716    like the other resources.
1717  * Generalize the autonav hack for fishing boats so it covers oil
1718    derricks as well.
1719  * Fix bug in path command that made it swallow every other step.
1720    Broken in 4.2.22.
1721  * The execute command no longer supports redirections and execute in
1722    batch files.  Flaws in the Empire protocol make it next to
1723    impossible for clients to implement that correctly.  See
1724    doc/clients-howto for an explanation.
1725  * Rewrite much of the client's code for sending commands and
1726    receiving server output:
1727    - No longer blocks on sending commands, which could deadlock the
1728      session.
1729    - Fix race condition that could cause server output to be discarded
1730      on EOF on standard input.
1731    - Don't discard server output when reading standard input fails.
1732    - Fix error handling for execute and other, more obscure cases.
1733    - More rigorous error checking for redirections and execute.
1734      Clearer error messages, too.
1735    - Fix execute redirected to file or pipe.  Believed to be broken in
1736      4.2.0.
1737    - The client now creates files for redirections with the same
1738      permissions whether the redirection is in a pipe or not.  Before,
1739      redirections without a pipe created files with no permissions for
1740      group and others.  This change may make your redirected output
1741      visible to other users on your system.  Use the usual controls,
1742      like umask, to restrict permissions to your liking.
1743    - Reject unexpected redirections (violating the protocol).  Before,
1744      they silently replaced the current one, and in the case of pipes
1745      leaked file descriptors and memory.
1746    - Redirections in batch files are not implemented.  They didn't
1747      quite work before, and could leak memory and file descriptors.  A
1748      flaw in the Empire protocol makes them next to impossible to
1749      implement correctly.
1750    - The execute command in batch files is not implemented.  A flaw in
1751      the Empire protocol makes this practically useless anyway.
1752    - Old code leaked memory in various places.
1753    - Unfortunate incompatibility with older servers: if you type the
1754      EOF character (normally ^D) at an argument prompt, the session
1755      hangs.  Use the interrupt character (normally ^C) to get out.
1756  * The client now supports options -h and -v.
1757  * The client no longer zaps its command line in a lame attempt at
1758    protecting users who foolishly specify passwords on the command
1759    line.  Zapping annoys system administrators and creates a false
1760    sense of security.
1761  * Journal entries are now flushed to disk right away when the server
1762    is running in debug mode.
1763  * Fix bugs in load that could make loading operations fail noisily
1764    instead of silently on some systems.
1765  * Server now reliably shuts down session when it receives an
1766    end-of-file condition from the client.  Before, it merely failed
1767    the current command when it got it at an argument prompt.
1768  * Fix bug in execute that could crash the server on some systems when
1769    it prompts for the argument.
1770  * Fix bug that let you check whether a non-allied carrier is
1771    efficient enough for takeoff when one of your planes got stuck
1772    there somehow.
1773  * Fix bug that let you attempt to escort a one-way mission to a
1774    carrier with non-light, non-interceptor escorts.  Such planes don't
1775    fit on carriers, and the command then failed with a bogus error
1776    message.  Before 4.2.17, the planes flew, and the escorts were
1777    teleported home.
1778  * Change the rules for fitting planes on ships slightly, so that the
1779    order of loading no longer matters. Choppers and x-lights can now
1780    use plane slots even when not light.  X-light choppers, which don't
1781    exist in the stock game, can no longer use x-light slots.
1782  * The server now keeps its log file open, just like the journal.
1783  * New server option -R to set the PRNG seed.  This is for
1784    reproducible tests.  Change the Windows-only service uninstall
1785    options from -r/-R to -u/-U.
1786  * Supply a real PRNG for Windows instead of the leaky water-pistol
1787    Windows provides.
1788  * Threads sleeping until a specified time could return early under
1789    Windows.  This could cause missed updates.  Broken in 4.3.10.
1790  * Fix missing newline in show updates.
1791  * Power report didn't factor tech into power correctly.  Broken in
1792    4.3.3.
1793  * Code refactoring and cleanup.
1794  * Info file and documentation fixes and updates.
1795
1796 Changes to Empire 4.3.10 - Thu Sep  6 17:59:53 UTC 2007
1797  * Bridge spans now cost $1000 instead of $2000, and bridge towers
1798    $3000 instead of $7500.
1799  * The Windows port now supports IPv6, but it still needs to be
1800    enabled manually at compile-time.
1801  * The custom table reader detects more errors.
1802  * Do not leak world creation time in files and fairland, because
1803    that facilitates attacks against the PRNG.  This misfeature crept
1804    into 4.3.0.
1805  * Remove the ancient, crufty non-UCONTEXT system-dependent LWP code.
1806    Using it required manual hackery since 4.3.0.
1807  * Plug file descriptor leak in add command.
1808  * Don't kill player connections violently when their thread appears
1809    to be hung.  Threads being aborted by update or shutdown could be
1810    misidentified as hung, and the violence could lead to resource
1811    leaks, locked out updates, and corrupted game state.
1812  * Fix LWP to reliably wake up threads sleeping for a time.  Before,
1813    players with a sufficiently fast connection could starve out system
1814    threads, including the update.
1815  * Fix a class of bugs that made commands behave differently while the
1816    update is attempting to take control:
1817    - No MOB_ACCESS mobility was gained.
1818    - Telegrams were miscounted.
1819    - Bulletins got misfiled as production reports.
1820    - The navigate command ignored sail paths.
1821    - The declare command was more quiet, and declarations of war
1822      failed silently when SLOW_WAR was enabled.
1823    - Many messages got misdirected to bulletins.
1824    Some of these bugs go back all the way to Empire 2, ca 1995.
1825  * New deity command reload, effect similar to SIGHUP.
1826  * Not voting for a demand update no longer lets you veto further
1827    demand updates.  This feature was flawed (it encourages players to
1828    vote late so that they can tactically vote no and thus build up
1829    veto rights), virtually unused, and buggy.  The edit command still
1830    accepts and ignores the country key 'U' for compatibility, but it
1831    is deprecated.
1832  * Fix zdone not to claim to have triggered an update when they're
1833    disabled.
1834  * New update scheduler and ETU clock:
1835    - New schedule file.  See doc/schedule for how to use it.  Replaces
1836      econfig keys update_policy, adj_update, update_times, hourslop,
1837      blitz_time.  A change of schedule does not require a server
1838      restart.
1839    - The force command can no longer force updates in the future.
1840      Edit the schedule file for that.
1841    - New command show updates to show the update schedule.  Obsoletes
1842      the update command.
1843    - New xdump game and xdump updates.
1844    - New utility program empsched to help test update schedules.
1845    - Replace option DEMANDUPDATE and econfig key update_demandpolicy
1846      by econfig key update_demand.
1847    - econfig key update_demandtimes no longer applies to scheduled
1848      demand updates.
1849    - You now receive new BTUs at the update in addition to login.
1850    - You now always gain the same BTUs and MOB_ACCESS mobility per
1851      turn, even when the update schedule changes, updates get missed,
1852      or unscheduled demand updates run.
1853    - Remove the mobupdate command, because porting it to the new ETU
1854      clock is not worth it.
1855  * Redesign of synchronization between commands, update and shutdown,
1856    and how updates are triggered:
1857    - Simplify update to a single thread waiting for the trigger.
1858      Before, three update threads had to perform a carefully
1859      choreographed dance to make updates happen.  The dance relied on
1860      thread priorities for correctness, which are only implemented by
1861      LWP.  With pthreads and under Windows, demand updates were prone
1862      to two update threads starting up concurrently.  Even with LWP,
1863      forced and demand updates could lead to double updates.
1864    - Use a lock for synchronization: commands take it shared, update
1865      and shutdown take it exclusive.  This makes update and shutdown
1866      block until all aborted commands terminated and gave up their
1867      lock.  Before, they proceeded blindly after waiting two or one
1868      seconds respectively, which was cheesy and unsafe.
1869    - New commands no longer fail while the update is pending, they are
1870      delayed until after the update.
1871    - New commands can no longer start during shutdown.  Before, they
1872      could, but risked getting killed violently, possibly corrupting
1873      game state.
1874    - Fix command execution so that commands blocked in writing
1875      redirections are abortable.  The bug allowed players to delay
1876      update and shutdown indefinitely.
1877    - Fix shutdown not to let player threads block on output.  This
1878      let players delay shutdown indefinitely.
1879    - Fix reading of player input not to block again after update or
1880      shutdown aborted it.  The bug allowed players to delay update and
1881      shutdown indefinitely.
1882  * Thread priorities are only implemented by LWP and no longer used.
1883    With LWP, they let players with a sufficiently fast connection
1884    starve out the threads that clean the lost file and kill idle
1885    connections.  Drop them.
1886  * Show nuke rounded required research incorrectly.
1887  * Log unprintable characters as octal escapes rather than question
1888    marks in the journal file.
1889  * The files program no longer changes permissions of existing files.
1890  * The files program now creates all files with permissions ug=rw and
1891    all directories ug=rwx, modified by umask.
1892  * Fix a bug that could make arm, disarm and nuke detonation work with
1893    a used-up nuke instead of the armed one.  This could be abused to
1894    detonate nukes multiple times.  Broken in 4.3.3.
1895  * Fix nuke detonation output for zero blast radius.
1896  * Plug memory leaks in thread code.
1897  * Fix a bug that made LWP I/O wakeup unreliable.
1898  * New march sub-command v for view.
1899  * Journal was initialized before threads were, which was wrong.
1900  * Fix server not to create a journal on SIGHUP when it is disabled.
1901  * shutdown 0 now requests immediate shutdown instead of cancellation
1902    of a pending shutdown.  shutdown -1 now cancels.
1903  * flash and wall no longer split long message lines.
1904  * Fix a bug in collect that screwed up a fully collected loan instead
1905    of deleting it.  The screwed up loan could not be sharked or
1906    collected, but it could be repaid.
1907  * Remove the wait command, it's been broken and restricted to deity
1908    since Empire 2, ca. 1995.
1909  * Budget failed to take sector production into account for predicting
1910    unit repairs.  Before 4.3.6, this bug bit only when you fooled
1911    around with budget priorities.
1912  * When unit repairs are limited by materials, the efficiency gain is
1913    now rounded down.
1914  * Ship repairs outside harbors and plane repairs by carriers used to
1915    consume commodities when and as far as available.  Now, they
1916    consume the same fraction of the real cost of each commodity,
1917    i.e. commodity use is limited by the most scarce commodity.
1918    Neither old nor new behavior make much sense, but the new code is
1919    simpler.
1920  * Code refactoring and cleanup, in particular to make the Windows
1921    port less ugly.
1922  * Portability fixes.
1923  * Info file and manual page updates.  All manual pages are now
1924    installed in section 6.
1925
1926 Changes to Empire 4.3.9 - Sat Jan  6 12:42:19 UTC 2007
1927  * Fix declare to prevent the deity from changing relations for a
1928    player to self.  Allow the deity to set the relations of a player
1929    towards the deity.
1930  * Fix arm not to put the same nuke on multiple planes (broken in
1931    4.3.3).
1932  * New option AUTO_POWER.
1933  * Sectors now repair allied land units.
1934  * Sectors now repair only own and allied planes.
1935  * Fix repair of planes on foreign carriers: repair allied planes,
1936    ignore the others.  Before 4.3.3, carriers destroyed rather than
1937    repaired foreign planes.  Since 4.3.3, foreign planes were treated
1938    as recoverable error.
1939  * Fix automatic fortification of land units to use all excess
1940    mobility even when mobility delta exceeds mobility maximum.
1941  * Disable automatic fortification of land units when MOB_ACCESS is
1942    on, because it is prohibitively slow then (broken in 4.2.13).
1943  * Budget now shows level production (tech, education, research and
1944    happiness) rounded instead of randomly rounded.
1945  * Fix update not to randomly flush small level production to zero.
1946  * Fix overly restrictive game file locking under Windows (broken in
1947    4.3.8).
1948  * Fix navigate to charge mobility for sweeping mines without moving
1949    (broken in 4.3.6).
1950  * Code cleanup.
1951
1952 Changes to Empire 4.3.8 - Fri Oct 20 18:30:28 UTC 2006
1953  * Ships no longer produce stuff when the government is broke.
1954  * Fix land unit casualties in revolts.
1955  * Fix security units not to raid friendly che.
1956  * Fix update sequence to ensure stopped sectors don't work on the
1957    ships, planes and land units in the sector.  Before 4.3.6, this bug
1958    bit only when you fooled around with budget priorities.
1959  * Fix canal loading (was broken in 4.3.0).
1960  * Fix tend not to tend land units that could not be loaded.
1961  * Make xdump command available before break, but deny access to game
1962    state.
1963  * Lock game files to prevent concurrent access by multiple programs.
1964    fairland does not yet obey the lock.
1965  * Fix production to consider sector item limit.
1966  * Fix swapsector to update coastal flag correctly (broken in 4.3.0).
1967  * Enhanced mapping sub-commands in move, test, explore and transport.
1968  * Code cleanup.
1969  * Info file fixes.
1970
1971 Changes to Empire 4.3.7 - Fri Jul 14 23:05:19 UTC 2006
1972  * Sanctuaries are again fully populated with civilians (4.3.6 changed
1973    the limit, but not the population).  Food is now spread evenly
1974    among them.
1975  * Fix path finder to find shortest naval and aerial paths again
1976    (broken in 4.3.4).
1977  * transport's map sub-command now does the right thing for a unit
1978    number argument.
1979  * Fix bug in map sub-command of move, explore and transport that
1980    passed junk to map command.  Could theoretically crash.
1981  * Food need reported by starvation was one short for sectors without
1982    food.
1983  * Change land unit ammunition use back to what it was before 4.2.3.
1984    This lets deities customize ammunition use independent of damage.
1985    It also substantially reduces ammunition consumption at high tech.
1986  * navigation and march enhancements:
1987    - Sub-command 'f' now takes an optional ship / land unit number.
1988    - Mapping sub-commands now take an optional ship / land unit
1989      number.
1990    - New sub-command 'd' to drop mines.
1991  * Let minesweepers retreat at their full speed (missed in 4.3.6).
1992  * SUPER_BARS cannot be harmed, so don't interdict them.
1993  * Don't let trains and non-trains march together for now, because the
1994    march code isn't prepared for that.
1995  * New mapping flag 'n' to show nukes.
1996  * Mapping flag '*' now shows nukes as well.
1997  * New command nbmap to bmap around a nuke.  Overload command nmap to
1998    map around a nuke when given a nuke argument.
1999  * Fix an inconsistency that gave tactical bombers a small bonus
2000    vs. flak when pin-bombing.
2001  * Fix production to show the designation that actually produces, not
2002    the designation as it is now (broken in 4.3.6).
2003  * Fix accidental whitespace change in output of sdump, pdump and
2004    ldump that crept into 4.3.5.
2005  * Support user-defined sector types and products in custom tables,
2006    not just customization of existing ones.
2007  * Fix off-by-one bug in budget that used to be masked by budget
2008    priorities until their demise in 4.3.6.  The bug could crash the
2009    game on certain systems.
2010  * Code cleanup.
2011  * Info file fixes.
2012
2013 Changes to Empire 4.3.6 - Tue Jun 20 18:46:18 UTC 2006
2014  * The shutdown command now terminates the server process correctly
2015    even with LinuxThreads pthreads under Linux 2.4 and earlier.
2016  * Cope with old versions of groff (broken in 4.3.0).
2017  * You can now arm allied planes with nukes.
2018  * Taking a nuke off a plane gives it to the sector owner again.
2019    Feature was accidentally dropped in 4.3.3.  Recipient must be
2020    allied.
2021  * Naval path went bananas for impassable end sectors (broken in
2022    4.3.1).
2023  * New econfig key disabled_commands.
2024  * New territory selector dterr, restricted to deities.  The territory
2025    command defaults to it for deities.
2026  * Let land units attack as long as they have positive mobility,
2027    except for high-mobility terrain (mountains), where the rules
2028    remain as they were: land units need to have all the mobility
2029    charged for the attack, not counting combat and moving in to
2030    occupy.  Rationale: Making sure your land units reach attack
2031    positions with enough mobility left is a pain in the neck.
2032    Requiring only positive mobility is friendlier, but allowed rushing
2033    of mountains, so we make an exception there.
2034  * Can typeset info pages as PostScript.  Result isn't exactly pretty.
2035  * Support disabling of infrastructure in infra custom table.  Remove
2036    redundant option DEFENSE_INFRA.  show command now shows only enabled
2037    infrastructure.
2038  * Fix crash on empty argument in bmap, lbmap, lmap, map, nmap, pbmap,
2039    pmap sbmap, smap (broken in 4.3.1).
2040  * New, simpler sector mobility cost formula:
2041    - The basic cost is still a linear function of sector efficiency,
2042      with customizable cost at 0% and at 100%.  The latter used to be
2043      derived from the former.  The show command shows both parameters
2044      now.
2045    - Mountains are no longer a special case.
2046    - Tweak costs: mountains now range from 2.4 to 1.2 instead of 2.174
2047      to 1.304, highway, bridge head, bridge span and bridge tower
2048      range from 0.4 to 0.001 instead of 0.2 to 0.001, and wilderness
2049      is 0.4 flat instead of 0.6 to 0.4.  All sector types mortal
2050      players can designate now cost the same at 0%.  That's a feature.
2051    - Road infrastructure now reduces cost up to 90%, linear in road
2052      efficiency (used to be close to that, but non-linear).  Same for
2053      rail infrastructure, but 99%.  Adapted from Ice World V.
2054    - Double land unit minimum cost to 0.02, to slow them down on
2055      highways.
2056    - Change land unit cost penalty in newly taken land to an extra 0.2
2057      instead of a minimum of 0.2, to reduce penetration depth.
2058  * Reduce bridge head defense and collect value to match highway's.
2059  * sinfrastructure displayed bogus rail mobility costs when there was
2060    no rail.
2061  * Retreating engineers took full landmine damage instead of half.
2062  * Fix socket creation code not to print a null pointer.
2063  * Fix login option code not to search beyond end of table (broken in
2064    4.2.21).
2065  * Spy planes and satellites can no longer spot landspies.
2066  * Spy planes can now spot surface ships at sea.  They can no longer
2067    spot land units loaded on ships or land units.
2068  * Fix train retreat mobility cost, and don't permit retreat off rail.
2069  * Change maximum population to 100 for plains (was 49), mountains
2070    (was 99), bridge spans and bridge towers (was 999), and to 1000 for
2071    the other habitable sector types (was 999).
2072  * Let minesweepers navigate at the speed their stats indicate by
2073    letting them sweep on the move at no extra mobility charge.
2074  * Reduce chance for planes to abort from 100-eff (if eff<80) to
2075    80-eff.  This should make it easier to punch through air defense,
2076    flak in particular, and increase the risk of getting shot down.
2077  * Ship and land unit flak intensity is now proportional to efficiency.
2078  * Ship and land unit flak intensity is no longer scaled by the tech
2079    of the owner of the last thing firing.  It's still scaled by each
2080    thing's tech.
2081  * All ships and land units firing flak now spot the plane and are
2082    spotted by the plane.  Previously, spotting stopped as soon as flak
2083    maxed out.
2084  * Inefficient land units were overcharged mobility when reacting.
2085    Broken when Empire 3 changed land unit mobility use not to depend
2086    on efficiency, except for supply units.
2087  * New journal file to log complete player input plus selected
2088    important events.  Controlled by new econfig key keep_journal, off
2089    by default.
2090  * Fix unsafe shutdown on SIGINT and SIGTERM.
2091  * Fix land unit path finding: paths weren't always cheapest (broken
2092    in 4.0.2), and trains could be sent down paths without rail (never
2093    worked).  Also fixes unit reaction path cost.
2094  * The custom table reader can now deal with sector, item, product and
2095    infra tables more comfortably.
2096  * Remove option BIG_CITY.  Deities can customize the sect table to
2097    get the same effect.
2098  * Many more selectors can now be compared with names, not just
2099    numbers.  This includes nations, e.g. census ?old=Mirkwood.  Does
2100    not fully work for queer names like &&&.
2101  * Let land units on missions support, just like ships.
2102  * Don't let units loaded on a train react.
2103  * Change update sequence to repair ships, planes and land units after
2104    sectors produce.  This makes repairs use new avail instead of old.
2105  * Let players stop and start units.
2106  * Remove budget priorities.
2107  * Make plane report easier to understand.
2108  * Change land report to show carriers in the same format as plane and
2109    nuke report do.
2110  * Code cleanup.
2111  * Info file and manual page fixes.
2112
2113 Changes to Empire 4.3.5 - Sun May 28 07:49:54 UTC 2006
2114  * In conditionals, ~ compared to a string selector now stands for an
2115    empty string.
2116  * Change encoding of `not in any group' from " " to "".  This makes
2117    fleet=~ work.  It also affects xdump.
2118  * Fix plane capture code to clear wing.
2119  * People now eat and starve exactly the same in sectors, ships and
2120    land units.  There used to be small differences, and civilians and
2121    uw loaded on land units didn't eat at all.  The starvation command
2122    has been updated accordingly.
2123  * Fix bug that makes it impossible to assault or board with land
2124    units (broken in 4.3.4).
2125  * Code cleanup.
2126
2127 Changes to Empire 4.3.4 - Thu May 25 05:46:10 UTC 2006
2128  * Don't use non-portable groff features (broken in 4.3.0).
2129  * Work around potential crash bugs in command argument access.
2130  * Plug major information leak through nation selectors (broken in
2131    4.2.21).  The fix unfortunately exchanges the meaning of xdump
2132    nation and xdump country.  Sorry about that.
2133  * Minimize redundancy between (mortal's) xdump nation and xdump
2134    country.
2135  * New nation selector rejects.
2136  * xdump nation now shows foreign relations and no longer discloses
2137    hidden relations.
2138  * Fix crash bug in edit.
2139  * Fix number of planes building in budget command (broken in 4.3.3).
2140  * Selectors group, fleet, wing and army are now strings, and obvious
2141    syntax like fleet#a works.  xdump also shows the strings now.
2142    Units not assigned to a group currently have group string " ", but
2143    that may still change.
2144  * Don't fold conditionals to lower case, because it breaks valid
2145    conditionals like fleet#A.
2146  * Mobility cost of a plane sortie is no longer limited to current
2147    mobility + 32.
2148  * Various formulas no longer truncate or round intermediate results.
2149  * Interdiction mission charged twice the normal mobility cost for
2150    torpedoes.
2151  * Fix sail not to interpret negative x-coordinates as unsail
2152    argument.
2153  * Improved configure script.
2154  * Code cleanup.
2155
2156 Changes to Empire 4.3.3 - Tue May 16 21:35:47 UTC 2006
2157  * power c can now show powerless countries.  power c * works.
2158  * Fortresses now require 5% efficiency to return fire and interdict.
2159  * Range of ship return fire and support fire no longer depends on
2160    efficiency.
2161  * Fix heap smash in login command client.  Remote hole!
2162  * Properly destroy nukes on collapsing bridges.  Before, you could
2163    rescue them by building a new bridge or arming them on naval
2164    planes.
2165  * Nukes are now numbered like other units:
2166    - New selector type replaces selectors number and types.
2167    - New selector plane points to plane armed with this nuke.
2168    - New selectors effic, mobil, tech, group, opx, opy, mission,
2169      radius.  Provided because all units have them; values are
2170      currently not interesting.
2171    - nuke command output redesigned.
2172    - ndump output changed subtly: nukes are no longer sorted by
2173      location, nukes in the same location no longer share id, and
2174      nukes on planes are shown.
2175    - transport nuke now works like transport plane.
2176  * arm and disarm now accept the common plane syntax, not just plane
2177    numbers.
2178  * Fix arm to let you change an armed plane's air-burst/ground-burst
2179    (broken in 4.2.6).
2180  * territory no longer re-prompts when supplied with a bad argument,
2181    it just fails.
2182  * edit lets you edit stuff that is actually computed from other
2183    state, like sector's coastal flag.  This makes no sense and is now
2184    deprecated.  Stuff deprecated since 4.2.15 is now gone.
2185  * Code cleanup.
2186
2187 Changes to Empire 4.3.2 - Thu Apr 27 17:59:58 UTC 2006
2188  * Fix security units' raid at the update (broken in 4.0.0, fixed only
2189    for 100% units in 4.2.7).  Back out 4.2.7's 2.5x deadliness
2190    increase.  Make sure empty units don't kill anyone.
2191  * Fix bug in player_init(), which was most likely fatal on 64 bit
2192    hosts.  Broken in 4.3.0.
2193  * Fix xdump not to disclose other countries' realms (new in 4.3.0).
2194  * The order in which sectors were visited for `*' arguments disclosed
2195    the real origin, fix.  Mapping commands used to work around this
2196    bug, until 4.3.1 exposed it there as well.
2197  * Code didn't compile on some systems.
2198  * Fix edit plane not to truncate large values for keys 'a' and 'd'.
2199
2200 Changes to Empire 4.3.1 - Sat Apr 15 11:40:47 UTC 2006
2201  * Fix check of game state on server startup (new in 4.3.0).
2202  * sail now accepts a destination sector.
2203  * Tend could send bogus bulletins (broken in 4.3.0).
2204  * Plug memory leaks in mission command.
2205  * Close loophole in navigate that allowed players to find all sectors
2206    that are unfriendly or inefficient harbors or bridges.
2207  * Server didn't start when default econfig was missing and user
2208    didn't supply one with -e (broken in 4.3.0).
2209  * Retreat condition 'h' (helpless) never worked, fix.
2210  * Fix retreating mine sweepers to use mobility for sweeping.
2211  * Fix retreating land units to hit mines with the same probability
2212    and to take the same damage as in normal movement.  Before,
2213    hit probability was higher, and damage was lower.
2214  * Ships could retreat into sectors owned by whoever made them
2215    retreat, but not in their owner's sectors.
2216  * Fix 'm' at the movement prompt of transport and test.
2217  * Fix march and test not to apply conditionals to sectors mapped,
2218    which led to spurious error messages.
2219  * Fix break not to respect conditionals.  The bug let players keep
2220    sanctuaries.
2221  * Fix retreat code not to respect conditionals.  Attackers could
2222    abuse this to suppress fleet and army retreat orders.
2223  * Fix retreat and edit to zero-terminate retreat paths.
2224    Theoretically abusable for gaining information.
2225  * Fix format string crash bugs in load, spy and bomb.
2226  * Fix the telegram editor: empty telegrams were broken in 4.2.21, and
2227    ~p before the first line of text never worked.
2228  * Fix ancient bridge building race condition that could break the
2229    test whether the player can afford the bridge.
2230  * Fix trade lot change detection in set command.  Can probably be
2231    abused to defraud sellers.
2232  * The pthread code now compiles under Solaris.
2233  * navigate and march now permit any whitespace between route and
2234    optional argument for radar, lookout, sonar, not just spaces.
2235  * Fix canal navigation (was broken in 4.3.0).
2236  * Info file fixes.
2237
2238 Changes to Empire 4.3.0 - Sun Mar 19 08:13:10 UTC 2006
2239  * version no longer pretends option SHIPNAMES still exists.
2240  * Remove files auth and ban.  They could be used to restrict client
2241    address and user.  Restricting user is useless, because players can
2242    send whatever they want.  Banning IPs is better done with a packet
2243    filter.  That leaves restricting deity IPs.  Provide new econfig
2244    key privip for that.  Apply it to session kill as well as login.
2245  * xdump escapes GUINEA_PIGS status:
2246    - xdump is now enabled unconditionally.
2247    - xdump sect now dumps selector coastal, because it can't be
2248      reliably computed from other xdump information.
2249    - New xdump realm and country.  Realm information is now stored in
2250      a separate file, with appropriate selectors.
2251    - Reviewed for completeness and information leaks.  See info xdump
2252      for remaining issues.  New treaty selector uid, nat selectors
2253      relations, contacts.  Removed useless selectors: news and lost
2254      uid, nat dayno.
2255    - Command syntax changed.
2256    - xdump opt is no more, option information is now in xdump ver.
2257    - xdump can now dump meta-data.
2258    - Header and footer changed to be more compact.  You now need
2259      meta-data to identify fields.
2260    - Bug fixes.
2261    - Documentation in doc/xdump.
2262  * New econfig key builtindir.
2263  * New econfig key custom_tables lets you customize configuration
2264    tables without recompiling.  Customizing tables other than unit
2265    tables is not recommended for now.  See doc/econfig for
2266    instructions.
2267  * Check configuration and game state are sane on server startup.
2268  * Remove option NONUKES and NEUTRON.  Deities can load a suitable
2269    nuke table to get the same effect.
2270  * Remove option DRNUKE.  Use econfig key drnuke_const to control
2271    whether nukes need research.
2272  * Disqualify land units from performing missions while loaded on
2273    ships or trains.
2274  * Fix dump for strings without terminating zero.
2275  * Fix login command option not to send an extra prompt.
2276  * zdone now displays information about demand update vetoing.
2277  * The Windows port now requires Winsock version 2.
2278  * Remove econfig key powe_cost.
2279  * version report now shows all the configurable settings of interest
2280    to players.
2281  * carg and lcarg now display people as well.
2282  * ldump now dumps civ and uw as well.
2283  * Fix dangling pointer dereference in dogfighting code.
2284  * Tell sector owner when partisans take over.  But don't disclose che
2285    casualties then.
2286  * emp_server, files, fairland now support options -h and -v.
2287  * Simplify baroque version numbering to a single version number.
2288    This affects output of version.
2289  * New show item and show news.
2290  * New build process:
2291    - Follow the usual steps: configure; make; make install.  The
2292      latter is optional.  The only file deities still have to edit is
2293      econfig.
2294    - Use GNU Autoconf for system configuration.
2295    - Use GNU Make for portability and features.
2296    - Support separate build trees.
2297    - Remake out-of-date dependencies automatically.
2298    - Remake out-of-date info files automatically.
2299    - Flatten info directory.
2300    - Formatted info files are no longer distributed in source tarball.
2301    - Use LWP only with UCONTEXT.  Autoconfiguring the other LWP
2302      low-level options doesn't seem to be worth the effort, as
2303      UCONTEXT should be pretty portable.
2304  * Fix use of freed memory in sail.
2305  * sail could let large ships enter big cities.
2306  * Fix reject and accept not to require contact.
2307  * Fix sharebmap and telegram to prompt for a missing first argument.
2308  * Fix report to align column research correctly for deities.
2309  * When the optional newspaper argument doesn't work because HIDDEN is
2310    enabled, complain instead of ignoring it silently.
2311  * When BLITZ is enabled, fairland no longer permutes country numbers
2312    in newcap_script so that start islands are ordered from top left to
2313    bottom right.
2314  * Minimize output format differences between options:
2315    - census shows column fall regardless of FALLOUT.
2316    - show nuke now shows column res regardless of DRNUKE.
2317    - report no longer suppress column status when HIDDEN is enabled.
2318      HIDDEN limits status information like for the country command.
2319    - relations column width differed depending on option SLOW_WAR.
2320      Always use the wider format.
2321  * Fix a bug in edit that suppressed the player notification telex on
2322    military reserve change.
2323  * Fix command dispatch not to let deities use commands that are
2324    declared not to be available to them.  The only command affected is
2325    break.
2326  * Fix the list command for visitor.
2327  * econfig key m_m_p_d no longer applies to deities.
2328  * Fix the origin command for country #0.  Allow moving origin to
2329    another country's origin.  Allow deities to reset origin to
2330    absolute 0,0.  This turns origin into a superset of the offset
2331    command.  Remove offset command.
2332  * Fix a bug that caused unpredictable flak damage when it should have
2333    been maximum damage (was broken in 4.2.19).
2334  * Don't store initial capital location, remove the associated nat
2335    selectors xstart, ystart.
2336  * Fix production command to consider resource depletion.
2337  * Fix justification of coordinate output in cutoff and mission.
2338  * Option UPDATESCHED is no longer optional.  Disabling it didn't
2339    work anyway.
2340  * Support IPv6.
2341  * Turn options into ordinary econfig keys.
2342  * New econfig key start_cash.
2343  * BTU regeneration now depends on the capital's work percentage.
2344  * nation now supports an optional argument that lets deities ask for
2345    somebody else's nation report.
2346  * Fix nation to display SANCTUARY instead of VISITOR for countries in
2347    sanctuary.
2348  * Fix capital to let you use a regained sacked capital without
2349    activating another one in between.
2350  * Don't move capital when it is sacked.
2351  * New ship capability canal, replacing obscure formula based on build
2352    materials.
2353  * You now need a capital to request a demand update.
2354  * power now ignores landspies.
2355  * Fix LWP stack checking.
2356  * Clean up LWP, drop dead machine-specific code, fix portability bugs
2357    in UCONTEXT code.
2358  * census now shows the old owner instead of `*'.  dump is unchanged
2359    to avoid breaking clients.
2360  * peek no longer prints the old owner.
2361  * When a bombed land unit retreated, collateral damage was applied to
2362    the wrong sector.
2363  * paradrop, drop and fly can no longer abandon the base sector.
2364  * Tending foreign ships now sends a bulletin to the owner.
2365  * Fix bug that permitted login for inactive countries, including ""
2366  * Fix tend for spies.
2367  * Change launch to fire all missiles selected at the same target.
2368    Previously, it prompted for a new target after each missile.
2369  * add, consider, build, launch and fire no longer re-prompt when
2370    supplied with a bad argument, they just fail.  Consequently, the
2371    build command no longer lets you list types you can build.  It
2372    points to the show command instead.
2373  * Fix add not to truncate country number.
2374  * Fix selector coastal to be accurate at all times.
2375  * Fix obscure bug in fairland: the sector added last to an island
2376    wasn't considered coastal.  Affected resource computation.
2377  * Fix sector wiping in add command.
2378  * Remove options NO_LCMS, NO_HCMS, NO_OIL.  They were broken in many
2379    ways.  Custom configuration tables should become a serviceable
2380    replacement eventually.
2381  * Client no longer freezes on long lines of server output.
2382  * Fix uninitialized signal mask bugs.
2383  * Fix Windows service code's treatment of -e.
2384  * Sub interdiction disclosed sub owner through news' actor selector.
2385  * country reports on all countries, but carefully limits information
2386    disclosed to mortals.  Output format changed.
2387  * Market no longer forces sellers to grant loans.
2388  * Fix potential crash bug in set command.  Friendlier prompt and
2389    diagnostics.
2390  * Substantial code cleanup and portability fixes.
2391  * Extend empfile abstraction to cover game configuration.
2392  * Overhaul of game state storage.
2393  * The above includes major contributions from Ron Koenderink.  Many
2394    thanks!
2395
2396 .FI
2397 .s1
2398 .SA "Server"