Greetings,
I am new to the forum!
I have a couple of questions that may make this thread a little longer, I hope everyone is able to help me.
I want to create a website that pulls data from a server game (Grepolis). This data can show the activity of members/players, alliances, as well as inactivity, overall points, etc. Kind of like these 2 websites : Oracle of Zancle Grepolis Grepolis Intel
I know these websites pull the data from [quote]http://usX.grepolis.com/data/players.txt.gz[/quote] where I need to replace the āXā with the number of the server I play in. For example: Players Data .txt.gz <ā Do not click unless you want to download
US Grepolis Forum - Links to Servers Data
My problem is that I do not know how these websites do it, or even where to start.
Could anyone please share some of your knowledge on how to create this type of websites?
Thank you
ā Edit to add:
This a quote from US Grepolis Forum - Links to Servers Data, I am adding it here so you donāt have to open it and have more tabs open.
[QUOTE]To help developers of external sites statistics, we make available for download the data of the most important worlds. Player attributes, cities and alliances are thus available for download regularly. We also provide information on the conquests of the city from a world in UNIX timestamp and content profiles.
Load the data only when you need it in order not to overload the server query. Scripts loading the data more than once per hour are not allowed. It is best to host them on an external site in that case. Note that the data is updated at regular intervals based on the world selected.
The files are available in .txt.gz format and there are 11 in total. Each file consists of an arbitrary number of comma-separated lines. The data is encoded PHP format, which means that a comma is expressed by %.
For download, it is necessary to replace usX by the identification number of the desired world (us1 for Alpha , us2 for Beta , etc ā¦)
http://usX.grepolis.com/data/players.txt.gz
This file contains information about the players. The data is available in the following order:
$ id, $ name, $ alliance_id, $ points, $ rank, $ towns
http://usX.grepolis.com/data/alliances.txt.gz
This file contains information about the alliances. The data is available in the following order:
$ id, $ name, $ points, $ village members $ $ rank
http://usX.grepolis.com/data/towns.txt.gz
This file contains information on cities. The data is available in the following order:
$ id, $ player_id, $ name, $ island_x $ island_y $ number_on_island, $ points
http://usX.grepolis.com/data/islands.txt.gz
This file contains information about the islands. The data is available in the following order:
$ id, $ x, $ y, $ island_type $ available_towns
http://usX.grepolis.com/data/player_kills_all.txt.gz
This file contains information on the classification of combatants. The data is available in the following order:
$ rank $ player_id, $ points
http://usX.grepolis.com/data/player_kills_att.txt.gz
This file contains information on the classification of attackers fighters. The data is available in the following order:
$ rank $ player_id, $ points
http://usX.grepolis.com/data/player_kills_def.txt.gz
This file contains information on the classification of defenders fighters. The data is available in the following order:
$ rank $ player_id, $ points
http://usX.grepolis.com/data/alliance_kills_all.txt.gz
This file contains information on the classification of alliances fighting. The data is available in the following order: $ rank, alliance_id, $ points
http://usX.grepolis.com/data/alliance_kills_att.txt.gz
This file contains information on the classification of alliances attacking fighters. The data is available in the following order:
$ rank $ alliance_id, $ points
http://usX.grepolis.com/data/alliance_kills_def.txt.gz
This file contains information on the classification of alliances fighting defenders. The data is available in the following order:
$ rank $ alliance_id, $ points
http://usX.grepolis.com/data/conquers.txt.gz
This file contains information on the cities taken from the opening of the world. The data is available in the following order:
Town_id $, $ time, $ new_player_id $ old_player_id $ new_ally_id $ old_ally_id $ town_points[/QUOTE]