Is this a bug or is it me!

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
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

Is this a bug or is it me!

Post by TGHC »

I'm running 1.742

I get these 2 lines repeated over 3000 times in both previous and latest logs:-

[script.javaScript.warning.ooliteDefinedError]: ----- JavaScript warning (Fuel Collector 0.06): Ship.hasEquipment("EQ_FRAME_FUEL_COLLECTOR") is deprecated, use ship.equipmentStatus("EQ_FRAME_FUEL_COLLECTOR") == "EQUIPMENT_OK" instead.

[script.javaScript.warning.ooliteDefinedError]: ----- JavaScript warning (Fuel Collector 0.06): Ship.hasEquipment("EQ_FUEL_SCOOPS") is deprecated, use ship.equipmentStatus("EQ_FUEL_SCOOPS") == "EQUIPMENT_OK" instead.
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"
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6683
Joined: Wed Feb 28, 2007 7:54 am

Re: Is this a bug or is it me!

Post by another_commander »

Just warnings. The game takes action and uses the correct methods so there is no actual harm done, but gives notification that the methods used in the script will be no longer supported.
User avatar
CheeseRedux
---- E L I T E ----
---- E L I T E ----
Posts: 827
Joined: Fri Oct 02, 2009 6:50 pm

Re: Is this a bug or is it me!

Post by CheeseRedux »

I tried a quick search for the post where this was explained by someone who knows what they're talking about, but came up empty. But anyway: If you want to rid yourself of all those deprecation warnings, put a logcontrol.plist in your AddOns folder with the following content

Code: Select all

{ 
    script.javaScript.warning.ooliteDefinedError = no; 
}
"Actually this is a common misconception... I do *not* in fact have a lot of time on my hands at all! I just have a very very very very bad sense of priorities."
--Dean C Engelhardt
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: Is this a bug or is it me!

Post by Eric Walch »

CheeseRedux wrote:
I tried a quick search for the post where this was explained by someone who knows what they're talking about, but came up empty. But anyway: If you want to rid yourself of all those deprecation warnings, put a logcontrol.plist in your AddOns folder with the following content

Code: Select all

{ 
    script.javaScript.warning.ooliteDefinedError = no; 
}
Better get rig of it by updating the oxp, as in 1.75 it will just stop working.
User avatar
CheeseRedux
---- E L I T E ----
---- E L I T E ----
Posts: 827
Joined: Fri Oct 02, 2009 6:50 pm

Re: Is this a bug or is it me!

Post by CheeseRedux »

True. But unless I've completely misunderstood the concept, deprecation warnings are really only useful to the OXP makers, since it just warns that it will stop working in the next version. For the regular player, not having the log cluttered with warnings-that-look-like-errors-but-really-isn't should be a Good Thing.
"Actually this is a common misconception... I do *not* in fact have a lot of time on my hands at all! I just have a very very very very bad sense of priorities."
--Dean C Engelhardt
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Is this a bug or is it me!

Post by Smivs »

They told me in advance which of the OXPs I use would need to be updated for v1.75. They are useful. :)
Commander Smivs, the friendliest Gourd this side of Riedquat.
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

Re: Is this a bug or is it me!

Post by TGHC »

Bump

So is it me then, what should I do?
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"
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:

Re: Is this a bug or is it me!

Post by Commander McLane »

TGHC wrote:
Bump

So is it me then, what should I do?
Like another_commander said already: as long as you're using 1.74.2, just ignore them.

If the warnings annoy you, you can de-install the OXP.

Or you just follow the instructions. The warning itself tells you exactly what to do. It's a plain English sentence, complete with punctuation:

"'X' is deprecated, use 'Y' instead."
[script.javaScript.warning.ooliteDefinedError]: ----- JavaScript warning (Fuel Collector 0.06): Ship.hasEquipment("EQ_FRAME_FUEL_COLLECTOR") is deprecated, use ship.equipmentStatus("EQ_FRAME_FUEL_COLLECTOR") == "EQUIPMENT_OK" instead.
Open the script whose name is given in blue,

search for all instances of the string printed in red,

and replace each one of them with the string printed in green.
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

Re: Is this a bug or is it me!

Post by TGHC »

Thanks for the step by step instructions, that's a big help.
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