Welcome to the future of game development and simulations! In this blog, we’re diving into the MindMaker AI Plugin for Unreal Engine 4 (UE4) and Unreal Engine 5 (UE5). This powerful open-source plugin is designed to empower developers to implement machine learning AI agents quickly and easily. Whether you are creating a simple game or a complex simulation, MindMaker seamlessly integrates with your projects.
What is MindMaker?
The MindMaker AI Plugin allows your UE4 and UE5 games to function as environments for training autonomous machine learning agents. It creates a connection between your Unreal Engine project and a Python ML library, transforming your game into an OpenAI Gym environment.
Getting Started with the MindMaker Plugin
Follow these steps to set up the MindMaker Plugin in your Unreal Engine project:
- Download the Plugin: Get the latest release from the UE Marketplace.
- Set Up Your Learning Engine: Download a compatible MindMaker Learning Engine or use the one included with the sample project.
- Move Files: Place the engine files into the ‘Content’ directory of your UE project at
Content/MindMaker/dist/mindmaker/mindmaker.exe. - Install the Plugin: Place the MindMaker AI Plugin in the ‘Plugins’ directory of your UE project.
- Add Socket IO Component: Add a Socket IO component to your chosen blueprint and set the address to
http://localhost:3000.
MindMaker’s Learning Process Explained
Think of the learning process as teaching a child to ride a bicycle. At first, they will wobble and fall (exploration), but as they receive feedback (rewards) from successfully pedaling, they will learn to balance better (exploitation). Similarly, the MindMaker Learning Engine will randomly explore actions, then refine its approach based on the rewards it observes, optimizing its performance over time.
Implementing Machine Learning in Your Project
Once you have set up MindMaker, you can create AI agents and define their actions and rewards:
- Define Actions: Establish what actions (e.g., move forward, jump) your AI agent can take.
- Set Rewards: Create criteria for rewarding successful outcomes (e.g., reaching a target).
- Determine Observations: Define what information the agent needs to make decisions, such as proximity to obstacles or goals.
Saving and Loading Models
To save your trained model, set the “Save Model after Training” checkbox to true in the Launch MindMaker function. The model will be saved locally in the “Appdata roaming” folder. Conversely, to load a pre-trained model, uncheck this setting and specify the model’s name.
Troubleshooting
While working with the MindMaker Plugin, you may encounter a few challenges. Here are some common troubleshooting tips:
- Agent Not Moving: Ensure your training configuration is correctly set up, and check if the correct rewards are being passed to your agent.
- Connection Issues: Confirm that your Socket IO settings are correctly configured for the port and address.
- Model Not Saving: Check the file path for saving your model and ensure it’s accessible to your application.
For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.
Conclusion
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations. With the MindMaker AI Plugin, you are equipped to create cutting-edge machine learning AI agents effortlessly in Unreal Engine!

