How to use the rlbot.matchcomms.common_uses.reply.send_and_wait_for_replies function in rlbot

To help you get started, we’ve selected a few rlbot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Darxeal / BotimusPrime / training / botimus_training.py View on Github external
def on_briefing(self):
        assert self.maneuver_name
        send_and_wait_for_replies(self.get_matchcomms(), [
            make_set_attributes_message(0, {'matchcomms_message' : self.maneuver_name})
        ])
github SaltieRL / Saltie / training / genetic_trainer.py View on Github external
def on_briefing(self: TrainingExercise) -> Optional[Grade]:
        buf = io.BytesIO()
        ForkingPickler(buf, pickle.HIGHEST_PROTOCOL).dump(send_model)
        _ = send_and_wait_for_replies(self.get_matchcomms(), [
            make_set_attributes_message(0, {'model_hex': buf.getvalue().hex()}),
        ])
        return None
    return on_briefing
github Darxeal / BotimusPrime / training / shots.py View on Github external
def on_briefing(self):
        send_and_wait_for_replies(self.get_matchcomms(), [
            make_set_attributes_message(0, {'matchcomms_message' : 'DodgeShot'})
        ])