basic-computer-games icon indicating copy to clipboard operation
basic-computer-games copied to clipboard

84_Super_Star_Trek rust implementation: stardate does not increase, can occupy spaces with stars if we navigate in?

Open realMlangston opened this issue 9 months ago • 2 comments
trafficstars

After playing a game, I noticed the stardate never increased and no action seems to increase it. Looking through the code I do not see any mechanism to increase the star date. If we warp into a sector, we may be on top of a star or enemy ships may be on top of a star - this makes the ships invisible. See partial log below, if the author doesn't have time I can eventually PR a fix:

Now entering Betelgeuse I quadrant . . .

---------------------------------
     *                                   Stardate           2300.0
             *                           Condition          GREEN
                                         Quadrant           4 , 5
                                         Sector             6 , 5
                                         Photon torpedoes   28
                <*>  *                   Total energy       2966
                                         Shields            0
                                         Klingons remaining 2
---------------------------------
Command? lrs
Long range scan for quadrant 4 , 5
-------------------
: 004 : 006 : 004 :
-------------------
: 006 : 003 : 006 :
-------------------
: 004 : 003 : 005 :
-------------------
Command? com
Computer active and waiting command? 0
Computer record of galaxy for quadrant 4 , 5
      1     2     3     4     5     6     7     8
    ----- ----- ----- ----- ----- ----- ----- -----
1    002   004   013   004   003   001   007   004  
    ----- ----- ----- ----- ----- ----- ----- -----
2    000   007   002   003   006   000   011   005  
    ----- ----- ----- ----- ----- ----- ----- -----
3    005   007   004   004   006   004   006   001  
    ----- ----- ----- ----- ----- ----- ----- -----
4    007   010   001   006   003   006   ***   ***  
    ----- ----- ----- ----- ----- ----- ----- -----
5    004   001   004   004   003   005   ***   ***  
    ----- ----- ----- ----- ----- ----- ----- -----
6    001   003   005   000   ***   ***   007   017  
    ----- ----- ----- ----- ----- ----- ----- -----
7    002   001   006   000   ***   002   004   004  
    ----- ----- ----- ----- ----- ----- ----- -----
8    004   007   003   004   ***   002   010   006  
    ----- ----- ----- ----- ----- ----- ----- -----
Command? nav
Course (1-9)? 1
Warp Factor (0-8)? 3
Warp engines shut down at sector 6 , 5 dues to bad navigation
Command? lrs
Long range scan for quadrant 4 , 5
-------------------
: 004 : 006 : 004 :
-------------------
: 006 : 003 : 006 :
-------------------
: 004 : 003 : 005 :
-------------------
Command? srs
---------------------------------
     *                                   Stardate           2300.0
             *                           Condition          GREEN
                                         Quadrant           4 , 5
                                         Sector             6 , 5
                                         Photon torpedoes   28
                <*>  *                   Total energy       2966
                                         Shields            0
                                         Klingons remaining 2
---------------------------------
Command? nav
Course (1-9)? 7
Warp Factor (0-8)? 0.2
---------------------------------
     *                                   Stardate           2300.0
             *                           Condition          GREEN
                                         Quadrant           4 , 5
                                         Sector             7 , 5
                                         Photon torpedoes   28
                     *                   Total energy       2955
                <*>                      Shields            0
                                         Klingons remaining 2
---------------------------------
Command? nav
Course (1-9)? 1
Warp Factor (0-8)? 3

Now entering Betelgeuse IV quadrant . . .

---------------------------------
 *                                       Stardate           2300.0
                                         Condition          GREEN
                                         Quadrant           4 , 8
                                         Sector             7 , 5
                                         Photon torpedoes   28
                                         Total energy       2921
                <*>  *                   Shields            0
                                         Klingons remaining 2
---------------------------------
Command? lrs
Long range scan for quadrant 4 , 8
-------------------
: 006 : 001 : *** :
-------------------
: 007 : 002 : *** :
-------------------
: 011 : 000 : *** :
-------------------
Command? com
Computer active and waiting command? 0
Computer record of galaxy for quadrant 4 , 8
      1     2     3     4     5     6     7     8
    ----- ----- ----- ----- ----- ----- ----- -----
1    002   004   013   004   003   001   007   004  
    ----- ----- ----- ----- ----- ----- ----- -----
2    000   007   002   003   006   000   011   005  
    ----- ----- ----- ----- ----- ----- ----- -----
3    005   007   004   004   006   004   006   001  
    ----- ----- ----- ----- ----- ----- ----- -----
4    007   010   001   006   003   006   007   002  
    ----- ----- ----- ----- ----- ----- ----- -----
5    004   001   004   004   003   005   011   000  
    ----- ----- ----- ----- ----- ----- ----- -----
6    001   003   005   000   ***   ***   007   017  
    ----- ----- ----- ----- ----- ----- ----- -----
7    002   001   006   000   ***   002   004   004  
    ----- ----- ----- ----- ----- ----- ----- -----
8    004   007   003   004   ***   002   010   006  
    ----- ----- ----- ----- ----- ----- ----- -----
Command? nav
Course (1-9)? 6
Warp Factor (0-8)? 1
Damage Control report:  Shield Control damaged

Now entering Aldebaran III quadrant . . .

