super-star-trek.git
18 years agoKlingon ship births are working.
Eric S. Raymond [Tue, 19 Sep 2006 10:14:04 +0000 (10:14 +0000)]
Klingon ship births are working.

18 years agoMore booleans cleanup.
Eric S. Raymond [Tue, 19 Sep 2006 09:19:41 +0000 (09:19 +0000)]
More booleans cleanup.

18 years agoFDISTR/FENSLV/FREPRO sequence looks like it's working.
Eric S. Raymond [Tue, 19 Sep 2006 08:56:52 +0000 (08:56 +0000)]
FDISTR/FENSLV/FREPRO sequence looks like it's working.

18 years agoFix two minor bugs, one in the shove code and one in debugme().
Eric S. Raymond [Tue, 19 Sep 2006 08:28:19 +0000 (08:28 +0000)]
Fix two minor bugs, one in the shove code and one in debugme().

18 years agoImprovements to the testing machinery, including the replay option.
Eric S. Raymond [Tue, 19 Sep 2006 08:05:42 +0000 (08:05 +0000)]
Improvements to the testing machinery, including the replay option.

18 years agoImprove the world list.
Eric S. Raymond [Tue, 19 Sep 2006 08:01:27 +0000 (08:01 +0000)]
Improve the world list.

18 years agoMore int-to-boolean cleanup. Make the FDISTR event work.
Eric S. Raymond [Tue, 19 Sep 2006 06:27:07 +0000 (06:27 +0000)]
More int-to-boolean cleanup.  Make the FDISTR event work.

18 years agoCheckpoint with several changes, committed so Stas can play with debug code.
Eric S. Raymond [Mon, 18 Sep 2006 19:38:35 +0000 (19:38 +0000)]
Checkpoint with several changes, committed so Stas can play with debug code.

1. Change planet member of quadrant struct back to integer so it can be saved.
2. Add code for torpedoing an inhabited world.  Score drops by 400 when you
   do that, it's the only outcome worse than being killed.
3. Events are now structures and can hold quadrant coordinates.
4. EXPERIMENTAL tag is gone, code for BSD-Trek events is in good enough
   shape to test now.
5. User input is always logged.
6. SEED command is implemented.

18 years agoInput capture to 'sst-input.log' now happens automatically when idebug is on.
Eric S. Raymond [Mon, 18 Sep 2006 08:34:16 +0000 (08:34 +0000)]
Input capture to 'sst-input.log' now happens automatically when idebug is on.

18 years agoNew debug-mode support.
Eric S. Raymond [Mon, 18 Sep 2006 08:18:50 +0000 (08:18 +0000)]
New debug-mode support.

Get rid of DEBUG, the instrumentation is cheap and we want to cut down
on the possibilities for unanticipated logic changes due to
configuration vagaries.  Take the debugging bit out of the game
structure.  Start on the logger.

18 years agoRevert an incorrect bool type change.
Eric S. Raymond [Mon, 18 Sep 2006 08:05:56 +0000 (08:05 +0000)]
Revert an incorrect bool type change.

18 years agoMore type cleanup.
Eric S. Raymond [Mon, 18 Sep 2006 05:16:40 +0000 (05:16 +0000)]
More type cleanup.

Use stdbool facility from C99 so code checkers can do type-consistency
analysis.

18 years agoIntroduce 'coord' data structure, an (x,y) tuple.
Eric S. Raymond [Mon, 18 Sep 2006 03:49:33 +0000 (03:49 +0000)]
Introduce 'coord' data structure, an (x,y) tuple.

Use it consistently in both data structures and arguments of functions
that handle coordinates.

The main benefit of this is that lots of conditional expressions become
significantly less gnarly.  We get a bit of reduction in the line count
by cutting down on pairs of coordinate assignments.

18 years agoAbstract all references to the future array (outside of events.c) away.
Eric S. Raymond [Sun, 17 Sep 2006 23:55:46 +0000 (23:55 +0000)]
Abstract all references to the future array (outside of events.c) away.

