Snoopers

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

Moderators: winston, another_commander

Post Reply
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

JazHaz wrote:
Svengali wrote:
The update is only scripting related and fixes missing identifiers in the lookuptable (snoopers.js) and adds a missing check for 'SHADERS_NOT_SUPPORTED'.
Does Snoopers use Shaders then? What for?
Fabulous animated backgrounds in the mission screens!
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Post by Svengali »

DaddyHoggy wrote:
JazHaz wrote:
Svengali wrote:
The update is only scripting related and fixes missing identifiers in the lookuptable (snoopers.js) and adds a missing check for 'SHADERS_NOT_SUPPORTED'.
Does Snoopers use Shaders then? What for?
Fabulous animated backgrounds in the mission screens!
Brightness control .-) It was added because between v1.72 and v1.73 the lightning situation changed and we needed a mechanism to set it for the logos. The mechanism is still there and someday we will polish the whole thing a bit with the new Oolite-features.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Post by Svengali »

v2.0.2 and v1.0.2 are online.

Please note that 1.x versions are discontinued and it's only a fix for ATI's.

Changes (for v2.0.2):
- Fixes for ATI cards
- Decreased time between newsflashes, based on inserted news
- Overhauled CRC storage
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Post by DaddyHoggy »

Just passing through so to quickly answer your PM - yes I have started on G2 news, but I'd have to write an essay on how crazy RL(tm) is at the moment!

Stay tuned... (fnarr, fnarr) :roll:
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Post by JazHaz »

Has anyone tested the 2.0.2 version with the new 1.74?
JazHaz

Gimi wrote:
drew wrote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!
User avatar
Palmski
Dangerous
Dangerous
Posts: 68
Joined: Fri Apr 09, 2010 8:18 am

Post by Palmski »

It's installed but I didn't get any newsflashes when playing last night so hard to tell if there's a problem or not :wink:
User avatar
Falconeer
Competent
Competent
Posts: 41
Joined: Tue Jun 01, 2010 5:07 pm
Location: UK

Post by Falconeer »

Hi, I am on 1.74 (Snoopers2.0.2) and got a newsflash. Everything looked fine, I'll see if any more appear :D
User avatar
Zieman
---- E L I T E ----
---- E L I T E ----
Posts: 680
Joined: Tue Sep 01, 2009 11:55 pm
Location: in maZe

Post by Zieman »

1.74 and Snoopers 2.0.2 (along with Bloomberg Markets 2.0) gives me this:

Code: Select all

[script.javaScript.exception.notFunction]: ***** JavaScript exception (snoopers 2.0.2): TypeError: missionVariables.snoopers_CRCNews.split is not a function
[script.javaScript.exception.notFunction]:       ../AddOns/Snoopers2.0.2.oxp/Scripts/snoopers.js, line 95.
[snoopers]: snoopers: Rejected message from:null with Errorcode:Required properties not found (ID and Message)
[snoopers]: snoopers: Rejected message from:null with Errorcode:Required properties not found (ID and Message)
[snoopers]: snoopers: Rejected message from:null with Errorcode:Required properties not found (ID and Message)
[snoopers]: snoopers: Rejected message from:null with Errorcode:Required properties not found (ID and Message)
[snoopers]: snoopers: Rejected message from:null with Errorcode:Required properties not found (ID and Message)
...and keep it under lightspeed!

Friendliest Meteor Police that side of Riedquat

[EliteWiki] Far Arm ships
[EliteWiki] Z-ships
[EliteWiki] Baakili Far Trader
[EliteWiki] Tin of SPAM
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Post by Svengali »

Muchas gracias Zieman.

Haven't checked anything after 2.0.2 release anymore (and no other oxp stuff), because my machine didn't liked trunk after r3248 and I've concentrated on tweaking my system. It's still not completely sorted and seems to be related to the FSB clock in relation to the CPU P-states (dynamic switching, no throttling), but after some more tweaking it runs again a lot better.

