empserver
16 years agoFix editing accident in revision before the previous. More 4.3.0 v4.3.0
Markus Armbruster [Sun, 19 Mar 2006 10:05:20 +0000 (10:05 +0000)]
Fix editing accident in revision before the previous.  More 4.3.0
polishing.

16 years agoUpdate 4.3.0 date.
Markus Armbruster [Sun, 19 Mar 2006 08:24:52 +0000 (08:24 +0000)]
Update 4.3.0 date.

16 years agoTerminology fix.
Markus Armbruster [Sat, 18 Mar 2006 18:14:56 +0000 (18:14 +0000)]
Terminology fix.

16 years agoHints on GNU make.
Markus Armbruster [Sat, 18 Mar 2006 18:13:14 +0000 (18:13 +0000)]
Hints on GNU make.

16 years ago(CFLAGS, CPPFLAGS): POSIX make has only CFLAGS. Fold CPPFLAGS into
Markus Armbruster [Sat, 18 Mar 2006 17:46:32 +0000 (17:46 +0000)]
(CFLAGS, CPPFLAGS): POSIX make has only CFLAGS.  Fold CPPFLAGS into
CFLAGS.  Use CFLAGS when linking, to match POSIX make implicit rule.

16 years agoSearch for terminal stuff in -lcurses as well.
Markus Armbruster [Sat, 18 Mar 2006 16:46:58 +0000 (16:46 +0000)]
Search for terminal stuff in -lcurses as well.

16 years agoCorrect reference to doc/xdump.
Markus Armbruster [Sat, 11 Mar 2006 08:40:27 +0000 (08:40 +0000)]
Correct reference to doc/xdump.

16 years agoRefer to xdump.
Markus Armbruster [Sat, 11 Mar 2006 08:36:50 +0000 (08:36 +0000)]
Refer to xdump.

16 years ago(may_play): More helpful diagnosis and log.
Markus Armbruster [Thu, 9 Mar 2006 22:04:17 +0000 (22:04 +0000)]
(may_play): More helpful diagnosis and log.

16 years ago(privip): Lacked the IPv4 mapped IPv6 address for localhost.
Markus Armbruster [Thu, 9 Mar 2006 21:51:27 +0000 (21:51 +0000)]
(privip): Lacked the IPv4 mapped IPv6 address for localhost.

16 years agoUse touch to touch stamp files, > doesn't update mtime of existing
Markus Armbruster [Thu, 9 Mar 2006 21:21:58 +0000 (21:21 +0000)]
Use touch to touch stamp files, > doesn't update mtime of existing
file on some systems.  Weird.

16 years ago(client): Don't make $(termlib) a prerequisite, pass it in $(LDLIBS).
Markus Armbruster [Thu, 9 Mar 2006 20:58:36 +0000 (20:58 +0000)]
(client): Don't make $(termlib) a prerequisite, pass it in $(LDLIBS).
The old version didn't work on some systems.

16 years agoFinal polish for 4.3.0.
Markus Armbruster [Wed, 8 Mar 2006 20:19:45 +0000 (20:19 +0000)]
Final polish for 4.3.0.

16 years agoDoc fix.
Markus Armbruster [Wed, 8 Mar 2006 20:16:18 +0000 (20:16 +0000)]
Doc fix.

16 years ago*** empty log message ***
Markus Armbruster [Wed, 8 Mar 2006 20:10:43 +0000 (20:10 +0000)]
*** empty log message ***

16 years ago(termio) [_WIN32]: Change remaining "n"s to "records" for the
Ron Koenderink [Wed, 8 Mar 2006 18:45:56 +0000 (18:45 +0000)]
(termio) [_WIN32]: Change remaining "n"s to "records" for the
WIN32 ReadConsole().  Fixes broken exec command.
Broken in Rev 1.17.

16 years ago*** empty log message ***
Markus Armbruster [Wed, 8 Mar 2006 18:07:30 +0000 (18:07 +0000)]
*** empty log message ***

