Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 06-20-2013, 06:01 AM
HR_Grainovich HR_Grainovich is offline
Approved Member
 
Join Date: Nov 2011
Posts: 14
Question Question about fuel consumed in fly.

Hi comrades!!

I have a questión about the CloD's API, I would appreciate any help, please

It's about the fuel amount in a plane, when you create a aircraft you can know the total amount of fuel with:

aircraft.getParameter(-1, part.ParameterTypes.S_FuelReserve);

This code return all kilos of fuel in the all tanks of the plane (it's supposed...), but... when you are flying along the mission and execute the same code, the amount is equals!

May be... the program not discount the fuel consumption?? , it's impossible to know the fuel consumption with this function?

Thank you very much for your help!
Reply With Quote
  #2  
Old 06-21-2013, 09:11 AM
HR_Grainovich HR_Grainovich is offline
Approved Member
 
Join Date: Nov 2011
Posts: 14
Default

May be, this is not the correct forum... I should post this in CoD Multiplayer?
Reply With Quote
  #3  
Old 06-21-2013, 09:53 AM
bolox bolox is offline
Approved Member
 
Join Date: May 2008
Posts: 351
Default

This probably is the right place- it's just very slow here now, and very few ever bother to look in the fmb section.

I'm not an expert on the C# coding but one thing that strikes me is you are using the SYSTEM readings, have you tried the instrument reading?
[Inst: Fuel Reserve]
/// <para>Returns fuel level indicator reading.</para>
/// <para>Generic subtype (-1) shows combined reading in all tanks / controlled by selector switch;</para>
/// <para>Other subtypes point to fuel tank number in machine's list.</para>
/// </summary>
I_FuelReserve,

I've not played with fuel levels to work out consumption, but the Instrument values seem to work- with the possible exception of the compass which is reported to be non functional.


If this doesn't help it might be worth asking over at ATAG forums
http://theairtacticalassaultgroup.com/forum/forum.php
which is pretty much the place to go CoD wise these days
Reply With Quote
  #4  
Old 06-21-2013, 07:03 PM
HR_Grainovich HR_Grainovich is offline
Approved Member
 
Join Date: Nov 2011
Posts: 14
Default

Hi bolox!!

I appreciate so much your help!

You are right, but I_FuelReserve only works in machines clients-server, not in dedicated server, for some reason.... no I_parameter works in dedicated server

I goint to search in TF forum!! really, thanks for your help!!
Reply With Quote
  #5  
Old 06-21-2013, 07:45 PM
bolox bolox is offline
Approved Member
 
Join Date: May 2008
Posts: 351
Default

Quote:
no I_parameter works in dedicated server
ah!, I have no knowledge of MP, but I'm pretty sure this is to prevent any possibility of cheating online.
I would recommend mentioning the dedi server part, and perhaps a full description of exactly what you are trying to acheive, 'little' details like this can change what/how things are possible
Reply With Quote
  #6  
Old 06-22-2013, 06:55 AM
HR_Grainovich HR_Grainovich is offline
Approved Member
 
Join Date: Nov 2011
Posts: 14
Default

Thanks Bolox
Reply With Quote
  #7  
Old 04-11-2015, 06:08 PM
gihugo1 gihugo1 is offline
Registered Member
 
Join Date: Apr 2015
Location: United Kingdom
Posts: 2
Question CloD's AP

Hey HR_Grainovich , is to prevent any possibility of cheating online ? Or what did u find out? Am having trouble with my CloD's AP.





http://ninjavsvitamix.com/
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:38 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.