This has two benefits:

1. New code is easier to read.
2. It prepares us for implementing stateful events with a different
underlying data structure.  We'll need this for some BSD-Trek features.

18 years agoOther half of eta-check fix.
Eric S. Raymond [Sun, 17 Sep 2006 22:43:51 +0000 (22:43 +0000)]
Other half of eta-check fix.

18 years agoFix what look like a longstanding bug in ETA computation.
Eric S. Raymond [Sun, 17 Sep 2006 21:51:30 +0000 (21:51 +0000)]
Fix what look like a longstanding bug in ETA computation.

18 years agoremove autogenerated files
Stas Sergeev [Sun, 17 Sep 2006 09:01:35 +0000 (09:01 +0000)]
remove autogenerated files

18 years agoComplete the change to BSD license.
Eric S. Raymond [Sun, 17 Sep 2006 05:31:52 +0000 (05:31 +0000)]
Complete the change to BSD license.

18 years agoFirst checkin of experimental event code for the BSDTrek-style Klingons.
Eric S. Raymond [Sun, 17 Sep 2006 05:14:52 +0000 (05:14 +0000)]
First checkin of experimental event code for the BSDTrek-style Klingons.

E.g the attacks on inhabited systems.  Currently #ifdefed out; the
only operative change is the newkling() function and a bit of
data-structure cleanup.

18 years agoFix a minor bug in -t mode display of the starchart.
Eric S. Raymond [Sun, 17 Sep 2006 00:52:17 +0000 (00:52 +0000)]
Fix a minor bug in -t mode display of the starchart.

18 years agoAdded more history.
Eric S. Raymond [Sun, 17 Sep 2006 00:48:26 +0000 (00:48 +0000)]
Added more history.

18 years agogettextize and some rough translations
Stas Sergeev [Sat, 16 Sep 2006 18:47:55 +0000 (18:47 +0000)]
gettextize and some rough translations

18 years agoMake inhabited worlds display as '@'. Document this.
Eric S. Raymond [Fri, 15 Sep 2006 22:47:09 +0000 (22:47 +0000)]
Make inhabited worlds display as '@'.  Document this.

Turn off generation of inhabited worlds in plain and almy versions.

18 years agoFixed some bug items from the TO-DO list.
Eric S. Raymond [Fri, 15 Sep 2006 21:14:45 +0000 (21:14 +0000)]
Fixed some bug items from the TO-DO list.

* Bring the online help in sync with our commands changes

* Find out why the online help contains the escape sequences like ~@~T (Eric?)

The first was due to bugs in some macro definitions in sst.c, now fixed.
The second was from escape sequences generated into sst.doc by xmlto
for left-and right-quotes, dashes, and no-break spaces; that is fixed
by an additional translation step in makehelp.py.

xmlto still generates line-drawing characters for the tables in the
LRSCAN and REPORT help items, but those look OK on an xterm in text
mode and their help items are suppressed (along with their commands) in
curses mode.

This is not a completely satisfactory solution, but it will do until a
design change makes those help items visible again.

18 years agoFixes the bug that was directing help lookups incorrectly.
Eric S. Raymond [Fri, 15 Sep 2006 20:58:05 +0000 (20:58 +0000)]
Fixes the bug that was directing help lookups incorrectly.

Renames the old "help()" function to "mayday()" to match the new command.
Fixes display bugs in curses due to generation of wacky quotes, nonbreak
spaces, and dashes.  Does not fix problems with forms-drawing characters.

18 years agoFix an extremely obscure bug in the help generation.
Eric S. Raymond [Fri, 15 Sep 2006 20:12:00 +0000 (20:12 +0000)]
Fix an extremely obscure bug in the help generation.

It was triggered by non-breaking space in xmlto output.