16 years agoUpdate.
Markus Armbruster [Tue, 7 Mar 2006 19:06:36 +0000 (19:06 +0000)]
Update.

16 years agoUpdate for 4.3.0.
Markus Armbruster [Mon, 6 Mar 2006 19:39:17 +0000 (19:39 +0000)]
Update for 4.3.0.

16 years agoUpdate.
Markus Armbruster [Mon, 6 Mar 2006 19:28:39 +0000 (19:28 +0000)]
Update.

16 years agoCosmetics.
Markus Armbruster [Mon, 6 Mar 2006 19:27:32 +0000 (19:27 +0000)]
Cosmetics.

16 years agoxdump's no longer experimental, update accordingly.
Markus Armbruster [Mon, 6 Mar 2006 18:33:52 +0000 (18:33 +0000)]
xdump's no longer experimental, update accordingly.

16 years agoCaution deities on customization.
Markus Armbruster [Mon, 6 Mar 2006 18:33:00 +0000 (18:33 +0000)]
Caution deities on customization.

16 years agoNew doc/xdump.
Markus Armbruster [Mon, 6 Mar 2006 18:27:37 +0000 (18:27 +0000)]
New doc/xdump.

16 years agoDoc fix.
Markus Armbruster [Mon, 6 Mar 2006 18:24:39 +0000 (18:24 +0000)]
Doc fix.

16 years ago(ef_open): Zero cache size (empty EFF_MEM file) can lead to null cache
Markus Armbruster [Mon, 6 Mar 2006 18:23:41 +0000 (18:23 +0000)]
(ef_open): Zero cache size (empty EFF_MEM file) can lead to null cache
on some systems, which confuses assertions.  Force non-zero size.

16 years agoAIX needs -lcurses for setupterm().
Markus Armbruster [Mon, 6 Mar 2006 18:21:36 +0000 (18:21 +0000)]
AIX needs -lcurses for setupterm().

16 years agoMSYS ships an obsolete version of GNU make which doesn't grok
Markus Armbruster [Sat, 4 Mar 2006 21:18:15 +0000 (21:18 +0000)]
MSYS ships an obsolete version of GNU make which doesn't grok
order-only prerequisites.  They were used to make directories
info.html, info.nr, lib.  Make them ahead of time, in configure.  Also
fixes distclean not removing them.

16 years agoCheck for -lws2_32 properly. The old code relied on $host_os, which
Markus Armbruster [Sat, 4 Mar 2006 06:55:12 +0000 (06:55 +0000)]
Check for -lws2_32 properly.  The old code relied on $host_os, which
wasn't defined.

16 years agoDoc fix.
Markus Armbruster [Wed, 1 Mar 2006 07:21:14 +0000 (07:21 +0000)]
Doc fix.

16 years agoDoc update.
Markus Armbruster [Tue, 28 Feb 2006 21:19:21 +0000 (21:19 +0000)]
Doc update.

16 years ago(player_coms): Update xdump's c_form to current syntax.
Markus Armbruster [Tue, 28 Feb 2006 20:09:54 +0000 (20:09 +0000)]
(player_coms): Update xdump's c_form to current syntax.

16 years agoRemove note on self-documenting econfig, as it's of historical
Markus Armbruster [Tue, 28 Feb 2006 20:04:09 +0000 (20:04 +0000)]
Remove note on self-documenting econfig, as it's of historical
interest only.

Explain how to use custom_tables.

