0.2.2
-
Change license to GPL v2+ (same as nml) instead of v3 to allow reusing v2 code/resources.
-
Fix graphics sprite composition.
-
Fix Train weight Action 0 properties (low and high bytes).
-
Fix compilation of generic var parameter in Action 2.
-
Fix
var(...)
call inSwitch
code not acceptingparam
value without parentheses. -
Fix default purchase sprite for auto-articulated trains.
-
Rename
speed
Action 0 property for ships tomax_speed
for consinstency with other vehile types. -
Rename Action 0 ship properties to match nml:
cargo_type
todefault_cargo_type
sound
tosound_effect
ocean_speed
toocean_speed_fraction
canal_speed
tocanal_speed_fraction
flags
tomisc_flags
refit_classes
torefittable_cargo_classes
non_refit_classes
tonon_refittable_cargo_classes
-
Add
id_map_file
parameter toBaseNewGRF
constructor andreserve_ids
andresolve_id
methods to manage auto-assigned (string) IDs. -
Use
AlternativeSprites
instead of sprite tuples. -
Add Action0 properties for road types.
-
Add
NewGRF.add_railtype
to add railtypes one-by-one. -
Add
VEHICLE_NEVER_EXPIRES
constant. -
Add
AIFlags
andTrainRunningCost
enums. -
Add
Flags
,AIFlags
,RuningCost
enums for Trains. -
Add
Palette
enum. -
Add
Train.hp
andTrain.ton
methods for converting metric units. -
Add visual effect constants and methods.
-
Make
NewGRF.bind
to make a subclass of the type instead of function and exposebound_newgrf
property. -
Change Switch parameter order from to
code, ranges, default
. -
Rename
is_dual_headed
Action 0 Train property todual_headed
to match nml. -
Add
NewGRF.grfid_value
property. -
Pass grf as an argument to
Vehicle._set_callbacks
. -
Allow
visual_effect_and_powered
forTrain
articulated parts. -
Don't check for sprite type when adding it for now (messes up decompiling).
-
Use setuptools-git-versioning to manage versions.
-
Update documentation.
-
Allow to use objects with id as a variant_group value in Aciton0.
-
Use IDProperty for
sort_purchase_list
in Action 0 for vehicles. -
lib: Add
Ship
sprite generator. -
lib: Rename
kmhishph
method tokmhish
inTrain
andRoadVehicle
. -
lib: Make
_set_callbacks
return list of sprites to allow adding graphics. -
lib: Make auto-articulated parts use auto-assigned(string) IDs.
-
lib: Support road vehicle property callbacks in
CallbackMananger
. -
lib: Fix RoadVehicle name.
-
lib: Fix
CallbackManager
exceptions. -
lib: Fix incorect livery for
Train
wagons. -
lib: Add
VehicleGroup
class to define vehicle groups inSetPurchaseOrder
. -
lib: Add
length
property to aTrain
constructor, auto-articulate if > 8 (up to 24). -
lib: Add
length
property toRoadVehicle
constructor (1..8). -
lib: Add
purchase_sprite
property toTrain
andRoadVehicle
. -
lib: Allow to use length > 8 (but <= 24) for articulated parts.
-
lib: Allow specifying property callbacks individually in
CallbackManager
. -
lib: Add
SetPurchaseOrder
sprite generator. -
lib: Rename
POWERED_WAGONS
callback toVISUAL_EFFECT_AND_POWERED
. -
lib: Allow to use
StringRef
as a livery name. -
lib: Add
_set_articulated_part_callbacks
method toTrain
. -
lib: Use assigned id for the first part when auto-articulating.
-
lib: Add
SetGlobalTrainDepotYOffset
sprite generator. -
lib: Add
GlobalTrainMiscFlag
enum andSetGlobalTrainMiscFlag
sprite generator. -
vox: Fix vox house example.
-
vox: Experimental .vox renderer for trains.