IFA Awards Module

Another very small plugin, just a starting point: IfaAwards issuing awards based on statistical achievements beyond what phpvms currently offers (hours, number of flights etc.). Currently I’ve implemented accumulated flown distance (or planned, depending on which sum is greater). Problem is that ACARS not always records the correct value for real flown distance.

 

Anybody welcome to use it if they find value in it. Just configure any number of awards with the class “Pilot Flight Distance” with an according value in nautical miles and next time a PIREP is being accepted, the system checks for accumulated nm for the pilot and will automatically issue the configured award.

 

Bildschirmfoto2024-11-12um175457.png.1fc50a34e227a7ec3afaab32d47dc8f9.png

 

More to come as time goes by… suggestions welcome.

https://github.com/FnordLord/IfaAwards

I split your Awards module off into its own thread.

Each module should have its own thread. Makes updating and tracking any issues/questions much easier.

excellent idea. thank you!

Don’t get this wrong or as a negative review please, but I need to ask this

 

Why do you (or we) need to have a module for awards ? We can define our awards classes and use them, there is nothing stopping us to the that and everything we do will run in an award class, so a module is technically not needed for creating (or having additional) awards.

 

You (or anybody else) can create award classes and share them, just document the needs, share it here in files/addons section

 

PS : I would never award a pilot based on “planned” distance (or anything “planned”), they can extend their route for planning purposes just to fake it slightly on each flight to beat the competition. Just go for the reported/accepted distance

 

Safe flights

Valid questions/remarks, also on github - thanks a lot for this. I’ll declutter the entire thing and reduce it to an awards class.

i decided to delete the repo, makes no sense to me to keep one just for the single class. we could actually delete this thread. there’s one good learning for me: enums for the pireps-state, which will find its way into the tours module. thanks for this, dispo

You can keep the repo, to share your possible future awards classes if you wish to.

 

There are endless possibilities for awards and with good classes, that repo can be a good community place to participate maybe.

 

My pleasure