- Home /
Some questions about multiplayer games (AI and database)
Hi everyone! First thing i want to say is that im sorry for my bad english, becouse someone can bleed his eyes reading me. Please, read under your own responsability
Before I made the questions that i have. I think its convinient explain some things. Im studying a career on Game Development and i have some, i could call them, problems or doubts. One of the teachers decided give to some groups a theme to study, In short, a type of game to develop during the course. For any divine reason, maybe becouse the theacher hate me just for correcting him some mistakes, he assigned us to develop a MMORPG.
I love MMORPG, i want develop one someday, but not right now. The first this we are developing is a software to manage the game world and the databases. The software allow us to manage everything on the game. For example, (tha game have instanciend maps) we can know what its happening on specific map. We can view the scene on 2D, like a minimap, where the enemies are red dots, the users are blue dots, and others npcs are black dots. We can modify everything on that minimap the mobs positions, movement routes, some little behaviors. Decide, drawing polygons, where walk is allow, the maximun and minimun heights (for physics purpouse), allow fly, weather, and a lot of more things.
We are developing this software becouse we think it could be easier before develop the game itself. But right now we have some doubts, as i said before. Here are the questions.
Implements AI:
We cant found a method to implement the AI from the npcs on server side. We know that you cant trust the client after read and see some tutorials. Finally we decided grant to the server all the work, sending and receiving data by sockets. But we have not come to a conclusion on how to do it.
We found some threads where people ask something similar but no one says something concrete. We dont want other people made the scripts for us. Just some advices and corrections.
The first, and only, method we think, was make just one script, (a thread), who will manage a list (loop) where all npcs with low AI will be. And another one for the bosses with a AI complex (another loop). But we dont know if a server can manage this method.
Database Improvements:
We have few databases on different servers. The first one just to store the data about the user, and servers (IP, name, mail, pass, etc) and for login purpouse. The second one to store the data from the game and the software we made, characters, maps, enemies, skills, items, etc, etc. But recently, we think the client could be access to his own data (character stats, inventory, skills, etc), obviously, not directly, using a intermediary. Just for make the server have less work to do. For that we think add another database on other server What do you think about this?
This is all we want to ask, Sorry again for my bad english and for this bible i wrote. Thanks in advance for those who respond.!! Kissess!!^^ xD
As far as AI goes, you should probably run it on the server side and only send the NPC's movements and animations to the client. Given a powerful enough server (which isn't so hard if you're not running a million NPCs at once), you should only be concerned about performance if you're noticing it.
This kind of a question might be better suited to a forum post.
Your answer
Follow this Question
Related Questions
Dedicated Server for 1v1 Gameplay 3 Answers
Dedicated Server Database 1 Answer
Photon Server 1 Answer
How to go about storing each trading card's effects/powers in tables for AI to use? 1 Answer