18 years ago% has to be mapped to %% when producing sst.doc
Eric S. Raymond [Fri, 15 Sep 2006 18:51:40 +0000 (18:51 +0000)]
% has to be mapped to %% when producing sst.doc

...otherwise printf does unhelpful things.

18 years agoAdd inhabited planets.
Eric S. Raymond [Fri, 15 Sep 2006 18:41:16 +0000 (18:41 +0000)]
Add inhabited planets.

Presently this is just color, as they have no dilithium.  In the
future, this will become the basis for BSD-Trek like code that allows
Klingons to attack and enslave inhabited worlds in order to expand
their fleet.  (This feature is controlled by OPTION_WORLDS).

18 years agoClean up after macro elimination.
Eric S. Raymond [Fri, 15 Sep 2006 09:35:11 +0000 (09:35 +0000)]
Clean up after macro elimination.

18 years agoMore typo fixes.
Eric S. Raymond [Fri, 15 Sep 2006 07:43:44 +0000 (07:43 +0000)]
More typo fixes.

18 years agoTemporarily make this standalone.
Eric S. Raymond [Fri, 15 Sep 2006 01:55:24 +0000 (01:55 +0000)]
Temporarily make this standalone.

18 years agoDocument the problems with xio.c.
Eric S. Raymond [Thu, 14 Sep 2006 23:02:52 +0000 (23:02 +0000)]
Document the problems with xio.c.

18 years agoTypo fixes.
Eric S. Raymond [Thu, 14 Sep 2006 21:46:37 +0000 (21:46 +0000)]
Typo fixes.

18 years agoVarious declaration cleanups.
Eric S. Raymond [Thu, 14 Sep 2006 20:58:49 +0000 (20:58 +0000)]
Various declaration cleanups.

18 years agoEliminate nasty macro holdovers.
Eric S. Raymond [Thu, 14 Sep 2006 20:42:27 +0000 (20:42 +0000)]
Eliminate nasty macro holdovers.

All game structure members are now referred to by full name. Also, one
more minor step in making xio work.

18 years agoText append looks like it should work, but it core-dumps.
Eric S. Raymond [Thu, 14 Sep 2006 18:25:06 +0000 (18:25 +0000)]
Text append looks like it should work, but it core-dumps.

18 years agoMore settings into fallback.
Eric S. Raymond [Thu, 14 Sep 2006 18:01:40 +0000 (18:01 +0000)]
More settings into fallback.

18 years agoMake the text window editable.
Eric S. Raymond [Thu, 14 Sep 2006 08:55:38 +0000 (08:55 +0000)]
Make the text window editable.

18 years agoMove as much as possible into fallback resources.
Eric S. Raymond [Thu, 14 Sep 2006 04:27:44 +0000 (04:27 +0000)]
Move as much as possible into fallback resources.

18 years agoMergeed "Status" section into "Misc".
Eric S. Raymond [Thu, 14 Sep 2006 03:57:32 +0000 (03:57 +0000)]
Mergeed "Status" section into "Misc".

18 years agoWe know how to extract the button name within the callback.
Eric S. Raymond [Thu, 14 Sep 2006 02:58:40 +0000 (02:58 +0000)]
We know how to extract the button name within the callback.

18 years agoMore reasonably-sized windows.
Eric S. Raymond [Thu, 14 Sep 2006 02:39:28 +0000 (02:39 +0000)]
More reasonably-sized windows.

18 years agoGet rid of some ugly borders.
Eric S. Raymond [Wed, 13 Sep 2006 23:52:07 +0000 (23:52 +0000)]
Get rid of some ugly borders.

18 years agoSeparate widgets for each button group,
Eric S. Raymond [Wed, 13 Sep 2006 22:58:43 +0000 (22:58 +0000)]
Separate widgets for each button group,

18 years agoUse box class to get rid of bad reference.
Eric S. Raymond [Wed, 13 Sep 2006 22:40:39 +0000 (22:40 +0000)]
Use box class to get rid of bad reference.

