Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve dynamic field loading #226

Merged
merged 3 commits into from
Jan 6, 2025

Conversation

TarikViehmann
Copy link
Contributor

The idea of this PR is to easily allow teams to build their own field setups, save them and load them again with improved frontend-sided reconfiguration.

The workflow to modify and save a field is as follows:

  1. start a game regularly, including the setting of at least one team.
  2. go to field view (pressing "watch" in the frontend) and move the field around to your liking per drag and drop
  3. go to referee view again (pressing "referee" in the frontend)
  4. change the config value "store-to-report" to a name of your choice in the "config" tab

The workflow to load the modified field is as follows:

  1. start the refbox, but leave it in PRE-GAME (by not pressing "start-game")
  2. change the config value "load-from-report" to the chosen name in the "config" tab
  3. change the config value "random-field" to "true" in the config tab.
  4. press "start-game" and proceed as usual.
    Note: experienced users can of course pre-configure the yaml files of the refbox directly to always load the saved field.

This is a crude way to enable paramterization from the frontend before
the setup phase is hit.
It is not flexible in the sense that once the pre-game is over, no
parameterization can be done anymore, but for now it should be a solid
middle-ground until a nice and clean way of reconfiguring arbitrary yaml
parameters at runtime is designed.
This fixes inconsistencies where multiple game-reports were maintained
at the same time and also makes it simpler in general by basically only
distinguishing whether a game report is present or not.
@TarikViehmann TarikViehmann requested a review from snoato December 20, 2024 08:53
Copy link
Contributor

@snoato snoato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition!

@TarikViehmann TarikViehmann merged commit e65c047 into master Jan 6, 2025
1 check passed
@TarikViehmann TarikViehmann deleted the tviehmann/improve-dynamic-field-loading branch January 6, 2025 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants