Author Topic: [Suggestion] Pilot Diary for Pilot Class  (Read 2506 times)

Offline gaffer

  • Captain
  • ***
  • Posts: 60
    • View Profile
[Suggestion] Pilot Diary for Pilot Class
« on: December 06, 2019, 05:58:05 am »
As implied,
Wondering of it would be tedious / doable to add a Pilot stat page for pilot Class from the
TopGun WIP mod??  In effect something like the soldier diary for pilots.  This would add
depth/interest to pilot class beyond accumulating dogfight experience and being a craft
requirement.  Perhaps something like this was already planned with TopGun??

I'm far from being well versed in yaml, but some ideas of how the .rul file might look.
Forgive any syntax/spacing/structure issues.
See Below:

Code: [Select]
# Idea for expansion on Pilot soldier type
# "pilotDiary" ALA soldierDiary by shoes
# pilotLog - Contents for all Pilot sorties data
# pilotLogScores
# victoryTypes
# victoryValue ???
# pilotRecord??
#
#Pilot Log history (Logbook)  - all stats
pilotDiary:
  - type: STR_PILOT_LOG
    background: somebackground.SCR
    pilotLog:
      dogfightHitCount: XX            #Total hits on ufos
      dogfightShotCount: XX         #Total shots taken in dogfight
      dogfightAccuracy: XX           #Accurracy as % hits over shots taken
      pilotTotalScore: 210             #overall score (tabulated scores)
      sortieFlightsCount: 10           #missions flown
      sortieFlightsScore: 50           #10 flights x 5 pts per flight
      sortieHoursCount: 14            #flying hours/time aloft
      sortieHoursScore: 70            #14 hours x 5 pts per hour
      sortieRatioTotal: 70              #VictoryCount over FlightsCount as a %
      sortieVictoryCount: 7           #UFOs downed/destroyed, Aerial Victories(Kills)
      sortieVictoryScore: 90          #aerial kill score
      sortieVictoryList:                 #list of kills displayed?
        - STR_SMALL_SCOUT         #5pts
        - STR_MEDIUM_SCOUT      #12pts
        - STR_MEDIUM_SCOUT      #12pts
        - STR_HARVESTER              #25pts
        - STR_LARGE_SCOUT         #12pts
        - STR_MEDIUM_SCOUT      #12pts
        - STR_MEDIUM_SCOUT      #12pts
                                             #Total - 90 victory points
    pilotLogScores:                    #Scores for individual stats
      sortieHour: 5                     #5pts per hour
      sortieFlight: 5                    #5pts per flight
      sortieVictory: 10                 #10pts per victory
    victoryTypes:                       #ufo types-->ufos.rul
      - STR_SMALL_SCOUT
      - STR_MEDIUM_SCOUT
      - STR_LARGE_SCOUT
      - STR_HARVESTER
      - STR_ABDUCTOR
      - STR_TERROR_SHIP
      - STR_BATTLESHIP
      - STR_SUPPLY_SHIP
#  victoryValue:  #needed if not in ufos.rul?
#    STR_VERY_SMALL: 5
#    STR_SMALL: 12
#    STR_MEDIUM: 25
#    STR_LARGE: 50
#    STR_VERY_LARGE: 70
#                -  OR  -
#Append ufos.rul with weighted point values
#Could just use existing score value in ufos.rul
ufos:
  - type: STR_SMALL_SCOUT
    victoryValue: 5
  - type: STR_MEDIUM_SCOUT
    victoryValue: 12
  - type: STR_LARGE_SCOUT
    victoryValue: 12
  - type: STR_HARVESTER
    victoryValue: 25
  - type: STR_ABDUCTOR
    victoryValue: 25
  - type: STR_TERROR_SHIP
    victoryValue: 50
  - type: STR_BATTLESHIP
    victoryValue: 70
  - type: STR_SUPPLY_SHIP
    victoryValue: 50
extraStrings:
  - type: en-US
    strings:
# Pilot Log Strings
      dogfightAccuracy: "Dogfight Accuracy"
      dogfightHitCount: "Shots Landed"
      dogfightShotCount: "Total Shots"
      pilotLog: "Logbook"
      pilotTotalScore: "Total Pilot Score"
      sortieHoursCount: "Total Hours"
      sortieHoursScore: "Hours Score"
      sortieFlightsCount: "Total Sorties"
      sortieFlightsScore: "Sorties Score"
      sortieRatioTotal: "Victories to Sorties Ratio"
      sortieVictoryCount: "Total Victories"
      sortieVictoryScore: "Victories Score"
      sortieVictoryList: "Victories List"
      STR_PILOT_LOG: "Pilot Log"
# Ufo Strings
      STR_SMALL_SCOUT: "Small Scout"
      STR_MEDIUM_SCOUT: "Medium Scout"
      STR_LARGE_SCOUT: " Large Scout"
      STR_HARVESTER: "Harvester"
      STR_ABDUCTOR: "Abductor"
      STR_TERROR_SHIP: "Terror Ship"
      STR_BATTLESHIP: "Battleship"
      STR_SUPPLY_SHIP: "Supply Ship"

Basic thought would be for tracking base stats (e.g. flights, kills, hours etc) and have
some score system built alongside.  UFOs currently have a score value.  This could be
used for pilots as a point system for kills, or introduce unique key (e.g. value / victoryValue)
Would be great to see if time permitting in the future.

Thanks for looking.
-gaffer

Offline gaffer

  • Captain
  • ***
  • Posts: 60
    • View Profile
Re: [Suggestion] Pilot Diary for Pilot Class
« Reply #1 on: December 06, 2019, 06:05:46 am »

Wondering of it would be tedious / doable to add a Pilot stat page for pilot Class


Presumably this would need cpp entries in several places, much as soldier diaries are.  Unless it were possible more "Lite" version.
Not sure how demanding such work would be, low priority as it is.

I'd gladly give it a go myself if I fully understood the build process /pull requests.  CPP work would be mostly duplicate of exsiting
work with variable/key differences I would somewhat assume.

Thanks