---------------------------------
                                         Stardate           2300.0
                                         Condition          YELLOW
                >!<      *               Quadrant           5 , 7
                                         Sector             7 , 5
                                         Photon torpedoes   28
                                         Total energy       2903
                <*>                      Shields            0
                                         Klingons remaining 2
---------------------------------
Command? lrs
Long range scan for quadrant 5 , 7
-------------------
: 006 : 007 : 002 :
-------------------
: 005 : 011 : 000 :
-------------------
: 000 : 007 : 017 :
-------------------
Command? com
Computer active and waiting command? 0
Computer record of galaxy for quadrant 5 , 7
      1     2     3     4     5     6     7     8
    ----- ----- ----- ----- ----- ----- ----- -----
1    002   004   013   004   003   001   007   004  
    ----- ----- ----- ----- ----- ----- ----- -----
2    000   007   002   003   006   000   011   005  
    ----- ----- ----- ----- ----- ----- ----- -----
3    005   007   004   004   006   004   006   001  
    ----- ----- ----- ----- ----- ----- ----- -----
4    007   010   001   006   003   006   007   002  
    ----- ----- ----- ----- ----- ----- ----- -----
5    004   001   004   004   003   005   011   000  
    ----- ----- ----- ----- ----- ----- ----- -----
6    001   003   005   000   ***   000   007   017  
    ----- ----- ----- ----- ----- ----- ----- -----
7    002   001   006   000   ***   002   004   004  
    ----- ----- ----- ----- ----- ----- ----- -----
8    004   007   003   004   ***   002   010   006  
    ----- ----- ----- ----- ----- ----- ----- -----
Command? nav
Course (1-9)? 5.5
Warp Factor (0-8)? 2

Now entering Aldebaran I quadrant . . .

---------------------------------
             *                           Stardate           2300.0
                                         Condition          YELLOW
                                         Quadrant           5 , 5
         *                               Sector             7 , 5
                                         Photon torpedoes   28
                                         Total energy       2877
                <*>                      Shields            0
                     *                   Klingons remaining 2
---------------------------------
Command? lrs
Long range scan for quadrant 5 , 5
-------------------
: 006 : 003 : 006 :
-------------------
: 004 : 003 : 005 :
-------------------
: 000 : 104 : 000 :
-------------------
Command? nav
Course (1-9)? 7
Warp Factor (0-8)? 1

Now entering Regulus I quadrant . . .

COMBAT AREA      CONDITION RED
   SHIELDS DANGEROUSLY LOW    
---------------------------------
             *                           Stardate           2300.0
                                         Condition          *RED*
                                         Quadrant           6 , 5
                                         Sector             7 , 5
                        +K+              Photon torpedoes   28
 *                           *           Total energy       2859
             *  <*>                      Shields            0
                                         Klingons remaining 2
---------------------------------
Command? tor
Photon torpedo course (1-9)? ^[
   Ensign Chekov reports, 'Incorrect course data, sir!'
Command? com
Computer active and waiting command? 1
   Status report:
Klingons left:  2
Mission must be completed in 35.0 stardates.
The Federation is maintaining 6 starbases in the galaxy.

Device             State of Repair
Short Range Scanners     0
Warp Engines             0
Shield Control           -1.5495872
Damage Control           0
Long Range Scanners      0
Library-Computer         0
Phaser Control           0
Photon Tubes             0

Command? com
Computer active and waiting command? 2
From Enterprise to Klingon battle cruiser
Direction = 2
Distance = 2
Command? tor
Photon torpedo course (1-9)? 2
Torpedo track:
                6 , 6
                5 , 7
*** Klingon destroyed ***
Command? srs
---------------------------------
             *                           Stardate           2300.0
                                         Condition          YELLOW
                                         Quadrant           6 , 5
                                         Sector             7 , 5
                                         Photon torpedoes   27
 *                           *           Total energy       2859
             *  <*>                      Shields            0
                                         Klingons remaining 1
---------------------------------
Command? lrs
Long range scan for quadrant 6 , 5
-------------------
: 004 : 003 : 005 :
-------------------
: 000 : 004 : 000 :
-------------------
: 000 : 103 : 002 :
-------------------
Command? nav
Course (1-9)? 7
Warp Factor (0-8)? 1

Now entering Arcturus I quadrant . . .

COMBAT AREA      CONDITION RED
   SHIELDS DANGEROUSLY LOW    
---------------------------------
                 *                       Stardate           2300.0
                             *           Condition          *RED*
 *                                       Quadrant           7 , 5
                                         Sector             7 , 5
                                         Photon torpedoes   27
            +K+                          Total energy       2841
                <*>                      Shields            0
                                         Klingons remaining 1
---------------------------------
Command? tor
Photon torpedo course (1-9)? 3
Torpedo track:
                6 , 5
                5 , 5
                4 , 5
                3 , 5
                2 , 5
                1 , 5
Star at 1 , 5 absorbed torpedo energy.
128 unit hit on Enterprise from sector 6 , 4
The Enterprise has been destroyed.  The Federation will be conquered.
Is is stardate 2300.0.
There were 1 Klingon battle cruisers left at
the end of your mission.

realMlangston avatar Feb 15 '25 20:02 realMlangston