this.backupManifest = player.ship.manifest;
I just tried it and it don' work.
Moderators: winston, another_commander
this.backupManifest = player.ship.manifest;
Whereas, in the Debug Console it does work:Wildeblood wrote:this.backupManifest = player.ship.manifest;
I just tried it and it don't work.
Then this should incinerate all your troublesome empty cargopods, Albee:-Capt. Murphy wrote:According to the wiki anyway...
So should be no problem -Cargo marshalling
When a player launches, all cargo from the manifest is loaded in cargo pods with the role “1t-cargopod”. This has some consequences for handling g and kg commodities when in flight:
Every full t of such an article that the player has is put in a barrel on launch and consumes 1 t cargo space.
Every barrel that the player scoops takes one t of cargo space even when the content is far less in weight.
Every time cargo is added by script, the added amount is added to the hold in one or more 1 t cargo pods.
Every time the cargo is reduced, it is removed from one of the barrels. When the barrel becomes empty in the process, the barrel is removed.var gold = manifest.gold;manifest.gold = 0;
etc. etc. They are all read/write.
I've downloaded 1.25a from Boxspace. The menu item says vortex_1.25a.zip, but the folder that actually downloads is named vortex_1, and inside the folder are Vortex 1.25.oxp and Vortex v1.25 Readme & Licence.txt. Do I have the correct version?Thargoid wrote:...anyone who has grabbed the new version can you please update to the newer 1.25a.
You are both running into a trap of treating a JavaScript Object (manifest) as a variable, when it's not.SandJ wrote:Whereas, in the Debug Console it does work:Wildeblood wrote:this.backupManifest = player.ship.manifest;
I just tried it and it don't work.
> PS.manifest.gold
5
> fred = PS.manifest
> fred.gold = 123
> PS.manifest = fred
> PS.manifest.gold
123
fred.gold
or manifest.gold
and the new value would be reflected in both fred
and manifest
. You need to cycle through all of the properties of the manifest Object (gold
, alienItems
etc) and transfer values to variables to backup the manifest, a technique which Thargoid already uses in the Vortex and HyperCargo scripts.Yes, you have the correct version. It is still 1.25, I just changed the zip file to ensure people can tell it apart from the one with the typo in it. There is literally about 10 bytes worth of difference between the two, hence I didn't want to fully advance the OXP name just for that.Albee wrote:I've downloaded 1.25a from Boxspace. The menu item says vortex_1.25a.zip, but the folder that actually downloads is named vortex_1, and inside the folder are Vortex 1.25.oxp and Vortex v1.25 Readme & Licence.txt. Do I have the correct version?
(Please note, your wiki page needs updating as the menu is still offering me Vortex v1.25, even though it links to 1.25a in Boxspace. I was tempted to correct it myself, but am unsure what the etiquette is where users' own pages are concerned. Is it okay to edit these, or should we contact the individual concerned?)
I don't think I'll ever grasp object-oriented programming.Capt. Murphy wrote:You are both running into a trap of treating a JavaScript Object (manifest) as a variable, when it's not.
In SandJ's example above you could change the value offred.gold
ormanifest.gold
and the new value would be reflected in bothfred
andmanifest
.
Well, there is, because it has caused confusion already.Thargoid wrote:Yes, you have the correct version. It is still 1.25, I just changed the zip file to ensure people can tell it apart from the one with the typo in it. There is literally about 10 bytes worth of difference between the two, hence I didn't want to fully advance the OXP name just for that.Albee wrote:I've downloaded 1.25a from Boxspace. The menu item says vortex_1.25a.zip, but the folder that actually downloads is named vortex_1, and inside the folder are Vortex 1.25.oxp and Vortex v1.25 Readme & Licence.txt. Do I have the correct version?
So everything is where I want it to be at the moment, no correction required.
That doesn't sound right to me. I think you should have 28t of usable bay, not 27t. Do you really have more than 500kg of gem stones? Or do you have more than 1500kg of gold or platinum? If you have less than 500kg of these commodities they should not take up space in the cargo bay.Albee wrote:Each full bay now contains 27 t of assorted 'ton' cargo, plus a nominal 3 t of 'non-ton' cargo -- 1 t each of gold, platinum and gem-stones -- which accumulates in every bay simultaneously, on an incremental basis.
No, that's definitely right. Every full bay has 27 t, plus whatever gold, platinum and gem-stones I'd collected up to that point. Below is a screenshot of bay 1 taken right after I'd filled it. (I also have screenshots of the other bays as they were filled, and later shots of bay 1 showing how the 'non-ton' cargo accumulates retrospectively).Wildeblood wrote:That doesn't sound right to me. I think you should have 28t of usable bay, not 27t. Do you really have more than 500kg of gem stones? Or do you have more than 1500kg of gold or platinum? If you have less than 500kg of these commodities they should not take up space in the cargo bay.Albee wrote:Each full bay now contains 27 t of assorted 'ton' cargo, plus a nominal 3 t of 'non-ton' cargo -- 1 t each of gold, platinum and gem-stones -- which accumulates in every bay simultaneously, on an incremental basis.