Jump to content

Recommended Posts

Posted (edited)

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-12um17_54_57.thumb.png.c5fd98c7f628d8390e4cb8a451ba3f80.png

 

More to come as time goes by... suggestions welcome.

https://github.com/FnordLord/IfaAwards

Edited by MattW
  • Administrators
Posted

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.

Posted

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

Posted

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

Posted

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

Posted

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 :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...