Fuel Collector Release 0.06
Moderators: winston, another_commander
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
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
Number 935
- Commander McLane
- ---- 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:
Hi, Frame,
stumbled accross this in my logfile:
stumbled accross this in my logfile:
Think it is related to fighting with a buch of pirates and letting them eventually bite the dust. Thought you should know.[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
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...Commander McLane wrote:Hi, Frame,
stumbled accross this in my logfile:Think it is related to fighting with a buch of pirates and letting them eventually bite the dust. Thought you should know.[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
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
Number 935
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
Number 935
Re: ..
Thanks..Lestradae wrote:Hey Frame, good to see you back
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
Number 935
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"
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"
Bounty Scanner
Number 935
Number 935
I seem to be getting an error now since I upgraded to the new version, using WinXP and v1.72:
Anyone else getting this?
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)
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
Looks like a wee bit of a typo to me.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
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: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)
Code: Select all
system.planets[pcounter].position.distanceTo(system.sun)
E-mail: [email protected]
- Commander McLane
- ---- 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:
No, it isn't. 'pllist' stands for 'planet list'. I think the error is solely caused by the problem you explained.Ahruman wrote:Looks like a wee bit of a typo to me.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
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
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.Commander McLane wrote:No, it isn't. 'pllist' stands for 'planet list'. I think the error is solely caused by the problem you explained.
E-mail: [email protected]
- Commander McLane
- ---- 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:
I stand corrected.Ahruman wrote: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.Commander McLane wrote:No, it isn't. 'pllist' stands for 'planet list'. I think the error is solely caused by the problem you explained.
That should teach me to throw around half-thought, snappy comments.
It won't. (I know myself.)
luckly version 0.4
features
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
features
Code: Select all
this.planetlist = new Array();
this.moonlist = new Array();
Gonna do a final check this evening.... and if everything
works out i´ll upload the version 0.4
Bounty Scanner
Number 935
Number 935
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 fromThargoid wrote:I seem to be getting an error now since I upgraded to the new version, using WinXP and v1.72:
Anyone else getting this?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)
Code: Select all
Active script: "Fuel Collector" 0.1
Bounty Scanner
Number 935
Number 935