{"id":26159594,"url":"https://github.com/virxec/elementv5","last_synced_at":"2026-06-01T10:31:15.236Z","repository":{"id":273166089,"uuid":"918878139","full_name":"VirxEC/Elementv5","owner":"VirxEC","description":"Example port of Element from RLBot v4 to v5","archived":false,"fork":false,"pushed_at":"2025-11-24T23:56:14.000Z","size":1650,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-19T20:10:10.766Z","etag":null,"topics":["rlbot"],"latest_commit_sha":null,"homepage":"https://rlgym.org/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VirxEC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-19T05:15:56.000Z","updated_at":"2025-11-24T23:56:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"67c24e91-0956-437f-9c50-393973ded3f2","html_url":"https://github.com/VirxEC/Elementv5","commit_stats":null,"previous_names":["virxec/elementv5"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VirxEC/Elementv5","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirxEC%2FElementv5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirxEC%2FElementv5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirxEC%2FElementv5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirxEC%2FElementv5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VirxEC","download_url":"https://codeload.github.com/VirxEC/Elementv5/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirxEC%2FElementv5/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33771627,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rlbot"],"created_at":"2025-03-11T11:33:02.295Z","updated_at":"2026-06-01T10:31:15.208Z","avatar_url":"https://github.com/VirxEC.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RLBot v5 Element\n\nThis project is a fork of the RLBot v4 version of Element.\n\nIt's aim is to port the bot to RLBot v5 and to use a shared PyTorch dependency so the resulting botpack exe is smaller.\n\n## Prerequisites\n\nInstall the normal bot requirements via `pip install -r requirements.txt`.\n\n## Configuring for the v5 botpack\n\n1. Importing the shared botpack PyTorch\n    - PyTorch is only imported in `src/agent.py`, making this easy.\n        If you `import torch` in many files, just replace every instance with the below snippet -\n        unless you know which import is guaranteed to be ran first.\n    - `import torch` was replaced with the following:\n\n        ```python\n        try:\n            import torch\n        except ImportError:\n            import sys\n\n            sys.path.insert(0, \"../../torch-archive\")\n            import torch\n        ```\n\n    - If PyTorch is installed in the local environment, that version will be loaded.\n        If a version in the local environment isn't installed, then it will try to load the botpack PyTorch redistributable.\n        This assumes that the bot is already inside the botpack.\n    - Packages included in the redistributable include PyTorch's dependencies downloaded from pip except for numpy, which are:\n        1. filelock\n        1. fsspec\n        1. jinja\n        1. markupsafe\n        1. mpmath\n        1. networkx\n        1. sympy\n        1. torch\n        1. torchgen\n        1. typing_extensions\n\n1. `pip install pyinstaller`\n1. `pyinstaller --onefile src/bot.py --paths=src --add-data=src/model.p:. --exclude-module=torch --hidden-import=timeit --hidden-import=pickletools --hidden-import=uuid --hidden-import=unittest.mock --hidden-import=ctypes.wintypes`\n    - This will create a file called `bot.spec` - you may have to remove `*.spec` from `.gitignore` to commit it.\n    - If your model is not called `model.p` and inside the `src` folder, you must change the path after `--add-data`.\n        HOWEVER, be sure to keep `:.` at the end! It is required for PyInstaller.\n    - When PyTorch loads, it also loads the std modules `timeit`, `pickletools`, `uuid`, and `unittest`.\n    To prevent PyInstaller from trimming these std modules, they must be listed as hidden imports.\n1. Create `bob.toml` in the same directory as the spec file with the following content:\n\n    ```toml\n    [[config]]\n    project_name = \"PythonExample\"\n    bot_configs = [\"src/bot.toml\"]\n\n    [config.builder_config]\n    builder_type = \"pyinstaller\"\n    entry_file = \"bot.spec\"\n    ```\n\n    - `project_name` will be the name of your bot's folder in the botpack\n    - `bot_configs` is a list of bot configs that will be included in the botpack\n    - `builder_type` should always be `pyinstaller`\n    - `entry_file` is the name of the spec file\n\n1. Commit both `bot.spec` and `bob.toml` to your bot's repository.\n    Note that `bob.toml` CANNOT be renamed, but `bot.spec` can be anything as long as `entry_file` is also renamed to reflect the change.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirxec%2Felementv5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvirxec%2Felementv5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirxec%2Felementv5/lists"}