Skip to content

0.2.2

Latest
Compare
Choose a tag to compare
@ldpl ldpl released this 19 Jul 10:50
· 205 commits to main since this release
  • 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 in Switch code not accepting param value without parentheses.

  • Fix default purchase sprite for auto-articulated trains.

  • Rename speed Action 0 property for ships to max_speed for consinstency with other vehile types.

  • Rename Action 0 ship properties to match nml:

    • cargo_type to default_cargo_type
    • sound to sound_effect
    • ocean_speed to ocean_speed_fraction
    • canal_speed to canal_speed_fraction
    • flags to misc_flags
    • refit_classes to refittable_cargo_classes
    • non_refit_classes to non_refittable_cargo_classes
  • Add id_map_file parameter to BaseNewGRF constructor and reserve_ids and resolve_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 and TrainRunningCost enums.

  • Add Flags, AIFlags, RuningCost enums for Trains.

  • Add Palette enum.

  • Add Train.hp and Train.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 expose bound_newgrf property.

  • Change Switch parameter order from to code, ranges, default.

  • Rename is_dual_headed Action 0 Train property to dual_headed to match nml.

  • Add NewGRF.grfid_value property.

  • Pass grf as an argument to Vehicle._set_callbacks.

  • Allow visual_effect_and_powered for Train 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 to kmhish in Train and RoadVehicle.

  • 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 in SetPurchaseOrder.

  • lib: Add length property to a Train constructor, auto-articulate if > 8 (up to 24).

  • lib: Add length property to RoadVehicle constructor (1..8).

  • lib: Add purchase_sprite property to Train and RoadVehicle.

  • 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 to VISUAL_EFFECT_AND_POWERED.

  • lib: Allow to use StringRef as a livery name.

  • lib: Add _set_articulated_part_callbacks method to Train.

  • lib: Use assigned id for the first part when auto-articulating.

  • lib: Add SetGlobalTrainDepotYOffset sprite generator.

  • lib: Add GlobalTrainMiscFlag enum and SetGlobalTrainMiscFlag sprite generator.

  • vox: Fix vox house example.

  • vox: Experimental .vox renderer for trains.