[TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24/06

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

Moderators: winston, another_commander

User avatar
Paladin Tux
Competent
Competent
Posts: 57
Joined: Sat Jan 03, 2015 2:32 am
Location: Middle of Nowhere, Nowhere

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

Post by Paladin Tux »

Even though alot of the info is going over my head this allows me to over come one of the big obsticles in one of the oxps I am planning. So it would work if say you dock at a station and you change to a mega ship and once you finish a mission you could change back to your normal ship?
Now with 100% less Wonderworm!
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

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

Post by Diziet Sma »

Paladin Tux wrote:
Flying a WonderWorm. So? What else would a 13 year old power frantic like me fly?
Smivs will be happy to know his 'monstrosity' has a fan.. :lol:

Welcome aboard, by the way! 8)
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

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

Post by Norby »

Paladin Tux wrote:
it would work if say you dock at a station and you change to a mega ship and once you finish a mission you could change back to your normal ship?
This is the goal of this helper. You can read the usage in the [EliteWiki] wiki and check the code in [EliteWiki] Combat Simulator, but OXPs can make surprises. The documentation of Ship Storage Helper show more OXPs which got special support to work and I am not sure that there is no more. I need a bugreport from players about the missing support if any.
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Ship Storage Helper v0.24

Post by Norby »

Ship Storage Helper v0.24 is available in-game in the Miscellaneous category:
- Fixed equipment restore if a required equipment comes later in the list (thanks to QCS).
- Fixed Shield Cycler cashback at ship restore.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

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

Post by phkb »

Norby, I think there's a problem with restoring the HUD. For instance, if I run a combat sim, and finish the run, when it redocks me I end up with the default HUD.
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

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

Post by Norby »

Ship Storage Helper does nothing with the hud and I think this is not a task here. HUDSelector should restore your hud if you use it, without this you must install only one hud or the hud must be scripted well to come back in this case also.
So which hud you use and do you have HUDSelector or not?
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

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

Post by phkb »

Yes, I have HUDSelector, and I was using a customised version of the Coluber HUD. I'll do some further tests and come back to you.
User avatar
Lone_Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 546
Joined: Wed Aug 08, 2007 10:59 pm
Location: Netherlands

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

Post by Lone_Wolf »

Norby,

Day's issue with SC described here hasn't been solved by latest change.

(also posted in linked thread)

I looked at the code of Ship Storage Helper and Day's issue is not solved.

I do not intend for Shleld Cycler to become PortableBetweenShips , but putting the ship in storage and retrieving it with SC intact should be possible .

Currently i see 2 problems for SSH :

- replaceShip calls playerBoughtNewShip, this triggers SC to remove all traces of SC and give some cash back.
to avoid the cashback, SSH resets SC values .

- upon retrieval of the ship, SC should be restored but they aren't atm.

I think the following approach should work to solve all problems :

- add 2 methods to shield Cycler :

Method A : Store SC values
copy SC Values to a temporary object using JSON , include a flag in this object to signify failure / success
reset SC values in savegame
return the temp object

Method B : retrieve SC Values
calling oxp needs to pass an object holding SC values
SC applies the values (similar to what it does on savegame loading)
return a flag to signal failure/success

SSH should then do this :
before replaceShip , call SC Method A
verify if SC Method A was succesfull
store the Object holding SC values in an SSH savegame var

Upon retrieving the stored ship :
retrieve the SSH savegamevar holding the SC values to a temp object
call SC Method B, passing the temp object
verify if SC Method B is succesfull
OS : Arch Linux 64-bit - rolling release

OXPs : My user page

Retired, reachable at [email protected]
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

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

Post by Norby »

Lone_Wolf wrote:
I think the following approach should work to solve all problems
Ok, if you plan to extend your variables in the future then we should do this to avoid constant SSH updates after each new variable. If you release the new SC then I will make a new SSH.
User avatar
Lone_Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 546
Joined: Wed Aug 08, 2007 10:59 pm
Location: Netherlands

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

Post by Lone_Wolf »

The stored variables will be extended in the near future (latest time would be when i add the capacitor devices from shieldequalizer+capacitor oxp) , so this is future proof.

I'll let you know when i've added the methods, they'll be in SC Next 1.11.2 .
OS : Arch Linux 64-bit - rolling release

OXPs : My user page

Retired, reachable at [email protected]
User avatar
Lone_Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 546
Joined: Wed Aug 08, 2007 10:59 pm
Location: Netherlands

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

Post by Lone_Wolf »

Norby,

I just released Shield Cycler Next 1.11.2 .
It includes 2 new functions for use by Ship Storage Helper, wiki has details about them.

LVV

P.S. Isn't it time to remove Trunk Only from thread title ?
OS : Arch Linux 64-bit - rolling release

OXPs : My user page

Retired, reachable at [email protected]
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

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

Post by Norby »

Lone_Wolf wrote:
I just released Shield Cycler Next 1.11.2 .
It includes 2 new functions for use by Ship Storage Helper, wiki has details about them.
P.S. Isn't it time to remove Trunk Only from thread title ?
Thanks! The owner of the title is Capt. Murphy who is missing.
User avatar
Lone_Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 546
Joined: Wed Aug 08, 2007 10:59 pm
Location: Netherlands

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

Post by Lone_Wolf »

Norby,

Latest Shield Cycler and Shield Cycler Next now both include the functions needed for SSH.
OS : Arch Linux 64-bit - rolling release

OXPs : My user page

Retired, reachable at [email protected]
User avatar
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Ship Storage Helper v0.25

Post by Norby »

Lone_Wolf wrote:
Latest Shield Cycler and Shield Cycler Next now both include the functions needed for SSH.
Thank you. Ship Storage Helper v0.25 use these and updated to store and restore the new writable ship properties in Oolite 1.82.

The name of your ship is saved also which help selecting ships in [wiki]Hyperspace Hangar[/wiki]. I recommend to name your ship in the Ship registration interface using the Random_Player/Ship_Name addon for various name ideas.
User avatar
Ramen
Deadly
Deadly
Posts: 138
Joined: Sat Apr 18, 2015 5:36 pm
Location: Mountain View, CA, USA
Contact:

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

Post by Ramen »

Hello Norby.
I'm going to assume that you maintain this thread, judging from previous posts.
Does ship storage helper contain a value for keeping track of passenger berths?
Some of my users for Hyperspace Hangar have had a problem where they put in multiple berths, and get back one.
That is not my desk.
I find this lack of milk... disturbing.
Post Reply