Log in scripts and security

Hello everyone,

I’m tryng to understand how security works when people do this login scripts we see here in the forums.
I assume the login/password the player uses to log into the game is supplied when he buys the game, but is everyone using this to simply allow score tables,etc, or also as some kind of validation system to prevent piracy?
Thinking a bit in another way to use this, would be for the game to check if the license key the game is using is valid, but how to do this ? If we use some license key system like Armadillo for example, is there a way to interface the license key that is generated with a database on the website ?
I imagine this is how MMO’s and probably starcraft2 does it…
Any toughts?

hi bigb

this probly wont answer you’r ??? no it wont answer it but any ways i’m a n00b and i wanted to know how do you make mmo game i mean like ware do you start

What I would do is build some sort of web application with PHP, MySQL and PayPal to allow users to purchase a serial code to create a user account on my web server… so the only users that would ever register accounts would be ones that paid. Then I would have the first scene in my Unity game be a login form that connects to the MySQL table of registered users on my server, and checks if the username/password pair that the user entered in the form in the game matches any of the pairs in the database, and if so, allow them to proceed to the next scene.

MMOs use a code that is printed with the manual/CD and you tie that code to a user account in the database online. Then the code is marked off and can’t be used again. The payment side of things is tied to both purchasing the game, thus getting the code and having a valid/paid up account. Simple and easy but not really what you are looking for.

legend411 has the right idea. Personally, I’d ignore ensuring the game is valid and do free distribution but require the account in the database to be valid - IE: a paid account. This is how the Flash games handle it considering Flash is so easy to hack they rarely bother to protect it and instead focus on what they can protect - the database.