Board Thread:Plants vs. Zombies 2/@comment-25546049-20170427193929/@comment-25133884-20170428035149

Starfruity wrote: So this is actually about 6.0 but I don't know where else to share this. I was poking around and I discovered something very interesting about the way levels are handled in 6.0 that is very different from earlier versions. The game now stores many level files externally, as in, NOT in the OBB. In the data folder there is a new folder called CDN.6.0 which contains all the regular data files for each version, plus a folder called "levels" which seems to contain uncompressed versions of every Pinata Party, every Vasebreaker level, and every Epic Quest level. The rest are still stored in the OBB presumably.

This means that PopCap can now update levels without updating the entire app; they can simply push out a newer version of the level file to their servers and the game will download it instantly at launch. The more useful aspect of this however is the system in which the game now loads levels. It first checks if the level file exists in this "levels" folder, and if it does, it loads it from there. If it doesn't, it loads it from the OBB. This means that we can create custom levels of any file size and insert them into this folder, named appropriately to replace any level in the game, no repacking necessary! i mean, you're not wrong.