Page 2 of 2

Posted: Wed Jun 04, 2008 9:22 pm
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...

Posted: Thu Jun 05, 2008 9:07 am
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.

Posted: Thu Jun 05, 2008 11:56 am
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...

Posted: Thu Jun 05, 2008 12:35 pm
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:

Posted: Thu Jun 05, 2008 12:49 pm
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

Posted: Thu Jun 05, 2008 3:14 pm
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?

Posted: Thu Jun 05, 2008 4:02 pm
by TGHC
Go for it matey, you've got some good ideas there.