Difference between revisions of "VehicleRefitting"

From GRFSpecs
Jump to navigationJump to search
m (2 revisions)
(convert formatting)
Line 1: Line 1:
  +
==Introduction==
 
'''''Interaction of vehicle properties and callbacks during refitting'''''
 
   
 
Vehicles have multiple properties and callbacks which define the default cargotype and capacity, the refitoptions and the capacities after refitting.
 
Vehicles have multiple properties and callbacks which define the default cargotype and capacity, the refitoptions and the capacities after refitting.
Line 14: Line 13:
 
* Callbck 15 'refitted capacity'
 
* Callbck 15 'refitted capacity'
   
  +
==Flow chart==
 
The following image visualises the interactions of these wrt. OpenTTD. If you know the behaviour of TTDPatch at that detail level, please elaborate.
 
The following image visualises the interactions of these wrt. OpenTTD. If you know the behaviour of TTDPatch at that detail level, please elaborate.
  +
[[File:CargoMagic.dot.png|thumb|center|800px]]

Revision as of 14:27, 13 June 2011

Introduction

Vehicles have multiple properties and callbacks which define the default cargotype and capacity, the refitoptions and the capacities after refitting.

  • Default cargo slot (trains, road vehicles, ships)
  • Default capacity (trains, road vehicles, ships)
  • Passenger capacity (aircraft)
  • Mail capacity (aircraft)
  • Refit mask (all vehicle types)
  • Refittable cargo classes (all vehicle types)
  • Non-refittable cargo classes (all vehicle types)
  • 'Refittable'-flag (ships)
  • Callback 36 'capacity' (all vehicle types)
  • Callbck 15 'refitted capacity'

Flow chart

The following image visualises the interactions of these wrt. OpenTTD. If you know the behaviour of TTDPatch at that detail level, please elaborate.