User blog:WieQuadrat/Reading the script inside APK

so it turn out that long loading thing when u start the games is because, it download many files and pictures. after that the files will be open and parsing the old value again.. its kind like the database...

which i guess i very smart way to update the game database...., but can be complicated and long loading time.....

heres is the example of some parsing for Challenge (open with notepad)

the xxx is kind like a version hexanumber

in GOALS-xxx

{"prompt-user": false, "predicate": "level>24", "required-steps": [" mausoleumobj8 "], "description": "We've really done it!\\nMy friend will be shocked when she\\nsees our beautiful Mausoleum. Let's build it now!", "show-completion": true, "goal-id": "mausoleumgoal8", "priority": 1, "goal-name": "Mausoleum (8 of 8)", "dependencies": ["mausoleumgoal6"], "goal-icon": "goals_sevenWonders_mausoleum_8.png", "reward-text": "I knew it!\\nWe DO have the best village\\nin the whole world!", "reward-id": " mausoleumreward2 ", "completeImage": "goals_regina_celebrating.png", "reward-xp": 35000, "startImage": "goals_regina_courage.png"}]}

and then search the underline mausoleumobj8

{"description": "Build the Great Mausoleum", "goal-id": " mausoleumgoal8 ", "actionParameter": "greatmausoleum", "objective-id": "mausoleumobj8", "action": "showShopItem", "required-count": 1, "total-function": "buildingsWithId(\"greatmausoleum\")", "icon": "decoration_mausoleum.png"}

then in Prices-xxx, search the underline mausoleumreward2

{"wood": 0, "stone": 0, "premium": 0, "food": 0, "coins": 35000, "wovenfur": 0, "priceID": "mausoleumreward2", "lumber": 0, "social": 0, "fur": 0, "rocks": 0},

---

To find a building Information including decoration and store and homes, anything build-able, check the file Buildings-xxx

for example

{"hurryCost": 36, "chimneyPos": [35, 64], "description": "Coins and XP from resources", "buildTime": "12h", "unlockedAtLevel": 25, "class": "Store", "desc text length": 27, "thumbnail": "shops_goldplating_thumbnail.png", "imageName": "shops_goldplating.png", "sortOrder": 5, "groups": ["wonders"], "footprint": [4, 4], "xp": 60000, "priceID": " goldplatingstore ", "buildingID": " goldplatingstore ", "name": "Gold Plating Store"}

to find recipe go to file Recipes-xxx and search for goldplatingstore

or finding the build price search goldplatingstore