18 years agoRemove some dead code.
Eric S. Raymond [Wed, 13 Sep 2006 20:24:26 +0000 (20:24 +0000)]
Remove some dead code.

18 years agoMultiple-button layout, but with some "Cannot convert string" messages.
Eric S. Raymond [Wed, 13 Sep 2006 19:45:48 +0000 (19:45 +0000)]
Multiple-button layout, but with some "Cannot convert string" messages.

18 years agoMore resources into fallback.
Eric S. Raymond [Wed, 13 Sep 2006 18:28:02 +0000 (18:28 +0000)]
More resources into fallback.

18 years agoMore buttons, and systematic use of fallback.
Eric S. Raymond [Wed, 13 Sep 2006 18:22:46 +0000 (18:22 +0000)]
More buttons, and systematic use of fallback.

18 years agoBegin moving resource declarations into the fallback.
Eric S. Raymond [Wed, 13 Sep 2006 18:05:53 +0000 (18:05 +0000)]
Begin moving resource declarations into the fallback.

18 years agoBeginnings of a button panel.
Eric S. Raymond [Wed, 13 Sep 2006 17:57:12 +0000 (17:57 +0000)]
Beginnings of a button panel.

18 years agoFix some decor files.
Eric S. Raymond [Wed, 13 Sep 2006 17:44:37 +0000 (17:44 +0000)]
Fix some decor files.

18 years agomove xio.c to src
Stas Sergeev [Wed, 13 Sep 2006 17:32:01 +0000 (17:32 +0000)]
move xio.c to src

18 years agoWidgets now stack vertically.
Eric S. Raymond [Wed, 13 Sep 2006 17:29:04 +0000 (17:29 +0000)]
Widgets now stack vertically.

18 years agomerge the autotools branch
Stas Sergeev [Wed, 13 Sep 2006 17:20:32 +0000 (17:20 +0000)]
merge the autotools branch

18 years agoClean up a warning.
Eric S. Raymond [Wed, 13 Sep 2006 17:20:21 +0000 (17:20 +0000)]
Clean up a warning.

18 years agoThis is Jaap Boender's original example code.
Eric S. Raymond [Wed, 13 Sep 2006 17:18:31 +0000 (17:18 +0000)]
This is Jaap Boender's original example code.

18 years agoExperimental X code
Eric S. Raymond [Wed, 13 Sep 2006 16:36:24 +0000 (16:36 +0000)]
Experimental X code

Starting from Jaap Bender's tutorial example at <http://www.kerguelen.org/x/>.

18 years agofix typos
Stas Sergeev [Wed, 13 Sep 2006 16:30:11 +0000 (16:30 +0000)]
fix typos

18 years agomove away www, hope that wont make any harm
Stas Sergeev [Tue, 12 Sep 2006 19:17:42 +0000 (19:17 +0000)]
move away www, hope that wont make any harm

18 years agoMention related projects.
Eric S. Raymond [Tue, 12 Sep 2006 19:00:30 +0000 (19:00 +0000)]
Mention related projects.

18 years agoReorganize documentation of changes, Add some stuff from Tom Almy's web page.
Eric S. Raymond [Tue, 12 Sep 2006 17:52:11 +0000 (17:52 +0000)]
Reorganize documentation of changes, Add some stuff from Tom Almy's web page.

18 years agoFix game type parsing.
Eric S. Raymond [Tue, 12 Sep 2006 17:28:40 +0000 (17:28 +0000)]
Fix game type parsing.

18 years agoDeathray is now regressed to original 5% probability in 'plain' games.
Eric S. Raymond [Tue, 12 Sep 2006 17:27:46 +0000 (17:27 +0000)]
Deathray is now regressed to original 5% probability in 'plain' games.

18 years agoAdded the ability to suppress newer features with a game type option.
Eric S. Raymond [Tue, 12 Sep 2006 10:23:36 +0000 (10:23 +0000)]
Added the ability to suppress newer features with a game type option.

