Fuel Collector Release 0.06

Discussion and information relevant to creating special missions, new ships, skins etc.

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 »

new version

0.03

http://wiki.alioth.net/images/c/c1/Fuel ... .03oxp.zip

fixed a major bug i introduced with the planet/moon naming
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 »

Hi, Frame,

stumbled accross this in my logfile:
[Fuel Collector]: WARNING!!! this.delayedmessage: Timer start before other is expired
[Fuel Collector]: WARNING!!! this.delayedmessage: Timer start before other is expired
[Fuel Collector]: WARNING!!! this.delayedmessage: Timer start before other is expired
[Fuel Collector]: WARNING!!! this.delayedmessage: Timer start before other is expired
[Fuel Collector]: WARNING!!! this.delayedmessage: Timer start before other is expired
Think it is related to fighting with a buch of pirates and letting them eventually bite the dust. Thought you should know.
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:
Hi, Frame,

stumbled accross this in my logfile:
[Fuel Collector]: WARNING!!! this.delayedmessage: Timer start before other is expired
[Fuel Collector]: WARNING!!! this.delayedmessage: Timer start before other is expired
[Fuel Collector]: WARNING!!! this.delayedmessage: Timer start before other is expired
[Fuel Collector]: WARNING!!! this.delayedmessage: Timer start before other is expired
[Fuel Collector]: WARNING!!! this.delayedmessage: Timer start before other is expired
Think it is related to fighting with a buch of pirates and letting them eventually bite the dust. Thought you should know.
oh yeah, that, i was worried that starting another timer with the same name would cause some sort of error.. so i threw in that catch... gotta rem out the log for that...

player will only get the notice of how much fuel he got for some moments after the first ship he destroyes... and for that very ship... but just thought of a way to add the fuel gatherd to a single value, and make to fuel notice show the combined fuel scooped..

thanks for the report...

Thanks...
Bounty Scanner
Number 935
User avatar
FSOneblin
---- E L I T E ----
---- E L I T E ----
Posts: 460
Joined: Tue Oct 30, 2007 12:15 am
Location: Yes, That is True

Post by FSOneblin »

Can I find an updated version for 1.72? I'm getting some odd messages when collecting fuel after blowing up ships. (like Fuel: 9.1212323454).

FSOneblin
Don't panic

Now an "adult!"
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 »

FSOneblin wrote:
Can I find an updated version for 1.72? I'm getting some odd messages when collecting fuel after blowing up ships. (like Fuel: 9.1212323454).

FSOneblin

hmm nope... ;-)..

Seems the 7 ly restriction in regard to how much fuel the player can carry has been lifted... gotta test that, will edit this in a moment...

Edit nope, the restriction still apply...

This was overdue for an update anyway...

Edit 2:

Seems you are blowing up something with a large amount of spawned fuel, like a fuel tanker... your fuel scoop will scoop between 1.5% and roughly 30 % of the victims fuel reserve...

At max if the victim is carrying 7 LY of fuel, You can be awarded about 2.1 ly of fuel.. pr kill...






working on it..
Last edited by Frame on Fri Nov 28, 2008 3:17 pm, edited 1 time in total.
Bounty Scanner
Number 935
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

..

Post by Lestradae »

Hey Frame, good to see you back :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

Re: ..

Post by Frame »

Lestradae wrote:
Hey Frame, good to see you back :wink:
Thanks.. :D

Got Version 0.04 down, a little change... planet vicinity does not affect usage in Oolite 1.72...

But still works as usual in 1.71 and 1.71.2

this change is due to a current bug in Oolite... It would be to costly to check for the vicinity to all planets in 1.72, where as 1.71.2 does this for you, and issues you a nice script trigger...

If everything checks out after my next run, i´ll upload 0.04 tommorow..
Bounty Scanner
Number 935
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 »

forgot: of course one of my first spawns by pure chance with the role pirate... after starting to test the fuel collector was my super "baby".. It slaughterd me...

