twinstar6980 / Twinning

https://github.com/twinstar6980/Twinning.Documentation
GNU General Public License v3.0
59 stars 12 forks source link

Add support for PvZ 2 10.8.1 Official #17

Closed Haruma-VN closed 1 year ago

Haruma-VN commented 1 year ago

In the newest version (10.8.1), PopCap has added new "RESOURCES.NEWTON", toolkit should be modify to adapt the decode and encode newton function. Additionally, ResourceConvert.ts must also be modified.

assert_test(resource_path_list.length === 1, `MANIFEST subgroup must has one only resource`);

The size of the MANIFEST now increased to 2, so toolkit should not check this anymore, instead please find the RESOURCES.RTON and call the decode RTON function through API.

Please check it yourself.

PvZ 2 10.8.1 Resource in my Onedrive

twinstar6980 commented 1 year ago

A fix for ResourceConvert has been pushed. For newton files, at present, it is meaningless to support newton encoding, because according to your test, the game reads rton first rather than newton. I need to wait for the 10.9 update, maybe popcap will remove rton, if so, the tool will support newton encoding.

twinstar6980 commented 1 year ago

This issue has been resolved in today's push.