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.
Monitoring games' action
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.
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.
Return to “SmartFoxServer 1.x Discussions and Help”
Who is online
Users browsing this forum: No registered users and 45 guests