{"id":44790218,"url":"https://github.com/quitch/new-gw-cards","last_synced_at":"2026-02-16T11:00:11.681Z","repository":{"id":49322612,"uuid":"449333752","full_name":"Quitch/New-GW-Cards","owner":"Quitch","description":"Template for the creation of mods which add cards to Galactic War through the Galactic War Overhaul mod.","archived":false,"fork":false,"pushed_at":"2024-08-02T08:07:58.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-02T09:38:18.255Z","etag":null,"topics":["galactic-war","planetary-annihilation-titans"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Quitch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-01-18T15:12:37.000Z","updated_at":"2024-08-02T08:08:02.000Z","dependencies_parsed_at":"2024-04-09T14:08:43.682Z","dependency_job_id":"327a2a4e-9eb8-4e4a-a56e-c19e7799e6d9","html_url":"https://github.com/Quitch/New-GW-Cards","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Quitch/New-GW-Cards","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quitch%2FNew-GW-Cards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quitch%2FNew-GW-Cards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quitch%2FNew-GW-Cards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quitch%2FNew-GW-Cards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Quitch","download_url":"https://codeload.github.com/Quitch/New-GW-Cards/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quitch%2FNew-GW-Cards/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29506317,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["galactic-war","planetary-annihilation-titans"],"created_at":"2026-02-16T11:00:08.500Z","updated_at":"2026-02-16T11:00:11.672Z","avatar_url":"https://github.com/Quitch.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# New Galactic War Cards\n\nA mod template for use by individuals who want to add new loadouts and tech cards to Planetary Annihilation: TITANS (PA) Galactic War. Requires Galactic War Overhaul to work.\n\n## Requirements\n\nYou will be working with JSON and JavaScript files. I recommend the use of [Visual Studio Code](https://code.visualstudio.com/) or similar IDE.\n\nFor testing you will need the [Coherent UI Debugger](https://cdn.planetaryannihilation.com/downloads/debugger-windows.zip). To allow it to connect to PA, add `--coherent_port=9999` to your launch options.\n\n## Preparing the mod\n\nPlace the `my_card_mod` folder within the `client_mods` folder of your [PA data directory](https://support.planetaryannihilation.com/kb/faq.php?id=176). If this folder does not exist you should create it. You can rename `my_card_mod` to something of your choice. This `my_card_mod` folder is the root of your mod and all further instructions will proceed from there.\n\nUpdate the following fields in `modinfo.json`:\n\n1. `identifier`\n2. `display_name`\n3. `description`\n4. `author`\n5. `scene` - the `gw_start` and `gw_play` URLs should match your `identifier`.\n\nUnder `/ui/mods/` change the folder found there to match your `identifier`.\n\n## Creating cards\n\nPA's cards can be found under `{PA_INSTALL_DIRECTORY}/media/ui/main/game/galactic_war/cards`\n\nThe cards which ship with Galactic War Overhaul, including the updated base game cards, can be found in the [Galactic War Overhaul repository](https://github.com/Quitch/GW-AI-Overhaul/tree/master/ui/main/game/galactic_war/cards).\n\nFor your first card you should take a copy of a card which does something similar to what you want to achieve and use it as a base template. Place the card in your mod's `/ui/main/game/galactic_war/cards` folder. Rename it using a unique name. A typical naming strategy is ACRONYM_EFFECT_UNITTYPE.js e.g. `gwc_damage_bots.js`\n\nThe mod `start_card_id.js` and `tech_card_id.js` files provide instructions on how to create your own loadouts and tech cards.\n\nThe `deal` function is used for card distribution. The `buff` function is the adding of units, unit mods, and AI mods. The `dull` function is applied after all card `buff`s and is for the removal of units.\n\n### Setting up a loadout\n\nOpen the mod's `start_cards.js` file. This file provides an example of how to load multiple start cards. Change the loadout IDs to match your card's file name, minus the file extension.\n\nSet the `LS_KEY` variable in `bank.js` to something unique. This is where the locked status of your loadouts will be stored in the local storage database.\n\n### Setting up a tech card\n\nOpen the mod's `tech_cards.js` file. This file provides an example of how to load multiple tech cards and setup the tooltips for them.\n\nChange the tech IDs to match your card's file name, minus the file extension. Change unit paths to the file path of the unit's JSON, using the structure `/pa/units/SOME_LAYER/SOME_UNIT_NAME/SOME_UNIT_NAME.json`\n\n### Adding new specs\n\nOpen the mod's `specs.js` file. This file provides an example of how to load unused files for modification.\n\n## Testing your mod\n\n1. Add `--devmode` to your PA [launch options](https://help.steampowered.com/en/faqs/view/7D01-D2DD-D75E-2955).\n2. Launch PA.\n3. Under Community Mods enable your mod in the INSTALLED list.\n4. Return to the Main Menu.\n5. Open the Coherent UI Debugger.\n6. Click GO.\n7. Click Start Page.\n8. Change to the Console tab.\n\nDuring testing you will be checking the debugger for errors. Note that it is expected for PA to generate the following up to once per scene:\n\n- ERROR: _Uncaught TypeError: undefined is not a function_\n- WARN: _Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check \u003chttp://xhr.spec.whatwg.org/\u003e._\n\n### Start cards\n\n1. Start PA.\n2. Go to the Galactic War Loadout screen.\n3. Confirm that your loadout is listed, locked, and its hint displayed.\n4. Confirm that your card was dealt to your inventory and no errors show in the debugger.\n5. In the debugger switch to the Resources tab.\n6. Expand local storage.\n7. Click on `coui://`.\n8. If the key `gwaio_bank` does not exist then right-click in the empty line at the bottom and create it.\n9. Right-click `gwaio_bank` and choose to edit the value, adding your start card ID in the format `{\"id\":\"your_card_id\"}` - the final result should look something like `{\"startCards\":[{\"id\":\"some_card_you_previously_unlocked\"},{\"id\":\"your_card_id\"}]}`.\n10. Press Enter to save your change.\n11. Press F5 to refresh the loadout screen.\n12. Confirm that your loadout is unlocked and selectable.\n\n### Tech cards\n\n1. Start PA.\n2. Start a new Galactic War.\n3. Click the X in the bottom left-hand corner.\n4. Enter your card ID into the panel.\n5. Click the + icon to the right of the text entry box.\n6. Confirm that your card was dealt to your inventory and no errors show in the debugger.\n7. In the debugger check the `Preserve log` box.\n8. Begin a fight.\n9. Confirm that no unexpected errors show in the debugger.\n10. Use the sandbox to spawn your modified units and check that they operate correctly.\n\n## Releasing your mod\n\nUpdate the following fields:\n\n1. `version` - consider [semantic versioning](https://semver.org/).\n2. `date`\n3. `build` - match the contents of the version file at the root of PA.\n4. `forum` - URL of the mod's forum thread.\n5. `icon` - URL of a publicly accessible png file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquitch%2Fnew-gw-cards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquitch%2Fnew-gw-cards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquitch%2Fnew-gw-cards/lists"}