-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Deployed to test server... lets see how this goes |
hbeni
force-pushed
the
Issue-17
branch
22 times, most recently
from
March 9, 2024 23:41
eeb7cff
to
a03e0b7
Compare
👀 |
Restarted the statusbot with code 089688e |
hbeni
force-pushed
the
Issue-17
branch
2 times, most recently
from
March 20, 2024 22:23
af40168
to
5dd99aa
Compare
Restarted the statusbot with refactored code 5dd99aa |
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
Also the test/fgcom-fakepilot bot was ammended: - now also has a version number - now utilizes fgcom.log() and .dbg() for output (giving timestamps)
- 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.
…ANHAZDATAPLZ query
…y the next choosen frequency is preannounced on the net
- 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.
This was going flawless since over two weeks now. I think we can consider it fixed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds hook support for lua bots
Hopefully fixing #174
May also potentially help with #177