Changes to world data

Ac04

Strategos
There has been a change to the format of the world data for Grepolis. I will give the new files and the formats below, so that anyone who has tools that use the data can recode their files.

For each file, you will have to change the world number.

http://en1.grepolis.com/data/players.txt.gz
$id, $name, $alliance_id, $points, $rank, $towns

http://en1.grepolis.com/data/alliances.txt.gz
$id, $name, $points, $towns, $members, $rank

http://en1.grepolis.com/data/towns.txt.gz
$id, $player_id, $name, $island_x, $island_y, $number_on_island, $points

http://en1.grepolis.com/data/islands.txt.gz
$id, $x, $y, $island_type, $available_towns

http://en1.grepolis.com/data/player_kills_all.txt.gz
$rank, $player_id, $points

http://en1.grepolis.com/data/player_kills_att.txt.gz
$rank, $player_id, $points

http://en1.grepolis.com/data/player_kills_def.txt.gz
$rank, $player_id, $points

http://en1.grepolis.com/data/alliance_kills_all.txt.gz
$rank, $alliance_id, $points

http://en1.grepolis.com/data/alliance_kills_att.txt.gz
$rank, $alliance_id, $points

http://en1.grepolis.com/data/alliance_kills_def.txt.gz
$rank, $alliance_id, $points

http://en1.grepolis.com/data/conquers.txt.gz
$town_id, $time, $new_player_id, $old_player_id, $new_ally_id, $old_ally_id, $town_points
 
Last edited:

Ac04

Strategos
This will no doubt come in handy for anyone creating tools, and applications for Grepolis, so I've moved it to this section.

Go crazy, people :D
 

rebellion534

Guest
Hello, I think something has changed on the Island Type. somehow Island type can reach up to 60.

The only definition that i have is this:
"The internal number of the island, or, what 'type/size/shape' of island this is. 1-10 = player islands with farm towns, 11-16 = uninhabited islands, 17-21 = rocks"

Where can i find the latest definitions?
 

rebellion534

Guest
Hmm so there are 20 each type. but it cannot be like this:
1-20 Active;
20-40 Uninhabited, 40-60 rocks.

because there are island type that has town on the rock range, the types must be shuffled on the last part ranges. . hmmmmm :heh:
 

Skullyhoofd

Guest
well there are 20 types of islands, unihabitated islands and rocks.
 

SmokeyCosmy

Guest
Hmm so there are 20 each type. but it cannot be like this:
1-20 Active;
20-40 Uninhabited, 40-60 rocks.

because there are island type that has town on the rock range, the types must be shuffled on the last part ranges. . hmmmmm :heh:
Types found in Grepolis 2.0 islands.txt data file...

1-10 -- active islands (1 to 10)
11-16 -- uninhabited islands (1 to 6)
17-36 -- rocks (1 to 20)
37-46 -- active islands (11 to 20)
47-60 -- uninhabited islands (7 to 20)

Grepolis 1.x has only the first 10 active islands, the first 6 uninhabited and 5 rocks. That's actually the main reason why islands with the same type aren't consecutive (backwards compatibility)
 

rebellion534

Guest
SmokeyCosmy thank you very much! I almost gave up on the map that im working on. lol. :)
 

Grand Patriarch

Guest
hi, with the players.txt the format is given as

$id, $name, $alliance_id, $points, $rank, $towns

I don't see any town details. For example my own entry is

12039927,Grand+Patriarch,37,19340,1128

which is only 5 fields not 6, the towns are omitted

Or have I missed something?

cheers

GP


[edit] yes I did miss something, the \n character between town from 1 player and the id of the next. When I first opened the file I just opened it in notepad which doesn't break on just the newline character. doh! :)
 
Last edited by a moderator:

Sunset.Towers

Guest
What happened with the

- units.json
- units.json.gz
- buildings.json
- buildings.json.gz
- researches.json
- researches.json.gz
files. I tried .txt.gz on those and got a 404 error. Also is there some kind of world data file that tells the unit speed/world speed/moral etc...
 

Ac04

Strategos
I don't remember those being data files...

There isn't a data file that tells the world settings, unfortunately.
 

Jorge Alves

Guest
Hi guys!

is there any file regarding world wonder?
like en1.grepolis.com/data/players.txt.gz

thx

 

Skullyhoofd

Guest
Doubtful, what data would they need to know?

They can't give you details about how built a wonder is, it's either built or not - any more information would give you an advantage.
 

Wansyth

Phrourach
Ac04 is correct. I calculate that data... I have been asking for world wonder data but on a more direct route...

Specifically: Island x & y, alliance id, level, wonder type
Optional: wonder points added (how they do the ranking)
 

Ac04

Strategos
Ac04 is correct. I calculate that data... I have been asking for world wonder data but on a more direct route...

Specifically: Island x & y, alliance id, level, wonder type
Optional: wonder points added (how they do the ranking)
Surely better to have would be Island_id, alliance_id, level, wonder_type, wonder_points.

There's no need to duplicate x and y, when you can use the id.