*** ADDENDUM 2005-04 *** - jvb 2005-05-05 - Activate cloaking (if available) if tractor beamed & shields unusable. added max parameters to warp & shield commands. added min parameter to shield command. max & min can be used at prompt for numeric values. added ability to transfer energy to & from shields when tractor beamed. shields & cloaking device repaired before attempt to use them during tractor beaming if they would be repaired before end of tractor beam travel time. New commands: UNDOCK - Undock SH MAX - Maximize shield energy SH MIN - Minimize shield energy (drain shields completely) ANSI - Toggle ANSI mode REDRAW - Redraw screen (only effective in ANSI mode) CLOAK - Activate Romulan Cloaking device CLASSIC - Turn off the most obtrusive of the new features (But not features that appeared in the 1987 DECUS version of the game.) NEW FEATURES: Ship's quadrant now indicated on galaxy chart. PHASERS AUTOMATIC now gives an estimate of the total power needed to destroy all enemies in quadrant with phaser fire from the current position. (from DECUS strek.exe circa 1987) COMMAND> s 1 2 3 4 5 6 7 8 9 10 1 . * . . . . . . . Stardate 2001.4 2 . . . . . . . . . K Condition RED 3 . . . . . . . . . . Position 2-7, 8-4 4 . . . . . R . . . . Life Support ACTIVE 5 . . . . . . . . . * Warp Factor 6.0 6 . . . . * . . . . . Energy 4416.43 7 . K . . . . . . . . Torpedoes 10, Maxburst: 3 8 . . . E . . . . K . Shields UP, 100% 2500.0 units 9 . . . * . . . . . Klingons Left 29 (1.80) (4.11) 10 . . . . . . . . . . Time Left 7.06 COMMAND> p a Weapons Officer Sulu- "High-speed shield control enabled, sir." Phasers locked on target. Energy available = 4216.4 Units to fire (2254)=-3 COMMAND> m a 5 7 COMMAND> s 1 2 3 4 5 6 7 8 9 10 1 . * . . . . . . . Stardate 2001.5 2 . . . . . . . . . K Condition RED 3 . . . . . . . . . . Position 2-7, 5-7 4 . . . . . R . . . . Life Support ACTIVE 5 . . . . . . E . . * Warp Factor 6.0 6 . . . . * . . . . . Energy 4233.15 7 . K . . . . . . . . Torpedoes 10, Maxburst: 3 8 . . . . . . . . K . Shields UP, 100% 2500.0 units 9 . . . * . . . . . Klingons Left 29 (1.80) (4.18) 10 . . . . . . . . . . Time Left 6.94 COMMAND> p a Weapons Officer Sulu- "High-speed shield control enabled, sir." Phasers locked on target. Energy available = 4033.2 Units to fire (1843)= Torpedoes entering a black hole may be re-emitted on a random track. (from DECUS strek.exe circa 1987) Entering a black hole may cause you to enter a time warp. (from DECUS strek.exe circa 1987) Photon command changed to Torpedoes - from DECUS strek.exe circa 1987. ANSI screen mode - uses ibmgraphics, ANSI colors & ANSI cursor control - only tested on WinXP DOS window with ANSI.SYS loaded (via CONFIG.NT(?)) - permanent display of srs, chart, & status. - srs is updated after each event (torpedo or ship movement, ENEMY torpedo or ship movement, ship or enemy ship buffeting, destruction of any object (planet, ship, base, star, thing, etc.) Photon torpedoes battles are fascinating to watch. (from DECUS strek.exe circa 1987 on a terminal in VT52 emulation mode) (except the animation) - toggleable using the new ANSI command. If photon tubes damaged & docked at starbase, can fire starbase's defensive tube battery. COMPUTER command now lists bases under attack & time of destruction first. SENSOR command gives option of showing raw energy readings on enemy ships in quadrant (if any). Torpedo tracks now printed out slowly. ERROR-ERROR-ERROR- etc now printed out slowly. Use of deep space probes to cause supernovas will usually prevent promotion from Expert or Emeritus skill levels. Further tweaking of initial base placement. REPORT now reports whether ship is in orbit, away team on planet, crystals have been mined (if ship in orbit & away team on planet), last reported SuperCommander position & when (if any) maximum safe warp, maximum warp, initial energy, max shield energy, maximum torps, maximum torpedo burst (# of torpedoes that can be fired at once.), etc. (most of the latter are for the NSX-1701D, whose capabilities vary from game to game.) NEW experimental ship NSX-1701D (symbol D). More & better of everything. Costs 10+% of initial time when chosen. Has cloaking. Also has some problems. Player actions can cause indirect affects (role-playing). CLOAKING - - Costs 1000 energy to activate. - Returns 500 energy when deactivated. - Can't fire phasers while cloaked. - Can't raise shields while cloaked. - Can't activate cloaking if shields are up. - Can't be rammed. - Can't be tractor beamed. - Maximum warp while cloaked is 2/3 of max safe warp. - Movement energy goes up by a factor of warp setting. - Can't escape supernova while cloaked. - Can't dock while cloaked if subspace radio is damaged. Can use dilithium crystals if condition RED, no matter what Starfleet bureaucrats say about waiting until energy below 1000 units. Stars now randomly nova as well as supernova. Scotty reports when repairs are finished on a damaged device. Spocky reports when a starbase is destroyed by a supernova. MISCELLANEOUS Some output messages have been "tightened up" to fit better in the ANSI report window. Elimination of "magic numbers" through parameterization, e.g. #define KLINGONS 100 num_klingons = quad / KLINGONS; enum'ing lists of commands & devices to facilitate adding new commands & devices (also helps eliminate magic numbers.) Re-formatting code, re-naming functions, variables, etc. for clearer understanding. BUGFIXES: Orbit altitude now stored in freeze file. (o/w thawed game with ship in orbit will require zero time for shuttle trip. ) Commander no longer flees quadrant if attacking a base. (as indicated in comments.) Destroyed/fled commander no longer destroys base anyway. Commanders no longer flee to supernova quadrants. (as indicated in comments) Commanders no longer tractor beam starship if docked. Short range scan shows what is known of the quadrant even if short range sensors are damaged. Acts like the star chart in this respect. (i.e. info seen since quadrant is entered., or if srscan was done of quadrant before damaged.) DESTRUCT and ABANDON no longer accept abbreviations. (as stated in sst.doc) ABANDON requires confirmation. When abandoning ship - - only the bridge crew join the captain in the shuttle craft. (was just 'crew'); - if transporter damaged remainder of the ship's complement stay aboard ship and pray for rescue. When the shield malfunctions containing phaser fire, casualties due to severe radiation burns are now added to total casualties, not subtracted. When warp engines are too damaged for any use, Scotty now reports that, instead of saying "The impulse engines are damaged, Sir." Torpedoed star in ship's quadrant that goes nova now has the correct sector listed in the message "Incipient supernova detected at sector (x,x)." Can't be damaged by enemy attack if docked at starbase, even if shields down ("protected by starbase shields"). Can be buffeted and undocked though. Multiple changes made to stop dead Commander from destroying starbase. Also no longer report base under attack by dead Commander. Tholian movement regularize to once per in-game command (eg. move, shields, sensors, etc. not help, commands, redraw, etc.) (move_tho() was being called in attack(), makemoves(), & events().) Starship protected from buffeting by adjacent nova when docked at starbase, then is undocked. PROBE command now accepts abbreviations for "armed". PROBE commands optimizes target sector in target quadrant only destination quadrant is given. Aims for nearest corner, or for same sector col/row as starship on the nearest side. Starship docked at base can use starbase's batteries of torpedo tubes to fire photon torpedoes, up to four at once, regardless of damage/limitations of starship's photon capabilities. If shields damaged when tractor beamed cloaking device (if any) is activated (if possible). Text in sst.doc changed from: "The probe can fly around objects in a galaxy, but is destroyed if it" to: "The probe can fly around objects in a quadrant, but is destroyed if it" ^^^^^^^^ Following spelling errors fixed: (Some in comments) Adjacient, Facinating, atttack, insipient, Ops (to Oops), agressive, "Manual file only", PROPOSED NEW FEATURES: From DECUS strek.exe circa 1987 - - Any Romulans present attack upon entering a quadrant with a base. - Enemy Klingons get first attack upon entering a quadrant. (nasty). MYSTERIOUS BUGS REMAINING - Both these cases are probably caused by failed tractor beams. If a tractor beam is scheduled the move is shortened to when it would take place. If the tractor attempt fails the move remains shortened. Occasionally a move that should leave the quadrant would show the ship's quadrant as the original, but the sector scan would not show it. (May be a manifestation of the next bug.) Movement within quadrant occasionally stops short of target sector with no messages, obvious blockages, or warp engine damage. Fractional movement (m .00001 0) to undock from starbase causes large negative values to be suggested for subsequent phaser fire on enemies within quadrant. Check for shield damage when attempting to automatically raise shields when tractor beamed should come at end of tractor beam after travel time is taken into account for repair of possibly damaged shields. COL/ROW C/00000000011111111112222222222333333333344444444445555555555666666666677777777778 /R12345678901234567890123456789012345678901234567890123456789012345678901234567890 00 1 2 3 4 5 6 7 8 9 10 01 1 . . . . . D P * . . Stardate: 2806.0 Kill Rates: (4.80)/(3.70) 02 2 . . . . . . C . . . Condition: CLOAKED Probes: 4 Fired: 0 Det: 0 03 3 . . . . * * . . . Position: 7-5, 1- 6 Dilithium 04 4 . . . . . . . * . Life Support: ACTIVE 05 5 . . . . . . . . . . Warp Factor: 4.6 +-------------------------------+ 06 6 . . . . * . . . . . Energy: 3455 ¦ 1 ¦ 2 ¦ 3 ¦ 4 ¦ 5 ¦ 6 ¦ 7 ¦ 8 ¦ 07 7 . . . . . . . . . . Torpedoes 7 -+---+---+---+---+---+---+---+---+- 08 8 . . . . . . . . . . Shlds: DN, 96% 3849 1¦ 5¦ 4¦ 3¦ 4¦ 1¦...¦...¦...¦1 09 9 . . . . . . . . . . Klingons Left 19 -+---+---+---+---+---+---+---+---+- 1010 . . . . . . . . . . Time Left 5.13 2¦ 7¦ 15¦ 1¦ 6¦ 9¦...¦...¦...¦2 11 -+---+---+---+---+---+---+---+---+- 12Game is thawed short emeritus. 3¦ 6¦ 7¦ 5¦ 4¦ 7¦...¦ 3¦ 7¦3 13No plaque is allowed. -+---+---+---+---+---+---+---+---+- 14Your secret password is: "no". 4¦...¦...¦ 4¦ 8¦ 6¦...¦ 7¦ 9¦4 153 bases remain. -+---+---+---+---+---+---+---+---+- 16NSX-1701D is cloaked. 5¦***¦...¦...¦...¦.1.¦ 8¦ 2¦ 6¦5 17 Probes Launched Detonated -+---+---+---+---+---+---+---+---+- 18 4 0 0 6¦...¦...¦***¦804¦105¦ 7¦ 18¦107¦6 19NSX-1701D is orbiting at 3090 kilometers. -+---+---+---+---+---+---+---+---+- 20Dilithium crystals aboard ship. . . 7¦...¦...¦...¦ 9¦105¦ 7¦ 3¦ 8¦7 21 - not yet used. -+---+---+---+---+---+---+---+---+- 2224 of 44 Klingons have been killed, 8¦...¦...¦...¦ 9¦ 1¦ 7¦104¦ 7¦8 23[CONTINUE]> -+---+---+---+---+---+---+---+---+- 24 ¦ 1 ¦ 2 ¦ 3 ¦ 4 ¦ 5 ¦ 6 ¦ 7 ¦ 8 ¦