Join our community Discord: AI NPC Devs
AI NPC World is a groundbreaking virtual environment where AI NPCs (Non-Player Characters) autonomously interact, adapt, and evolve based on player inputs.
This project is a collaboration between:
- Hugging Face: Pioneers in machine learning tools and resources.
- Gigax: Innovators in AI models for gaming.
- Cubzh: A versatile UGC (User-Generated Content) gaming platform.
- ๐ป Stack
- ๐ง Installation
- ๐จ Customization
- ๐ Deployment
- ๐ Credits
- Game Engine: Cubzh
- AI Models: Hugging Face
- NPC Behavior Framework: Gigax
- Scripting: Lua
- Frontend: Browser-based 3D simulation
- Auto-updating AI Behaviors: NPCs adapt to player interactions dynamically.
- Interactive Storytelling: Players can influence the NPCs and the narrative.
- Customizable Parameters: Modify every aspect of NPC behavior and environment.
- Fork & Hack: Easily fork the project on Hugging Face to create your own worlds.
- Voxel Library: Access a library of 25k voxel items to enhance your game scenes.
Note: There is a one-click install option for this project on Hugging Face for those who want to run it without modification.
git clone https://github.com/Cubzh/ai-npc-world.git
cd ai-npc-world
npm install
Download and install Cubzh following the instructions on their website.
Create a .env
file in the root directory and add the necessary environment variables:
HUGGING_FACE_API_KEY=your_huggingface_api_key
GIGAX_API_KEY=your_gigax_api_key
npm run start
You can now access the simulation at http://localhost:3000.
-
NPC Behavior: Modify NPC scripts in the
scripts/npc/
directory to change their behavior and skills. Some commented lines in the code can enable new skills. -
Environment Design: Use the voxel library to design unique environments. Add or remove items to fit your game's theme.
-
Story & Dialogue: Customize NPC dialogues and storylines by editing the Lua scripts in the
scripts/story/
directory. -
Fork & Experiment: Fork the project on Hugging Face to create your own version of AI NPC World and experiment with different AI models and configurations.
To deploy the project, follow these steps:
- Build the project:
npm run build
- Deploy to a server of your choice. Use platforms like Vercel, Netlify, or any other hosting service to deploy your built project.
- Fork the project on Hugging Face.
- Customize the project to suit your needs.
- Use the Hugging Face deployment tools to launch your own version.
- Hugging Face for providing powerful machine learning models and tools.
- Gigax for their advanced AI models tailored for gaming.
- Cubzh for the incredible UGC gaming platform and voxel library.
- Community Contributors who helped shape and improve the project.
Join us in revolutionizing the gaming world with AI-powered NPCs. Happy gaming!
For detailed documentation, troubleshooting, and contributing guidelines, please refer to the wiki.