trevaintdead/ai-game-modding-guides
Guides for building game mods with AI coding agents: passthrough mods, Rust rewrites, mod loaders, prompting, and troubleshooting.
About trevaintdead/ai-game-modding-guides
trevaintdead/ai-game-modding-guides is an open-source project on GitHub, mainly written in several languages. Guides for building game mods with AI coding agents: passthrough mods, Rust rewrites, mod loaders, prompting, and troubleshooting. It currently holds 182 stars and 18 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).
Project Overview
AI Homed tracks it on the Today's Trending board, currently at rank #80 with 0 new stars today.
GitHub Repository Details
README
AI Game Modding Guides
Guides for two kinds of projects, both built with an AI coding agent via a harness:
- Passthrough mods: two games running at once and linked together, like SkyCraft (Minecraft inside Skyrim).
- Rust rewrites and ports: rebuilding a game's engine in Rust so it reads data from your own copy, like IW4L.
Worth saying up front: everyone has their own methods, prompting style, and workflow. We can't cover everything, so take the methods in these guides with a grain of salt and build your own from them.
Status: draft. Tools, models, plan limits, and mod loaders change fast. Verify a detail before you rely on it.
> Single-player and offline games you own only. Nothing here covers anti-cheat, DRM, or online play. See the rules.
> Before you publish anything, read LEGAL.md. It covers what this repository does and does not cover, and what to do if a publisher contacts you or your repo gets taken down. None of it is legal advice.
> Platform. Most passthrough mods target the Windows build of a game, and they aren't guaranteed to work under Wine or Proton. If you've gotten one running that way, please tell us.
> Rust rewrites are cross-platform: the project just has to be built for your OS. IW4L documents Linux and macOS build steps.
Start here
Never done this before? Read Start here.
Have a question you haven't seen answered yet? Go to the FAQ.
The short version
1. Use an AI agent through a harness, not a chat website. A harness (Claude Code, Codex, OpenCode, and others) runs on your PC (using the API provided by your AI provider), reads your game folders, writes and edits files, and runs builds. The browser versions of AI do not have access to files on your PC, so it is much easier to use the Agent through a harness. 2. Check whether your game has a mod loader. This decides whether your idea is realistic. See guide 8. 3. Install the games first. The agent finds the files itself, so you don't upload anything. 4. Point it at an example project (SkyCraft for passthrough, IW4L for rewrites) and tell it what you want. 5. Expect many rounds. The first prompt rarely finishes the job. You playtest, report what happened, and the agent fixes it. 6. Never commit game files. Your repo holds your code only. Players use their own copies. 7. Agents usually leave DRM and anti-cheat alone, and online-only games are a no-go. We don't condone circumventing agent guardrails, piracy, or DRM. Some games with anti-cheat do allow offline modding through the game's own option; see the rules.
Guides
| # | Guide | Read it if | |---|-------|-----------| | 0 | Start here | You have never done this before | | 1 | Choosing and setting up an AI agent | You don't know which tool or model to use, or what it costs | | 2 | Passthrough mods | You want to link two games | | 3 | Rust rewrites and ports | You want to rebuild a game's engine | | 4 | Prompting and workflow | You want to know what to say and how to keep a project on track | | 5 | Testing and troubleshooting | Something broke, or the AI is stuck | | 6 | Rules, legal, and publishing | Before you share anything | | 7 | FAQ | Quick answers to the most common questions | | 8 | Mod loaders and script extenders | You need to know what you can install, or whether your idea is possible | | 9 | Worked example: a passthrough mod, start to finish | You want the whole process with the actual prompts | | 10 | Posting your project | You've got something that runs and want people to use it | | 11 | Models and what to spend | You're deciding what to pay, or which model to point the agent at | | 12 | Worked example: IW4L, an AI-assisted Rust rewrite | You want an honest Rust rewrite case study | | 13 | Reverse engineering and the law | You're decompiling something and want to know where the lines actually are |
Legal
LEGAL.md covers what this repository is and is not, the behaviours that actually lower your risk, what to do if a publisher contacts you, and the formal DMCA counter-notification process if your repository gets taken down.
Read it before you publish, not after a letter arrives. None of it is legal advice.
Templates
Drop these into your own project.
templates/AGENTS-starter.md: a rules file that makes the agent follow your rules every sessiontemplates/STATUS-handoff.md: the note you give a fresh chat when the old one gets stucktemplates/MODLOG-template.md: a running log of what changed and what was testedtemplates/workflow-writeup.md: for sharing how you made your project
Examples worth studying
| Project | What it shows |
|---------|---------------|
| SkyCraft | Passthrough: Minecraft inside Skyrim (script extender plugin + Fabric mod) |
| FalloutCraft | Passthrough: SkyCraft's design reused for Fallout 4 |
| OWCraft | Passthrough: SkyCraft's design reused for Outer Wilds, with a development log and design doc |
| GTA San AnSkateas | Skate 3's engine running inside GTA San Andreas |
| 2010 Rust Rewrite Mashup | A Rust rewrite combined with other games |
| IW4L | Rust/Bevy runtime for Modern Warfare 2 (2009), reading your own install. Experimental, and honest about it |
| gang-beasts-rust | Rust/Bevy rewrite with Python extractors and a whitelist .gitignore |
| benilla | A large Rust/Bevy rewrite (a WoW 1.12.1 client) |
| universal-modder | Ten agent skills, a CLI, and a knowledge base of per-game field notes |
Finished open-source engine reimplementations, if you want to see what the long game looks like: OpenMW, OpenRCT2, OpenTTD.
Who these guides are for
People who have never written code and want to try something anyway. You don't need to be a programmer to start, and you don't need Rust or reverse engineering either. Do keep in mind, having knowledge and experience will get you a long way.
You do need to be willing to describe problems clearly and to spend most of your time playtesting and reporting back.
Get help
Guides can only cover so much. For anything specific to your setup, ask in #support-help or post your project in the #share-your-projects channel on the chasm server. That's where people post problems and projects.
Include your games and exact versions, the loaders, the agent and model, what you tried, and the logs. If the chat got stuck, the STATUS.md trick in guide 4 writes most of that for you.
Corrections to the guides themselves are better as a pull request. See CONTRIBUTING.md.
Open questions
Nobody has settled these. If you know the answer, post it on the Discord:
- Does a detailed prompt or a short, loose one work better? Both camps are quoted here.
- Which free model can finish a project?
- How do you handle Unreal Engine games?
Contributing
Experienced developers are welcome. Technical write-ups, corrections, dead ends worth documenting, and workflow examples all help.
Disclaimer
These are unofficial fan projects. They are not affiliated with or endorsed by any game's developer or publisher. Nothing here is legal advice.
LEGAL.md has the full notice, what to do if a publisher contacts you, and the DMCA counter-notification process.
Licence and attribution
Guides: MIT. Linked projects keep their own licences, so check each one before reusing its code.
If you write a guide based on one of these, credit it by name and keep its licence. FalloutCraft and OWCraft both credit SkyCraft that way.