Board Thread:Plants vs. Zombies 2/@comment-25546049-20150703183553/@comment-7234182-20150730002829

ADVENT-UR-TRON wrote: Im pretty sure doing the custom level would require an easy edit... BUT for adding levels to the default world map...I dont know about that... Custom worlds actually fall under this same category. I foresee two main problems with adding levels:


 * 1) You'd have to edit the world map definition to add a way for the player to get to the level. This probably would involve editing files like this one: PACKAGES_WORLDS_PIRATE_WORLDMAP (Converted RTON).
 * 2) You'd have to add the level definition (the RTON) into the OBB... Somewhere. This potentially is a much bigger problem because you'd have to shift stuff around the OBB, changing offsets the game (probably) relies upon.

The first problem shouldn't be too hard to solve. The second problem can be solved provided the game doesn't hardcode any offsets into the program itself. But it would still require me to figure out where in the OBB they are stored.