18 years agoYet more documentation.
Eric S. Raymond [Tue, 12 Sep 2006 08:05:09 +0000 (08:05 +0000)]
Yet more documentation.

18 years agoYet more history.
Eric S. Raymond [Tue, 12 Sep 2006 07:57:38 +0000 (07:57 +0000)]
Yet more history.

18 years agoYet more documenation of the history, and archiving of some ancestral versions.
Eric S. Raymond [Tue, 12 Sep 2006 07:49:55 +0000 (07:49 +0000)]
Yet more documenation of the history, and archiving of some ancestral versions.

18 years agoCosmetic fixes.
Eric S. Raymond [Tue, 12 Sep 2006 03:25:33 +0000 (03:25 +0000)]
Cosmetic fixes.

18 years agoAnother documentation update.
Eric S. Raymond [Tue, 12 Sep 2006 02:04:01 +0000 (02:04 +0000)]
Another documentation update.

18 years agoWeb page now published. Add material to the history section of the docs.
Eric S. Raymond [Mon, 11 Sep 2006 23:30:44 +0000 (23:30 +0000)]
Web page now published.  Add material to the history section of the docs.

18 years agoStas believes he's fixed the warp-out-of-supernova bug.
Eric S. Raymond [Mon, 11 Sep 2006 19:15:35 +0000 (19:15 +0000)]
Stas believes he's fixed the warp-out-of-supernova bug.

19 years agoFix the logic around remkl.
Stas Sergeev [Wed, 25 May 2005 17:42:07 +0000 (17:42 +0000)]
Fix the logic around remkl.

- There were the confusions about the remkl around the code:
sometimes it was used as a total klingons count, sometimes - as
a count of only an ordinary klingons. I added the separate
counters for those. Also removed the killed counters; added
the macros that calculates "killed" values as initial_val-remaining_val.
- Reset the klingons, starbases and supernovas on map upon an
initialization. This fixes the bug where the unkilled klingons
could propagate themselves to the subsequent game round.

19 years agoSmall bug with displaying the starbase's lrscan
Stas Sergeev [Wed, 25 May 2005 17:36:09 +0000 (17:36 +0000)]
Small bug with displaying the starbase's lrscan

19 years agoThis hopefully fixes the "lockup on supernova" problem.
Stas Sergeev [Wed, 25 May 2005 17:35:17 +0000 (17:35 +0000)]
This hopefully fixes the "lockup on supernova" problem.
The scenario I've seen was that warp() calls imove() which calls
srawmaps(), which leaves the lrscan_window active. When nova kills
you, all the game status was dumped to lrscan_window, and the
question "play again?" in that window was effectively a lock-up.
But I haven't tested the fact that the problem is really no longer
happens.

19 years agoFixed klingon count to avoid winning the game before all the klingons
Stas Sergeev [Tue, 24 May 2005 17:51:35 +0000 (17:51 +0000)]
Fixed klingon count to avoid winning the game before all the klingons
are destroyed.

19 years agoNote the existence of the new commit-watch list.
Eric S. Raymond [Fri, 29 Apr 2005 15:01:00 +0000 (15:01 +0000)]
Note the existence of the new commit-watch list.

19 years agoFix the scroll-pausing code.
Stas Sergeev [Thu, 28 Apr 2005 16:15:32 +0000 (16:15 +0000)]
Fix the scroll-pausing code.

19 years agoResync code and docs.
Eric S. Raymond [Mon, 18 Apr 2005 16:03:09 +0000 (16:03 +0000)]
Resync code and docs.

19 years agoTry to handle message scrolling in curses.
Eric S. Raymond [Mon, 18 Apr 2005 09:22:02 +0000 (09:22 +0000)]
Try to handle message scrolling in curses.

