Commit graph

289 commits

Author SHA1 Message Date
e7c9ca1186 (info.html/all.html): Fix to use the full 80 columns for the table.
(info.nr/all): Fix race between ls and output redirection.
2007-08-08 06:15:33 +00:00
a57645340c New command show updates:
(show): New sub-command.
(player_coms): Update its c_form.
(show_updates, fmttime2822): New.

(vers): Show game_days and game_hours.

(upda): Mark obsolete and point to show updates.
(vers): Point to show rather than update.

Rewrite much of info zdone.
2007-07-15 13:34:22 +00:00
30217b1b87 Fix .SA. 2007-07-15 12:36:35 +00:00
38992e43b5 Update example to current output. 2007-07-15 12:32:48 +00:00
159cd471b8 Describe the effect on the Empire clock.
Warn against manual disable/enable and point to the schedule file.
2007-07-15 12:05:43 +00:00
c4812b0ea2 Describe the Empire clock. 2007-07-15 11:53:32 +00:00
f427e3d123 Update for the new Empire clock, i.e. don't refer to s_p_etu, which no
longer exists.

Abbreviate time unit as ETU rather than TU.

max_btus is 640, not 512.
2007-07-15 11:38:41 +00:00
315770cae5 Remove references to s_p_etu. 2007-07-15 11:02:17 +00:00
4bd19812af Use the new Empire clock for implementing MOB_ACCESS:
(lndstr, plnstr, sctstr, shpstr): Change timestamp members lnd_access,
pln_access, sct_access, shp_access from real time (time_t) to ETUs
within a turn (short).
(land_ca, plane_ca, sect_ca, ship_ca): Update accordingly.
(build_ship, build_land, build_bridge, build_plane, build_tower)
(explore, check_trade, bsanct, takeover, takeover_ship)
(takeover_land): Use game_tick_to_now() instead of time() to update
the timestamp.  Change check_trade(), takeover_ship(), takeover_land()
to do that only when MOB_ACCESS is enabled, for consistency.
(lupgr, supgr, pupgr, takeover_ship): Don't touch the timestamp where
mobility isn't touched either.
(sct_do_upd_mob, shp_do_upd_mob, lnd_do_upd_mob, pln_do_upd_mob): Use
game_tick_to_now() instead of increase_mob() to compute ETUs since
the timestamp and update the timestamp.  Closes #1012699.
(increase_mob): Remove.
(mob_sect, mob_ship, mob_land, mob_plane): sct_do_upd_mob() & friends
no longer do the right thing at the update.  Use game_reset_tick() and
pass its result directly to do_mob_sect() & friends.  This is only
correct when argument is etu_per_update, which it always is.  Remove
parameter.  Callers changed.
(do_mob_sect, do_mob_ship, do_mob_land, do_mob_plane): Oops on
negative argument.

(mob_acc_globals, timestampfil, mobupdate, updating_mob)
(update_all_mob, timestamp_fixing, update_timestamps, mobility_check):
The mobupdate command was important to let deities manually
synchronize mobility updating with updates.  That's no longer needed.
The code behind it is somewhat hairy and ugly, and updating it to work
with the Empire clock is just not worth it.  Remove.  Users changed.
(player_coms): Update accordingly.
(upda): Remove display of mobility updating state.

(mobility_init): No need to fix up mobility on startup, as the Empire
clock runs normally even when the server is down.  Remove.  Caller
changed.
2007-07-15 09:43:57 +00:00
ae9a759527 (relo): New command. 2007-07-13 06:04:03 +00:00
7f16f7151f Fix the previous revision. 2007-07-12 06:10:59 +00:00
71320ed67f New update scheduler:
(schedulefil): New.
(set_dirs, set_paths): Rename.  Initialize schedulfil.
(read_schedule): New.  Can read several updates, which will be used in
later changesets.
(update_time): Change to array.  Will be used in later changesets.
(update_schedule_anchor): New.
(update_init): Initialize it.
(update_get_schedule): New.
(update_init): Call it to initialize update_time[].
(update_sched): Rewrite.
(update_forced, update_wanted): Replace.
(update_reschedule): New.
(main): Call it on SIGHUP to reload the schedule.
(update_trigger, update_force, force, player_coms): Drop force's
capability to schedule updates in the future, because it's not worth
the trouble to implement again.  Deities can simply edit the schedule
file to schedule updates.  Remove update_force() and
update_trigger()'s parameter.
(upda): Update for new scheduler.  Take care to keep output the same
as far as possible, even though it's ugly, to avoid breaking clients.
(update_policy, adj_update, update_times, hourslop, blitz_time):
econfig keys removed.
(update_demand, UPD_DEMAND_NONE, UPD_DEMAND_SCHED, UPD_DEMAND_ASYNC)
(update_demandpolicy, UDP_NORMAL, UDP_TIMES, UDP_NORMAL, UDP_BLITZ)
(UDP_MAX, UDP_DEFAULT, UDDEM_TMCHECK, UDDEM_COMSET, UDDEM_DISABLE)
(UDDEM_MAX, UDDEM_DEFAULT): econfig key and values replaced.  Users
changed.  wantupd.h is now empty, remove.
(demand_check): External linkage.
(update_policy_check): Now pointless, remove.
(is_daytime_near, min_to_next_daytime, regular_update_time)
(scheduled_update_time, next_scheduled_time, updatetime)
(next_update_time, next_update_check_time): Unused, Remove.

(demand_check, demandupdatecheck): Move call of demand_update_time()
from demand_check(), which controls all demand updates, to
demandupdatecheck(), which controls only unscheduled ones.  Fixes
update command not to lie about the next scheduled demand update.

