Dead Men Walking

dMw Gaming => Racing Sims => Sim Gaming => Live for Speed => Topic started by: spoong on February 26, 2009, 05:57:12 PM

Title: Fuel calculator
Post by: spoong on February 26, 2009, 05:57:12 PM
Never have to ask on Vent 2 min before race start again! :)

If you don't have Excel use OpenOffice, it's just as good.
Title: Fuel calculator
Post by: Jamin on February 26, 2009, 07:32:08 PM
I use Bob, then add a bit more.
Title: Fuel calculator
Post by: Lameduck on February 26, 2009, 09:55:05 PM
Quote from: Jamin;265827I use Bob, then add a bit more.

Beaky chastard :sideways:
Title: Fuel calculator
Post by: Seany on February 27, 2009, 01:32:13 AM
Quote from: Jamin;265827I use Bob, then add a bit more.

Classic :roflmao:
Title: Fuel calculator
Post by: delankster on February 27, 2009, 04:51:46 PM
:lmfao:
Title: Fuel calculator
Post by: Deetz on February 27, 2009, 07:48:01 PM
I did use Bob + double check on calculator.

Liking your idea spoong I made this slightly (in my opinion) easier to use version. (I hope you don't mind.)

Cheers.
Title: Fuel calculator
Post by: spoong on February 27, 2009, 08:58:15 PM
:)  Yours is most posh, even converts minutes to seconds.  Mine was made primarily to fit on my PDA screen, which might explain the "unfinished" look.  I'm saying it's an alpha / wip... ;)
Title: Fuel calculator
Post by: Deetz on February 27, 2009, 10:29:37 PM
.......... :D
Title: Fuel calculator
Post by: TeaLeaf on February 28, 2009, 06:16:01 PM
I'd like to complain that this mod is broken.  I used it and ran out of fuel on only the second lap the clockwise M25. :angry:

TL.
Title: Fuel calculator
Post by: delankster on February 28, 2009, 06:20:21 PM
Quote from: TeaLeaf;266199I'd like to complain that this mod is broken.  I used it and ran out of fuel on only the second lap the clockwise M25. :angry:

TL.


:rolleyes:
Title: Fuel calculator
Post by: spoong on February 28, 2009, 08:52:58 PM
Need to debug that.  What's your average laptime round the M25, Tottington to Tottington? :)
Title: Fuel calculator
Post by: TeaLeaf on March 01, 2009, 08:53:07 AM
Usually about 1:08.23.

That's 1 day, 8 hours and 23 minutes, I drive it in the rush hour!

TL.
Title: Fuel calculator
Post by: obsolum on March 01, 2009, 10:46:52 AM
:roflmao:
Title: Fuel calculator
Post by: spoong on March 01, 2009, 03:13:29 PM
OK, that's not a bad time. :)  You'll have to send me your setup.  How much fuel do you consume per lap?
Title: Fuel calculator
Post by: Deetz on March 03, 2009, 12:57:53 PM
:lmfao::roflmao:
Title: Fuel calculator
Post by: obsolum on March 06, 2009, 12:05:37 AM
Simple as it may be, I find myself using Spoong's little spreadsheet for the longer races now. I thought it might be handy to have something similar online, though, to save me the hassle of firing up Openoffice. So I whipped up this equally simple and crude form (http://users.telenet.be/obsolum/fuelcalculator.html). I just used notepad, so no fancy layout or anything! :)
Title: Fuel calculator
Post by: Doorman on March 06, 2009, 12:09:15 AM
Clever, clever, clever. :D Well it is to me anyway. Good job Oliver. :thumbsup2:
Title: Fuel calculator
Post by: OldBloke on March 06, 2009, 09:55:05 AM
Quote from: obsolum;267039Simple as it may be, I find myself using Spoong's little spreadsheet for the longer races now. I thought it might be handy to have something similar online, though, to save me the hassle of firing up Openoffice. So I whipped up this equally simple and crude form (http://users.telenet.be/obsolum/fuelcalculator.html). I just used notepad, so no fancy layout or anything! :)

Nice one. Thanks for putting it up :thumb:

It could do with a small tweak or two if you don't mind me saying :)

The calculation isn't made until the 'Fuel use per lap' input box loses focus so maybe a simple 'Calculate' button would be useful (it doesn't need to actually do anything:) )

The amounts should be rounded up to the next whole number. You can only enter whole numbers into LFS so make the calculator mirror that. It also adds another small safety margin.

