Jump to content

Automatic Rank structure upto a certain rank.


Recommended Posts

Posted

I have viewed as many posts containing the word RANK as possible and none of the search facilities have shown a full answer.

As with most VA's now we have the rank structure.At the moment this rank structure is automatic by hours flown.

Now that i have Simpilots excellent EXAMcenter add on i would like to still have auto ranks to a certain level, then the pilot must pass an exam before moving any further up the rank structure.

Is this possible?

Thanks for your patience.

  • Administrators
Posted

I have viewed as many posts containing the word RANK as possible and none of the search facilities have shown a full answer.

As with most VA's now we have the rank structure.At the moment this rank structure is automatic by hours flown.

Now that i have Simpilots excellent EXAMcenter add on i would like to still have auto ranks to a certain level, then the pilot must pass an exam before moving any further up the rank structure.

Is this possible?

Thanks for your patience.

You have to set the ranks to be manual (there's a setting in app.config). Then you can either manually change the rank, or have it done programatically

  • Administrators
Posted

i have it set to manual now. Is there a quick code snippet to set it to auto up to a specific rank?

Something like:

PilotData::changePilotRank($pilotid, $rankid);

Will change their rank

  • 4 weeks later...
  • 2 months later...
Posted

Hello,

I think I have a small problem... I tried to change in the app.config.php Config::Set('RANKS_AUTOCALCULATE', true); to false and it kind of messed up the "View all pilots" page in the admin center. Now all that it shows is the table with no data in it. Do you have any idea what happened or at least what I have to do to make it right?

Marius

  • Administrators
Posted

The two have nothing to do with each other, my guess is you erased, or added, somthing to the config file that is causing the issue.

Posted

I tried to edit it with Dreamwaver and it works. I think there were some characters Notepad didn't accepted or something...

Now the "View All Pilots" page works fine, but I cannot change the ranks although app.config.php has this Config::Set('RANKS_AUTOCALCULATE', true); set to false.

  • Administrators
Posted

It has to be set in local.config.php - the values in there overwrite the ones in app.config. The reason being, local.config is not updated, so your changes are not overwritten

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...