16 years agoUpdate to current command syntax, cover meta. Refer to doc/xdump (to
Markus Armbruster [Mon, 27 Feb 2006 20:58:26 +0000 (20:58 +0000)]
Update to current command syntax, cover meta.  Refer to doc/xdump (to
be written).  Less detail on output.  Document current shortcomings.

16 years ago(xdump): Nicer prompts.
Markus Armbruster [Sun, 26 Feb 2006 18:16:10 +0000 (18:16 +0000)]
(xdump): Nicer prompts.

16 years ago(sources.mk): Avoid harmless circular dependency.
Markus Armbruster [Sun, 26 Feb 2006 08:29:12 +0000 (08:29 +0000)]
(sources.mk): Avoid harmless circular dependency.

16 years agoUpdate known contributors comment.
Markus Armbruster [Fri, 24 Feb 2006 21:35:27 +0000 (21:35 +0000)]
Update known contributors comment.

16 years agoBoilerplate file comment.
Markus Armbruster [Fri, 24 Feb 2006 21:23:46 +0000 (21:23 +0000)]
Boilerplate file comment.

16 years ago(vers): Fix spacing.
Markus Armbruster [Fri, 24 Feb 2006 19:05:54 +0000 (19:05 +0000)]
(vers): Fix spacing.

16 years ago(update_wantmin, update_policy_check, demand_check, upda): Remove the
Markus Armbruster [Fri, 24 Feb 2006 19:02:01 +0000 (19:02 +0000)]
(update_wantmin, update_policy_check, demand_check, upda): Remove the
ability to switch off demand updates by setting update_wantmin to
zero.  Setting update_demandpolicy to UDDEM_DISABLE does the job.

(update_policy_check): Fix lower bound for blitz_time.

16 years agoRework obsolete comment on hours file, an move it where it belongs:
Markus Armbruster [Fri, 24 Feb 2006 18:33:58 +0000 (18:33 +0000)]
Rework obsolete comment on hours file, an move it where it belongs:
next to variable definitions and into econfig doc strings.

16 years ago(vers): Clean up damage spill matrix. PZ5
Markus Armbruster [Thu, 23 Feb 2006 18:34:42 +0000 (18:34 +0000)]
(vers): Clean up damage spill matrix.

(vers): Move show_custom() down somewhat.

(show_custom): Point players to show command.

16 years ago(config_tables, custom_tables, read_config_tables, read_custom_tables)
Markus Armbruster [Thu, 23 Feb 2006 18:31:23 +0000 (18:31 +0000)]
(config_tables, custom_tables, read_config_tables, read_custom_tables)
(read_config_table_file, read_custom_table_file): Rename.

16 years ago(EFF_CUSTOM): New.
Markus Armbruster [Thu, 23 Feb 2006 08:37:46 +0000 (08:37 +0000)]
(EFF_CUSTOM): New.
(read_config_table_file): Set it.
(show_custom): Show it.
(vers): Use it.

16 years ago(player_main): Don't end session silently when init_nats() fails.
Markus Armbruster [Thu, 23 Feb 2006 07:40:11 +0000 (07:40 +0000)]
(player_main): Don't end session silently when init_nats() fails.

16 years ago(init_nats): Use CANT_HAPPEN() where appropriate.
Markus Armbruster [Thu, 23 Feb 2006 07:38:38 +0000 (07:38 +0000)]
(init_nats): Use CANT_HAPPEN() where appropriate.

16 years agoDocument not to edit this file to customize a game.
Markus Armbruster [Thu, 23 Feb 2006 07:36:31 +0000 (07:36 +0000)]
Document not to edit this file to customize a game.

16 years ago(show_opts): Revert rev. 1.13 `Pretend SHIPNAMES still exists...'
Markus Armbruster [Thu, 23 Feb 2006 07:32:41 +0000 (07:32 +0000)]
(show_opts): Revert rev. 1.13 `Pretend SHIPNAMES still exists...'
Clients had four months to adapt.  Moreover, there have been other
changes that could well break clients, so backward compatibility is
gone anyway.

16 years agoDocument unused member.
Markus Armbruster [Thu, 23 Feb 2006 07:23:52 +0000 (07:23 +0000)]
Document unused member.

16 years agoMinor clarifications. Document play's use of C_EXIT for errors.
Markus Armbruster [Thu, 23 Feb 2006 07:21:22 +0000 (07:21 +0000)]
Minor clarifications.  Document play's use of C_EXIT for errors.

16 years ago(banfil, authfil): Remove. Matching user is useless, because the
Markus Armbruster [Wed, 22 Feb 2006 22:12:18 +0000 (22:12 +0000)]
(banfil, authfil): Remove.  Matching user is useless, because the
player can send whatever he wants.  Banning IPs is better done with a
packet filter.  That leaves restricting deity IPs.
(privip): New econfig key to restrict deity IPs.
(may_play): Implement it.
(match_user): Unused, remove.

16 years agoDoc improvement.
Markus Armbruster [Wed, 22 Feb 2006 21:12:20 +0000 (21:12 +0000)]
Doc improvement.

16 years ago(may_play): Clarify deity login rejection message.
Markus Armbruster [Wed, 22 Feb 2006 21:08:09 +0000 (21:08 +0000)]
(may_play): Clarify deity login rejection message.

16 years ago(banfil, authfil): Remove. Matching user is useless, because the
Markus Armbruster [Wed, 22 Feb 2006 20:57:51 +0000 (20:57 +0000)]
(banfil, authfil): Remove.  Matching user is useless, because the
player can send whatever he wants.  Banning IPs is better done with a
packet filter.  That leaves restricting deity IPs.
(privip): New econfig key to restrict deity IPs.
(may_play): Implement it.
(match_user): Unused, remove.

16 years ago(may_play): New, factored out of play_cmd() and kill_cmd().
Markus Armbruster [Wed, 22 Feb 2006 19:50:01 +0000 (19:50 +0000)]
(may_play): New, factored out of play_cmd() and kill_cmd().
(play_cmd, kill_cmd): Use it.
(player_main): Don't check authfil, caller takes care of that.

16 years ago(player): Rename member validated to authenticated.
Markus Armbruster [Wed, 22 Feb 2006 19:20:41 +0000 (19:20 +0000)]
(player): Rename member validated to authenticated.

16 years ago(set_dirs) [_WIN32]: Add the ability to deal with Windows
Ron Koenderink [Tue, 21 Feb 2006 20:15:55 +0000 (20:15 +0000)]
(set_dirs) [_WIN32]: Add the ability to deal with Windows
file and directory names.

16 years ago(ichrstr): Rename member i_vtype to i_uid.
Markus Armbruster [Mon, 20 Feb 2006 05:35:58 +0000 (05:35 +0000)]
(ichrstr): Rename member i_vtype to i_uid.
(ichr_ca): Rename selector vtype to uid.

16 years agoMake Emacs use c-mode.
Markus Armbruster [Mon, 20 Feb 2006 05:24:44 +0000 (05:24 +0000)]
Make Emacs use c-mode.

16 years ago(lchr[], nchr[], mchr[], plchr[]) [_WIN32]:
Ron Koenderink [Sun, 19 Feb 2006 21:05:55 +0000 (21:05 +0000)]
(lchr[], nchr[], mchr[], plchr[]) [_WIN32]:
Add size to array declarations to compile in WIN32.

16 years agoFit for the general public, not just for GUINEA_PIGS. Closes #928396.
Markus Armbruster [Sun, 19 Feb 2006 18:47:50 +0000 (18:47 +0000)]
Fit for the general public, not just for GUINEA_PIGS.  Closes #928396.

16 years ago(set_dirs): New, factored out of emp_config(). Also fix for relative
Markus Armbruster [Sun, 19 Feb 2006 18:36:36 +0000 (18:36 +0000)]
(set_dirs): New, factored out of emp_config().  Also fix for relative
file name argument.

16 years ago(main): Fix for relative builtindir (pathological...).
Markus Armbruster [Sun, 19 Feb 2006 18:33:49 +0000 (18:33 +0000)]
(main): Fix for relative builtindir (pathological...).

16 years agoDocument interpretation of relative file names.
Markus Armbruster [Sun, 19 Feb 2006 18:33:02 +0000 (18:33 +0000)]
Document interpretation of relative file names.

16 years ago(lndchr): Document that members l_gun and l_shell are unused.
Markus Armbruster [Sun, 19 Feb 2006 18:30:13 +0000 (18:30 +0000)]
(lndchr): Document that members l_gun and l_shell are unused.
(lchr_ca): Remove selectors g_build and s_build.  Update land.config.

16 years ago(uninstall): Implement.
Markus Armbruster [Sun, 19 Feb 2006 17:19:16 +0000 (17:19 +0000)]
(uninstall): Implement.

16 years ago(verify_fail): New.
Markus Armbruster [Sun, 19 Feb 2006 17:08:35 +0000 (17:08 +0000)]
(verify_fail): New.
(verify_row): Use it.

16 years ago(ef_init): Remove superflous size initialization for tables that are
Markus Armbruster [Sun, 19 Feb 2006 17:07:04 +0000 (17:07 +0000)]
(ef_init): Remove superflous size initialization for tables that are
initialized from builtin config files.
(ef_init_chr): Unused, remove.

16 years ago(xuheader): Fix misleading diagnostics.
Markus Armbruster [Sun, 19 Feb 2006 17:03:33 +0000 (17:03 +0000)]
(xuheader): Fix misleading diagnostics.

(xundump1): Fix table shrinking.

16 years agoFix the previous revision.
Markus Armbruster [Sun, 19 Feb 2006 15:42:48 +0000 (15:42 +0000)]
Fix the previous revision.

16 years agoSplit excessively wide tables. No functional change.
Markus Armbruster [Sun, 19 Feb 2006 15:41:37 +0000 (15:41 +0000)]
Split excessively wide tables.  No functional change.

16 years agoPermit field repetition in each part of vertically split tables,
Markus Armbruster [Sun, 19 Feb 2006 15:25:35 +0000 (15:25 +0000)]
Permit field repetition in each part of vertically split tables,
provided the values all match:
(caseen): New.
(xundump): Initialize and finalize it.
(xundump2): Update it.
(deffld): Deal with repetition.
(fldval_must_match): New, considers repetition as well as NSC_CONST.
(setnum, setstr): Use it.

16 years ago(need_uid, is_partial): Rename.
Markus Armbruster [Sun, 19 Feb 2006 15:15:40 +0000 (15:15 +0000)]
(need_uid, is_partial): Rename.

(xuheader1, chkflds): Collect all code dealing with index field of
vertically split tables in chkflds().

16 years ago(mchrstr, plchrstr, lchrstr, nchrstr): New member m_type, pl_type,
Markus Armbruster [Sun, 19 Feb 2006 09:47:26 +0000 (09:47 +0000)]
(mchrstr, plchrstr, lchrstr, nchrstr): New member m_type, pl_type,
l_type, n_type.
(mchr_ca, plchr_ca, lchr_ca, nchr_ca): New selector type.  Update
builtin config files.

16 years agoFix the previous revision.
Markus Armbruster [Sun, 19 Feb 2006 09:21:21 +0000 (09:21 +0000)]
Fix the previous revision.

16 years ago(mchr, plchr, lchr, nchr): Move initializer to new builtin config
Markus Armbruster [Sun, 19 Feb 2006 09:15:46 +0000 (09:15 +0000)]
(mchr, plchr, lchr, nchr): Move initializer to new builtin config
files ship.config, plane.config, land.config, nuke.config.
(empfile): Declare the new config files.
(install, installdirs): Install them.
(builtins): New make variable.

16 years ago(lndchr): Rename member l_mxland to l_nland for consistency with
Markus Armbruster [Sun, 19 Feb 2006 07:32:03 +0000 (07:32 +0000)]
(lndchr): Rename member l_mxland to l_nland for consistency with
similar unit characteristics.

16 years ago(builtindir): New econfig key, variable and make variable.
Markus Armbruster [Sun, 19 Feb 2006 07:04:30 +0000 (07:04 +0000)]
(builtindir): New econfig key, variable and make variable.
(subst.in): Substitute it.  Fix prerequisites.
(read_builtin_tables): New.
(main): Call it.  This doesn't do anything, because no builtin tables
have been defined.

16 years ago(emp_config): Non-portable strndup() crept into rev. 1.33. Replace by
Markus Armbruster [Sat, 18 Feb 2006 16:48:23 +0000 (16:48 +0000)]
(emp_config): Non-portable strndup() crept into rev. 1.33.  Replace by
portable code.

16 years ago(print_config): When km_comment starts with '#', don't prepend "\n#".
Markus Armbruster [Sat, 18 Feb 2006 16:12:50 +0000 (16:12 +0000)]
(print_config): When km_comment starts with '#', don't prepend "\n#".

16 years ago(empfile, SYMTAB): Reorder so that symbol tables are together. Sort
Markus Armbruster [Sat, 18 Feb 2006 15:02:18 +0000 (15:02 +0000)]
(empfile, SYMTAB): Reorder so that symbol tables are together.  Sort
them alphabetically.  Factor out commonalities into new SYMTAB().  No
functional changes.

16 years agoCollect all symbol tables in new symbol.c. No functional changes.
Markus Armbruster [Sat, 18 Feb 2006 14:55:29 +0000 (14:55 +0000)]
Collect all symbol tables in new symbol.c.  No functional changes.

16 years agoNew way to read configuration tables:
Markus Armbruster [Sat, 18 Feb 2006 13:57:52 +0000 (13:57 +0000)]
New way to read configuration tables:
(config_tables): New econfig key.
(read_config_tables): New, implements config_tables.
(main): Call it.  Need to call ef_init() and chdir(configdir) first.
(ef_init_srv): Don't call ef_init(), since main() did it already.

Remove old way to do the same:
(ef_load): Remove, along with calls.
(empfile): Set configuration tables' member file back to NULL.

16 years ago(configdir): New, to be used for loading configuration tables.
Markus Armbruster [Sat, 18 Feb 2006 12:43:17 +0000 (12:43 +0000)]
(configdir): New, to be used for loading configuration tables.
(emp_config): Set it to econfig's directory.

16 years ago(main): Don't use access() before mkdir() to check whether the
Markus Armbruster [Sat, 18 Feb 2006 09:29:49 +0000 (09:29 +0000)]
(main): Don't use access() before mkdir() to check whether the
directory to be created exists, just check errno afterwards.

[_WIN32] (F_OK, W_OK, R_OK): Unused, remove.

16 years ago(datadir, edatadir, gamedir): Rename to avoid confusion with Autoconf
Markus Armbruster [Sat, 18 Feb 2006 09:16:50 +0000 (09:16 +0000)]
(datadir, edatadir, gamedir): Rename to avoid confusion with Autoconf
output variable datadir and with configuration data.

16 years agoChange xdump nat to show only own country, and xdump cou to show to
Markus Armbruster [Fri, 17 Feb 2006 18:38:50 +0000 (18:38 +0000)]
Change xdump nat to show only own country, and xdump cou to show to
deities what xdump nat used to show:
(cou_ca): Remove initializer.
(ef_init_srv): Initialize cou_ca[] from nat_ca[].
(xdvisible): Change case EF_NATION to return true only for owner
even for deities.

16 years ago(lost_ca, trade_ca): Provide proper ca_table for selector type.
Markus Armbruster [Fri, 17 Feb 2006 18:04:07 +0000 (18:04 +0000)]
(lost_ca, trade_ca): Provide proper ca_table for selector type.

16 years ago(xdvisible): Fix case EF_NATION for deities not to return true for
Markus Armbruster [Thu, 16 Feb 2006 21:49:27 +0000 (21:49 +0000)]
(xdvisible): Fix case EF_NATION for deities not to return true for
STAT_UNUSED.

16 years ago(vers): Fix rev. 1.24 for money_ship, money_plane, money_land.
Markus Armbruster [Thu, 16 Feb 2006 19:54:47 +0000 (19:54 +0000)]
(vers): Fix rev. 1.24 for money_ship, money_plane, money_land.

(vers): Fix rev. 1.25 for fallout_spread.  Beautify message.

(vers): Align collateral damage heading with the columns in the body.

16 years ago(buil, drnuke_const, opt_DRNUKE, show, show_nuke_build)
Ron Koenderink [Thu, 16 Feb 2006 02:14:08 +0000 (02:14 +0000)]
(buil, drnuke_const, opt_DRNUKE, show, show_nuke_build)
(show_nuke_capab, vers, xdvisible, build.t, Options.t):
Remove opt_DRNUKE and replace with the following check
drnuke_const > MIN_DRNUKE_CONST.
Set MIN_DRNUKE_CONST to 0.001 to prevent issues with tiny values.
Change the default drnuke_const to 0.0 because in the stock game
opt_DRNUKE was disabled.

16 years ago(buil): Fix rev. 1.32: information on how to list nukes was incorrect
Markus Armbruster [Wed, 15 Feb 2006 19:47:56 +0000 (19:47 +0000)]
(buil): Fix rev. 1.32: information on how to list nukes was incorrect
for opt_DRNUKE.

16 years ago(info.nr/all, info.html/all.html): Don't pass -F to ls, it has no
Markus Armbruster [Wed, 15 Feb 2006 07:35:32 +0000 (07:35 +0000)]
(info.nr/all, info.html/all.html): Don't pass -F to ls, it has no
effect here.  Was mindlessly copied from old info/Makefile.

16 years ago(verify_row): Passed uninitialized val->val_as.sym.len to nstr_exec_val(),
Markus Armbruster [Tue, 14 Feb 2006 19:54:08 +0000 (19:54 +0000)]
(verify_row): Passed uninitialized val->val_as.sym.len to nstr_exec_val(),
which broke NSC_STRINGY.

16 years ago(defellipsis, chkflds, xundump2, need_uid): Use new need_uid to
Markus Armbruster [Tue, 14 Feb 2006 18:04:44 +0000 (18:04 +0000)]
(defellipsis, chkflds, xundump2, need_uid): Use new need_uid to
require index field in all parts of a split table.

16 years agoSupport vertically split configuration tables (human-readable only):
Markus Armbruster [Tue, 14 Feb 2006 07:30:06 +0000 (07:30 +0000)]
Support vertically split configuration tables (human-readable only):
(ellipsis): New.
(xuheader1): Initialize it.  Compute nflds.  Allow repetition of index
field in continued tables.
(xundump): Don't set nflds.
(xufldname, defellipsis): Accept ... and call new defellipsis().
(xufldname, chkflds): Update and elaborate check for missing fields,
move it to new chkflds().  Require repetition of index field in
continued tables.
(xundump2): New, factored out of xundump().  Parse continued tables.

16 years agoXdumps don't contain records not in use, cope with that:
Markus Armbruster [Mon, 13 Feb 2006 21:22:05 +0000 (21:22 +0000)]
Xdumps don't contain records not in use, cope with that:
(xundump1, setnum, setstr, getobj, cur_id): Delay table lookup until
first field is about to be assigned.
(xundump1): Record largest ID, because it's no longer given by final
value of row.

(xuheader1, xundump1, xundump): Move initialization of cur_type to
xundump().

16 years ago(xundump1): Don't suppress table growth just because it has NSC_CONST
Markus Armbruster [Mon, 13 Feb 2006 21:16:41 +0000 (21:16 +0000)]
(xundump1): Don't suppress table growth just because it has NSC_CONST
selectors.  That's wrong for EF_SECTOR_CHR and EF_PRODUCT.  Don't
allow table shrinking just because it has no NSC_CONST selectors.
That's wrong for EF_NEWS_CHR.  Allow it for game state and unit
characteristics.
(has_const): Unused, remove.

16 years ago(sect_ca): Make selectors xloc, yloc NSC_CONST.
Markus Armbruster [Mon, 13 Feb 2006 20:48:00 +0000 (20:48 +0000)]
(sect_ca): Make selectors xloc, yloc NSC_CONST.

(realm_ca): Make selectors cnum, realm NSC_CONST.

16 years ago(setnum): Fix computation of old for cases NSC_XCOORD, NSC_YCOORD.
Markus Armbruster [Mon, 13 Feb 2006 20:44:18 +0000 (20:44 +0000)]
(setnum): Fix computation of old for cases NSC_XCOORD, NSC_YCOORD.