Jump to content

How to reset the phase detail?


Jhony300

Recommended Posts

When a pilot disconnects in flight for some problem or for any reason, your satus is saved in the table phpvms_acarsdata as "Cruise" or another phase he is in the moment.

When the pilot disconnect, I wish phasedetail save in the table as Offline.

This displays wrong phase detail in signature the pilot.

Who can help I am very grateful.

Regards.

Link to comment
Share on other sites

I actually think that you probably need to reduce your Acars live time in your local.config file (which is in the Core folder).

//720 minutes
Config::Set('ACARS_LIVE_TIME', 720);

If you reduce it down to something like 10 or 15 minutes, it will change the pilots code to offline much faster without having to mess with Core files.

Link to comment
Share on other sites

I've changed this function, in my case I use 2 minutes, and works correctly when the pilot disconnects after landing, he disappears from the map and the phase change for Offline.

The problem is when it disconnects at any phase of the flight (Cruise, Descend, etc..) it is saved in the database with the current phase.

Thanks for your reply.

Link to comment
Share on other sites

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