Hey guys, I was just wondering if there is some way to do an external zone count in SFS2X, like you can do in SFS Pro?
And if so, could someone tell me how one would go about doing this?
Any help would be greatly appreciated! Thanks!:)
External Zone Count?
- coolboy714cp
- Posts: 323
- Joined: 06 Feb 2010, 02:45
- Contact:
External Zone Count?
SFS-Tutorials: http://sfs-tutorials.blogspot.com/
Re: External Zone Count?
It can be done easily with any API, such as Flash or HTML5 for a web page.
You can create a small app with those API which connects to the server, joins a special Zone (not the one you want to monitor) and asks the Zone count to an Extension.
An alternative is using the database: you can write the Zone count to your DB via the Extension and then read it from the web page.
The update can be done at regular intervals, like every 30-60 seconds, depending on how precise you want it to be
You can create a small app with those API which connects to the server, joins a special Zone (not the one you want to monitor) and asks the Zone count to an Extension.
An alternative is using the database: you can write the Zone count to your DB via the Extension and then read it from the web page.
The update can be done at regular intervals, like every 30-60 seconds, depending on how precise you want it to be
- coolboy714cp
- Posts: 323
- Joined: 06 Feb 2010, 02:45
- Contact:
Re: External Zone Count?
Oh okay thanks! I didn't think about using the HTML5 API.
Is it possible to do the same thing using a language that doesn't have the API built for it? Such as PHP, for example?
Is it possible to do the same thing using a language that doesn't have the API built for it? Such as PHP, for example?
SFS-Tutorials: http://sfs-tutorials.blogspot.com/
Re: External Zone Count?
Using PHP the best thing is via the database, since there's no PHP API to talk to the server directly.
- coolboy714cp
- Posts: 323
- Joined: 06 Feb 2010, 02:45
- Contact:
Re: External Zone Count?
Okay I see what you're saying, but in theory, would it also be possible, for example, to examine all the packets sent to the server, then just replicate it by sending the same data to the server to get the same response as one would get with using the API, just by using simple socket functions in other languages, such as python, php, etc?
SFS-Tutorials: http://sfs-tutorials.blogspot.com/
Re: External Zone Count?
No, it's a huge work, and I wouldn't recommend it.
Plus the SFS2X protocol is fully binary which requires a language capable of manipulating data at the byte level.
Plus the SFS2X protocol is fully binary which requires a language capable of manipulating data at the byte level.
- coolboy714cp
- Posts: 323
- Joined: 06 Feb 2010, 02:45
- Contact:
Re: External Zone Count?
Okay thanks! That's the answer I was looking for!
SFS-Tutorials: http://sfs-tutorials.blogspot.com/
Who is online
Users browsing this forum: No registered users and 69 guests