{"id":17685397,"url":"https://github.com/XorTroll/mkds-re","last_synced_at":"2025-03-30T14:30:29.992Z","repository":{"id":186815013,"uuid":"657140678","full_name":"XorTroll/mkdsdecomp","owner":"XorTroll","description":"Work-in-progress decompilation project of Mario Kart DS: documentation, ASM-hacking and other tools","archived":false,"fork":false,"pushed_at":"2024-10-27T01:33:34.000Z","size":2761,"stargazers_count":29,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-10-27T02:25:52.832Z","etag":null,"topics":["asm-hacking","decompilation","ds","mkds","nintendo-ds","reverse-engineering"],"latest_commit_sha":null,"homepage":"https://xortroll.github.io/mkdsdecomp/","language":"C","has_issues":true,"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/XorTroll.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":"2023-06-22T12:05:19.000Z","updated_at":"2024-10-27T01:33:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"313fcdbd-cc2a-40ac-9869-8bb6a78250fd","html_url":"https://github.com/XorTroll/mkdsdecomp","commit_stats":null,"previous_names":["xortroll/mkdsdecomp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XorTroll%2Fmkdsdecomp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XorTroll%2Fmkdsdecomp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XorTroll%2Fmkdsdecomp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XorTroll%2Fmkdsdecomp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XorTroll","download_url":"https://codeload.github.com/XorTroll/mkdsdecomp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222554062,"owners_count":17002171,"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":["asm-hacking","decompilation","ds","mkds","nintendo-ds","reverse-engineering"],"created_at":"2024-10-24T10:27:38.015Z","updated_at":"2025-03-30T14:30:29.986Z","avatar_url":"https://github.com/XorTroll.png","language":"C","funding_links":[],"categories":["C","Nintendo Wii","Game \u0026 Studio Tools"],"sub_categories":["Nintendo EAD"],"readme":"# Mario Kart DS (EU) reverse-engineering\n\n- [Mario Kart DS (EU) reverse-engineering](#mario-kart-ds-eu-reverse-engineering)\n  - [Save editor](#save-editor)\n  - [ASM-hacking](#asm-hacking)\n  - [Command-line utility](#command-line-utility)\n  - [Credits](#credits)\n\nThis repository contains my reverse-engineering work of the *European version* of **Mario Kart DS** (game code `AMCP`): ASM-hacking, better understanding of yet not fully documented DS/MKDS formats, additional tools (like a save editor) and hopefully more:\n\n[![YouTube](https://img.youtube.com/vi/bEItGRcRmDU/0.jpg)](https://www.youtube.com/watch?v=bEItGRcRmDU)\n\n\u003e YouTube video showcasing an ASM-hack injection of a custom scene with custom dialogs\n\n\u003cimg src=\"tools/save-editor/screenshots/3.png\" alt=\"drawing\" width=\"75%\"/\u003e\n\n\u003cimg src=\"tools/save-editor/screenshots/5.png\" alt=\"drawing\" width=\"75%\"/\u003e\n\n\u003e Screenshots of the [online save editor](https://xortroll.github.io/mkds-re/)\n\n## Save editor\n\nReversing [save-data formats and encryption/decryption](tools/common) allowed me to create an almost fully-featured [online Mario Kart DS save editor](https://xortroll.github.io/mkds-re/):\n\n\u003cimg src=\"tools/save-editor/screenshots/0.png\" alt=\"drawing\"/\u003e\n\u003cimg src=\"tools/save-editor/screenshots/1.png\" alt=\"drawing\"/\u003e\n\u003cimg src=\"tools/save-editor/screenshots/2.png\" alt=\"drawing\"/\u003e\n\u003cimg src=\"tools/save-editor/screenshots/3.png\" alt=\"drawing\"/\u003e\n\u003cimg src=\"tools/save-editor/screenshots/4.png\" alt=\"drawing\"/\u003e\n\u003cimg src=\"tools/save-editor/screenshots/5.png\" alt=\"drawing\"/\u003e\n\n## ASM-hacking\n\nCheck out the [ASM-hacking examples](asmhack-examples) for more detailed information on how to inject custom code in MKDS, using generated [headers](re-export/include) and [symbols](re-export/mkds-eu-decomp-symbols.x) of my reverse-engineering work on this game.\n\n## Command-line utility\n\nFor practical purposes (to make my life easier) I made a simple command-line tool, [mkdsutil](tools/mkdsutil), in order to work with several MKDS formats in a more straightforward way (better than staring into a hex editor).\n\nIt currently has the following features:\n\n- Decrypt and/or encrypt save data\n\n- Print info/fields of decrypted save data\n\nYou will need [CMake](https://cmake.org/) in order to compile it, without any external dependencies other than standard C++.\n\nIf you wish to make your own tools or extend these ones, you may be interested in [the C++ code](tools/common) covering various MKDS formats and utils.\n\n## Credits\n\n- [GBATEK](https://problemkaputt.de/gbatek.htm) for its great (although sometimes limited/outdated) DS docs\n\n- [mkds-asm](https://github.com/rocoloco321/mkds-asm) containing some basic reference MKDS RE work\n\n- [Existing MKDS decomp headers](https://github.com/HaroohiePals/MKDS-decomp-headers) for being a great reference for so many internal structs and types\n\n- [Super Mario Wiki](https://www.mariowiki.com/Mario_Kart_DS) for allowing me to understand some basic gameplay aspects without having to spend hours playing or watching gameplay footage :P\n\n- [Pokémon Diamond decompilation](https://github.com/pret/pokediamond) as a helpful reference for already (partially) understood DS SDK code\n\n- [simontime's MKDS time trial code encoder](https://github.com/simontime/MKDSTTEncoder)\n\n- ['Hacking Nintendo DS' EnHacklopedia page](https://doc.kodewerx.org/hacking_nds.html) as the only (and great) specifications I found regarding DS cheat codes\n\n- [NCPatcher](https://github.com/TheGameratorT/NCPatcher) as a great tool for simplifying the process of making DS ASM hacks\n\n- [Custom Mario Kart Wiiki](https://wiki.tockdom.com/wiki/Friend_Code) for providing me some understanding of WFC-related fields and data\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FXorTroll%2Fmkds-re","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FXorTroll%2Fmkds-re","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FXorTroll%2Fmkds-re/lists"}