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

Bots and statuspage fixes #178

Merged
merged 10 commits into from
Apr 1, 2024
Merged

Bots and statuspage fixes #178

merged 10 commits into from
Apr 1, 2024

Commits on Mar 20, 2024

  1. Configuration menu
    Copy the full SHA
    d1235b1 View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2024

  1. Server/Bots sharedFunctions lib hooks support

    The lua shared functions lib now supports calling a hook
    for when plugin data was parsed.
    A bot now can hook custom code into some shared_functions library,
    by implementing the functions.supplying for example: `fgcom.hooks.parsePluginData_afterParseIID = function(sid, iid) ... end`
    
    Currently these are available:
    - parsePluginData_afterParseIID(sid, iid)
      called when parsePluginData() received data for a given iid
    
    - fgcom.hooks.parsePluginData_newClient(sid, iid)
      called when parsePluginData() detected that the client was not seen before.
      is called before any datas is parsed/added.
    
    - fgcom.hooks.parsePluginData_updateKnownClient(sid, iid)
      called when parsePluginData() detected that the client was known.
      is called before any datas is parsed/updated.
    
    - fgcom.hooks.parsePluginData_processedPacket(mumble_user, packtype, dataID_t)
      called after processing the packet, passing raw data
    
    - fgcom.hooks.cleanupPluginData_entry(sid, iid)
      called when cleaning up an entry. return false to prevent the entry to be cleaned out.
    
    -------------------------
    Server/Statusbot:
    Also this commit tries to prevent duplicate entries (#177).
    make sure, the data structure has a type field default, and prevent nil value (#174)
    
    fix #174
    fix #177
    hbeni committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    2d9bf34 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7c6e67a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cb1cc03 View commit details
    Browse the repository at this point in the history
  4. Server: Version raised to 1.2.0

    hbeni committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    703d4b9 View commit details
    Browse the repository at this point in the history
  5. Server/Bots: Added version string to log output

    Also the test/fgcom-fakepilot bot was ammended:
    - now also has a version number
    - now utilizes fgcom.log() and .dbg() for output (giving timestamps)
    hbeni committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    d5c5088 View commit details
    Browse the repository at this point in the history
  6. Server/Bots: Implemented asking for missing data

    - checkMissingPluginData(client, askForMissingDataAfter=30) added to fgcom-sharedFunctions
      - This will check for missing metadata.
      - If client is supplied, and askForMissingDataAfter is >0, it will emit a
        ICANHAZDATAPLZ packet to the client in question
      - It will return a table containing detected missing fields.
        So calling with client=nil can be used to just check for missing data.
    
    - The status and recorder bot will now ask for data if it misses it for too long.
    hbeni committed Mar 21, 2024
    Configuration menu
    Copy the full SHA
    a42a9d8 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2024

  1. Configuration menu
    Copy the full SHA
    2ffd32a View commit details
    Browse the repository at this point in the history
  2. Server/fakepilot: Pick frequency after transmission finished; that wa…

    …y the next choosen frequency is preannounced on the net
    hbeni committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    e53fdd4 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2024

  1. Server/fakepilot fixes+additions loadTest enhancement

    - FakePilotBot:
      - randomized start position globally (not locally around 0,0 anymore).
      - added optional --lat, --lon and --alt parameters to define a fixed start location.
      - fixed lat/lon mixed data in UPD_LOC packet.
      - fixed limiting/wrapping of lat/lon; it will wrap over correctly now.
        The bot thus now follows a great-circle path over the globe.
    
    - loadTest tool:
      - changed call options. There are now 3 mandatory options (for the script itself).
      - options after the initial 3 ones are passed to the bot call directly.
    hbeni committed Mar 23, 2024
    Configuration menu
    Copy the full SHA
    b422ad9 View commit details
    Browse the repository at this point in the history