Problem with bountyscanner

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

Moderators: winston, another_commander, Getafix

Post Reply
bob19
Above Average
Above Average
Posts: 30
Joined: Sun Jul 27, 2008 2:12 am

Problem with bountyscanner

Post by bob19 »

Can't figure out how, but it looks as if I've broken it. Was working ok, then nothing.
Reinstalled the oxp still no go.
Noticed the backup script and decided to use it and now up and running.
Reloaded the original script and problem returned.
I have been installing and removing oxps quite a bit and updating this and that, so who knows.
Running 1.71.2 test in windoze xp.

stderr error
2008-09-21 13:57:54.804 oolite.exe[2932] [script.javaScript.exception.1]: AddOns/BountyScanner.oxp/Scripts/BountyScanner.js, line 47.
BckUp Script Lines 46 47
if(player.target.bounty <= 1)
return
Orig Script
this.lasttarget = player.target
if(lasttarget.bounty <= 1)
As I said it was working fine with the original script, now only works using the backup script.
Handy little oxp this so didn't want to lose it.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Problem with bountyscanner

Post by JensAyton »

bob19 wrote:
stderr error
2008-09-21 13:57:54.804 oolite.exe[2932] [script.javaScript.exception.1]: AddOns/BountyScanner.oxp/Scripts/BountyScanner.js, line 47.
There should be more information on the next few lines.
It’s possible that player.target is null, in which case player.target.bounty is undefined. The workaround for this would be:

Code: Select all

if (!player.target || player.target.bounty <= 1)  return;
(But I haven’t looked at the whole script and it may already be doing this.)
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: Problem with bountyscanner

Post by Frame »

bob19 wrote:
Can't figure out how, but it looks as if I've broken it. Was working ok, then nothing.
Reinstalled the oxp still no go.
Noticed the backup script and decided to use it and now up and running.
Reloaded the original script and problem returned.
I have been installing and removing oxps quite a bit and updating this and that, so who knows.
Running 1.71.2 test in windoze xp.

stderr error
2008-09-21 13:57:54.804 oolite.exe[2932] [script.javaScript.exception.1]: AddOns/BountyScanner.oxp/Scripts/BountyScanner.js, line 47.
BckUp Script Lines 46 47
if(player.target.bounty <= 1)
return
Orig Script
this.lasttarget = player.target
if(lasttarget.bounty <= 1)
As I said it was working fine with the original script, now only works using the backup script.
Handy little oxp this so didn't want to lose it.
Reinstall the latest version, and remember to hold down the shift key while starting Oolite...

the script in the latest version and the prior allready does this

Code: Select all

if(!this.Theplayership.target) 
	return	
Bounty Scanner
Number 935
bob19
Above Average
Above Average
Posts: 30
Joined: Sun Jul 27, 2008 2:12 am

Post by bob19 »

Thanks Ahruman, Frame
Ok, seems to be working now (version 3 installed). No probs in the last few hours of gameplay.
Frame wrote:
Reinstall the latest version, and remember to hold down the shift key while starting Oolite...
Can't find the link on the wiki, found it through a search of your posts.

Forgot to mention this
I was in Usoron G2 heading for the constore and saw it was rotating, first time I had seen this. Looked to be rotating at about half station speed.
Arrived in Diti a few moments ago and headed for the constore.
:shock: This one was going at what looked to be twice station speed and anti clockwise at that. Roll control was hard a port. Got in needing a change of underpants.
Post Reply