Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error logged when docking with star base #54

Open
TerryEbdon opened this issue Jan 1, 2024 · 0 comments
Open

Error logged when docking with star base #54

TerryEbdon opened this issue Jan 1, 2024 · 0 comments
Assignees

Comments

@TerryEbdon
Copy link
Owner

TerryEbdon commented Jan 1, 2024

The ship and star base are are at opposite edges of a quadrant. Setting a course directly towards the star base, at warp factor 0.9, results in two ERROR level messages being logged to both the console and the trace log. The game continues as expected.

See also #5

Example Game Play

Command: s
  ---------------
  . . . . . . . .
  . . . . . . . .
  . . . . . . . .
  . . . . . . * .
  E . . . . . . B
  . . . . . . . .
  . . . . . . . .
  . . . . . . . *
  ---------------
  STARDATE:  2100        CONDITION: YELLOW
  QUADRANT: 6 - 2           SECTOR: 1 - 5
    ENERGY:  2600 PHOTON TORPEDOES: 10
  KLINGONS:    36

Command: c
  Course (1-8.999999): 1
   Warp Factor (0-12): .9
  Ship blocked by base at sector 8 - 5
2024-01-01 14:37:46.743 ERROR FederationShip Ship Conditon changed from GREEN to DOCKED
2024-01-01 14:37:46.753 ERROR FederationShip Ship now docked in sector [5, 7] == 7 - 5 to star base in sector [5, 8] == 8 - 5
  ---------------
  . . . . . . . .
  . . . . . . . .
  . . . . . . . .
  . . . . . . * .
  . . . . . . E B
  . . . . . . . .
  . . . . . . . .
  . . . . . . . *
  ---------------
  STARDATE:  2101        CONDITION: DOCKED
  QUADRANT: 6 - 2           SECTOR: 7 - 5
    ENERGY:  3000 PHOTON TORPEDOES: 10
  KLINGONS:    36

Command:

Log for above game play

2024-01-01 14:37:46.713 INFO  ShipCourseManager Got a good vector: course: 1.0, warpFactor: 0.9
2024-01-01 14:37:46.713 INFO  FederationShip Ship moving: course: 1.0, warpFactor: 0.9
2024-01-01 14:37:46.713 INFO  FederationShip Ship's movement used 7 units of energy.
2024-01-01 14:37:46.723 INFO  FederationShip Energy reserves reduced to 2593
2024-01-01 14:37:46.733 INFO  ShipRepositioner Ship move step 7 impact at [5, 8]
2024-01-01 14:37:46.733 INFO  Repositioner Ship arrived in quadrant Coords2d(2, 6)
2024-01-01 14:37:46.733 INFO  Repositioner Ship arrived in sector   Coords2d(5, 7)
2024-01-01 14:37:46.733 INFO  Trek Quadrant was Coords2d(2, 6)
2024-01-01 14:37:46.733 INFO  Trek Quadrant now Coords2d(2, 6)
2024-01-01 14:37:46.733 INFO  Trek Ship didn't jump quadrants.
2024-01-01 14:37:46.743 INFO  FederationShip adjacent quadrant [2,7] = 111 has enemy ships!
2024-01-01 14:37:46.743 ERROR FederationShip Ship Conditon changed from GREEN to DOCKED
2024-01-01 14:37:46.753 ERROR FederationShip Ship now docked in sector [5, 7] == 7 - 5 to star base in sector [5, 8] == 8 - 5
@TerryEbdon TerryEbdon self-assigned this Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant