GRS buoyRepair.oxp

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

Moderators: winston, another_commander

User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: GRS buoyRepair.oxp

Post by Svengali »

v1.02.8 is online.

Changes:
- Strict mode
- No running startUp twice when OXPConfig is used
User avatar
CheeseRedux
---- E L I T E ----
---- E L I T E ----
Posts: 827
Joined: Fri Oct 02, 2009 6:50 pm

Re: GRS buoyRepair.oxp

Post by CheeseRedux »

Svengali wrote:
Strict mode
I must've missed a memo somewhere. What, pray tell, is this "strict mode" you speak of?
"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
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: GRS buoyRepair.oxp

Post by Svengali »

CheeseRedux wrote:
I must've missed a memo somewhere. What, pray tell, is this "strict mode" you speak of?
https://developer.mozilla.org/en/JavaScript/Strict_mode
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: GRS buoyRepair.oxp

Post by TGHC »

And I thought you had to press F2 :wink:
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"
JD
Deadly
Deadly
Posts: 182
Joined: Thu Nov 25, 2010 10:42 pm
Location: London, UK

Re: GRS buoyRepair.oxp

Post by JD »

Svengali wrote:
v1.02.8 is online.
Are you sure? I'm still seeing 1.02.7 at http://wiki.alioth.net/index.php/BuoyRepair.
User avatar
Micha
Commodore
Commodore
Posts: 815
Joined: Tue Sep 02, 2008 2:01 pm
Location: London, UK
Contact:

Re: GRS buoyRepair.oxp

Post by Micha »

There, fixed it for you.
If you'd actually followed the link you'd've seen it was the updated ZIP on the download server. :)
The glass is twice as big as it needs to be.
JD
Deadly
Deadly
Posts: 182
Joined: Thu Nov 25, 2010 10:42 pm
Location: London, UK

Re: GRS buoyRepair.oxp

Post by JD »

Thanks Micha.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: GRS buoyRepair.oxp

Post by Svengali »

JD wrote:
Svengali wrote:
v1.02.8 is online.
Are you sure? I'm still seeing 1.02.7 at http://wiki.alioth.net/index.php/BuoyRepair.
The WIKI was down (or at least not accessible) when we've released the new version.-)

Again, thanks Micha! *makes note: second time...*
TGHC wrote:
And I thought you had to press F2 :wink:
lol - If we'd be able to tweak buoyRepair in Oolites strict mode we'd file a bug report instead of releasing it. But you are absolutely right - I should have been more specific.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: GRS buoyRepair.oxp

Post by Svengali »

buoyRepair1.3 is online.

Changes:
- New mechanism for the external docking of NPCs.
- Overhauled station to get rid of the shader swapping.
- script_info key for Snoopers2.1.1 to enable newsflashes for non-main station.
- script_info key for BGS-A1.3 or BGS-M1.3 and music file added.
- Added two ships from aquatics.oxp as docking ship. Both are too big for a normal dock.

Have a nice one

Eric Walch & Svengali
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: GRS buoyRepair.oxp

Post by Wildeblood »

This looks like a job for the Apostrophe-Nazi!

Code: Select all

{
	"GRS_Viper_Warning" = (
		"Attacking the %I GRS Navigational Beacon is an illegal act!",
		"We received a report you attacked the %I GRS Navigational Beacon."
	);
	"GRS_Welcome" = (
		"GRS wishes you a happy stay at it's facilities.",  <-- NO
		"GRS wishes all visitors a pleasant time.",
		"GRS gives you a warm welcome.",
		"GRS thanks you for your interest in it's facilities.",  <-- NO
		"GRS can always use fresh alloys.",
		"GRS sells high quality computers."
	);
	"GRS_Goodbye" = (
		"GRS thanks you for your stay at it's facilities.",  <-- NO
		"GRS wishes you a nice journey.",
		"GRS sends you a good bye.",
		"GRS thanks you for your interest in it's facilities.",  <-- NO
		"GRS can always use fresh alloys.",
		"GRS sells high quality computers."
	);
}
Thanks for this OXP and its gorgeous, elaborate space station.
In your heart, you know it's flat.
User avatar
Svengali
Commander
Commander
Posts: 2370
Joined: Sat Oct 20, 2007 2:52 pm

