Bug #7763

Cargo capacities equal to passenger capacities

Added by kamnet almost 5 years ago. Updated almost 5 years ago.

Status:ClosedStart date:2015-09-10
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:-
Target version:-

Description

When allowing passenger trams to haul cargo, cargo capacity is equal to passenger capacity. For example if a tram can haul 100 passengers in a single car, it can also haul 100 metric tons of cargo. I'm reasonably sure passengers don't weigh 1 ton each. For those vehicles that do not have a noted cargo capacity, it should be assumed that cargo capacity is equal to passenger capacity multiplied by 80 kg. For a 100 passenger vehicle the cargo capacity should be 8 Mt, and this number should be well below the actual weight of the vehicle according to the tracking table.

Associated revisions

Revision 81:b34f0962463a
Added by foobar almost 5 years ago

Fix: apply cargo_unit_weight factor to cargo refits (closes #7763)

History

#1 Updated by foobar almost 5 years ago

I'm thinking
<cargo_capacity> = round( <passenger_capacity> / 13 );
Gives about what you suggest.

#2 Updated by kamnet almost 5 years ago

foobar wrote:

I'm thinking
<cargo_capacity> = round( <passenger_capacity> / 13 );
Gives about what you suggest.

Works for me!

#3 Updated by foobar almost 5 years ago

  • Status changed from New to Feedback

Decided to go with a factor 16 instead of 13. 16 is the default TTD factor (a passenger in TTD weighs 62.5 kg (137.8 lbs)). This way I can read the correct factor for each cargo from the game, rather than hardcoding them. Therefore automatically supporting industry sets which define new cargo types.

#4 Updated by foobar almost 5 years ago

  • % Done changed from 0 to 100
  • Status changed from Feedback to Closed

Applied in changeset b34f0962463a.

Also available in: Atom PDF