(demandupdatecheck): Check updates_disabled() so that zdone no longer
claims to trigger an update when it can't.
2007-07-11 22:27:29 +00:00
097692a373 Update example to current output. 2007-07-10 21:15:53 +00:00
8ad279e84c Fix .SA. 2007-07-10 21:00:49 +00:00
2de92d99d8 Clarify. Improve .SA. 2007-07-10 20:54:15 +00:00
fea01b7dd8 Fix for N_WELCH_DEAL, N_LND_LOSE, N_BOARD_LAND. 2007-07-10 20:49:07 +00:00
06f61d1a4e Spelling fixes. 2007-04-09 09:36:28 +00:00
84cfd670ce Abstract from shutdown initiation mechanism:
(shutdown_initiate): New.
(shut): Use it.  Shutdown in zero minutes no longer cancels the
shutdown, it just works.  Use negative argument to cancel.  Logging is
less detailed.
(shutdown_sequence): Internal linkage.

(pr_wall): All callers prefix text it with the same header.  Move it
into the function.
2007-01-20 20:40:52 +00:00
516f42e063 (player_coms): Fix shutdown's c_form: first argument is not optional. 2007-01-20 20:19:16 +00:00
7c605a05ed (sendmessage): Don't split messages into lines of no more than 60
characters.  Update info flash and wall.  They were wrong, anyway:
they claimed long messages were truncated.
2007-01-20 16:32:35 +00:00
94267b2fe4 Remove the wait command, it's been broken and restricted to deity
since Empire 2, ca. 1995:
(wai): Remove.
(player_coms): Update accordingly.
2007-01-17 20:04:03 +00:00
63bdc89835 Update copyright notice. 2007-01-09 19:09:31 +00:00
ad85b15152 Update for 4.3.9. 2007-01-06 12:46:01 +00:00
6b70720318 New option AUTO_POWER; closes #1009993:
(opt_AUTO_POWER, update_power): New.
(update_main): Implement AUTO_POWER.
(powe): Disable power new when AUTO_POWER is on.

(powe): New power update.
(gen_power): Compute power into buffer passed by caller, make write to
power file optional.
2006-12-31 16:56:34 +00:00
5832dcf005 4.3.8 last minute changes. 2006-10-20 18:33:29 +00:00
dc6168f782 Update for 4.3.8. 2006-10-13 18:29:22 +00:00
88bf471319 Document stop order expiry. 2006-09-23 13:24:19 +00:00
59f7aee1f4 Remove bogus paragraphs on RES_POP and NO_PLAGUE. Clarify sentence on
max safe population.
2006-09-23 08:37:57 +00:00
19b4e76fef Update for maximum population change in sect.config rev. 1.3. Remove
incorrect claims about mil.
2006-09-23 08:35:36 +00:00
Ron Koenderink
8e7199c338 (march, navi): Provide equivalent functionality to map in move(), expl()
and tran(). Allow map and bmap to access the regular map command
parameters.
2006-07-20 13:33:11 +00:00
7072dd0930 Update for 4.3.7. 2006-07-14 23:08:49 +00:00
a511b8b82b Change level to Expert to match stop's. 2006-07-14 23:07:22 +00:00
ad3d28761e Spelling. 2006-07-13 18:23:24 +00:00
bb0b9db423 Belatedly ignore subject Nukes. 2006-07-13 18:22:45 +00:00
Ron Koenderink
a8eb4bb0fc Improve the description for the additional commands.
Add description for the new drop command.
Correct the quotes.
2006-07-12 23:45:51 +00:00
Ron Koenderink
1b780db99e Update description for map command.
Explain the additional parameters for the map command.
2006-07-12 23:41:42 +00:00
1edc5a7b54 Fix error message. 2006-07-11 19:23:49 +00:00
992879941b Poorly worded, many little errors, not enough focus. Rewrite,
basically.  Same outline, but almost every sentence is changed.
Replace some details by references.  Document show sect properly.
2006-07-11 19:02:43 +00:00
6fbb5c88fc Don't refer to Innards, it's obsolete. Clarify work. Talk about
petrol, not petroleum.  Advise that resource depletion is
configurable.  Clean up prose somewhat.
2006-07-11 18:59:44 +00:00
ceb8dbfaed Page managed to talk about BTUs in considerable detail, yet missed to
tell what they're good for.  Amazing.
2006-07-11 18:55:31 +00:00
e25119e461 Don't claim which resources are renewable and which aren't, because
that's configurable.
2006-07-11 18:52:26 +00:00
26c87bb579 Document the transformation of sanctuaries into capitals or highways. 2006-07-11 18:51:08 +00:00
90b341b02d Don't refer to Innards, it's obsolete. 2006-07-11 18:49:33 +00:00
533f2806c6 Clarifications. 2006-07-11 18:48:36 +00:00
4c266e73ed Belatedly remove BIG_CITY and DEFENSE_INFRA. 2006-07-11 18:47:42 +00:00
4b45509af0 Fix the previous revision. 2006-07-09 20:27:36 +00:00
Ron Koenderink
632f5883a1 Add missing commands.
Correct sweep command example.
2006-07-09 19:16:44 +00:00
Ron Koenderink
00f2f36b2c Remove invalid example for sweeping mines.
Fix the grammer.
2006-07-09 16:25:41 +00:00
Ron Koenderink
b6d63e0165 Add missings unit references for start and stop. 2006-06-25 11:54:59 +00:00
Ron Koenderink
b4d2f3720a Add missing land units to discussion of avail usages. 2006-06-25 11:53:29 +00:00