{"id":21096920,"url":"https://github.com/iguessthislldo/ck2db","last_synced_at":"2025-05-16T16:31:09.456Z","repository":{"id":111803235,"uuid":"137376092","full_name":"iguessthislldo/ck2db","owner":"iguessthislldo","description":"Various Utilities and Files for my University Project on Analysing Crusader Kings 2 Save Files","archived":true,"fork":false,"pushed_at":"2018-07-04T05:33:09.000Z","size":51,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-13T19:02:18.515Z","etag":null,"topics":["bison","crusaders-kings-2","flex","json","mariadb","sql"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iguessthislldo.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":"2018-06-14T15:24:30.000Z","updated_at":"2024-10-23T15:33:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"345efa4d-80a5-45bf-a350-e55f70898e8f","html_url":"https://github.com/iguessthislldo/ck2db","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iguessthislldo%2Fck2db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iguessthislldo%2Fck2db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iguessthislldo%2Fck2db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iguessthislldo%2Fck2db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iguessthislldo","download_url":"https://codeload.github.com/iguessthislldo/ck2db/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254567319,"owners_count":22092749,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["bison","crusaders-kings-2","flex","json","mariadb","sql"],"created_at":"2024-11-19T22:44:43.024Z","updated_at":"2025-05-16T16:31:09.446Z","avatar_url":"https://github.com/iguessthislldo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ck2db\n\nUniversity Project based on analysing [Crusader Kings 2](https://en.wikipedia.org/wiki/Crusader_Kings_II)\nsave files for a database class.\n\n## Requirements\n\nBuilding the tools requires make, gcc, inotify, iconv, bison and flex. To build them, just run `make`.\n\nck2db.py requires Python3 and the [mysqlclient](https://github.com/PyMySQL/mysqlclient-python) python package and optionally ipython.\n\n## capture\\_autosaves\n\nProgram that monitors the default save location for Crusadar Kings 2 for Steam on Ubuntu and when a new autosave file has been written, it copies it to the new destination directory passed as an argument. The file is renamed as the date in the save in YYYY-MM-DD format.\n\n## ck2json\n\nBison/Flex based converter that converts many of the files used in Crusadar Kings 2 into JSON.\nCharacters that are not [ISO 8859-10/Latin 6](https://en.wikipedia.org/wiki/ISO/IEC_8859-10) are stripped as Crusadar Kings 2 has some custom codepoints.\nEntries with the same name are combined into one entry with a list so that it works as JSON. Sometimes order matters so it might be helpful if the JSON reader can keep the entries in the same order as the file.\nHas bugs relating to Bison handles string tokens, might or might not be my fault.\n\n## ck2db.py\n\nPython3 script for loading a subset of the data of game and multiple save files into a MariaDB \u003e= 10.3 database.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figuessthislldo%2Fck2db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figuessthislldo%2Fck2db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figuessthislldo%2Fck2db/lists"}