Automatic Fuel Calculation

I am getting the “no aircraft performance data available” on mine. But it works 100% for the main airline. The other 2 airlines under the same site have different codes and scedules etc., but they get the error. Everything pulls from the same sql database, so not sure why this happens, or how to fix it?!

hmm check all your variables and check the names of the aircrafts. maybe there is something wrong because it should always work, no matter how much airlines you have there

Yeah, I did that. It does not seem to like aircraft I add since the original VA was started. I must be missing something outside of your module?! I will keep looking.

check if you have any spaces in your aircraft names. thats not allowed

No, no spaces. The only thing I can think of, sort of, is that, when I added the new aircraft to the sql database, they start at ID#1 obviously for the first one, then when it gets to the newer aircraft, it jumps from ID#111 to ID#148 and again from ID#155 to ID#195. Now, I didn’t think that would matter. I basically left room between the VA’s for future aircraft additions(that’s just my way). But, maybe that is causing odd happennings?!?

hmm no it shouldnt, the script is not accessing this part of the table, but just a short question. could you make a screenshot of your phpvms_aircrafts and a screenshot of how you configured the script? then i may find the problem

First off, my database is not phpvms_aircraft, it is cpc_aircraft(phpvms_ is replaced with cpc_ in all the databases). Keep in mind everything else works great. If I assign a different aircraft ID# to the schedule, then it works fine. It just seems to be the ones associated with a different airline code. All schedules fall under cpc_schedules. That includes 3 airlines (CPC, EPA and WDA). All aircraft fall under cpc_aircraft (includes the same CPC, EPA and WDA aircraft). So it seems the other schedules that have the EPA and WDA airlines have an issue.

hmm i really do not know why.. i never coded something that calls for the airline in this script.. however you have a nice fleet

Thanks. Lots of retro

I will keep trying to figure it out. It is a bit of a mystery.

can you also make me a screenshot of how you configured the fuel.tpl?

Sure, will do when I get home much later tonight. Working right now

What do you want a screenshot of, exactly??? Do you want me to show the whole fuel.tpl?

Here is the error I get:

‘no aircraft performance data available’

Only see just that error here:

elseif($schedule->flighttime >=‘0.00001’)

{

if($result == ‘0’)

{

echo ‘<b>’.‘no aircraft performance data available’.‘</b>’;

maybe your flights do not have a flighttime?

No, they ALL have flight times.

Ok, it is ONLY the B732, on the “EPA” company, that does not show fuel. I missed the HS748 in the fuel.tpl, so that is fine now, but it is that B732 that is weird. But for whatever reason. it shows the fuel details for the B732, except EPA’s?! I have checked the database and it is basically the same details. I am probably just missing something obvious.

Ok, it is ONLY the B732, on the “EPA” company, that does not show fuel. I missed the HS748 in the fuel.tpl, so that is fine now, but it is that B732 that is weird. But for whatever reason. it shows the fuel details for the B732, except EPA’s?! I have checked the database and it is basically the same details. I am probably just missing something obvious.

After I tweaked my aircraft naming, it worked great for me, tyvm

a question.

What unit is used (kg, lb, liter etc.. )???

This is a great addon. Same question as above, how should we enter the initial values, standard or metric???

thanks man, after a 15 minutes of tweeking I go it up and running!

It’s brilliant man thanks!

:D:D

Vincent,

www.cloudvairlines.com

I did some flights and compared the fuel usage to what this add on states, and it was spot on…Great add on!! airmermaid, I don’t think it matters but I used standard.

Thanks Roger,

I will give it a try tomorrow.

Cheers,

Arslan

PS. I like your ICAO code, the team of my hometown

[![post-1967-095407500 1301842453_thumb.png](<fileStore.core_Attachment>/monthly_04_2011/post-1967-095407500%201301842453_thumb.png)](<fileStore.core_Attachment>/monthly_04_2011/post-1967-095407500%201301842453.png)