Page 4 of 6
Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24
Posted: Sun Jan 04, 2015 1:46 am
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?
Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24
Posted: Mon Jan 05, 2015 3:38 am
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..
Welcome aboard, by the way!
Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24
Posted: Mon Jan 05, 2015 11:21 am
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
wiki and check the code in
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.
Ship Storage Helper v0.24
Posted: Mon Apr 13, 2015 9:28 pm
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.
Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24
Posted: Thu May 07, 2015 5:17 am
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.
Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24
Posted: Thu May 07, 2015 3:56 pm
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?
Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24
Posted: Thu May 07, 2015 11:43 pm
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.
Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24
Posted: Tue Jun 02, 2015 12:12 pm
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
Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24
Posted: Tue Jun 02, 2015 8:12 pm
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.
Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24
Posted: Tue Jun 02, 2015 9:22 pm
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 .
Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24
Posted: Thu Jun 18, 2015 7:11 pm
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 ?
Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24
Posted: Thu Jun 18, 2015 10:53 pm
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.
Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24
Posted: Sat Aug 01, 2015 12:21 pm
by Lone_Wolf
Norby,
Latest Shield Cycler and Shield Cycler Next now both include the functions needed for SSH.
Ship Storage Helper v0.25
Posted: Sat Aug 01, 2015 8:41 pm
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.
Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24
Posted: Wed Aug 05, 2015 7:26 pm
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.