Re: GRS buoyRepair.oxp

Post by Svengali »

Wildeblood wrote:
This looks like a job for the Apostrophe-Nazi!
...snip...
Thanks for this OXP and its gorgeous, elaborate space station.
Thanks for both points .-)
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: GRS buoyRepair.oxp

Post by Wildeblood »

Svengali wrote:
buoyRepair1.3 is online.

Changes:
- New mechanism for the external docking of NPCs.
I was watching as an NPC ship - the "grs_guanako" - came in to dock at the side docky thing. It ended in an explosion. So I tried docking there. It ended in game over once I touched the station wall. (Well I expected that anyway.) I don't think you should vaporise your own employees, at least not in public view. I wouldn't work for GRS if that's the way you treat employees.
In your heart, you know it's flat.
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: GRS buoyRepair.oxp

Post by Eric Walch »

Some ships are still a bit to large. The grs_guanako is one of them. Although it physically fits, docking sometimes ends up in an explosion. But it is not that often, so we left the ship size. That is also the reason the first dockings are with regular sized cobras.

Hitting a station, even at very low speed, is almost deadly. Damage is proportional to the mass of the other ship. And because the GRS station has an enormous mass, any impact damage is deadly. The grs_guanako and other big ships blowing up on docking was a problem from the very first version of this oxp. The new docking mechanism does not change that.

Actually means the new docking mechanism that we switched from a very high tech method to a more low tech method. It gave me some pain to remove all that sophisticated code I once added. :P And to be more accurate: there is no new docking method, only a new 'undocking' method.

Before, I had to make a flipped model file with the 'back' on its front. Then to make ships flying backward, the original ship was moved to outer space and temporary replaced with the flipped ship, that flew forward out of the docks. This forced to have flipped copies of all used ships in our oxp.

Since Oolite 1.74 it is possible to just give the ship a backward velocity, out of the dock. So, no need to include extra ship copies in the oxp. That also opened the possibility to include other big ships though a like_ship method without adding any potential copyrighted material of that ships in the oxp itself. That is the reason we now added two ships of aquatics to the list of dockers. I also tried other big ships, but they were all much to big. Anything more than 2 times bigger than a normal docksize has a to high chance of exploding in the docks.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: GRS buoyRepair.oxp

Post by Wildeblood »

Eric Walch wrote:
Some ships are still a bit to large. The grs_guanako is one of them. Although it physically fits, docking sometimes ends up in an explosion. But it is not that often, so we left the ship size.
I've now seen a Guanako attempt to dock three times, and three times it's ended in disaster. That's a 100% failure rate (from an admittedly small sample).

BUT, that's not my reason for posting today, this is:-

Code: Select all

05:22:00.235 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (buoyRepairViper 1.3): Error: Cannot set property target of instance of Ship to invalid value [object Ship].
05:22:00.235 [script.javaScript.exception.ooliteDefinedError]:       ../AddOns/dock, Buoy Repair 1.3.oxp/Scripts/buoyRepairViper.js, line 27.
I've got hundreds of these messages in my log from last night. What does it all mean?
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: GRS buoyRepair.oxp

Post by JensAyton »

Wildeblood wrote:

Code: Select all

05:22:00.235 [script.javaScript.exception.ooliteDefinedError]: ***** JavaScript exception (buoyRepairViper 1.3): Error: Cannot set property target of instance of Ship to invalid value [object Ship].
05:22:00.235 [script.javaScript.exception.ooliteDefinedError]:       ../AddOns/dock, Buoy Repair 1.3.oxp/Scripts/buoyRepairViper.js, line 27.
I've got hundreds of these messages in my log from last night. What does it all mean?
This probably means that the script has a stale stored reference to a ship.
Post Reply