{"id":18736343,"url":"https://github.com/matcool/gd-mod-example","last_synced_at":"2025-04-12T19:24:36.308Z","repository":{"id":98990666,"uuid":"344513967","full_name":"matcool/gd-mod-example","owner":"matcool","description":"cmake","archived":false,"fork":false,"pushed_at":"2022-10-16T17:07:53.000Z","size":60,"stargazers_count":37,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T13:45:43.357Z","etag":null,"topics":["example","geometry-dash","mod","template"],"latest_commit_sha":null,"homepage":"","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/matcool.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":"2021-03-04T15:06:56.000Z","updated_at":"2025-02-08T13:41:47.000Z","dependencies_parsed_at":"2023-04-08T05:17:51.983Z","dependency_job_id":null,"html_url":"https://github.com/matcool/gd-mod-example","commit_stats":null,"previous_names":[],"tags_count":1,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matcool%2Fgd-mod-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matcool%2Fgd-mod-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matcool%2Fgd-mod-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matcool%2Fgd-mod-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matcool","download_url":"https://codeload.github.com/matcool/gd-mod-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248619769,"owners_count":21134535,"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":["example","geometry-dash","mod","template"],"created_at":"2024-11-07T15:20:25.002Z","updated_at":"2025-04-12T19:24:36.302Z","avatar_url":"https://github.com/matcool.png","language":"C++","readme":"# gd-mod-example\nBasic Geometry Dash mod example meant for beginners, or as a template for people who want to use CMake + MinHook + gd.h + cocos2d.\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/26722564/117589440-d7498200-b0ff-11eb-8662-e3f0854a5420.png\" alt=\"screenshot\" width=\"48%\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/26722564/117589450-f1836000-b0ff-11eb-8a94-2e7ce4df48c2.png\" alt=\"screenshot\" width=\"48%\"\u003e\n\u003c/p\u003e\n\nFor a simpler and easier to setup/use template check out [gd-mod-cpm-template](https://github.com/matcool/gd-mod-cpm-template)\n\n## Usage\n\nClone the repo and make sure to use the `--recursive` option. If you dont have git you can download a zip of the repo in releases.\n\nMake sure to change the project name on the `CMakeLists.txt` file\n```cmake\nset(PROJECT_NAME template-project) # change this\n```\n\nTo build this project you'll need CMake, which you can download [here](https://cmake.org/download/), and a C++ compiler, such as MSVC, which you can get with Visual Studio\n\n**Make sure you're building in 32 bit mode**, as gd (atleast the windows version) is 32 bit, meaning your dll has to be too.\n\nAll the source files contain a lot of comments which you should definitely read if you're just starting out :) (i recommend starting from [dllmain.cpp](https://github.com/matcool/gd-mod-example/blob/master/src/dllmain.cpp))\n\n### Manual setup\n\nYou can compile this project entirely in the terminal, as long as you have CMake and MSVC already\n\n1. Clone\n```bash\ngit clone --recursive https://github.com/matcool/gd-mod-example my-awesome-mod\ncd my-awesome-mod\n```\n2. Configure (you only need to do this when editing the cmake file, or adding new cpp files)\n``` bash\ncmake -B build -A win32\n```\n3. Build\n```bash\n# config can also be RelWithDebInfo or MinSizeRel\n# however avoid using Debug as that breaks gd.h ;)\ncmake --build build --config Release\n```\n\n## Resources\n- [Ghidra](https://ghidra-sre.org/) - A free reverse engineering tool, which is almost mandatory for GD modding\n- [GD Programming](https://discord.gg/jEwtDBK) - A discord server where you can ask a lot of questions :D\n- [function address dump](https://github.com/matcool/re-scripts/blob/main/func_dump.txt) - A big list of function addresses for windows\n- [gd-addresses](https://github.com/spookybear0/gd-addresses/) - A list of publicly known function offsets\n- [Cheat Engine](https://cheatengine.org/) - An awesome tool that lets you find values in memory, explore memory in a hex view and debug functions.\n- [x32dbg](https://x64dbg.com/) - An advanced debugger\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatcool%2Fgd-mod-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatcool%2Fgd-mod-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatcool%2Fgd-mod-example/lists"}