its part of the OXP i plan to release in a years time....
here is some pics of it, in game... No shaders, and allready its pretty :-), but they dont reveal to much yet... since it is of the "wth is that type" ;-)

Image
Image
Image
Bounty Scanner
Number 935
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

I seem to be getting an error now since I upgraded to the new version, using WinXP and v1.72:

Code: Select all

Warning (strict mode): reference to undefined property this.pllist
    Active script: "Fuel Collector" 0.1
    frame_fuel_collector.js, line 100:
    		this.pllist[pcounter] = system.planets[pcounter].distanceTo(system.sun)

Exception: TypeError: system.planets[pcounter].distanceTo is not a function
    Active script: "Fuel Collector" 0.1
    frame_fuel_collector.js, line 100:
    		this.pllist[pcounter] = system.planets[pcounter].distanceTo(system.sun)
Anyone else getting this?
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Thargoid wrote:
I seem to be getting an error now since I upgraded to the new version, using WinXP and v1.72:

Code: Select all

Warning (strict mode): reference to undefined property this.pllist
Looks like a wee bit of a typo to me.
Thargoid wrote:

Code: Select all

Exception: TypeError: system.planets[pcounter].distanceTo is not a function
    Active script: "Fuel Collector" 0.1
    frame_fuel_collector.js, line 100:
    		this.pllist[pcounter] = system.planets[pcounter].distanceTo(system.sun)
This is a logic error: while functions that take a vector can be given an entity instead as a convenience, you can’t call vector methods on an entity directly. In other words, that should be:

Code: Select all

system.planets[pcounter].position.distanceTo(system.sun)
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 »

Ahruman wrote:
Thargoid wrote:
I seem to be getting an error now since I upgraded to the new version, using WinXP and v1.72:

Code: Select all

Warning (strict mode): reference to undefined property this.pllist
Looks like a wee bit of a typo to me.
No, it isn't. 'pllist' stands for 'planet list'. I think the error is solely caused by the problem you explained.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Commander McLane wrote:
No, it isn't. 'pllist' stands for 'planet list'. I think the error is solely caused by the problem you explained.
Well, it isn’t. :-) Regardless of whether it’s correctly spelled, the first error happens because this.pllist has not been created – as it’s an array, it should be initialized with this.pliist = []; before any use.
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 »

Ahruman wrote:
Commander McLane wrote:
No, it isn't. 'pllist' stands for 'planet list'. I think the error is solely caused by the problem you explained.
Well, it isn’t. :-) Regardless of whether it’s correctly spelled, the first error happens because this.pllist has not been created – as it’s an array, it should be initialized with this.pliist = []; before any use.
I stand corrected. :)

That should teach me to throw around half-thought, snappy comments. :?

It won't. (I know myself.) :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 »

luckly version 0.4

features

Code: Select all

this.planetlist = new Array();
this.moonlist = new Array();
I can´t even remember the old code... anymore... but not that it matters

Gonna do a final check this evening.... and if everything
works out i´ll upload the version 0.4
Bounty Scanner
Number 935
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 »

Thargoid wrote:
I seem to be getting an error now since I upgraded to the new version, using WinXP and v1.72:

Code: Select all

Warning (strict mode): reference to undefined property this.pllist
    Active script: "Fuel Collector" 0.1
    frame_fuel_collector.js, line 100:
    		this.pllist[pcounter] = system.planets[pcounter].distanceTo(system.sun)

Exception: TypeError: system.planets[pcounter].distanceTo is not a function
    Active script: "Fuel Collector" 0.1
    frame_fuel_collector.js, line 100:
    		this.pllist[pcounter] = system.planets[pcounter].distanceTo(system.sun)
Anyone else getting this?
Btw why are you using Version 0.1, when 0.3 is released ?, i know i misspelled it 0.03, but i can tell its an old version you are using from

Code: Select all

    Active script: "Fuel Collector" 0.1
Bounty Scanner
Number 935
Post Reply