Script warnings - DIY?
Moderators: winston, another_commander
- goran
- ---- E L I T E ----
- Posts: 294
- Joined: Sat Feb 23, 2008 12:32 am
- Location: Zagreb, Croatia
- Contact:
Script warnings - DIY?
I finally got debug.oxp to work and noticed that some warnings keep popping up in JS console.
I know that warnings about obsolete or depreciated names or methods are taken care of by the game but I choose to change scripts myself and replace names with ones suggested in warnings.
As have no knowledge of JS or oxp-ing, I wonder is that a good thing to do or there is some bad consequences that I'm not aware of?
p.s. When "Show console on warnings" is checked and game is in full screen, game break and stutter on every warning and console is not shown. Only my intuition helped me to press apple-F...
I know that warnings about obsolete or depreciated names or methods are taken care of by the game but I choose to change scripts myself and replace names with ones suggested in warnings.
As have no knowledge of JS or oxp-ing, I wonder is that a good thing to do or there is some bad consequences that I'm not aware of?
p.s. When "Show console on warnings" is checked and game is in full screen, game break and stutter on every warning and console is not shown. Only my intuition helped me to press apple-F...
- 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:
Re: Script warnings - DIY?
The only bad consequence would be that your personal copy of all of the changed OXPs is now no longer identical to the download version. Which is not particularly bad, as long as you are aware of the fact, and don't assume that everybody else has fixed their personal copy as well.gorans wrote:As have no knowledge of JS or oxp-ing, I wander is that a good thing to do or there is some bad consequences that I'm not aware of?
By the way: Apart from fixing the warnings in your own console, it would also be a nice idea to alert the respective OXP authors to the problems you encounter with their OXPs.
I would always assume that if you intend to use the console more extensively you would automatically use Oolite in windowed mode. Personally I have my game window on the right hand side of my monitor, and the console window to its left. So I see everything going on in the console with the blink of an eye.p.s. When "Show console on warnings" is checked and game is in full screen, game break and stutter on every warning and console is not shown. Only my intuition helped me to press apple-F...
- goran
- ---- E L I T E ----
- Posts: 294
- Joined: Sat Feb 23, 2008 12:32 am
- Location: Zagreb, Croatia
- Contact:
Re: Script warnings - DIY?
I fixed Welcome Mat, but it's version 1.02 (as I understand, newer versions require targeting the buoy to get information) and not the latest one, so I didn't report it to Thargoid.Commander McLane wrote:By the way: Apart from fixing the warnings in your own console, it would also be a nice idea to alert the respective OXP authors to the problems you encounter with their OXPs.
The other one is Bounty Scanner 1.04, it's the latest version so: FRAAAAAMEEEEEEEE
Sometimes I have to switch to full screen because my iMac g5 can manage a few FPS more then, and in 10-20 FPS range it can make a playable/non-playable difference. Those navy reserve battles can be pretty big, and I like shaders (even the simple ones....).Commander McLane wrote:I would always assume that if you intend to use the console more extensively you would automatically use Oolite in windowed mode. Personally I have my game window on the right hand side of my monitor, and the console window to its left. So I see everything going on in the console with the blink of an eye.
Re: Script warnings - DIY?
The current version has an optional piece of equipment. If you purchase that it works as your current older version does. If not then you have to buoy target, as you mention.gorans wrote:I fixed Welcome Mat, but it's version 1.02 (as I understand, newer versions require targeting the buoy to get information) and not the latest one, so I didn't report it to Thargoid.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
- goran
- ---- E L I T E ----
- Posts: 294
- Joined: Sat Feb 23, 2008 12:32 am
- Location: Zagreb, Croatia
- Contact:
OK. There is the same warning in latest welcome.oxp:
There is also the following warning:
and another one:
And one exception:
Code: Select all
Warning: system.goingNova is deprecated, use system.sun.isGoingNova instead.
Active script: "Welcome Information Script" 0.6
Code: Select all
Warning (strict mode): reference to undefined property this.DerelictCheckTimer
Active script: "Fuel Collector" 0.06
frame_fuel_collector.js, line 764:
log("this.DerelictCheckTimer is"+this.DerelictCheckTimer)
Code: Select all
Warning: Invalid value type for this property. Value not set.
Active script: "behemoth_fighter" 1.00
behemoth-fighter.js, line 43:
this.ship.target = this.attacker
Code: Select all
Exception: TypeError: attacker has no properties
Active script: "targetAutolock" 1.0
script.js, line 9:
if(missionVariables.targetAutolock == "TRUE" && player.ship.hasEquipment("EQ_SCANNER_SHOW_MISSILE_TARGET") && player.ship.target == null && !attacker.isCloaked)
The Welcome Mat one is just a depreciation, not a major issue (the OXP will still work fine at the moment). I was going to cover them all when I did the work for Oolite 1.73 when it was released. But I've made an update for this early (as there isn't much in 1.73 that should affect this OXP).
Target autolock is something similar, it's a minor glitch in the scripting if the target gets lost during script processing. I'll tweak that, again it's a minor change.
I'll issue the updates tonight if I get chance.
Target autolock is something similar, it's a minor glitch in the scripting if the target gets lost during script processing. I'll tweak that, again it's a minor change.
I'll issue the updates tonight if I get chance.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
Where they are depreciation warnings like that, yes make the change yes. The others are slightly more involved (for example the target autolock one needs
amended slightly to
But certainly alerts (either by PM or here) are welcome, at least by me.
Code: Select all
if(missionVariables.targetAutolock == "TRUE" && player.ship.hasEquipment("EQ_SCANNER_SHOW_MISSILE_TARGET") && player.ship.target == null && !attacker.isCloaked)
Code: Select all
if(missionVariables.targetAutolock == "TRUE" && player.ship.hasEquipment("EQ_SCANNER_SHOW_MISSILE_TARGET") && player.ship.target == null && attacker && !attacker.isCloaked)
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
Re: Script warnings - DIY?
oh yeah that really tells me alot...gorans wrote:
The other one is Bounty Scanner 1.04, it's the latest version so: FRAAAAAMEEEEEEEE
alert is done via PM not large letters
I need more information..
version of Oolite
type of error
In case you are running trunk or known as 1.73... I really cannot be start to bother about 1.73 problems as problems can arise from svn version to svn version. When there is an official release... then ok..
Regarding the fuel collector, I cannot replicate The error..
Regarding the Bounty scanner as i wrote above, i need more info..
writing I found a bug is a bit illusive...
Edit 2:
To make it clear, I'm not currently aware of any errors of either the fuel collector or the Bounty Scanner.. I get no errors running the latest SVn version or Oolite 1.72.2
Bounty Scanner
Number 935
Number 935
I've seen that fuel collector error occasionally too. It normally comes when there is an object around which your script is thinking of as a derelict, but it isn't one.
Offhand I can't be more specific on the properties of said object, I just know a few of the ones I've spawned in OXPs have flagged that error up. I'll keep an eye out for it and let you know exact circumstances.
Offhand I can't be more specific on the properties of said object, I just know a few of the ones I've spawned in OXPs have flagged that error up. I'll keep an eye out for it and let you know exact circumstances.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
If you've seen something notifying the author(s) doesn't hurt. It happens pretty easy to overlook something. And a small reminder to use the verifier does not hurt too .-)gorans wrote:Is there a point of posting such warnings/exceptions/errors here? I'm pretty sure that oxp authors are aware of them.
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
And in some times it can happen the errors show only in combination with something else the author is not even aware of.Svengali wrote:If you've seen something notifying the author(s) doesn't hurt. It happens pretty easy to overlook something. And a small reminder to use the verifier does not hurt too .-)gorans wrote:Is there a point of posting such warnings/exceptions/errors here? I'm pretty sure that oxp authors are aware of them.
Specially things happening in witchspace or q-bomb kills are often missed in testing.
UPS-Courier & DeepSpacePirates & others at the box and some older versions
Welcome Mat and Target Autolock are now updated and available from my box.net account via the links below.
And thanks for the heads-up.
And thanks for the heads-up.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
- goran
- ---- E L I T E ----
- Posts: 294
- Joined: Sat Feb 23, 2008 12:32 am
- Location: Zagreb, Croatia
- Contact:
Re: Script warnings - DIY?
Large letters are (again) me trying to be funny.Frame wrote:oh yeah that really tells me alot...gorans wrote:
The other one is Bounty Scanner 1.04, it's the latest version so: FRAAAAAMEEEEEEEE
alert is done via PM not large letters
<snip>
To make it clear, I'm not currently aware of any errors of either the fuel collector or the Bounty Scanner.. I get no errors running the latest SVn version or Oolite 1.72.2
Anyhow, I found no real bug, just some warnings, that's why I didn't make proper bug report or something.
In BountyScanner, there is a warning for shipDisplayName, solved with displayName, like this.lasttarget.shipDisplayName -> this.lasttarget.displayName. Latest trunk build.
Thanks
fixed...
updated it, same link as before... do not care about the status line showing 1.04,
its version 1.06 now. tested with svn 2295
Looking into the fuel collector
Cheers Frame...
fixed...
updated it, same link as before... do not care about the status line showing 1.04,
its version 1.06 now. tested with svn 2295
Looking into the fuel collector
Cheers Frame...
Bounty Scanner
Number 935
Number 935