Skip to content

Read env vars from agent configs#119

Open
VirxEC wants to merge 1 commit into
masterfrom
env-from-toml
Open

Read env vars from agent configs#119
VirxEC wants to merge 1 commit into
masterfrom
env-from-toml

Conversation

@VirxEC

@VirxEC VirxEC commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

This example now works from the gui when added outside the botpack:

[details]
description = ""
developer = "The RLBot community"
fun_fact = "Made with GigaLearn"
language = "C++"
source_link = ""
tags = ["1v1", "teamplay"]

[settings]
agent_id = "VirxEC/Veai/ggl"
loadout_file = "loadout.toml"
logo_file = "logo.png"
name = "Veai (GGL)"
run_command = 'x86_64-pc-windows-msvc\\GGLBot.exe'
run_command_linux = "x86_64-unknown-linux-gnu/GGLBot"
environment = { "LD_LIBRARY_PATH" = "/home/virx/.local/share/RLBot5/bots/torch-archive/torch/lib/" }

Comment thread players.go
Comment on lines 205 to 208
ldLibPath := os.Getenv("LD_LIBRARY_PATH")
if ldLibPath != "" {
ldLibPath = torchLibDir + ":" + ldLibPath
} else {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These paths are searched left-to-right, right? So if you have a libtorch installation in a parent folder--even if it is not the bot pack--it will take priority over anything you write in the config. I think we might want to swap this.

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