Quirium fuel tankers

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

User avatar
Frame
---- E L I T E ----
---- E L I T E ----
Posts: 1477
Joined: Fri Mar 30, 2007 8:32 am
Location: Witchspace

Post by Frame »

Ahruman wrote:
Frame wrote:
The ship will run out of fuel since i believe its hardcoded that a ship can only have 7.0 ly of fuel onboard(im pretty sure i recall something will break if you give it more).
Not at all. It’s just impossible to jump further than 7 ly in one go. (Also, you can use a JavaScript timer to top up the fuel tanks continuously.) However I’m not aware of a way to force the AI to travel on afterburners.
Well i discovered while you can shipdata.plist the fuel to be higher than 7
BUT you can´t add more fuel than 7 ly, even if its tank falls below 7 ly, it will be capped at 7, seems there is a special check somewhere when fuel is added in the code.

Which was a pain,since that was requirement of something i´m writing.. ;-)
but found a way to work around it...
Bounty Scanner
Number 935
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Frame wrote:
BUT you can´t add more fuel than 7 ly, even if its tank falls below 7 ly, it will be capped at 7, seems there is a special check somewhere when fuel is added in the code.
Like the one documented in the wiki?
wiki wrote:
awardFuel: <amount>
// The amount can be positive or negative, expressed in LY of range
// the fuel level is adjusted to a maximum of 7.0LY and minimum of 0.0.
User avatar
Frame
---- E L I T E ----
---- E L I T E ----
Posts: 1477
Joined: Fri Mar 30, 2007 8:32 am
Location: Witchspace

Post by Frame »

Commander McLane wrote:
Frame wrote:
BUT you can´t add more fuel than 7 ly, even if its tank falls below 7 ly, it will be capped at 7, seems there is a special check somewhere when fuel is added in the code.
Like the one documented in the wiki?
wiki wrote:
awardFuel: <amount>
// The amount can be positive or negative, expressed in LY of range
// the fuel level is adjusted to a maximum of 7.0LY and minimum of 0.0.
Thing is im not using the awardfuel method..

i´m using

Code: Select all

ship.fuel += Value
in a javascript

anyway the fuel collector is online and working, just refining bits atm...

BTW Commander McLane, can DTP license your Fuel Scooping Technology, i got some ideas... for how it should work...
Bounty Scanner
Number 935
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Frame wrote:
Thing is im not using the awardfuel method..

i´m using

Code: Select all

ship.fuel += Value
in a javascript
I would guess that the underlying program routine is the same, whether you're saying it in legacy scripting or in JS.
Frame wrote:
BTW Commander McLane, can DTP license your Fuel Scooping Technology, i got some ideas... for how it should work...
You're welcome, provided DTP and MIT can agree on the license fees, of course. :wink:
User avatar
Frame
---- E L I T E ----
---- E L I T E ----
Posts: 1477
Joined: Fri Mar 30, 2007 8:32 am
Location: Witchspace

Post by Frame »

Commander McLane wrote:
Frame wrote:
BTW Commander McLane, can DTP license your Fuel Scooping Technology, i got some ideas... for how it should work...
You're welcome, provided DTP and MIT can agree on the license fees, of course. :wink:
Ofcourse, i´ll send my laywer to your laywer, and beers on me.. :-D
Bounty Scanner
Number 935
User avatar
Amen Brick
Deadly
Deadly
Posts: 187
Joined: Sat May 10, 2008 5:22 pm
Location: Bolton!

Post by Amen Brick »

Great minds...

I was just about to come on and see if anyone had done a tanker oxp, because I wanted that to be my first working oxp.

Oh well. Back to the Drawing board. :D

I wonder if this noted oxp has what I was going to ask about, namely a 'You crazy fool, what are you doing message?", a large number of escorts and the chance that blowing one up creates an E/Q Bomb sized explosion?
User avatar
TGHC
---- E L I T E ----
---- E L I T E ----
Posts: 2157
Joined: Mon Jan 31, 2005 4:16 pm
Location: Berkshire, UK

Post by TGHC »

Go for it matey, you've got some good ideas there.
The Grey Haired Commander has spoken!
OK so I'm a PC user - "you know whats scary? Out of billions of sperm I was the fastest"
Post Reply