• v2.2.0 7b2ac973d8

    NorbiPeti released this 2022-02-13 19:21:42 +00:00 | 20 commits to master since this release

    This update brings compatibility for Techblox 2022.01.25.15.52 and adds new features and fixes. This update is backwards compatible with mods that work with TechbloxModdingAPI 2.0.

    Additions:

    • Added patches for anticheat, so that the game can be modded
    • Added player join/leave events
    • Added support for pressing buttons in a popup
    • Added error handling for API initialization
    • Added methods to spawn and despawn the player's vehicle in simulation mode
    • Added support for a player state property, which returns whether the player's machine is spawned or if the player is in a seat
    • Added method to get the ghost block of a player (the local player, most likely)

    Fixes:

    • Fixed crash when adding an event handler multiple times
    • Further delayed the Game.Enter event until the local player joins
    • Fixed toggling time mode, which now means connecting to a (likely local) server
    • Fixed closing popups opened via the API
    • Fixed the player ID being 0 in certain cases
    • Removed workaround for duplicate block place/remove events as it's not needed anymore
    • Fixed async tests not being handled properly (waiting in a test would fail because of this)
    • Fixed the handling of multiple ECS objects with the same ID
    • Made the Game.GetAllBlocksInGame() not actually return all of the blocks in-game, since the Game object refers to a machine save
    • Finally fixed the block visuals not being updated after a change (#7)
    • Fixed updating the color of a block

    Known issues:

    • Seat entering/leaving and other direct actions are broken: we can only send inputs during simulation
    Downloads