Open MMORPG by AI

Pharone

Trakanon Raider
1,305
1,145
Love it or hate it, AI is going to change the fucking world.

Ducehbag companies want to milk us consumers for every dollar we have by using the nostalgia we have for their games by giving us as little as humanly possible while charging us as much as they can get away with to play the same shit over and over and over. Well fuck that.

Here's a thread for making your own MMORPG that has ZERO licensing to worry about.

Enjoy.!
 

Attachments

  • MMORPG_With_Authentication.txt
    9.4 KB · Views: 3
  • MySQL_Auth_REST_API.txt
    5.6 KB · Views: 1
  • 1Mother of God
  • 1Like
Reactions: 1 users

Pharone

Trakanon Raider
1,305
1,145

Setup Instructions:​


  1. Install Unity: Use Unity 2022 LTS or later.
  2. Install Netcode for GameObjects:
    • Open Package Manager in Unity.
    • Add package from git URL: com.unity.netcode.gameobjects.
  3. Scene Setup:
    • Create a new 3D scene.
    • Add a plane as the ground (scale: 100x1x100).
    • Create an empty GameObject named "GameManager" and attach GameManager, PlayerManager, and NetworkManager components.
    • Create a player prefab with CharacterController, NetworkObject, PlayerController, and CharacterData components.
    • Assign the player prefab to the PlayerManager’s playerPrefab field.
    • Add a NetworkSetup script to a separate GameObject to handle network initialization.
  4. Network Configuration:
    • Ensure NetworkManager has a NetworkConfig with the player prefab assigned.
    • Use Unity’s default transport (Unity Transport) for simplicity.
  5. Test:
    • Build and run one instance as the host.
    • Run another instance in the Unity Editor as a client.
    • Move players using WASD keys; observe synchronized movement.

Notes:​


  • This skeleton provides a foundation for player movement, networking, and basic game management. Expand it with systems like combat, inventory, quests, and UI.
  • For production, implement proper server authoritative logic, lag compensation, and security measures.
  • Consider using a dedicated server (e.g., Unity Dedicated Server) for scalability.
  • Add UI for login, character selection, and in-game HUD.
  • For persistence, integrate a database (e.g., MySQL via REST API).
 
  • 1Like
Reactions: 1 user

Pharone

Trakanon Raider
1,305
1,145

