Hi,
Im here again to suggest more one think.
First, everyone knows my MMORPG?
http://www.prsolucoes.com/evangel
So, what i suggest?
When we have games that need a database and a server that store some informations about the players and this informations we need have external access to edit informations, see top players, make a search options for users, buy special things for the game and much more others things that we need access with the player information store on database.
Thinking in this and while i develop my game i suggest that playerio team, make a method to we post/get information by url and receive the data as xml, json and text.
Example:
On my game i need create account, but for this i need a database. but to dont use playerio space and process we call methods on our server that will make it for us.
1 - Player send the information by form to playerio server:
data = {"name" : "Paulo Coutinho", "username" : "prchakal", "password": "123", "agree": "1"}
2 - Server receive the message typed: "register" and send the information to my server:
public override void GotMessage(Player player, Message message) {
switch(message.Type) {
//register player
case "REGISTER": {
String url = "http://www.prsolucoes.com/evangel/webservice";
var name = message.GetString(0).Trim();
var username = message.GetString(1).Trim();
var password = message.GetString(2).Trim();
XmlDocument xmlDoc = HTTP.post(url, name, username, password); //the params after url is an array like Broadcast command
if (xmlDoc) {
//process XML received on xmlDoc
} else {
//send error message to player (player.send...)
}
}
}
}
Then, this is a poor example, but will help us too much and to extend our horizons
What you think about?