Saturday, October 24, 2009

How the PsychoStats take the Game Stats Data - Log Source

In PsychoStats on whole, there are three parts.
  1. Game, whos stats are to be shown
  2. PHP package which shows the data
  3. Perl Scripts which links both
Per scripts are written to make a connection between both. This means the perl connects directly to PHP or its database and the Game too. Yes, the perl connects directly to the game in the form of information extractor from the game Log files. Games like Counter Strike, Call of Duty have the option to log the console of the game. Means that each and every event occurred in the game is logged into a file in the system. So, now the perl can know what has happened in the game. But the Perl even is not asking me any log source! Yes even the perl will take the location of the log source from the PHP itself.

No matter where the Log Sources are, Perl can access it if there is a way, only thing is you need to let it know where the Log Source files are. This again can be configured in the PHP package installation itself installation itself.

Now, Perl will take the info from the log sources and make it into a database. This database is manipulated or structure in required form in the PHP web application package.

So Perl connects to Database, know the Logs location, takes the Game stats info, makes it into a Database again and puts in the database.

But, what is what, where should each part be? On same computer or different ones for each or what? - See the next Post.

No comments:

Post a Comment