How Godot AI Suite came to life
Hey everyone!
So, I have been using AI more and more to help me with my solo game dev journey in Godot. It started as a small experiment, but it has led me to create a tool that I now use all the time. Today, I'm releasing it for all of you here on itch.io. It's called the Godot AI Suite.
My adventure with AI started pretty simple. I would ask it things like "how to make a character jump in Godot." It worked, sometimes. But often, the AI would give me code that was for an old Godot version, or it would just make things up. It didn't know anything about my specific project.
I figured out I needed to give it better instructions. So, I started writing a big "system prompt." I would tell the AI to act like an expert Godot developer, to use the right syntax, and to always think step by step. This helped a lot! The answers got much better.
But as my project grew, my chats with the AI got very, very long. With thousands of tokens of history, the AI would get confused and start to hallucinate again. The only fix was to start a new chat. But then, the AI would forget everything about my project! So, before starting a new chat, I would ask the AI, "please summarize our project so far." I would then paste this summary into the new chat. This was a lot of work.
My next idea was to make one big file with all the project info. I called it Masterprompt.txt. Before talking to the AI, I would manually copy and paste every script into it. This worked great but it was still so much manual work. It was very annoying.
Then I had the big idea. I am a programmer, right? I can automate this! So, I started to write a Godot addon.
The first version was super simple. It just found every .gd file in my project and copied all the code into one text file. It was already a big time saver.
From there, I just kept adding things I needed. I made the addon automatically put my system prompt at the very top of the file. Then, I realized the AI also needed to know my scene structure. So, I added a feature to export the scene trees, with all the nodes, their properties, and signals. Then I added the project.godot settings, because that is also important context. For better understanding of the greater concept I added the Game a design document and a dev log of what is already done. This greatly improved the quality of the output, because the AI could see the bigger picture where a new system was going and what was necessary to make it fit into the other systems that will be implemented way ahead.
Sometimes the exported file was too big because of things I did not need, like the huge data string for a TileMap. So, I added a way to tell the addon to ignore certain files or properties. This keeps the final masterprompt clean and focused.
And that is how the Godot AI Suite was born. It is the result of my own journey to make AI a truly useful assistant for game development in Godot. It takes all the context from your project, your GDD, your scenes, your code, and puts it into one file with one click. You just give this file to Gemini or another AI, and it knows your whole project.
I made this tool for myself, but I think it can help many of you too. No more explaining your project to a machine over and over again. You can just focus on making your game.
I hope you give it a try! Let me know what you think.
Get Godot AI Suite
Godot AI Suite
Export your entire project as context for an AI-Agent.
Status | In development |
Category | Tool |
Author | MarcEngelGameDevelopment |
Tags | addon, ai, ai-tool, Automation, game-development, Godot, plugin, tool, utilities, workflow |
More posts
- Godot AI Suite 1.2 Update: Unleash Your Creativity with the New Prompt Library!6 days ago
- Release 1.1: Export Settings10 days ago
- Release 1.01: .NET Support Added12 days ago
- free example uploaded12 days ago
Leave a comment
Log in with itch.io to leave a comment.