Monitoring games' action

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

eyal
Posts: 35
Joined: 29 Nov 2009, 11:18

Monitoring games' action

Postby eyal » 20 Jan 2010, 10:19

Hi,
I have to build a system which monitoring the game's actions and results as well as start game and game over.
Also, I have to monitor whether an action is legal for the game or not.
How it can be done?
Thanks,
Eyal.
User avatar
Lapo
Site Admin
Posts: 20729
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 20 Jan 2010, 16:13

These are two different things.
For both it is required to use a server side extension.
Your game (client) will send requests to the Extension where you can apply all the validation that is required and then update the other clients accordingly.

As regards monitoring the game state and collecting stats etc... you could do the monitoring in the same game extension, maybe using a database to log the relevant information.

A second extension could be written to access these logs, process them and send them to a client.
Another convenient way to implement this is to use the embedded Jetty server to create an HTTP admin tool. Jetty runs in the same JVM as SmartFox and can access both database data and runtime data, so it's quite easy to create a private monitoring tool.
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 4 guests