{"id":17170816,"url":"https://github.com/huderlem/gomons","last_synced_at":"2025-04-13T16:08:15.615Z","repository":{"id":43085427,"uuid":"211420261","full_name":"huderlem/gomons","owner":"huderlem","description":"Go library that can read and modify Pokémon Emerald save files","archived":false,"fork":false,"pushed_at":"2023-08-30T13:56:02.000Z","size":113,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T16:08:09.169Z","etag":null,"topics":["go","golang","pokemon","save-editor"],"latest_commit_sha":null,"homepage":"","language":"Go","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/huderlem.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}},"created_at":"2019-09-28T00:15:33.000Z","updated_at":"2024-08-27T05:53:16.000Z","dependencies_parsed_at":"2022-08-30T21:02:12.748Z","dependency_job_id":null,"html_url":"https://github.com/huderlem/gomons","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/huderlem%2Fgomons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huderlem%2Fgomons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huderlem%2Fgomons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/huderlem%2Fgomons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/huderlem","download_url":"https://codeload.github.com/huderlem/gomons/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248741206,"owners_count":21154255,"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":["go","golang","pokemon","save-editor"],"created_at":"2024-10-14T23:32:45.726Z","updated_at":"2025-04-13T16:08:15.592Z","avatar_url":"https://github.com/huderlem.png","language":"Go","funding_links":[],"categories":["Game \u0026 Studio Tools"],"sub_categories":["Game Freak"],"readme":"# gomons\n\nThis is a Go library that can read and modify Pokémon Emerald save files. It is very much a work in progress, but contributions are welcome. Currently, it only supports save files generated by the no$gba emulator.\n\n## Example Usage\n\nHere is a full working example that does some basic reading and modification.\n```go\npackage main\n\nimport (\n\t\"bufio\"\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/huderlem/gomons/gen3\"\n)\n\nfunc main() {\n\tgameSave, _ := gen3.LoadSaveFile(\"pokeemerald.sav\")\n\tif err := gameSave.CheckCorruption(); err != nil {\n\t\t// Save file is corrupted.\n\t\treturn\n\t}\n\n\t// Print the player's name.\n\tfmt.Println(gameSave.GetPlayerName())\n\n\t// Give the player 9,999 money.\n\tgameSave.SetMoney(9999)\n\n\t// Save the modified save file to disk.\n\tf, _ := os.Create(\"pokeemerald.modified.sav\")\n\tdefer f.Close()\n\tfileWriter := bufio.NewWriter(f)\n\tgameSave.Write(fileWriter)\n\tfileWriter.Flush()\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuderlem%2Fgomons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhuderlem%2Fgomons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhuderlem%2Fgomons/lists"}