Jump to content
Eternal Lands Official Forums
Sign in to follow this  
Puntif

questions about the new online_players.txt file

Recommended Posts

Entropy announced: "New file for the bots and spiders: online_players.txt (available shortly after the server restart). This file has the players (not the bots) online, space separated, no html or anything else. All the bots and services using the html version MUST switch to using this file instead."

 

I have switched my process to use this file via http: access - should this file be retrieved by http: or ftp or some other protocol?

 

How often may I access this file? My process currently retrieves this information twice per hour. (I see someone asked this question in the bots section of forums).

Share this post


Link to post
Share on other sites

Entropy announced: "New file for the bots and spiders: online_players.txt (available shortly after the server restart). This file has the players (not the bots) online, space separated, no html or anything else. All the bots and services using the html version MUST switch to using this file instead."

 

I have switched my process to use this file via http: access - should this file be retrieved by http: or ftp or some other protocol?

 

How often may I access this file? My process currently retrieves this information twice per hour. (I see someone asked this question in the bots section of forums).

 

Http, I don't think the FTP is even working on the server.

You can get it every 5 minutes or so.

Share this post


Link to post
Share on other sites

failing that, you can get online_players.htm once an hour or so, and parse out the bots as well as players (I do this)

it's probably not quite as efficient as an online_bots.txt file, and depending on the language your bot is in, you may have to develop some code for dealing with HTML (I wrote both a web-get (from SDL_net sockets) and de-html-izer in C++, only a page or so, so it's not that tricky... in perl I could turn the HTML into an array in a line or two), but it's a workable solution right now

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×