{"id":24999020,"url":"https://github.com/bukowa/twdll","last_synced_at":"2026-05-04T02:31:31.644Z","repository":{"id":274893573,"uuid":"924396816","full_name":"bukowa/twdll","owner":"bukowa","description":"twdll is a mod for Total War: Rome II that extends the game's scripting capabilities, allowing for more complex and powerful mods.","archived":false,"fork":false,"pushed_at":"2026-05-01T03:40:38.000Z","size":24024,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-05-01T05:09:41.819Z","etag":null,"topics":["c","dll","library","lua","native","rome2","scripting","state","totalwar"],"latest_commit_sha":null,"homepage":"https://bukowa.github.io/twdll/","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bukowa.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"bukowa","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2025-01-29T23:23:58.000Z","updated_at":"2026-05-01T03:40:41.000Z","dependencies_parsed_at":"2025-12-21T04:02:47.315Z","dependency_job_id":null,"html_url":"https://github.com/bukowa/twdll","commit_stats":null,"previous_names":["bukowa/twdll"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/bukowa/twdll","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bukowa%2Ftwdll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bukowa%2Ftwdll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bukowa%2Ftwdll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bukowa%2Ftwdll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bukowa","download_url":"https://codeload.github.com/bukowa/twdll/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bukowa%2Ftwdll/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32592329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"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":["c","dll","library","lua","native","rome2","scripting","state","totalwar"],"created_at":"2025-02-04T18:52:51.497Z","updated_at":"2026-05-04T02:31:31.637Z","avatar_url":"https://github.com/bukowa.png","language":"Lua","funding_links":["https://ko-fi.com/bukowa"],"categories":[],"sub_categories":[],"readme":"# Total War: Rome II Script Extender (twdll)\n\nThis project lets you run custom C++ code inside the Rome II Lua engine. It’s useful for modders who want to do things that the standard game scripts can't handle.\n\n## How it works\nThe game engine has its own Lua state. `twdll` uses **Signature Scanning** to find the internal Lua functions in the game's memory at runtime. This allows the DLL to register a custom `twdll` table that your scripts can use.\n\nThe project already includes example functions for modifying units, characters, and factions, which you can use as a base for your own features.\n\n## Installation\n1. Go to the [**Releases Page**](https://github.com/bukowa/twdll/releases).\n2. Download the latest `libtwdll.zip`.\n3. Extract everything into your main game folder (where `Rome2.exe` is).\n4. The DLL is passive; it only starts working if a mod calls for it.\n\n## For Modders\nTo use it in your mod, make sure `twdll.dll` is in the game root directory, then load the library at the start of your script:\n\n```lua\n-- Load the library\npackage.loadlib(\"twdll.dll\", \"luaopen_twdll\")()\n\n-- Use it\ntwdll.Log(\"Hello from C++!\")\n```\n\nCheck out the [API Documentation](https://bukowa.github.io/twdll/) for all the available functions.\n\n## Development\nWe recommend using **CLion** for development. It's built with CMake and is easy to set up.\n\n### Prerequisites\n- **Visual Studio 2022** (with C++ components)\n- **CMake** 3.29+\n- **RPFM CLI** (to build the pack files)\n\n\u003e [!IMPORTANT]\n\u003e You must edit `CMakePresets.json` to point to your actual game and tool paths before building.\n\n### Automated Workflow\nWe have CMake presets that handle everything:\n- `run_alone_tail`: Builds everything, starts the game, and shows you the log in your IDE.\n- `run_alone_test_tail`: Runs our automated test suite and tells you if it passed.\n\n### Building Documentation\nWe use **LDoc** to generate the API reference from the C++ comments. To build it manually:\n```sh\n# This is usually part of the release build\ncmake --build --preset vs2022-release\n```\nThe documentation will be generated in the `docs/` folder.\n\n## How to Release\nOfficial releases are automated via GitHub Actions. To release a new version:\n\n1.  **Update `CHANGELOG.md`**: Add a new entry for the version (e.g., `## [0.5.0] - 2026-05-01`).\n    *   You can validate your changes locally using: `python .github/scripts/validate_changelog.py`\n2.  **Commit and Push**: Push your changes to the `master` branch.\n3.  **Tag the Version**: Create a git tag starting with `v` and push it:\n    ```sh\n    git tag v0.5.0\n    git push origin v0.5.0\n    ```\n4.  **Verification**: The GitHub Action will automatically build the DLL, package the mod, extract the changelog notes, and create the official GitHub Release.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbukowa%2Ftwdll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbukowa%2Ftwdll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbukowa%2Ftwdll/lists"}