19 years agoRPM building works now.
Eric S. Raymond [Thu, 14 Apr 2005 14:50:17 +0000 (14:50 +0000)]
RPM building works now.

19 years agoJust a rename.
Eric S. Raymond [Thu, 14 Apr 2005 14:43:17 +0000 (14:43 +0000)]
Just a rename.

19 years agoUpdates for the build machinery.
Eric S. Raymond [Thu, 14 Apr 2005 14:42:53 +0000 (14:42 +0000)]
Updates for the build machinery.

19 years agoGet rid of the DOS CRs.
Eric S. Raymond [Thu, 14 Apr 2005 14:25:22 +0000 (14:25 +0000)]
Get rid of the DOS CRs.

19 years agoStas's change to get rid of unwanted EOLs.
Eric S. Raymond [Thu, 14 Apr 2005 14:11:10 +0000 (14:11 +0000)]
Stas's change to get rid of unwanted EOLs.

19 years agoMerge Stas's fixes to restore old behavior in the chart function and
Eric S. Raymond [Fri, 18 Feb 2005 03:53:35 +0000 (03:53 +0000)]
Merge Stas's fixes to restore old behavior in the chart function and
do the Mayday animation.  Also get rid of literal \n and \r.

19 years agoDefault version generates your password.
Eric S. Raymond [Sun, 13 Feb 2005 06:39:56 +0000 (06:39 +0000)]
Default version generates your password.

19 years agoStas's fixes for torpedo and phaser animation.
Eric S. Raymond [Sun, 13 Feb 2005 06:13:23 +0000 (06:13 +0000)]
Stas's fixes for torpedo and phaser animation.

19 years agoGet rid of \r characters.
Eric S. Raymond [Sun, 13 Feb 2005 06:09:59 +0000 (06:09 +0000)]
Get rid of \r characters.

19 years agoFix the bracket display.
Eric S. Raymond [Sat, 12 Feb 2005 13:48:18 +0000 (13:48 +0000)]
Fix the bracket display.

19 years agoFollow up on OPTION_SHOWME.
Eric S. Raymond [Sat, 12 Feb 2005 04:49:52 +0000 (04:49 +0000)]
Follow up on OPTION_SHOWME.

19 years agoAdded OPTION_SHOWME.
Eric S. Raymond [Sat, 12 Feb 2005 04:47:57 +0000 (04:47 +0000)]
Added OPTION_SHOWME.

19 years agoTypo fix.
Eric S. Raymond [Sat, 12 Feb 2005 04:34:36 +0000 (04:34 +0000)]
Typo fix.

19 years agoSimplified the logic for refeshing starcharts.
Eric S. Raymond [Sat, 12 Feb 2005 04:33:52 +0000 (04:33 +0000)]
Simplified the logic for refeshing starcharts.

19 years agoGet rid of another magic number.
Eric S. Raymond [Sat, 12 Feb 2005 04:13:42 +0000 (04:13 +0000)]
Get rid of another magic number.

19 years agoFix several minor bugs reported by Stas Sergeev.
Eric S. Raymond [Sat, 12 Feb 2005 03:56:02 +0000 (03:56 +0000)]
Fix several minor bugs reported by Stas Sergeev.

19 years agoSpeed up slow printing somewhat.
Eric S. Raymond [Mon, 7 Feb 2005 20:40:37 +0000 (20:40 +0000)]
Speed up slow printing somewhat.

19 years agoMore presentation bugs.
Eric S. Raymond [Mon, 7 Feb 2005 20:39:00 +0000 (20:39 +0000)]
More presentation bugs.

19 years agoFix two minor presentation bugs.
Eric S. Raymond [Mon, 7 Feb 2005 20:29:53 +0000 (20:29 +0000)]
Fix two minor presentation bugs.

19 years agoBug fix inbase iteration.
Eric S. Raymond [Mon, 7 Feb 2005 20:05:12 +0000 (20:05 +0000)]
Bug fix inbase iteration.