The prob is that .split() is working different for numeric values in mission variables.

Code: Select all

missionVariables.A = "Hello"; this.b = missionVariables.A.split(" "); === working
missionVariables.A = "1199"; this.b = missionVariables.A.split(" "); === error
Haven't seen this error (maybe overlooked) when 2.x was released - will add a regexp to check if divider is there or not (even if it's slow). Funny. But the good thing is that the other changes will be in the next version too. If you don't want to wait until the next version, replace snoopers.js line 95 with the following code:

Code: Select all

	if(missionVariables.snoopers_CRCNews){
		if(String(missionVariables.snoopers_CRCNews).search(/[|]/)!=-1) this.CRCNews = missionVariables.snoopers_CRCNews.split('|');
		else this.CRCNews[0] = missionVariables.snoopers_CRCNews;
	}
And to make it complete.
SE-main-script.js points to a not existing key SE_market_information. Change line 100 to

Code: Select all

mission.setInstructionsKey("SE_sp_market_information")
Edit: Will give Ramirez a pm.
User avatar
JazHaz
---- E L I T E ----
---- E L I T E ----
Posts: 2991
Joined: Tue Sep 22, 2009 11:07 am
Location: Enfield, Middlesex
Contact:

Post by JazHaz »

Svengali wrote:
If you don't want to wait until the next version, replace snoopers.js line 95 with the following code:

Code: Select all

	if(missionVariables.snoopers_CRCNews){
		if(String(missionVariables.snoopers_CRCNews).search(/[|]/)!=-1) this.CRCNews = missionVariables.snoopers_CRCNews.split('|');
		else this.CRCNews[0] = missionVariables.snoopers_CRCNews;
	}
And to make it complete.
SE-main-script.js points to a not existing key SE_market_information. Change line 100 to

Code: Select all

mission.setInstructionsKey("SE_sp_market_information")
Edit: Will give Ramirez a pm.
I can make the first change fine, but the second seems to be an if statement and doesn't make sense?!
JazHaz

Gimi wrote:
drew wrote:
£4,500 though! :shock: <Faints>
Cheers,
Drew.
Maybe you could start a Kickstarter Campaign to found your £4500 pledge. 8)
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!
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 »

Svengali wrote:
The prob is that .split() is working different for numeric values in mission variables.
That’s because numerical mission variables are always returned as numbers, not strings.

For legacy-compatibility reasons, mission variables must be stored as strings internally. The options are:
  1. Convert numbers to strings on assignment, but always retrieve strings.
  2. Convert numbers to strings on assignment, and convert strings that are valid numbers to numbers when retrieving.
  3. Require all mission variables to be converted to strings by the script.
All of these options have obnoxious effects in some cases. I believe option 2 is least bad. In any case, it is now entrenched.

To check the type of a mission variable, use: typeof missionVariables.foo === "number" (or "string" as appropriate). JavaScript technicality: in either case, the value will be a primitive, not a wrapper.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Post by Svengali »

:°) Thanks Ahruman.

@JazHaz: Are you really looking at the right script?
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Post by Svengali »

Anyway - Snoopers 2.0.3 is online and Ramirez said BlOomberg will follow soon.

Changes:
- Changed mixture of injected and internal message to 70/30
- Fixed wrong type for positions for injected models when reloaded game has stored them.
- Fixed setUp error with stored CRC.
User avatar
Zieman
---- E L I T E ----
---- E L I T E ----
Posts: 680
Joined: Tue Sep 01, 2009 11:55 pm
Location: in maZe

Post by Zieman »

Wow, that was quick!

Thanks. :)
...and keep it under lightspeed!

Friendliest Meteor Police that side of Riedquat

[EliteWiki] Far Arm ships
[EliteWiki] Z-ships
[EliteWiki] Baakili Far Trader
[EliteWiki] Tin of SPAM
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Post by Svengali »

v2.0.4 is online.

Changes:
- Faster.
Post Reply