Full Version : Website display
xmlspawner >>XMLPoints Discussion >>Website display


<< Prev | Next >>

crabby654- 08-31-2006
Is it possible to display the information of the points on a website with like a ladder ranking, and it would update automatically?

ArteGordon- 08-31-2006
QUOTE (crabby654 @ August 31, 2006 01:31 pm)
Is it possible to display the information of the points on a website with like a ladder ranking, and it would update automatically?

you can configure the system to write out an html-formatted leaderboad file that can be displayed on your site. The file is automatically updated as frequently as you want.

Use the [leaderboardsave command to configure it.

[Usage( "LeaderboardSave [filename [minutes[nentries]]][off]" )]

like

[leaderboardsave leaders 5

will create files leaders.xml and leaders.html in the default Leaderboard folder containing the top 20 players every 5 minutes.

The default settings are given in xmlpoints.cs

CODE

 private static TimeSpan m_LeaderboardSaveInterval = TimeSpan.FromMinutes(15);   // default time interval between leaderboard saves
 private static string m_LeaderboardSaveDirectory = "Leaderboard";     // default directory for saving leaderboard xml information
 private static int m_LeaderboardSaveRanks = 20;               // number of ranked players to save to the leaderboard.  0 means save all players.


and if you want to adjust settings while ingame and have them saved across restarts, you just need to place an lbsstone

[add lbsstone

crabby654- 08-31-2006
but once i place the html file on my webserver (which is on the same computer as RUnUO) will it AUTO update the leaderboard?

ArteGordon- 08-31-2006
QUOTE (crabby654 @ August 31, 2006 02:10 pm)
but once i place the html file on my webserver (which is on the same computer as RUnUO) will it AUTO update the leaderboard?

it will autoupdate whatever html file you specify. If you set the leaderboardsavedirectory to your webserver and if the leaderboard html file that you specify is the same file that you are displaying, then you will see the update immediately.