[TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24/06
Moderators: winston, another_commander
- Paladin Tux
- 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
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!
- Diziet Sma
- ---- 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
Smivs will be happy to know his 'monstrosity' has a fan..Paladin Tux wrote:Flying a WonderWorm. So? What else would a 13 year old power frantic like me fly?
Welcome aboard, by the way!
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
- Norby
- ---- 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
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.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?
- Norby
- ---- 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
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.
- Fixed equipment restore if a required equipment comes later in the list (thanks to QCS).
- Fixed Shield Cycler cashback at ship restore.
- phkb
- 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
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.
- Norby
- ---- 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
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?
So which hud you use and do you have HUDSelector or not?
- phkb
- 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
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
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
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]
OXPs : My user page
Retired, reachable at [email protected]
- Norby
- ---- 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
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.Lone_Wolf wrote:I think the following approach should work to solve all problems
Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24
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 .
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]
OXPs : My user page
Retired, reachable at [email protected]
Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24
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 ?
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]
OXPs : My user page
Retired, reachable at [email protected]
- Norby
- ---- 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
Thanks! The owner of the title is Capt. Murphy who is missing.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 ?
Re: [TEST RELEASE-Trunk Only] - Ship_Storage_Helper v0.20 24
Norby,
Latest Shield Cycler and Shield Cycler Next now both include the functions needed for SSH.
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]
OXPs : My user page
Retired, reachable at [email protected]
- Norby
- ---- 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
Thank you. Ship Storage Helper v0.25 use these and updated to store and restore the new writable ship properties in Oolite 1.82.Lone_Wolf wrote:Latest Shield Cycler and Shield Cycler Next now both include the functions needed for SSH.
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
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.
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.
I find this lack of milk... disturbing.