Developer's Diary
Software development, with Terry Ebdon
23-Feb-2019 Ship movement questions

Testing Trk21

Lots of testing today, several issues uncovered.

Should ship be 'blocked' by a star base?

Trying to travel through a star base is shown as an impact. Stopping next to a base is docking. But the ship is always docked after an impact. This is possibly confusing.

---------------
. . . . * . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . *
. E . . . . . B
. . . . . . . .
---------------
STARDATE: 2414 CONDITION: GREEN
QUADRANT: 2 - 7 SECTOR: 2 - 7
ENERGY: 877 PHOTON TORPEDOS: 10
KLINGONS: 21
Command: c
Course (1-8.99999): 1
Warp Factor (0-12): 1
Ship blocked by base at sector [7, 8] == 8 - 7
---------------
. . . . * . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . *
. . . . . . E B
. . . . . . . .
---------------
STARDATE: 2415 CONDITION: DOCKED
QUADRANT: 2 - 7 SECTOR: 7 - 7
ENERGY: 3000 PHOTON TORPEDOS: 10
KLINGONS: 21

Logged as query issue #5.

Minimum warp factor should be 0.125, not 0.25

  1. Maximum warp factor is reduced to 0.2 when the engines are damaged. But ShipVector rejects any WarpFactor < 0.25. As the ship is only repaired during course moves this prevents the ship from ever moving again.
  2. A warp factor of 0.25 moves the ship by 2 sectors (horizontally or vertically, less for diagonals.) To cross one sector a warp factor of 0.125 is required. i,e, it's currently not possible to make these short moves.
Command: s
---------------
. . * . . . . .
. . . . . . . .
. . . . E . . *
. . . . . B . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
---------------
STARDATE: 3116 CONDITION: DOCKED
QUADRANT: 4 - 5 SECTOR: 5 - 3
ENERGY: 3000 PHOTON TORPEDOS: 10
KLINGONS: 17
Command: c
Course (1-8.99999): 7
Warp Factor (0-12): .2
Command: s
---------------
. . * . . . . .
. . . . . . . .
. . . . E . . *
. . . . . B . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
---------------
STARDATE: 3116 CONDITION: DOCKED
QUADRANT: 4 - 5 SECTOR: 5 - 3
ENERGY: 3000 PHOTON TORPEDOS: 10
KLINGONS: 17
Command:

Logged as issue #6.

Short Range Sensors are never disabled

When short range sensors are damaged they still responds to an 'S' command, and still display output following course moves.

Command: c
Course (1-8.99999): 1
Warp Factor (0-12): .5
*** Space Storm, device.S.R..SENSORS damaged ***
---------------
. . . . . . . E
. B . . . . . *
. . . . . * . .
. . * . . . . .
. . . . . . . .
. . . * . . . .
. . . . . . . .
. . . . . . . .
---------------
STARDATE: 2812 CONDITION: YELLOW
QUADRANT: 7 - 2 SECTOR: 8 - 1
ENERGY: 2064 PHOTON TORPEDOS: 10
KLINGONS: 33
Command: c
Course (1-8.99999): 5
Warp Factor (0-12): .75
Repair systems are working on damage to device.S.R..SENSORS, state improved to -3
---------------
. E . . . . . .
. B . . . . . *
. . . . . * . .
. . * . . . . .
. . . . . . . .
. . . * . . . .
. . . . . . . .
. . . . . . . .
---------------
STARDATE: 2813 CONDITION: DOCKED
QUADRANT: 7 - 2 SECTOR: 2 - 1

Logged as issue #7.

22-FEB-2019 👈 Top of page 👉 24-FEB-2019

© 2020 Terry Ebdon.

Find me coding on GitHub, networking on LinkedIn, answering questions on Stack Exchange and hanging out on twitter.