This repository has been archived by the owner on Dec 9, 2021. It is now read-only.
forked from clanner/cocdp
-
Notifications
You must be signed in to change notification settings - Fork 2
Messages OwnHomeData
sir-barchable edited this page Apr 29, 2015
·
9 revisions
00000000 -- seconds since last login
ffffffff
54d3ea4c 00000000 -- timestamp
00000037 005ff952 -- userid
0003f47f -- remaining shield time
000004b0 0000003c
01
00000255 -- (big endian) length of compressed json data
92080000 -- (little endian) dword containing decompressed size
789c8d55cb8edb20... -- zlib compressed json data
00000000
00000037 005ff952 -- userid
00000037 005ff952 -- userid
00
00000000
ffffffff 00000000 00000000 00000000
00000005:"Susji" -- username
ffffffff -- facebookid
00000001 -- nr of stars
00000000 -- nr points
000001f4 000001f4 -- nr of gems
000004b0 0000003c
00000000 -- nr of trophies
00000000 00000000 00000000 00000000 00000000 00000000 00000000 01
000000dc 6cf5eb48 00000000 00000000 00000000 00
00000002 -- resource cap list
002dc6c1 000002ee -- amount of gold 0x2dc6c1 = 3000001 = index into resources.csv
002dc6c2 000002ee -- amount of elixer
00000000 -- resource list
00000000 -- unit list
00000000 -- spell list
00000000 -- unit upgrade list
00000000 -- spell upgrade list
00000000 -- hero upgrade list
00000000 -- hero health list
00000000 -- hero state list
00000000 -- alliance unit
00000000 -- tutorial progress
00000000 -- achievements
00000000 -- achievement progress
00000000 -- npc map progress
00000000 -- npc looted gold
00000000 -- npc looted elixir
00000000
00000000
the json data looks like this: ( this contains the layout of your village )
{
"buildings": [
{ "data": 1000001, "lvl": 0, "x": 21, "y": 20 },
{ "data": 1000004, "lvl": 0, "res_time": 8770, "x": 20, "y": 16 },
{ "data": 1000000, "lvl": 0, "storage_type": 0, "units": [], "x": 26, "y": 19 },
{ "data": 1000015, "lvl": 0, "x": 18, "y": 20 },
{ "data": 1000014, "locked": true, "lvl": 0, "x": 25, "y": 32 }
],
"cooldowns": [],
"decos": [],
"edit_mode_shown": false,
"last_league_rank": 0,
"last_league_shuffle": 0,
"last_news_seen": -1,
"newShopBuildings": [ 1, 0, 1, 1, 1, 1, 1, 0, 2, 0, 0, 0, 0, 0, 1, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ],
"newShopDecos": [ 1, 4, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ],
"newShopTraps": [ 0, 0, 0, 0, 0, 0, 0 ],
"obstacles": [
{ "data": 8000007, "x": 5, "y": 13 },
{ "data": 8000007, "x": 15, "y": 29 },
{ "data": 8000008, "x": 7, "y": 7 },
{ "data": 8000005, "x": 29, "y": 4 },
{ "data": 8000006, "x": 15, "y": 37 },
{ "data": 8000000, "x": 20, "y": 4 },
{ "data": 8000008, "x": 15, "y": 22 },
{ "data": 8000005, "x": 37, "y": 18 },
{ "data": 8000007, "x": 6, "y": 4 },
{ "data": 8000003, "x": 26, "y": 10 },
{ "data": 8000004, "x": 21, "y": 9 },
{ "data": 8000008, "x": 32, "y": 21 },
{ "data": 8000005, "x": 20, "y": 36 },
{ "data": 8000003, "x": 29, "y": 34 },
{ "data": 8000005, "x": 5, "y": 29 },
{ "data": 8000005, "x": 8, "y": 10 },
{ "data": 8000005, "x": 5, "y": 17 },
{ "data": 8000002, "x": 4, "y": 33 },
{ "data": 8000002, "x": 5, "y": 21 },
{ "data": 8000002, "x": 10, "y": 32 },
{ "data": 8000008, "x": 5, "y": 37 },
{ "data": 8000001, "x": 9, "y": 4 },
{ "data": 8000001, "x": 13, "y": 31 },
{ "data": 8000001, "x": 7, "y": 35 },
{ "data": 8000007, "x": 4, "y": 9 },
{ "data": 8000004, "x": 9, "y": 23 },
{ "data": 8000004, "x": 6, "y": 26 },
{ "data": 8000003, "x": 35, "y": 21 },
{ "data": 8000005, "x": 32, "y": 28 },
{ "data": 8000005, "x": 34, "y": 13 },
{ "data": 8000001, "x": 14, "y": 18 },
{ "data": 8000001, "x": 35, "y": 5 },
{ "data": 8000012, "x": 24, "y": 30 },
{ "data": 8000012, "x": 31, "y": 10 },
{ "data": 8000010, "x": 26, "y": 38 },
{ "data": 8000010, "x": 14, "y": 5 },
{ "data": 8000013, "x": 34, "y": 33 },
{ "data": 8000013, "x": 13, "y": 9 },
{ "data": 8000014, "x": 10, "y": 17 },
{ "data": 8000014, "x": 24, "y": 7 },
{ "data": 8000006, "x": 36, "y": 26 },
{ "data": 8000011, "x": 23, "y": 34 },
{ "data": 8000011, "x": 24, "y": 37 },
{ "data": 8000000, "x": 27, "y": 35 },
{ "data": 8000000, "x": 25, "y": 35 },
{ "data": 8000000, "x": 26, "y": 30 },
{ "data": 8000007, "x": 23, "y": 32 },
{ "data": 8000001, "x": 28, "y": 31 },
{ "data": 8000014, "x": 28, "y": 29 }
],
"respawnVars": {
"obstacleClearCounter": 0,
"respawnSeed": 1529463799,
"secondsFromLastRespawn": 0
},
"traps": []
}
Levels start counting at 0. Every list begins with an dword with the number of items.
An alliance unit list item looks like this.
type | description |
---|---|
dword | troop id |
dword | number of units |
dword | level of unit |
There is an item for every possible combination of troop and level.