{"id":49076942,"url":"https://github.com/tuomas2/civ6-pydt-autoload","last_synced_at":"2026-04-20T10:10:41.694Z","repository":{"id":345082709,"uuid":"1183508558","full_name":"tuomas2/civ6-pydt-autoload","owner":"tuomas2","description":"A Civilization 6 mod that automatically loads your latest Play Your Damn Turn (PYDT) save game when you return to      the main menu, eliminating the need to manually navigate through load game menus between turns. ","archived":false,"fork":false,"pushed_at":"2026-03-17T15:01:03.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-18T05:29:40.126Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/tuomas2.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":"2026-03-16T17:17:04.000Z","updated_at":"2026-03-17T15:01:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tuomas2/civ6-pydt-autoload","commit_stats":null,"previous_names":["tuomas2/civ6-pydt-autoload"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/tuomas2/civ6-pydt-autoload","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuomas2%2Fciv6-pydt-autoload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuomas2%2Fciv6-pydt-autoload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuomas2%2Fciv6-pydt-autoload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuomas2%2Fciv6-pydt-autoload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuomas2","download_url":"https://codeload.github.com/tuomas2/civ6-pydt-autoload/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuomas2%2Fciv6-pydt-autoload/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32042445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":[],"created_at":"2026-04-20T10:10:40.731Z","updated_at":"2026-04-20T10:10:41.683Z","avatar_url":"https://github.com/tuomas2.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PYDT Autoload — Civ 6 Mod\n\nAutomatically loads the most recent PYDT (Play Your Damn Turn) hotseat save when you start Civilization VI. No clicking through menus — go straight to playing your turn.\n\n## How it works\n\n1. When the main menu loads, the mod queries for hotseat saves\n2. If a save with \"PYDT\" in the filename is found and it is less than 60 seconds old, it loads automatically\n3. Autoload only triggers once per game session — returning to the main menu won't re-trigger it\n4. If no fresh PYDT save is found, the game starts normally\n\n## Installation\n\n1. Copy the mod folder to your Civ 6 Mods directory:\n   - **Windows (Steam):** `Documents\\My Games\\Sid Meier's Civilization VI\\Mods\\PYDTAutoload\\`\n   - **Windows (Epic):** `Documents\\My Games\\Sid Meier's Civilization VI (Epic)\\Mods\\PYDTAutoload\\`\n   - **Linux (native):** `~/.local/share/aspyr-media/Sid Meier's Civilization VI/Mods/PYDTAutoload/`\n   - **Linux (Steam/Proton):** `~/.local/share/Steam/steamapps/compatdata/289070/pfx/drive_c/users/steamuser/Documents/My Games/Sid Meier's Civilization VI/Mods/PYDTAutoload/`\n   - **macOS:** `~/Library/Application Support/Sid Meier's Civilization VI/Mods/PYDTAutoload/`\n\n2. The mod folder should contain:\n   ```\n   PYDTAutoload/\n   ├── PYDTAutoload.modinfo\n   └── UI/\n       └── FrontEnd/\n           └── MainMenu.lua\n   ```\n\n3. The mod has `EnabledByDefault=1`, so it should activate automatically. If not, launch Civ 6, go to **Additional Content \u003e Mods**, enable **PYDT Autoload**, and restart the game (FrontEnd mods require a restart).\n\n## Usage with PYDT\n\n1. Configure your [PYDT desktop client](https://www.playyourdamnturn.com/) to download turns automatically\n2. When it's your turn, PYDT downloads the save to your Hotseat folder and (optionally) launches Civ 6\n3. This mod detects the fresh PYDT save and loads it immediately — you're in the game\n\n## Configuration\n\nEdit `UI/FrontEnd/MainMenu.lua` and change the `PYDT_MAX_AGE_SECONDS` value (default: 60 seconds):\n\n```lua\nlocal PYDT_MAX_AGE_SECONDS = 60;  -- Change this to your preferred max age in seconds\n```\n\nThe mod only loads saves with \"PYDT\" in the filename (case-insensitive). Regular hotseat saves are never auto-loaded.\n\n## Debugging\n\nCheck `Logs/Lua.log` in your Civ 6 AppData directory for messages starting with `PYDT Autoload:`. Setting `EnableTuner 1` in `AppOptions.txt` enables more verbose logging.\n\nExample log output when working:\n```\nMainMenu: PYDT Autoload: Found PYDT save '(PYDT) Play This One!.Civ6Save', age=31s\nMainMenu: PYDT Autoload: Save is fresh (31s), loading automatically.\nMainMenu: PYDT Autoload: Loading hotseat save...\n```\n\n## Technical notes\n\n- The save age is calculated by converting Windows FILETIME (from `UI.GetSaveGameModificationTimeRaw`) to Unix epoch and comparing with `os.time()`. This works correctly under Wine/Proton.\n- The correct save type enum is `SaveTypes.HOTSEAT` (not `HOTSEAT_MULTIPLAYER`).\n- `EnabledByDefault=1` means the mod loads like a DLC — it appears in \"Target Mods\" in Modding.log, not \"Enabled Mods\". This is normal.\n\n## Known limitations\n\n- **Replaces MainMenu.lua** — incompatible with other mods that replace the main menu (e.g., Better FrontEnd, MPH). Since Civ 6 is no longer receiving updates, the base file should remain stable.\n- **Gathering Storm required** — the bundled MainMenu.lua is from the Gathering Storm version of the game.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuomas2%2Fciv6-pydt-autoload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuomas2%2Fciv6-pydt-autoload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuomas2%2Fciv6-pydt-autoload/lists"}