Futher development could include a pitstop value. Enter the lap you intend to stop and be given a calculation on starting and refuel figures.
Title: Fuel calculator
Post by: obsolum on March 06, 2009, 11:01:01 AM
Quote from: OldBloke;267062Nice one. Thanks for putting it up :thumb:

It could do with a small tweak or two if you don't mind me saying :)

The calculation isn't made until the 'Fuel use per lap' input box loses focus so maybe a simple 'Calculate' button would be useful (it doesn't need to actually do anything:) )
Actually, calculation is done when any field loses focus. Of course, in order for the calculation to return a valid result it needs a "Fuel use per lap" value. This way you can change the values in any field and the calculated values will change upon TAB-ing out of the field. For example if you want to see what the effect would be on the total amount of fuel if your average lap is a couple seconds faster or slower; you just change the seconds of your laptime and hit TAB, rather than having to click a button.

But you're right, a button would be a nice addition.

Quote from: OldBloke;267062The amounts should be rounded up to the next whole number. You can only enter whole numbers into LFS so make the calculator mirror that. It also adds another small safety margin.
I was thinking about that when lying in bed, yesterday evening :)
Quote from: OldBloke;267062Futher development could include a pitstop value. Enter the lap you intend to stop and be given a calculation on starting and refuel figures.
That's a good idea. I'll have to think on how to best go about doing that. My Javascript skills are a bit rusty :g:

I just made it late yesterday night (past midnight), hence the rudimentary looks and functionality, but I'll work on improving it :) Gives me something to do.

Other comments/suggestions are welcome.
Title: Fuel calculator
Post by: obsolum on March 06, 2009, 05:28:19 PM
Alrighty, improved it a little to look a bit better and to round the calculated values properly. I've got some ideas to add options for pitstops as Oldie suggested. I'll work on those next, along with some other tweaks (eg. making it so that you cannot manually edit the calculated values etc). I'm enjoying this :)

Clickety (http://users.telenet.be/obsolum/fuelcalculator.html)

I've already bookmarked it myself :D
Title: Fuel calculator
Post by: OldBloke on March 06, 2009, 05:50:03 PM
Quote from: obsolum;267109Alrighty, improved it a little to look a bit better and to round the calculated values properly. I've got some ideas to add options for pitstops as Oldie suggested. I'll work on those next, along with some other tweaks (eg. making it so that you cannot manually edit the calculated values etc). I'm enjoying this :)

Clickety (http://users.telenet.be/obsolum/fuelcalculator.html)

I've already bookmarked it myself :D

Looking good :D
Title: Fuel calculator
Post by: Doorman on March 06, 2009, 06:30:16 PM
Cleverer and cleverer. :D
Title: Fuel calculator
Post by: spoong on March 08, 2009, 08:59:42 AM
Nice work matey. :)  Oldie / Doors, can you sticky this or make it appear in the same place as the other LFS links?
Title: Fuel calculator
Post by: OldBloke on March 08, 2009, 09:46:33 AM
Quote from: spoong;267326... Oldie / Doors, can you sticky this or make it appear in the same place as the other LFS links?

Tis done :)
Title: Fuel calculator
Post by: Doorman on March 08, 2009, 12:20:46 PM
Quote from: OldBloke;267335Tis done :)
Thanks OB :)
Title: Fuel calculator
Post by: spoong on March 08, 2009, 03:09:31 PM
ta indeed.
Title: Fuel calculator
Post by: obsolum on March 08, 2009, 05:53:53 PM
Updated it. It now includes a second form in case you don't take all of the needed fuel on board at the start and you want to know when you have to pit and how much fuel to take on board etc... I reckon it's pretty self explanatory but I added some comments to it, just in case.

Note: the third option of the Pit Strategy form isn't functional yet. I'm not sure how useful that is anyway :g: Also, it could probably do with better error control and whatnot, but if you use it as it's meant to be used it should work flawlessly :)

Again, suggestions always welcome.

EDIT: I haven't tested it with Firefox so I don't know how it looks/works there. I've noticed that Chrome doesn't align the forms in the center, so it's possible it's the same with Firefox.
Title: Fuel calculator
Post by: Doorman on March 08, 2009, 07:00:11 PM
:blink: Where will this cleverness end?! Oh, it displays fine in FF. although I didn't input anything it looks as though it'll work.