Marshalling rules for precious metals and scooping cargo

For test results, bug reports, announcements of new builds etc.

Moderators: another_commander, winston, Getafix

Post Reply
dybal
Deadly
Deadly
Posts: 162
Joined: Mon Feb 10, 2020 12:47 pm
Location: São Paulo, Brasil

Marshalling rules for precious metals and scooping cargo

Post by dybal »

The marshalling rules are in the wiki.

From the marshalling rules, the number of TCs of a precious metal should increase by the number of cargo containers of that precious metal scooped... that is not what is happening...

Two scenarios, in both I launch with 1200kg of Gold and 499kg of Platinum. The manifest on station don't show the number of TCs after the commodity, as it does in-flight... the number I show was taken from the Cargo header.

Scenario 1: plenty of space

Code: Select all

In Station ->  (launch)  ->   In Flight -> <scoop 1t of cargo> ->  In Flight
..................................................................... 1t x Liquor/Wines
1200kg x Gold - 1t ......... 1200kg x Gold (1TC) .................... 1200kg x Gold (2TC)
499kg x Platinum - 0t ..... 499kg x Platinum ........................ 499kg x Platinum (1TC)
As you can see (screenshots available if anybody needs them, but it's not that hard to reproduce :wink: ), if I scoop anything (I'm not showing it here, but even if a escape pod is scooped - that's what made me investigate this) the TCs for all precious metals (and gem stones too) got to Math.ceil(<commodity qtt> / <1 ton in commodity units>).

The problem with this can be seen in the second scenario...

Scenario 2: space for just 1 TC

Code: Select all

In Station ->  (launch)  ->   In Flight -> <scoop 1t of cargo> ->  In Flight
39t x Liquor/Wines...........39t x Liquor/Wines....................40t x Liquor/Wines
1200kg x Gold - 1t...........1200kg x Gold (1TC)...................1200kg x Gold (2TC)
499kg x Platinum - 0t .......499kg x Platinum......................499kg x Platinum (1TC)
Now we have a 41TC cargo hold with 43TCs of cargo :lol:

User avatar
phkb
Commodore
Commodore
Posts: 2611
Joined: Tue Jan 21, 2014 10:37 pm
Location: [p]laying [h]ard and [k]icking [b]utt somewhere in G7...

Re: Marshalling rules for precious metals and scooping cargo

Post by phkb »

Possibly related to this thread.

another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 5550
Joined: Wed Feb 28, 2007 7:54 am

Re: Marshalling rules for precious metals and scooping cargo

Post by another_commander »

Can't reproduce here. The steps I follow:

1. Load up save file with fuel scoop equipment present and 35t cargo capacity.
2. I buy 1t liquor/wines and using debug console, I award 1200kg gold and 499kg platinum. I see 2t are loaded, which is expected.
3. Launch and check that that the same tonnage as before is reported. I now see that 1t is due to gold and 1t due to liquor/wines.
4. Spawn cargopod and scoop it.
5. Check manifest, I now see 3t of cargo, with 1t being the initial liquor/wines, 1t being the scooped pod and 1t being the gold in the canister. Platinum still does not occupy any space in the cargo hold. Again, as expected.

This seems to work for both trunk and 1.88.

@dybal: Is this reproducible for you without any OXPs?

dybal
Deadly
Deadly
Posts: 162
Joined: Mon Feb 10, 2020 12:47 pm
Location: São Paulo, Brasil

Re: Marshalling rules for precious metals and scooping cargo

Post by dybal »

You are right, without any OXPs (except one I made just to spawn the cargo pod) it doesn't happen!

Binary search, here we go! :roll:

dybal
Deadly
Deadly
Posts: 162
Joined: Mon Feb 10, 2020 12:47 pm
Location: São Paulo, Brasil

Re: Marshalling rules for precious metals and scooping cargo

Post by dybal »

It's Thargoid's Vortex OXP.

I will look at it's scripts to see if I can fix it

Post Reply