factorio-learning-environment icon indicating copy to clipboard operation
factorio-learning-environment copied to clipboard

player reach distance scope issue in test

Open hrshtt opened this issue 3 months ago • 0 comments

    instance.rcon_client.send_command(
        "/sc game.player.character.reach_distance = 1000; game.player.character.mining_reach_distance = 1000"
    )

it seems that this player property change is not scoped correctly and messes with downstream tests expectations.

FAILED tests/actions/test_elapsed_ticks.py::test_harvest_resource_elapsed_ticks_and_timing - Exception: Could not harvest. Nothing within reach to harvest

found via #333

hrshtt avatar Sep 09 '25 12:09 hrshtt