Setup Instructions​


  1. MySQL Database:
    • Execute the SQL above to create the database and tables.
    • Update the connection string in the REST API with your MySQL credentials.
  2. REST API:
    • Create a new ASP.NET Core Web API project.
    • Install MySqlConnector via NuGet.
    • Add the above API code to the project.
    • Run the API (e.g., on http://localhost:5000).
  3. Unity Project:
    • Follow the previous skeleton’s Unity setup (scene, Netcode, player prefab).
    • Add a DatabaseManager component to the GameManager GameObject.
    • Update the apiBaseUrl in DatabaseManager to match your API’s URL.
    • Ensure the player prefab has CharacterData updated as above.
  4. Test:
    • Start the MySQL server and REST API.
    • Run the Unity host instance.
    • Connect a client instance.
    • Move the player; check the MySQL database (Players table) for updated position.
    • Verify inventory loading in the Unity console.

Notes​


  • Security: In production, secure the API with authentication (e.g., JWT) and HTTPS. Validate all inputs to prevent SQL injection (handled here via parameterized queries).
  • Scalability: Use connection pooling in the API and optimize database queries for large player bases.
  • Player ID: The skeleton uses a placeholder (clientId + 1). Implement a proper login system to map client IDs to player IDs.
  • Inventory: The skeleton loads inventory but doesn’t modify it. Add API endpoints and Unity logic for adding/removing items.
  • Error Handling: Enhance error handling in Unity and the API for robustness.
  • Performance: Cache player data in Unity to reduce API calls. Use batch updates for frequent changes (e.g., position).
 
  • 1Like
Reactions: 1 user

Pharone

Trakanon Raider
1,305
1,145

Updated REST API​


Below is the updated REST API, adding authentication endpoints with BCrypt for password hashing.

Setup Instructions​


  1. MySQL Database:
    • Apply the ALTER TABLE SQL to add PasswordHash and Salt columns.
    • Ensure the Players and Inventory tables exist (as per previous skeleton).
  2. REST API:
    • Update the ASP.NET Core project with the new AuthController.
    • Install BCrypt.Net-Next via NuGet for password hashing.
    • Update the connection string with your MySQL credentials.
    • Run the API (e.g., on http://localhost:5000).
  3. Unity Project:
    • Add a LoginManager component to a new GameObject (e.g., LoginSystem).
    • Create a UI canvas with:
      • Two InputField components (for username and password).
      • Two Button components (for login and register).
      • One Text component (for error messages).
    • Assign UI elements to LoginManager’s public fields in the Inspector.
    • Update the GameManager GameObject to include LoginManager.
    • Ensure Newtonsoft.Json is installed via Package Manager.
  4. Scene Setup:
    • Add the login UI to the initial scene.
    • Disable auto-connect in NetworkSetup (client connects after login).
    • Keep the previous scene setup (ground plane, player prefab, etc.).
  5. Test:
    • Start the MySQL server and REST API.
    • Run the Unity host instance.
    • In the Unity Editor, enter a username/password, click "Register," then "Login."
    • Verify player spawns and moves, with data saved to the MySQL database.
    • Check the Players table for hashed passwords and salts.

Notes​


  • Security:
    • BCrypt ensures secure password storage.
    • Use HTTPS for the API in production.
    • Add JWT or session tokens for post-login API calls (not implemented here for simplicity).
    • Validate usernames (e.g., length, characters) to prevent injection (handled by parameterized queries).
  • UI:
    • The skeleton assumes a basic UI. Enhance with styling, animations, or error feedback.
    • Add a logout feature to clear session data.
  • Session Management:
    • The clientToPlayerId dictionary maps client IDs to player IDs. Persist this in production (e.g., via Redis).
    • Handle disconnects/reconnects to restore sessions.
  • Scalability:
    • Optimize API queries for large player bases.
    • Use connection pooling in the API.
  • Error Handling:
    • Add retry logic for failed API calls.
    • Display user-friendly error messages (e.g., "Username taken").
 
  • 1Like
Reactions: 1 user

Pharone

Trakanon Raider
1,305
1,145
AI won't build you a MMORPG from start to finish, but it will make all the individual parts.

Here's the beginnings of a free open licensed MMORGP created by GROK.
 
  • 1Like
Reactions: 1 user

Pharone

Trakanon Raider
1,305
1,145
AI can add systems to the game, create character models, create monster models, create sounds, create music, create textures, etc.

If we put the time in to it, we CAN make our own MMORPG. It's going to suck mega ass at first. No doubt about it.

But, thanks to our AI overlords, we CAN make a MMORPG, and we can do it in a fraction of the time of a traditional development company.

Please post your updates here and/or someone create a git repository and lets go!
 
  • 1Like
Reactions: 1 user

Pharone

Trakanon Raider
1,305
1,145
Creating player and monster models for a massively multiplayer online role-playing game (MMORPG) in Unity can be significantly enhanced with AI-driven tools. These tools can generate 2D concept art, 3D models, animations, and textures, streamlining the development process. Below, I outline some AI resources and workflows that can assist you in creating such assets, along with considerations for their integration into Unity. I’ve also included insights from recent discussions and trends in game development to ensure relevance.

### AI Resources for Creating Player and Monster Models

#### 1. **2D Concept Art and Sprite Generation**
AI tools for generating 2D images can serve as a starting point for character and monster designs, which can then be converted into sprites or used as references for 3D modeling.

- **MidJourney**
- **Description**: A powerful AI image generation tool that creates high-quality concept art based on text prompts. It’s widely used for generating fantasy characters, creatures, and environments suitable for MMORPGs.
- **Use Case**: Generate detailed concept art for players (e.g., knights, mages) and monsters (e.g., dragons, goblins). These images can be used as references for 3D modeling or processed into 2D sprites for 2.5D games.
- **Workflow**: Use prompts like “fantasy warrior in detailed armor, RPG style, vibrant colors” to create art. Export images and refine them in tools like Photoshop (with AI features like Generative Fill) for sprite sheets. For 2.5D games, tools like ControlNet or Lora models can rotate AI-generated 2D characters into multiple stances for sprite animations.[](https://www.reddit.com/r/MMORPG/comments/11xxeva/could_aidriven_npc_conversations_in_mmorpgs_be/)
- **Integration in Unity**: Import sprites into Unity’s 2D system or use sprite animation tools like Spine or Unity’s 2D Animation package.
- **Access**: Available via Discord subscription (pricing details at midjourney.com).

- **Stable Diffusion (with Game-Specific Models)**
- **Description**: An open-source AI image generation model that can be fine-tuned for specific art styles, such as pixel art or anime, common in MMORPGs.
- **Use Case**: Generate pixel art sprites or high-resolution character portraits for UI elements. Models like those trained for “Octopath Traveler-style” 2.5D art can be particularly useful.[](https://www.reddit.com/r/MMORPG/comments/11xxeva/could_aidriven_npc_conversations_in_mmorpgs_be/)
- **Workflow**: Use platforms like Automatic1111’s web UI or Hugging Face to run Stable Diffusion locally or in the cloud. Fine-tune with LoRA models for specific RPG styles. Output images can be cleaned up in GIMP or Photoshop for Unity-compatible sprite sheets.
- **Integration in Unity**: Import as textures for 2D characters or UI. Use Unity’s Sprite Editor to slice sprite sheets for animations.
- **Access**: Free (open-source, requires setup) or cloud-based services like RunwayML (subscription-based).

- **DALL·E 3 (via OpenAI or ChatGPT Plus)**
- **Description**: OpenAI’s image generation tool, known for high-quality outputs from detailed prompts.
- **Use Case**: Create concept art for unique monster designs (e.g., “eldritch abomination with glowing tentacles, dark fantasy”). Less suited for pixel art but great for high-res references.
- **Workflow**: Access via ChatGPT Plus or OpenAI’s API. Generate images, then use them as references for 3D modeling or sprite creation in other tools.
- **Integration in Unity**: Use as texture references or UI art.
- **Access**: ChatGPT Plus ($20/month) or API (pay-per-use).

#### 2. **3D Model Generation**
AI tools for 3D model creation are emerging, though they are less mature than 2D tools. These can generate base models that may require refinement in traditional 3D software.

- **TripoSG (Tripo3D)**
- **Description**: An AI tool that converts 2D images into 3D models, suitable for rapid prototyping of characters and monsters.
- **Use Case**: Convert AI-generated 2D concept art (e.g., from MidJourney) into 3D models for players or monsters. A developer on X reported success using OpenAI’s GPT-4o for 2D images combined with TripoSG for high-quality 3D conversions for an MMORPG.[](https://x.com/majidmanzarpour/status/1906034945455263866)
- **Workflow**: Generate a 2D image with MidJourney or Stable Diffusion. Upload to TripoSG’s platform to create a 3D model. Refine the model in Blender (free) or Maya for rigging and animations. Tools like Mixamo (free tier) can auto-rig models for Unity.[](https://x.com/JussiKemppainen/status/1666168259308134403)
- **Integration in Unity**: Import FBX or OBJ files into Unity. Apply textures and animations using Unity’s Animator system.
- **Access**: Free tier available; premium plans for higher quality (tripo3d.ai).

- **Kaedim**
- **Description**: An AI platform that transforms 2D images into game-ready 3D models with textures and UV maps.
- **Use Case**: Ideal for creating low-poly or mid-poly models of MMORPG characters (e.g., elves, orcs) and monsters (e.g., trolls, wyverns).
- **Workflow**: Upload AI-generated concept art or hand-drawn sketches. Kaedim outputs a 3D model optimized for game engines. Post-process in Blender for animations or detailing.
- **Integration in Unity**: Import as FBX/OBJ with textures. Use Unity’s Skinned Mesh Renderer for character models.
- **Access**: Subscription-based (pricing at kaedim.com).

- **Meshy**
- **Description**: An AI tool for generating 3D models and textures from text prompts or images, tailored for game development.
- **Use Case**: Generate monsters like “skeletal dragon with glowing eyes” directly from text. Suitable for rapid iteration of creature designs.
- **Workflow**: Input text or image prompts. Meshy generates a 3D model with textures. Refine in Blender or ZBrush for high-detail models. Auto-rig with Mixamo for animations.
- **Integration in Unity**: Import as FBX with PBR textures. Apply Unity’s Standard Shader or URP for rendering.
- **Access**: Free tier; paid plans for advanced features (meshy.ai).

- **Scenario.gg**
- **Description**: A generative AI platform for creating game assets, including 3D models, used in projects like Genamon (an open-source Unity game).[](https://x.com/jradoff/status/1638901187801141249)
- **Use Case**: Create unique monster models with AI-driven descriptions (e.g., “ChatGPT generates creature lore, Scenario creates the model”).
- **Workflow**: Use Scenario’s API or platform to generate models based on text or image inputs. Refine in 3D software and rig for Unity.
- **Integration in Unity**: Import as FBX. Use Unity’s Animation Controller for custom animations.
- **Access**: Subscription or API-based (scenario.gg).

#### 3. **Animation and Rigging**
AI can assist in generating animations or auto-rigging models, reducing the time needed for character and monster movement.

- **Mixamo (by Adobe)**
- **Description**: While not purely AI, Mixamo uses algorithmic auto-rigging and provides a library of animations that can be applied to 3D models.
- **Use Case**: Rig AI-generated 3D models (e.g., from TripoSG or Kaedim) and apply animations like walking, attacking, or casting spells for players and monsters.
- **Workflow**: Upload a 3D model to Mixamo’s web platform. Auto-rig and select from hundreds of animations. Download as FBX for Unity.[](https://x.com/JussiKemppainen/status/1666168259308134403)
- **Integration in Unity**: Import FBX with animations. Use Unity’s Animator Controller to manage state machines for character behaviors.
- **Access**: Free tier; premium for advanced features (mixamo.com).

- **DeepMotion**
- **Description**: An AI-powered motion capture tool that generates animations from video or text inputs.
- **Use Case**: Create custom animations for unique monster behaviors (e.g., a spider’s scuttle or a dragon’s wing flap) or player actions (e.g., sword swings).
- **Workflow**: Upload a video of a person performing an action or describe the motion in text. DeepMotion generates an animation clip. Export as FBX for Unity.
- **Integration in Unity**: Import animations and apply to rigged models via Unity’s Animation system.
- **Access**: Free trial; subscription for full access (deepmotion.com).

#### 4. **Texture Generation**
AI tools can create high-quality textures for 3D models, enhancing visual fidelity in Unity.

- **Artbreeder**
- **Description**: An AI tool for blending and generating textures or character portraits.
- **Use Case**: Create unique skin textures for player races (e.g., elves, dwarves) or monster surfaces (e.g., scaly dragon hide).
- **Workflow**: Use Artbreeder to generate or blend textures. Export as PNG and apply in Blender or Unity’s material editor.
- **Integration in Unity**: Use textures with Unity’s Standard Shader or URP/HDRP for PBR rendering.
- **Access**: Free tier; premium for high-res outputs (artbreeder.com).

- **RunwayML**
- **Description**: An AI platform for generating and editing images, including textures, using Stable Diffusion and other models.
- **Use Case**: Generate seamless textures for monster models (e.g., “slimy green scales, seamless, 4K”).
- **Workflow**: Create textures via text prompts. Export as PNG/JPG and apply in Unity or refine in Substance Painter.
- **Integration in Unity**: Use as albedo, normal, or roughness maps in Unity’s material system.
- **Access**: Free tier; paid plans for advanced features (runwayml.com).

#### 5. **AI-Assisted Coding for Integration**
AI can also help write scripts to control player and monster behaviors in Unity, speeding up development.

- **GitHub Copilot**
- **Description**: An AI-powered code assistant that suggests C# scripts for Unity.
- **Use Case**: Generate scripts for player movement, monster AI (e.g., pathfinding, attack patterns), or multiplayer networking.
- **Workflow**: Use Copilot in Visual Studio or VS Code to write scripts like “C# script for enemy chasing player in Unity.” Test and refine in Unity’s Play Mode.
- **Integration in Unity**: Attach scripts to GameObjects for gameplay mechanics.
- **Access**: Subscription ($10/month or free for students, github.com).

- **ChatGPT (or Grok)**
- **Description**: Language models can generate code snippets or explain Unity concepts.
- **Use Case**: Ask for “C# code for a monster that spawns at random locations in Unity” or “how to implement player stats in an MMORPG.”
- **Workflow**: Copy code into Unity, debug, and integrate with your game systems.
- **Access**: ChatGPT Plus ($20/month) or free alternatives like Grok (x.ai).

### Unity-Specific Considerations
- **Asset Optimization**: AI-generated models may have high poly counts or unoptimized textures. Use tools like Blender’s Decimate modifier or Unity’s LOD system to optimize for MMORPG performance, especially with many players/monsters on-screen.[](https://mirror-networking.gitbook.io/docs/community-guides/unity-for-mmorpgs)
- **Multiplayer Networking**: For MMORPGs, ensure models and animations work with multiplayer frameworks like Photon (used in Web3 MMORPGs) or Mirror Networking. Test with Unity’s Netcode for GameObjects or uMMORPG Remastered (Unity Asset Store).[](https://developers.moralis.com/build-a-web3-mmorpg-with-unity-in-10-minutes/)[](https://mirror-networking.gitbook.io/docs/community-guides/unity-for-mmorpgs)[](https://assetstore.unity.com/packages/templates/systems/ummorpg-remastered-mmorpg-engine-159401)
- **Art Style Consistency**: AI tools may produce varied styles. Use a consistent prompt structure (e.g., “dark fantasy, low-poly, RPG style”) and post-process in tools like Photoshop or Substance Painter to unify the aesthetic.
- **Free Assets as Supplements**: The Unity Asset Store offers free RPG/MMORPG assets, including character sprites, 3D models, and sound effects, which can complement AI-generated content. Itch.io also has free Unity-compatible MMORPG assets like pixel art icons.[](https://assetstore.unity.com/popular-assets--rpg-and-mmorpg)[](https://assetstore.unity.com/popular-assets/rpg-and-mmorpg)[](https://itch.io/game-assets/free/tag-mmorpg/tag-unity)

### Example Workflow for a Monster Model
1. **Concept Art**: Use MidJourney to generate a “fire demon with glowing runes, dark fantasy” image.
2. **3D Model**: Upload the image to TripoSG or Kaedim to create a 3D model.
3. **Refinement**: Import into Blender to reduce poly count and add rigging.
4. **Animation**: Use Mixamo to apply animations like “demon attack” or “idle roar.”
5. **Texturing**: Generate a fiery texture in RunwayML, apply in Unity’s material system.
6. **Integration**: Import FBX into Unity, attach a C# script (generated via Copilot) for AI behavior, and test in a multiplayer scene using Photon.

### Community Insights
- **X Posts**: Developers are actively using AI workflows for MMORPGs. For example, @majidmanzarpour combined GPT-4o and TripoSG for 3D models, highlighting their potential for high-quality outputs. @JussiKemppainen shared a pipeline using MidJourney and Mixamo for Unity characters, emphasizing speed.[](https://x.com/majidmanzarpour/status/1906034945455263866)[](https://x.com/JussiKemppainen/status/1666168259308134403)
- **Reddit Discussions**: A 2023 thread on r/MMORPG suggested AI could simplify 2.5D character creation for games like Octopath Traveler, though 3D models remain complex. AI-driven NPCs were also proposed for immersion, which could extend to monster AI.[](https://www.reddit.com/r/MMORPG/comments/11xxeva/could_aidriven_npc_conversations_in_mmorpgs_be/)
- **MMORPG Forums**: AI is seen as a productivity booster for creature design, with generative models expected to improve animations and textures soon. However, training costs are a barrier for advanced AI integration.[](https://forums.mmorpg.com/discussion/502140/what-ai-could-do-for-mmos)

### Limitations and Ethical Considerations
- **Quality Control**: AI-generated models may require significant cleanup (e.g., fixing topology or UV maps). Plan time for manual refinement.
- **Licensing**: Ensure AI-generated assets comply with Unity’s and your game’s licensing terms. Tools like MidJourney and Stable Diffusion have varying commercial use policies.
- **Ethical Use**: Be cautious about replacing artists entirely with AI. Many developers use AI to augment, not eliminate, human creativity.[](https://forums.mmorpg.com/discussion/502140/what-ai-could-do-for-mmos)
- **Performance**: High-poly AI models can strain MMORPG servers with many concurrent users. Optimize rigorously.[](https://mirror-networking.gitbook.io/docs/community-guides/unity-for-mmorpgs)

### Additional Resources
- **Unity Asset Store**: Check for AI-compatible tools like uMMORPG Remastered or free RPG assets to reduce workload.[](https://assetstore.unity.com/packages/templates/systems/ummorpg-remastered-mmorpg-engine-159401)[](https://assetstore.unity.com/popular-assets/rpg-and-mmorpg)
- **Tutorials**: FreeCodeCamp’s YouTube course on creating an MMO in Unity with SpacetimeDB covers multiplayer setup, which can inform model integration. HowToMakeGames.org has an MMORPG guide for Unity basics.[](https://www.freecodecamp.org/news/create-a-simple-mmo-game-in-unity/)[](https://www.howtomakegames.org/unity-tutorials/how-to-create-to-a-mmorpg-game-on-unity/)
- **Open-Source Projects**: GitHub hosts MMORPG frameworks like Hercules or AnyRPG, which include free assets and code for Unity-based RPGs.[](https://github.com/topics/mmorpg)[](https://www.anyrpg.org/)

### Conclusion
AI resources like MidJourney, Stable Diffusion, TripoSG, Kaedim, and Meshy can significantly accelerate the creation of player and monster models for your Unity MMORPG. By combining 2D concept art, 3D model generation, animation tools like Mixamo, and texture creators like RunwayML, you can build a robust asset pipeline. However, manual refinement and optimization are crucial for performance and consistency in a multiplayer environment. Community insights from X and forums highlight AI’s growing role in game development, but ethical and technical considerations remain important. If you need specific guidance (e.g., a detailed prompt for MidJourney or a C# script for monster AI), let me know!

**Note**: For pricing details of subscription-based tools (e.g., SuperGrok, x.com premium), check https://x.ai/grok or https://help.x.com/en/using-x/x-premium. For xAI’s API services, visit https://x.ai/api.[](https://assetstore.unity.com/popular-assets--rpg-and-mmorpg)
 
  • 1Like
Reactions: 1 user

ShakyJake

<Donor>
8,206
20,577
I'd be willing to participate in this. Software / web development is my day job. No experience with Unity, but my primary framework experience is .NET / C#.
 
  • 2Like
Reactions: 1 users

Leaton

Trakanon Raider
155
116
I have been planning to do something like this in the near future, once GPT-5 goes live and sub pro and use Codex/Windsurf, as I’m aware of AI improvement progress.

Thank you for posting this!

As a way of fast tracking world building, I was just going to use high resolution radar topology of Venus and select a level and fill below with water for sea.

If you have a look at high resolution topology of Venus, there is some very interesting features that would fit a fantasy world, most notably the spiral canyon.

An idea is to start an open project for everyone on this board to contribute.
 
  • 3Like
Reactions: 2 users

Identikit

Redneck Pornographer
<Bronze Donator>
2,281
4,158
what can AI do other than create a dumpster world that attempts to appeal to everyone yet brings in no one.
 

Synj

Dystopian Dreamer
<Gold Donor>
8,437
37,501
IMG_6705.jpeg
 
  • 1Picard
Reactions: 1 user

Old Man Potter

Trakanon Raider
33
56
AI-generated code and art are the future of game dev. It's already happening. The golden age of the creative is upon us. Spending $50-$100 million to make EQ is irresponsible and the misers at Enad Global 7 know it. Every week new advances in AI are making history. My advice is to wait till the dust settles and then make a new EQ.

No longer will players be held hostage to imbecilic imposters like JChan, Absor, Ngreth, and the entire team of non-binary goblins at Daybreak. They'll be lucky to find jobs delivering for DoorDash when AI takes their jobs.
 
  • 1Cringe
Reactions: 1 user

Identikit

Redneck Pornographer
<Bronze Donator>
2,281
4,158
let me know when I can play this dumb faggot game so I can affirm how cool whatever the fuck AI can do is.
 
  • 1Worf
Reactions: 1 user