Skip to content

Port state setting sandbox#111

Open
VirxEC wants to merge 4 commits into
masterfrom
state-setting-sandbox
Open

Port state setting sandbox#111
VirxEC wants to merge 4 commits into
masterfrom
state-setting-sandbox

Conversation

@VirxEC
Copy link
Copy Markdown
Contributor

@VirxEC VirxEC commented Jun 2, 2026

Behavior is extremely similarly to the old v4 sandbox. Uses a canvas, updates at 20hz, can drag objects around.

Add new debug rendering controls and compact UI layout.

"Connecting to RLBotServer..." only happens while it's waiting for a match config.

Everything is reset and the connection gets closed when the user clicks out of the sandbox. Reconnecting with rlbot v5 is super duper fast so it's not an issue and we save on all the processing that would've been happening for no reason.

image image image image image

Add new debug rendering controls
@NicEastvillage
Copy link
Copy Markdown
Contributor

NicEastvillage commented Jun 2, 2026

Immediate thoughts:

  • The field rendering is missing something that indicates which side of the field is the blue/orange half.
  • Would be cool to have a "Save state" and "load saved state" buttons akin to the "Rewind 5 seconds". Combined with the game freezing, users can setup and repeat any scenario with this.
  • In the debug rendering panel, I think we can remove the "(BOT)" suffix and just do "(SCRIPT)" for scripts.

@VirxEC VirxEC marked this pull request as draft June 2, 2026 15:40
Remove (BOT) & (SCRIPT) suffixes
@VirxEC
Copy link
Copy Markdown
Contributor Author

VirxEC commented Jun 2, 2026

image

@VirxEC VirxEC marked this pull request as ready for review June 2, 2026 17:05
@VirxEC VirxEC requested a review from NicEastvillage June 2, 2026 17:05
@VirxEC
Copy link
Copy Markdown
Contributor Author

VirxEC commented Jun 2, 2026

image image image image

@NicEastvillage
Copy link
Copy Markdown
Contributor

Speaking of Performance Monitor setting in #114, once the setting can be adjusted in the sandbox, its start value should of course match that in the MatchConfig. Just a note.

@NicEastvillage
Copy link
Copy Markdown
Contributor

There's a random line on the top and right in the canvas. I think the field image is off by 1 pixel in both directions.
billede

@NicEastvillage
Copy link
Copy Markdown
Contributor

Tried it out and found a few things:

If no match has been started this session, the Sandbox page will just say "Connecting..." forever when you try to connect. We should probably indicate that it needs a running match to work. We could for instance add a small message like "waiting for match info..." underneath. Or is that too indirect?

The rendering of the arena is pointless while "Watch Game" is off. I think we should draw some instructions on top of the arena rendering in that case. For example: "Enable 'Watch Game' to drag and drop objects around."
billede

The first time I dragged a bot, I got this error and disconnected. On reconnect, things were working.
billede

Dragging the players/ball around while "Freeze game" is active does not move the players/ball in the game until "Freeze game" is disabled. Is this a core/API issue?

The save/load state does not save/load the angular velocity of the ball - this becomes clear if you save a kickoff state.

Found RLBot/core#167 when toggling bot rendering.

This menu stays open even after you click an item.
billede

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