Page 3 of 6

Re: [WIP-Trunk Only] - Ship_Storage_Helper.oxp v0.15 20/05/1

Posted: Sun May 20, 2012 9:05 am
by Capt. Murphy
Version bumped to v0.15.

Fly_B4_U_Buy is retired from active service and is replaced by Extended_Shipyards.oxp - https://bb.oolite.space/viewtopic.php?f=4&t=11971

Re: [WIP-Trunk Only] - Ship_Storage_Helper.oxp v0.16 31/05/1

Posted: Thu May 31, 2012 6:26 am
by Capt. Murphy
Bumped to version 0.16.
v0.16 31/5/12 – Added additional information to header including system.name as a string, information about the station the ship is stored at, and the full price of the stored ship. Added entityPersonality as a ship attribute that is saved and can be restored (maintains paint colours on Griff's ships under full shaders). Thanks to cim for making this option available from trunk revision 4968. Fixed a bug were version 0.15 was unintentionally dependent on the Breakables OXPs.

Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.17 05

Posted: Tue Jun 05, 2012 9:07 am
by Capt. Murphy
And to v0.17...
v0.17 05/06/12 - v.017 05/6/12 – Fixed a bug in handling of subEntities when the ship doesn’t have any.

Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.18 09

Posted: Sat Jun 09, 2012 8:08 am
by Capt. Murphy
And on to v0.18...
v0.18 09/06/12 – Added compatibility for v0.2 of Resprays for Griffs.oxp

[TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.19 16/06

Posted: Sat Jun 16, 2012 9:38 am
by Capt. Murphy
And on to v0.19...
v0.19 16/06/12 – Updated compatibility for v0.3 of Respray for Griffs.oxp
[/quote]

Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.19 16

Posted: Sat Jun 16, 2012 10:08 am
by cim
Capt. Murphy wrote:
And on to v0.19...
v0.19 16/06/12 – Updated compatibility for v0.3 of Respray for Griffs.oxp
[/quote]
Very minor issue on ship replacement: if you have a ship without Shield Boosters / Military Shields, and then buy them, your ship will slowly charge up to the full shield level (so if you launch straightaway, you only have partial shields).

If you're restoring a ship with either/both of those items fitted, it's probably correct to explicitly restore its shield strength to maximum after adding the equipment.

Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24

Posted: Sun Jun 24, 2012 8:56 am
by Capt. Murphy
Thanks cim,

Added in v.20.
v0.20 24/06/12 – Updated compatibility for v0.4 of Respray for Griff’s.oxp so that adjusted decals are correctly restored. Ensure that player shield strength is set to maximum on restore (thanks cim for the report).

Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24

Posted: Sat Jan 19, 2013 7:53 am
by JazHaz
Is this OXP still being developed?

I would like to ask, can the OXP store multiple ships? For my OXP project I would like to store up to 4 ships.... :)

Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24

Posted: Sat Jan 19, 2013 9:31 am
by cim
JazHaz wrote:
Is this OXP still being developed?
Capt. Murphy's not been on the forum for a while, but the OXP works and is usable (and I'd strongly recommend it over calling player.replaceShip directly).
JazHaz wrote:
I would like to ask, can the OXP store multiple ships? For my OXP project I would like to store up to 4 ships.... :)
Yes. It converts the ship to a string, so your only limit is on the number of storable strings.

Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24

Posted: Fri Sep 20, 2013 1:07 pm
by JazHaz
I've mirrored the last version of this OXP to my box, just in case Capt Murphy's box gets deleted. All of his OXPs are there.

https://app.box.com/s/5axsr83uf4g39ugsgo6h

Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24

Posted: Sat Dec 14, 2013 8:41 pm
by JensAyton
I’m not sure what’s changed, but Ship_Storage_Helper eats up all available JavaScript memory in master. (Raising the limit doesn’t help.)

Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24

Posted: Sat Dec 14, 2013 9:03 pm
by cim
JensAyton wrote:
I’m not sure what’s changed, but Ship_Storage_Helper eats up all available JavaScript memory in master. (Raising the limit doesn’t help.)
I think this is the way it works out which player ships are available - specifically, if any of the player ships has escorts defined, it will end up in a potentially endless loop, since both for loops use counter variable. Probably the change to shipdata for more templating has put unused escort entries on the player freighters, but there are already OXPs which could break this too. What if you replace

Code: Select all

this.buildDataKeyArray = function(iterations) {...}
with

Code: Select all

this.buildDataKeyArray = function(iterations)
{
  this.dataKeyArray = Ship.keysForRole("player");
  this.dataKeyArrayBuilt = true;
}
That particular function was my motivation for writing Ship.keysForRole anyway.

Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24

Posted: Sat Dec 14, 2013 9:30 pm
by JensAyton
Yep, that works.

Ship_Storage_Helper v0.21

Posted: Mon Dec 16, 2013 2:13 pm
by Norby
In v0.21 I added a version check to call keysForRole in Oolite 1.79 and a slightly improved buildDataKeyArray function in 1.77 (from Gallery OXP).

My contributed folder hold Ship_Storage_Helper_0.21_2013.12.16.oxp.zip.

Ship_Storage_Helper v0.22

Posted: Tue Dec 30, 2014 11:55 pm
by Norby
Ship Storage Helper v0.22:
- provide support for [wiki]Carriers[/wiki] OXP and [wiki]EscortDeck[/wiki] OXP
- possible to save and restore NPC ships by storeCurrentShip‭(‬ship) and restoreStoredShip(storedShipString, ship‭)

I changed the category to Miscellaneous, was Mechanic but this is a function library.