{"id":25725353,"url":"https://github.com/herndone/battlezone-color-selector","last_synced_at":"2026-05-28T16:31:31.555Z","repository":{"id":122865319,"uuid":"205634901","full_name":"HerndonE/Battlezone-Color-Selector","owner":"HerndonE","description":"Players in Battlezone Combat Commander now have the opportunity to select colors of their choosing before a multiplayer game.","archived":false,"fork":false,"pushed_at":"2024-09-01T22:47:11.000Z","size":3720,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-25T22:32:55.498Z","etag":null,"topics":["battlezone","color","lua","steam"],"latest_commit_sha":null,"homepage":"https://steamcommunity.com/sharedfiles/filedetails/?id=1851090665","language":"Lua","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/HerndonE.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}},"created_at":"2019-09-01T05:46:50.000Z","updated_at":"2024-12-14T02:49:23.000Z","dependencies_parsed_at":"2024-02-08T04:32:36.174Z","dependency_job_id":"53077ea4-448f-40d7-931d-82dcc720abdd","html_url":"https://github.com/HerndonE/Battlezone-Color-Selector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HerndonE/Battlezone-Color-Selector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HerndonE%2FBattlezone-Color-Selector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HerndonE%2FBattlezone-Color-Selector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HerndonE%2FBattlezone-Color-Selector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HerndonE%2FBattlezone-Color-Selector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HerndonE","download_url":"https://codeload.github.com/HerndonE/Battlezone-Color-Selector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HerndonE%2FBattlezone-Color-Selector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33617718,"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-05-28T02:00:06.440Z","response_time":99,"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":["battlezone","color","lua","steam"],"created_at":"2025-02-25T22:29:53.127Z","updated_at":"2026-05-28T16:31:31.531Z","avatar_url":"https://github.com/HerndonE.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Battlezone Color Selector 🎨\nPlayers in Battlezone Combat Commander now have the opportunity to select colors of their choosing before a multiplayer game.\n\n## Overview 📖\nSince 1999, the default team color for Battlezone Combat Commander MPI (Multiplayer Instant) is red. The only other way is playing other modes like Deathmatch, Free For All, or by changing your preferences file. Beyond that, there was no another way for players to easily pick a team color. As of 2019, this deadlock of being red team color changed. Players in MPI (Multiplayer Instant) can easily select a color choice on the fly before a game starts.\n\n## Getting Started 🛠\n\nThere are two ways you can use this color selector:\n\n### 1. Clone this repository ### \n```bash\nhttps://github.com/HerndonE/Battlezone-Color-Selector.git\n```\nDrag the **Battlezone Color Selector** folder into your Battlezone Combat Commander addon folder i.e.\n**C:\\Users\\YourName\\Documents\\My Games\\Battlezone Combat Commander\\addon**. Then launch Battlezone and create\na muliplayer game. Once done, you want to select **MPI: CS: Chill**. In the options tab you can click the fourth page\nto select your team colors.\u003cbr\u003e     \n### 2. Steam \u003cbr\u003e ### \nAdditional maps that use this color selector feature is posted on the [Battlezone Combat Commander Steam Workshop](https://steamcommunity.com/app/624970/workshop/).\n\n| \u003ca href=\"Steam\"/\u003e \u003cimg src=\"https://img.shields.io/badge/STEAM WORKSHOP ITEM%20-%232B2F33.svg?\u0026style=for-the-badge\u0026logo=steam\u0026ogoColor=white\"/\u003e\u003c/a\u003e  | \u003ca href=\"Steam\"/\u003e \u003cimg src=\"https://img.shields.io/badge/STEAM STATISTICS%20-%232B2F33.svg?\u0026style=for-the-badge\u0026logo=steam\u0026ogoColor=white\"/\u003e\u003c/a\u003e |\n| ------------- |:-------------:|\n| [F9bomber's Color Selector (Asset)](https://steamcommunity.com/sharedfiles/filedetails/?id=1851404655\u0026searchtext=)|![](https://img.shields.io/steam/views/1851404655?logo=steam) ![](https://img.shields.io/steam/subscriptions/1851404655?logo=steam) ![](https://img.shields.io/steam/favorites/1851404655?logo=steam)![](https://img.shields.io/steam/downloads/1851404655?logo=steam)|\n| [F9bomber's Color Selector (Config)](https://steamcommunity.com/sharedfiles/filedetails/?id=1851090665\u0026searchtext=)|![](https://img.shields.io/steam/views/1851090665?logo=steam) ![](https://img.shields.io/steam/subscriptions/1851090665?logo=steam) ![](https://img.shields.io/steam/favorites/1851090665?logo=steam)![](https://img.shields.io/steam/downloads/1851090665?logo=steam)|\n\n**Note**:  \n\u0026nbsp; 1. If no colors are selected will result in default red and blue.  \n\u0026nbsp; 2. Custom RGB values **MUST** be greater than 0.  \n\u0026nbsp; 3. No two teams can be the same color UNLESS you use the sliders.  \n\u0026nbsp; 4. Use the stock AIPs (Artificial Intelligence Planning).  \n\n## Organization 🚀\n```\nCall Color Selector Helper File\n\nstart() {  -- start function ie first execution\n    Call team_color function as an object\n}\nupdate(){\n    Call rgb_animation function as an object, pass in mission counter object\n}\n\n```\n## Code Samples 👨‍💻\n\n```lua\n--[[\nkey terms: \n 1. ivar - an integer variable item. ivar 50-127 are free to use, they rest have been used in game.\n 2. network.session.ivar# - a set of network-replicated integer variable items (for configuring various network session settings).\n]]--\n\nlocal M = {\n\tred = 0;\n\tgreen = 0;\n\tblue = 0;\t\n\tMin = 0.0;\n\tMax = 255.0;\n}\n-- Random Human Team/Computer Team Color\nM.red = GetRandomFloat(M.Min, M.Max) ;\nM.green = GetRandomFloat(M.Min, M.Max) ;\nM.blue = GetRandomFloat(M.Min, M.Max) ;\n-- This will return the value of the specified string if we want random colorg turned on.\nif GetVarItemInt(\"network.session.ivar118\") == 1 then\n\tprint(\"Random Human Team Color is: r =\" .. M.red ..\" g =\".. M.green ..\" b =\".. M.blue)\n\tfor i= 4, 1, -1 \n\t\tdo \n\t\t\tSetTeamColor(i, SetVector(M.red, M.green, M.blue)); -- Now we set the random team color for the team 1 (player(s)) of a Vector in rgb values\n\t\tend\nend\n```  \n\n```lua\n--[[\nThese integer values are declared in the Mission table/constructor set our rgb values at 0. The maps .inf file will set our min/max at 0 and \n255 for the slider.\n]]--\nlocal M = {\n\tred = 0;\n\tgreen = 0;\n\tblue = 0;\t\n}\n-- Human Team RGB Color Selector Slider\nM.red = GetVarItemInt(\"network.session.ivar111\"); -- Set 'red value' to an ivar#\nM.green = GetVarItemInt(\"network.session.ivar112\");\nM.blue = GetVarItemInt(\"network.session.ivar113\");\n--[[ Once all values are greater than 0, the game will set team 1 (player) custom rgb selection. Once the game is loaded you can \npress \"ctrl ~\" to see that your rgb values are loaded.]]--\nif (M.red \u003e 0 and M.green \u003e 0 and M.blue \u003e 0)  then\n\tfor i= 4, 1, -1 \n\t\tdo \n\t\t\tSetTeamColor(i, M.red, M.green, M.blue);\n\t\tend\n\tprint(\"Player Team Custom RGB: r =\" .. M.red ..\" g =\".. M.green ..\" b =\".. M.blue)\nend\n```\n## Results\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/HerndonE/Battlezone-Color-Selector/blob/master/Visuals/ConfigurationScreen.jpg\"/\u003e\n  \u003cimg src=\"https://github.com/HerndonE/Battlezone-Color-Selector/blob/master/Visuals/ColorGif.gif\"/\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fherndone%2Fbattlezone-color-selector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fherndone%2Fbattlezone-color-selector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fherndone%2Fbattlezone-color-selector/lists"}