Skip to content

Commit

Permalink
1.0.37 (#36)
Browse files Browse the repository at this point in the history
* Use gzip compression to send commands to match handler

Add "Show match launch arguments" button to menu

* Update deps
  • Loading branch information
VirxEC authored Jan 5, 2023
1 parent 7ac1721 commit 7628af1
Show file tree
Hide file tree
Showing 5 changed files with 111 additions and 53 deletions.
37 changes: 37 additions & 0 deletions assets/js/main-vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ export default {
<b-dropdown-item @click="pickAndEditAppearanceFile()">
Edit appearance config file
</b-dropdown-item>
<b-dropdown-item @click="showLaunchArguments()">
Show match launch arguments
</b-dropdown-item>
<b-dropdown-item @click="uploadLog()">
Upload GUI log for help
</b-dropdown-item>
Expand Down Expand Up @@ -453,6 +456,11 @@ export default {
<p>Please copy the link and share it in the #rlbot-help channel in the RLBot Discord server:</p>
<p><a href="https://discord.gg/zbaAKPt" target="_blank">https://discord.gg/zbaAKPt</a></p>
</b-modal>
<b-modal title="Internal match launch arguments" id="launch-arguments" size="lg" centered ok-only>
<p><b>This is based on your current match configuration in the gui:</b></p>
<textarea type="text" :value="launchArguments" readonly style="width: 100%; height: 30vh">
</b-modal>
</div>
</b-container>
Expand Down Expand Up @@ -534,6 +542,7 @@ export default {
allowMiniConsoleClose: false,
errorStartingMatchContent: "",
logUploadUrl: "",
launchArguments: "",
updateDownloadProgressPercent: listen(
"update-download-progress",
(event) => {
Expand Down Expand Up @@ -561,6 +570,34 @@ export default {
},

methods: {
showLaunchArguments: function () {
const blueBots = this.blueTeam.map((bot) => {
return {
name: bot.name,
team: 0,
runnable_type: bot.runnable_type,
skill: bot.skill ? bot.skill : 1,
path: bot.path,
};
});
const orangeBots = this.orangeTeam.map((bot) => {
return {
name: bot.name,
team: 1,
runnable_type: bot.runnable_type,
skill: bot.skill ? bot.skill : 1,
path: bot.path,
};
});

invoke("get_start_match_arguments", {
botList: blueBots.concat(orangeBots),
matchSettings: this.matchSettings,
}).then((args) => {
this.launchArguments = args;
this.$bvModal.show("launch-arguments");
});
},
shutDownMatchHandler: function () {
invoke("shut_down_match_handler");
},
Expand Down
69 changes: 35 additions & 34 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rl-bot-gui"
version = "1.0.36"
version = "1.0.37"
description = "The RLBot GUI ported to Rust"
authors = ["VirxEC"]
license = "MIT"
Expand Down Expand Up @@ -49,6 +49,7 @@ configparser = { version = "3.0.2", features = ["indexmap"] }
once_cell = "1.14.0"
crossbeam-channel = "0.5.6"
online = { version = "4.0.0", default-features = false, features = ["tokio-runtime"] }
flate2 = "1.0.25"

[target.'cfg(windows)'.dependencies]
registry = "1.2"
Expand All @@ -67,7 +68,7 @@ features = ["devtools", "dialog", "reqwest-client", "shell-open", "updater"]
[features]
# by default Tauri runs in production mode
# when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL
default = [ "custom-protocol" ]
default = ["custom-protocol"]
# this feature is used used for production builds where `devPath` points to the filesystem
# DO NOT remove this
custom-protocol = [ "tauri/custom-protocol" ]
custom-protocol = ["tauri/custom-protocol"]
Loading

0 comments on commit 7628af1

Please sign in to comment.